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