[pmwiki-users] wildcard user name in authuser

Neil Herber nospam at eton.ca
Tue Mar 21 09:40:52 CST 2006


At 2006-03-21  09:25 AM -0600, Jon Haupt is rumored to have said:
>I don't think you can just do $Author = $AuthId.  I'm pretty sure in
>order to set the Author to be the same as AuthId you need to use
>something more along the lines of
>
>## Enforce author tracking
>if ($action == 'edit') @session_start();
>if ($_SESSION['authid'][0]) $Author=$_SESSION['authid'][0];
>
>And you could do this at another moment other than edit, I think.
>
>Jon

You may be right, Jon, but then the docs are wrong:
http://www.pmwiki.org/wiki/PmWiki/AuthUser
near the bottom.

I actually don't need to forbid changes to $Author, I just want to 
set it to the login for user convenience.

Would be nice to know how to do both.


Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 





More information about the pmwiki-users mailing list