[pmwiki-users] identify current authorization level

Patrick R. Michaud pmichaud at pobox.com
Fri Aug 4 08:58:44 CDT 2006


On Thu, Aug 03, 2006 at 02:06:47PM -0500, Tegan Dowling wrote:
> On 8/3/06, Henrik Bechmann <henrik at bechmannsoftware.com> wrote:
> >  Also, for future reference, a side effect of something
> > (include_once('local/config.php')??) is that the author
> > name is being lost between edit states, so the user has to re-enter it all
> > the time -- not true before (I have $EnablePostAuthorRequired = 1;)
> 
> I had this problem.  Never diagnosed it, because a colleague came up
> with a snippet that fixes it.   Mine wikis aren't in a wikifarm setup,
> so I don't know how this would have to be adapted, but what I have is
> (in this order):
> 
> 	//Require author name - http://www.pmwiki.org/wiki/Cookbook/RequireAuthor
> 	$EnablePostAuthorRequired = 1;
> 
> 	//Author cookie
> 	include_once("$FarmD/scripts/author.php");
> 	if($AuthId && !@$_COOKIE[$AuthorCookie]) {
> 	$Author = $AuthId; setcookie($AuthorCookie,
>     $Author, $AuthorCookieExpires, $AuthorCookieDir); }

I wonder why this is required -- it shouldn't be.  I'll have
to look at the author.php code a bit more and see what's going on.

Is there a PITS for this somewhere already?

Pm




More information about the pmwiki-users mailing list