[Pmwiki-users] Author-Tracking and Passwords

Patrick R. Michaud pmichaud
Wed Feb 25 15:40:44 CST 2004


On Wed, Feb 25, 2004 at 07:35:02PM -0300, Andres Yver wrote:
> On Wednesday, February 25, 2004, at 04:00 PM, 
> Pmwiki-users-request at pmichaud.com wrote:
> 
> >Sure, in local/config.php:
> >
> >    if (@$_SERVER['PHP_AUTH_USER'])
> >      $Author=$_SERVER['PHP_AUTH_USER'];
> >
> >should set the author identity based on the username field entered
> >during authentication.
> >
> >Pm
> >
> Hi,
> I've got a little script that will query a database for an existing 
> table of usernames and passwords. How do i tell config.php to include 
> it when someone selects action=edit?

   if ($action=='edit') { include('database_query.php'); }

Pm



More information about the pmwiki-users mailing list