![]() |
Yes, that works on vB 2.2.9 also. I'm reluctant to keep the hack activated because I want the other admins to be able to IP ban but if they go screwing with my settings, BAM!
|
Ok I've updated this hack with cleaner code now, I'm using !$bbuserinfo['userid']=="1" instead of !$userinfo[userid]==1
This should work in 2.x.x |
n9ne this is not the best way of doing it. You should add a query to run which adds an option to the admin options where you can set who can edit the main options. Then after that it will create a global variable in which you can specify the userid instead of assuming that the userid of the main admin is always 1 :)
- miSt |
Actually, while the hacker is hacking his board, he can just change the userid to his userid. It's easier that way Mist.
Since when am I assuming that the userid of the main admin is 1? It's there to be edited. Adding an option is risky, as other admins may view that page, and change it, before the head admin has time to get to the page while hacking. Also, admins who have phpMyAdmin access or access to the database can easily change this to reflect a different userid, so they gain access again, and they will then most likely use it maliciously. The best way is to keep it in the file. |
the restriction does not seem to work at all, all userids will still be able to access admin options. heres the edited one that works:
PHP Code:
|
jusunlee, works fine for me...
|
on jusunlee
last post.. doesn't that code mean it stops the person with user id 1, accessing it? |
Not a bad idea
Would it also be a good idea to add something to /admin/setting.php as well ? Plenty of damage can be done there too. |
I'm sure N9ne's phrasing works though Jun's is correct and is the way I've always phrased something to this effect.
|
All times are GMT. The time now is 06:14 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:
|