Code: Select all
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_ERROR, "You have to be an Administrator to read this page!");
}
Code: Select all
//
//Restricts access to page for logged in users only.
//
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
skuipers wrote: in memberlist.php:
Add these lines just before // End session managementCode: Select all
// //Restricts access to page for logged in users only. // if ($userdata['user_id'] == ANONYMOUS) { redirect(append_sid('login.'.$phpEx)); }
Jotne wrote: Here is how i did hide memerlist from anonymous user:
http://www.phpbb.com/phpBB/viewtopic.php?t=33209
You can also use this:
http://www.phpbb.com/phpBB/viewtopic.php?t=213812