[pmwiki-users] Integrating AuthUser into existing site

Wesley Tanaka wtanaka at yahoo.com
Wed Oct 19 07:48:44 CDT 2005


> Yes.  The Authenticate() function in authuser.php just sets a
> $_SESSION variable as well as setting $AuthId; since you already
> have the authentication information in $_SESSION, you only need to
> set $AuthId.

After looking at the source code, I'm not sure how to do what I want.  I'd like
to somehow distinguish between logged in users and non-logged in users in
RecentChanges, AllRecentChanges, and in action=diff.  If a user made a change
while they were logged in, I'd like their username to show up.  If they weren't
logged in, I'd like their IP address to show.

It doesn't look like there is a place in the wiki.d format for storing whether
or not the user is a logged in user or anonymous user.  So I'm guessing a
solution would start out with picking a fixed AuthId like "Anonymous" for users
that aren't logged in.

Does that make sense?

Wesley Tanaka

http://treehouse.ofb.net/ - Treehouse Bar & Cafe in the town of Shangri-La
http://treehouse.ofb.net/guide/ - Yunnan, Eastern Tibet, China & more.


		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/




More information about the pmwiki-users mailing list