[pmwiki-users] Author lookup

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 24 06:14:16 CST 2006

On Fri, Mar 24, 2006 at 12:00:49AM -0500, Neil Herber wrote:
> Some of my wikis are protected by Apache Basic Authentication. When 
> someone supplies the correct credentials, I set their $Author to the 
> Apache BA username. This is not particularly helpful if the username 
> is something like "nherber" or "user9876".
> Is there a way that I can "lookup" a synonym for the name, and force 
> that into $Author? So "nherber" might result in $Author="Your 
> Favorite Wiki Administrator".

    $AuthorMap = array(
      'user9876' => 'Alice Barton',
      'nherber' => 'Your Favorite Wiki Administrator'
    if (@$AuthorMap[$Author]) $Author = $AuthorMap[$Author];


More information about the pmwiki-users mailing list