[pmwiki-users] auth condition in skins.php
H. Fox
haganfox at users.sourceforge.net
Wed Feb 20 09:02:01 CST 2008
On Wed, Feb 20, 2008 at 5:48 AM, noskule <noskule at gmx.net> wrote:
> hi list
> The condition below works well in config.php but not in skins.php where
> I need it. Does anyone know way that is and how to solve it?
> thank's for any hints.
> nos
>
>
> if ( @$GLOBALS["PCache"][$GLOBALS["pagename"]]["=auth"]['admin'] ) {
> $contentbox_border = "1px sold red";
> $horizontallist_border = "1px sold red";
> $skinsection = "1px sold red";
> }
Try using CondAuth() , as in
if (CondAuth($pagename, 'admin')) { ... }
Hagan
More information about the pmwiki-users
mailing list