Posted on: 07/17/03 11:52am
By: Anonymous (Alager)
Hi, i\'m making a swedish geeklog site and thougt it would be cool with a diary.
But i need to check if the user is logged in, when you inlcude the file auth.inc.php checks if the user is an administrator, does it exist any file that does the same but with logged in users?
Re:auth.inc.php?
Posted on: 07/17/03 12:47pm
By: Dirk
if ($_USER[\'uid\'] > 1)
is a simple way to check if the current user is logged in (anonymous user have a uid == 1).
bye, Dirk
Re:auth.inc.php?
Posted on: 07/17/03 01:18pm
By: Anonymous (Alager)
OK, thank you!