From: Jeff D. <da...@da...> - 2001-11-16 16:48:45
|
On Fri, 16 Nov 2001 17:15:02 +0100 "Tara Star" <te...@cl...> wrote: > I'm preparing a private wiki in which I'm going to allow certain pages > to be visible to the public. I'm doing it (rather clumsily, I'll admit) > by putting the whole page display into a control statement, like this: > > if ($user->is_admin() || array_search($pagename, $public_pages)) I think you want: if ($user->is_authenticated() || in_array($PAGE, $public_pages)) (I'm assuming you want anyone who is "signed in" to be able to see all pages.) |