Jeff Dairiki wrote:
> On Fri, 16 Nov 2001 17:15:02 +0100
> "Tara Star" <te...@cl...> wrote:
>=20
>=20
>>I'm preparing a private wiki in which I'm going to allow certain pages=20
>>to be visible to the public. I'm doing it (rather clumsily, I'll admit)=
=20
>>by putting the whole page display into a control statement, like this:
>>
>>if ($user->is_admin() || array_search($pagename, $public_pages))
>>
>=20
> I think you want:
> if ($user->is_authenticated() || in_array($PAGE, $public_pages))
>=20
> (I'm assuming you want anyone who is "signed in" to be able to see all
> pages.)
Actually, no. I want myself (the admin) to be the only one able to see=20
all pages, /except/ for the public pages which anybody can view.
Your line works fine though (with modification):=20
http://climbtothestars.org/pim/BookMarks (please don't comment on the=20
colours, they're ugly, I know, I'm going to find some better ones).
Tara
--=20
Je r=E9ponds au mieux de mes connaissances
Climb to the Stars! - http://climbtothestars.org/
SpiroLattic - http://spirolattic.net/
Pompeurs Associ=E9s - http://pompage.net/
|