[Pmwiki-users] Password protection
*** Dave Hill
dave
Sun May 16 14:24:47 CDT 2004
> > Woops, my fault entirely! Add two additional lines to initialize the
> variables
> > in case a password is *not* set:
> >
> > $PageHasReadPassword = '';
> > $PageHasEditPassword = '';
> > $page = ReadPage($pagename);
> > if (isset($page['passwdread'])) $PageHasReadPassword = 'readpw set';
> > if (isset($page['passwdedit'])) $PageHasEditPassword = 'editpw set';
> Aha! Works like a champ! Excellent, thanks!
>
> So is this something that one would put into the Cookbook?
>
> *** Dave
Except ...
... if I want to have it also show if there's a DefaultPasswords['read'] or
['edit'] set ...
*** Dave
More information about the pmwiki-users
mailing list