[pmwiki-users] How to set nopass in script

Patrick R. Michaud pmichaud at pobox.com
Sun Aug 27 08:41:28 CDT 2006

On Sun, Aug 27, 2006 at 10:58:56PM +1200, Allister Jenks wrote:
> Now I want to do something slightly different like this.
>     $page2 = ReadPage('FreeStuff.GroupAttributes');
>     if ($page['passwdread'] = '@lock') {
>       $page['passwdread'] = 'nopass';
>       WritePage('FreeStuff.GroupAttributes', $page);
>     }
> This to launch a new section which is currently set to @lock for read
> permission.  The script removes the @lock and the setting shows on the
> GroupAttributes attributes as **** but I still seem to need a password
> to access the section.  What should I be putting where I have
> 'nopass'?

'nopass' is deprecated, use '@nopass' instead.


More information about the pmwiki-users mailing list