Myself On phpbb.com wrote: I've managed to extend sessions outside of phpBB on my site thanks to the guide. Everything is working great. Now I need to know, how do I check the user level? I found the user level numbers once before, but what variable are they being assigned to? In other words, what variable do I check to check the user level (admin, mod, etc.)?
phpBB User Levels
Moderator: General Moderators
-
Majoraslayer
- Forum Commoner
- Posts: 64
- Joined: Thu Jun 30, 2005 11:50 am
- Location: In Your Mind...
- Contact:
phpBB User Levels
I posted this question on phpbb.com, but once again no one can help me. It should be a very simple question for anyone that knows how phpBB works, so I'll post it here as well. Thanks to anyone who can help!
Here's how your admin/pagestart.php file checks:
Hope that helps.
Code: Select all
if (!$userdataї'session_logged_in'])
{
redirect(append_sid("e;login.$phpEx?redirect=admin/"e;, true));
}
else if ($userdataї'user_level'] != ADMIN)//IF they're not admin.
{
message_die(GENERAL_MESSAGE, $langї'Not_admin']);
}-
Majoraslayer
- Forum Commoner
- Posts: 64
- Joined: Thu Jun 30, 2005 11:50 am
- Location: In Your Mind...
- Contact: