[pmwiki-users] Authentication Error

Crisses crisses at kinhost.org
Sun Sep 24 08:42:10 CDT 2006


On Sep 24, 2006, at 9:10 AM, The Editor wrote:

> Here's the appropriate lines in authuser.php.  I put a star by line 82
> * in my editor.  Maybe someone can suggest what exactly this is
> looking for and why it's not being found on the FAST Data login
> script?  My login script is still down at the bottom.
>
>   foreach(preg_grep('/^@/', (array)@$auth[$authid]) as $g)
>     $authlist[$g] = 1;
>   foreach(preg_grep('/^@/', (array)@$auth['*']) as $g)
>     $authlist[$g] = 1;
> *  foreach(preg_grep('/^@/', array_keys($auth)) as $g)
>     if (in_array($authid, $auth[$g])) $authlist[$g] = 1;
>   if ($auth['htgroup']) {
>     foreach(AuthUserHtGroup($pagename, $id, $pw, $auth['htgroup'])  
> as $g)
>       $authlist["@$g"] = 1;
>   }
>   SessionAuth($pagename, array('authid' => $authid, 'authlist' =>  
> $authlist));
> }
>
>


If auth is not an array, the other two foreaches before it won't  
throw an error, but the array_keys will.

Apparently your $auth needs to be an array.  so you might either need  
to fix $auth, or fix the  foreach line in authuser.php.  I suggest  
you fix $auth :)

Crisses




More information about the pmwiki-users mailing list