![]() |
Restrict Admins to...
Ive seen Admins be restricted to things like styles. and that
But what im after is to restrict other admins.. IE other then userID1 to the email.php page.. To stop generating Email lists.. To stop downloading of my style.. but can modify. To stop the backing up of the database. Thats it! Thank You Crocket |
where did you see to styles only? is there a link to the thread?
sorry i can't help you with your hack |
|
thats more of a protection, so other admins can't...
|
crocet please change your sig image, you are way beyon the 300x75 pixels with max of 20k Byte
|
@mx3 - What do you want to do? I can post the code in here for you:)
Satan |
hellsatan can you help me your the "ultimate hacker"
I just want it so the email page style download/upload page database backup page.. Cannot be accessed by the other admins.. Only the admin ID 1 can access them! |
Ok:)
Remember to backup ALL the files you are editing before changing anything in them;) Open admin/style.php Find: Code:
if ($action=="download") { Code:
if (($action=="download") and ($bbuserinfo[userid]!="1")) { Open admin/email.php Find: Code:
require("./global.php"); Code:
if ($bbuserinfo[userid]!="1") { Open admin/backup.php Find: Code:
require("./global.php"); Code:
if ($bbuserinfo[userid]!="1") { :) Satan |
~Thank You so much!
/me goes to impliment the code! |
No problem:)
Satan |
Parse error: parse error, unexpected '}' in /home/crocket/public_html/forums/admin/style.php on line 210
I get this error for the first.. therefore the code maybe wrong?! PHP Code:
For email... PHP Code:
*************** Admin Log Just goes thru as normal! PHP Code:
|
The last 2 is because you are probably using your admin account to view those files;) Try creating a new admin account, logging in, and testing those files;)
The first one, I forgot, would cancel the action;) Open admin/style.php Find: Code:
if ($action=="download") { Code:
if ($bbuserinfo[userid]!="1") { Should work;) Satan |
i now get this error!
Parse error: parse error, unexpected '}' in /home/crocket/public_html/forums/admin/style.php on line 209 using code... PHP Code:
Quote:
Thank You for your help up to now! Crocket |
You misread my update for admin/style.php;)
I said "Add below" not "Replace" as before;) As for the other two - There is only one other thing I can suggest (that code should work - there are no errors with it)... Open admin/index.php Find where the option for email.php and backup.php are, and add this around them: PHP Code:
|
satan i just wanted it so anyone could make a style but i reduced my boards to 1 style so i don't need it anymore
|
Ah ok:)
I guess you wanted the code to stop them from deleting styles? Its in one of my hacks;) Satan |
All times are GMT. The time now is 09:50 PM. |
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:
|