[pmwiki-users] Maybe i'm dumb

Stefano steagl at people.it
Sat Apr 16 02:44:24 CDT 2005


Il Fri, 15 Apr 2005 15:52:38 -0500, "Patrick R. Michaud"
<pmichaud at pobox.com> scrive:

>> A) check is an user is logged as admin
>> B) if not making the password form show up and then check against the 
>>    admin password setted in config.php
>> 
>> I mean to use this in a coockbook (specifically my backuppages recipe
>
>    if (RetrieveAuthPage($pagename, 'admin')) {
>      # user has admin privileges
>    }
>
>This will prompt the user for an password if he/she hasn't already
>logged in with admin rights.

Thanks, You faster andd usefull as usual :)
-- 

Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431
Email: steagl at people.it - steagl at despammed.com
BlogPage: http://www.40annibuttati.it/
PGP keys available on keyservers  (cripted & signed PGP mail welcome)



More information about the pmwiki-users mailing list