Page 1 of 1

Password Protect Admin Modules

Posted: Wed Jun 02, 2004 11:08 pm
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

Posted: Thu Jun 03, 2004 4:39 am
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: