[pmwiki-users] Maybe i'm dumb

Patrick R. Michaud pmichaud at pobox.com
Fri Apr 15 15:52:38 CDT 2005


On Fri, Apr 15, 2005 at 10:36:07PM +0200, Stefano wrote:
> .. and this is a trivial question, i looked on wiki but without
> finding the ansewer.
> 
> There is a way to
> 
> 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.

Pm



More information about the pmwiki-users mailing list