PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
How can you differentiate if an admin or user is logged into the system based on the phpbb 2.0.12 ver. I am having trouble developing the admin sessioning code. Could anyone please help me out. I have currently developed a successful user sessioning login. Thanking you for help.
You can set user_type while login, as with logged in id you can get whether the user is normal user or admin. so if user is admin then set the user_type as 'admin' in session and then check this value for further requirements.
There is global data carried around in phpBB that signals the user being an admin in that version, if memory serves. It is an old version of phpBB however.