![]() |
[Mini-Hack] Protect Admins in the Admin CP.
This is just a mini-hack I made, I know theres others like it, but this one is simple and protects admins from being edited, deleted, editing access masks and so on and the options can be changed in config.php, heres the current options:
PHP Code:
With the option $caneditadmin, you can control what admins can edit other admins. With the option $caneditadminself, if set to true, the admin can edit there own account even if there not listed in caneditadmin. With the option $protectedadmins, no other admin can edit them even of there listed in caneditadmin, this is good for protecting a main admin account from being tampered with. With the option $protectedadminsself, if set to true, it allows the protected admins to edit there own account. The $caneditadmin and $protectedadmins can support multiple accounts, each account must be seperated with a comma for example: $caneditadmin = "1,2,3,6"; or you can use "all" for every admin, for example: $caneditadmin = "all"; The $caneditadminself and $protectedadminsself can be set to true, if the admin can edit there own account or false if they cant. |
Excellent! I was looking for a replacement for Chen's modified version! :)
*clicks install* |
In your txt file you say...
PHP Code:
Did you actually mean to say below it add:? LOL see the next two posts... Thanks for straightening me out scsa20 :D BTW it works perfectly. ;) Thanks, W596 |
no, it's correct, you so'pose to add it above ?>, otherwise it'll just think it's normal text in normal HTML
btw... nice hack, need to install this later :) |
LMAO!!!
My Bad... I think maybe I'm dyslexic, I seen it as <? doh! :) :p |
This is great, im definitly adding this. nice hack :)
|
Great hack.... its going on to my list of hacks. :)
|
This is an awesome hack. I had the Total Admin Security by hellsatan for keeping any one from deleting my account. But this is even better with the abiltiy to keep other admins from edit each other.
|
Quote:
Satan |
All times are GMT. The time now is 12:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|