Log in

View Full Version : Edit Unalterable / Undeletable users.


Blam Forumz
07-17-2004, 10:00 PM
My sexond hack (First was on account i forgot my passowrd to lol) :

What this does is allow any userid, (that is admin) to delete / edit undeleteable / unalterable users ill use id 1 as an example :

Open admincp/global.php

Find :

print_cp_login();
}



Add underneath :

if ($bbuserinfo['userid'] == 1) {
unset ($undeletableusers);
}

Replace the 1 with whatever id you want to be in full control with

thanks to kirbyde for this

Andreas
07-18-2004, 09:21 AM
This code looks familiar to me ;)

Boofo
07-18-2004, 09:24 AM
This code looks familiar to me ;)
And not even a thank you. ;)

kall
07-18-2004, 09:46 AM
And not even a thank you. ;)
and I can't for the life of me find a gloabal.php anywhere!

:(

(although, I do use this system on my boards...came up with it meself, but it is a handy little function.) :)

Blam Forumz
07-18-2004, 10:02 AM
Sorry KirbyDE >< Edited it in now :)

Boofo
07-18-2004, 12:41 PM
and I can't for the life of me find a gloabal.php anywhere!

:(

(although, I do use this system on my boards...came up with it meself, but it is a handy little function.) :)
Spelling error fixed! ;)

Boofo
07-18-2004, 12:43 PM
The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)

Blam Forumz
07-18-2004, 12:45 PM
The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)
You can always go into phpmyadmin and change yourself :P

nexialys
07-18-2004, 12:56 PM
The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)

i don't think a hacker will take the time to modify these users if he is able to login as a admin... he will trash the board first...

btw, i don't think it's useful to have unalterable users... modify a user need to be at a higher level of admin, only... example, in any company, the janitor can't delete the manager... but the manager have the job to deal with the janitor... and the owner of the company take a look at the logs to see if the manager take care of the janitor, and if not, will dismiss the manager (and hire the janitor to take the place).. ;)

Merjawy
07-18-2004, 09:39 PM
Thank its nice work around the matter, however.....
How many ppl in your config as unlatereable/undeletables? and how often do you edit them?

I don't see any need for this hack

Hiro
08-08-2004, 07:55 PM
Hack installed, Thanks again.

Blam Forumz
08-08-2004, 08:32 PM
If you've installed it, can you click installplease :)

DWard
08-09-2004, 07:25 AM
Ah yes, needed this :D
Cheers.

Scerina
03-27-2005, 03:14 AM
I have this hack one other other forum which works perfectly fine and it is an older forum but on my new forum which is vb version 3.07 I am gettin mySQL error messages when I try to edit my own....

Can someone help me?

Marco van Herwaarden
03-27-2005, 06:21 AM
It would help if you posted the error message you are getting.

TrentTech
03-28-2005, 12:22 AM
It's installed, but I can't find the options to edit undeleteable users...

Marco van Herwaarden
03-28-2005, 05:24 AM
This hack will just make it possible to edit a user that would normally be protected through the normal User edit functions in AdminCP

TyleR
03-28-2005, 06:03 AM
Heh, this is pretty cool..thanks Kirby and Blam ;)