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
_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel