Password Protect Admin Modules

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
MrSexy
Registered User
Posts: 45
Joined: Fri May 21, 2004 7:49 pm
Contact:

Password Protect Admin Modules

Post by MrSexy »

Ok, i was looking at EASYMOD, and how it was password protected in the admin panel. I want a few moderators to be admins, but i think there are ceratin things i would like to pass protect. Has anyone made a mod where u can password protect various modules of the admin panel like EASYMOD does it? If not, is it something that is somewhat easy to do?

Thanks
never hit a man with glasses, hit him with your fist.

User avatar
Rookie7
Registered User
Posts: 189
Joined: Mon Mar 10, 2003 3:32 pm
Contact:

Post by Rookie7 »

I don't know about password protect, but you can do what I did and use the if statement.

Code: Select all

if ( $userdata['user_id'] != 2 )
{
}

else
{
[the rest of your module codes here]
}
Basically, if you're not the admin who sets up the board, then you'll get a blank page if you click on that module. Works for me! :wink:

Post Reply

Return to “[2.0.x] MOD Requests”