[pmwiki-users] authuser / Setting the Author Automatically - all blank

Patrick Ogay lists at basel-inside.ch
Tue Feb 7 01:06:18 CST 2006


Hello!

I use authuser and with this installation, .htpasswd  authentification 
works  perfectly!
(I really tried it again and again and it never got it to work  with the 
other installations)

Now I have a problem to set the author automatically.
I read the thread and I move the query "after" include of authuser.

my farmconfig:
 [...]
   include_once("$FarmD/scripts/authuser.php");   /* User basierende 
Authenfification */
# Must be after authuser.php
    $EnablePostAuthorRequired = 0;
##  If there's no Author yet, use the verified identity.
#   @session_start();
    if (@$_SESSION['authid'] && !$_COOKIE['author']) {
       $Author = $_SESSION['authid'];
       setcookie('author',$Author,0,'/');
    }
    echo "Hello {$_SERVER['PHP_AUTH_USER']} --";
    echo 
($AuthId.'|'.$_SESSION['$authid'].'/'.$_SESSION['$AuthId'].'/'.$_COOKIE['author'].'/'.$Author);

alle Variables are empty:
Hello --|///




More information about the pmwiki-users mailing list