[Pmwiki-users] Password protection
*** Dave Hill
Sun May 16 13:54:31 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?
More information about the pmwiki-users