[Pmwiki-users] Password protection
*** Dave Hill
Sun May 16 14:24:47 CDT 2004
> > Woops, my fault entirely! Add two additional lines to initialize the
> > 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
... if I want to have it also show if there's a DefaultPasswords['read'] or
['edit'] set ...
More information about the pmwiki-users