[pmwiki-users] Re: Method to selectively include template markup based on auth level
Anno
anno at shroomery.org
Mon Nov 7 07:33:29 CST 2005
> > in skin.php?
>
> $page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
> if ($page['=auth']['read']) /* visitor has read permission */
> if ($page['=auth']['edit']) /* visitor has edit permission */
> if ($page['=auth']['attr']) /* visitor has attr permission */
> if ($page['=auth']['admin']) /* visitor has admin permission */
I tried to use this in the config.php file, but it somehow doesn't seem to work.
It works though if put in a shin.php file.
How can I use this in config.php?
More information about the pmwiki-users
mailing list