[pmwiki-devel] [pmwiki-users] check authorization requirements for a given page
Hans
design5 at softflow.co.uk
Thu Oct 1 16:55:02 CDT 2009
Thursday, October 1, 2009, 9:58:55 PM, DaveG wrote:
> $page = RetrieveAuthPage($pagename, 'read', true);
> if (!$page) echo "?cannot read $pagename";
> if ($page['passwdedit']) { DEFINE MARKUP }
> else { BLANK OUT THE MARKUP }
instead of
$page = RetrieveAuthPage($pagename, 'read', true);
in this case you could simply use
$page = ReadPage($pagename);
since you just want to check for the presence of a password.
~Hans
More information about the pmwiki-devel
mailing list