PDA

View Full Version : Administrative and Maintenance Tools - Unalterable Admins Can Edit Themselves


akanevsky
11-22-2006, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| Unalterable Admins Can Edit Themselves
||
|| Author : Anton Kanevsky
|| Co-Author(s) : Andreas
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jan 31, 2009
||
|| Time required to install: 30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

Allows unalterable administrators to modify their own accounts (with the exception of the password, usergroup and membergroups) via admincp.

STATISTICS

Products to Install: 1


VERSION HISTORY

1.0.5
[+] Ported to vBulletin 3.7.x - 3.8.x.

1.0.4
[+] The modification is now compatible with vBulletin 3.6.4 - a plugin code change was required due to changed format of CVS_REVISION constant.
[+] It is no more possible for an uneditable admin to modify the usergroup(s) he or she belongs to.

1.0.3
[+] The modification is now officially compatible with vBulletin 3.6.0 and above.
[+] The modification is now a product rather than a plugin, and it supports version check.

1.0.2
[+] Added restriction to prevent code from executing anywhere but within user.php.
[+] Added restriction to prevent alteration of password for unalterable administrators.

1.0.1
This is now a plugin instead of a code hack. Cheers to Andreas.

1.0.0
First Public Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=203760)

akanevsky
11-22-2006, 11:41 PM
<font size="3">First Post Reserved.</font>

Zoints
11-22-2006, 11:58 PM
Nice hack Anthony. That always drove me nuts.

Ntfu2
11-23-2006, 12:30 AM
Before there was a problem when creating a user we'd get illegal password or enter password or some crap like that.

Does it happen with this too?

akanevsky
11-23-2006, 12:37 AM
Before there was a problem when creating a user we'd get illegal password or enter password or some crap like that.

Does it happen with this too?

The problem existed in the previous version of the hack. It has been fixed.

Exitilus
11-23-2006, 12:40 AM
Awesome! Thanks ... I've been meaning to look for something like this. God damn annoyed the hell out of me *lol*

krazycivik
11-23-2006, 04:36 AM
awsome just what i needed..

Ntfu2
11-23-2006, 05:54 AM
The problem existed in the previous version of the hack. It has been fixed.

awesome thanks

StuntFactoryX
11-23-2006, 07:06 AM
can i have a better description please?

redlabour
11-23-2006, 07:57 AM
Perfect thx ! :)

But it seems i can edit my own Password ... :/

akanevsky
11-23-2006, 11:42 AM
Perfect thx ! :)

But it seems i can edit my own Password ... :/

Are you sure you are unalterable and that you are using admincp to edit your password?

redlabour
11-23-2006, 12:08 PM
Are you sure you are unalterable and that you are using admincp to edit your password?

1. Sure.

2. Sure.

$config['SpecialUsers']['undeletableusers'] = '1';

Abe1
11-23-2006, 12:28 PM
I installed and still get the error 'Sorry, this user is protected from being altered in the config.php file by the $config['SpecialUsers']['undeletableusers'] variable.'. I have 3 users in this variable.

redlabour
11-23-2006, 12:53 PM
I installed and still get the error 'Sorry, this user is protected from being altered in the config.php file by the $config['SpecialUsers']['undeletableusers'] variable.'. I have 3 users in this variable.

Me not ..... i have only 1 User in this Variable.

Stoebi
11-23-2006, 01:18 PM
UserID 1 is really your ID?

Thank you very much Psionic Vision. No suspected behavior, your hack is working fine here.

Regards, Stoebi

akanevsky
11-23-2006, 02:48 PM
1. Sure.

2. Sure.

$config['SpecialUsers']['undeletableusers'] = '1';

Yeah, are you sure that userid 1 is actually your userid? :) It's working fine on my board.

COBRAws
11-24-2006, 03:41 AM
Where is the coder of the month link?? xD

akanevsky
11-24-2006, 11:51 AM
Where is the coder of the month link?? xD

I don't think there is such thing, but thanks. :)

da420
11-25-2006, 04:33 AM
Can an unalterable admin change his own usergroup. Say if someone somehow gets access to your account, can you be taken off the Admin spot without FTP access after someone went in and did their damage?

akanevsky
11-25-2006, 12:02 PM
Can an unalterable admin change his own usergroup. Say if someone somehow gets access to your account, can you be taken off the Admin spot without FTP access after someone went in and did their damage?

Yes, that is possible. Good point though, I'll make it impossible.

Distance
11-25-2006, 12:16 PM
You can always use tools.php to restore admin acess

Abe1
11-26-2006, 04:01 AM
You can always use tools.php to restore admin acess
or PHPMyAdmin

akanevsky
11-26-2006, 02:27 PM
New version released. :)

redlabour
11-27-2006, 06:33 AM
So i tested it again and it still seems like i can edit my Password.

But it only seems like. There is no Error Message but the old one is still keeped. ;)

da420
11-27-2006, 06:36 AM
So i tested it again and it still seems like i can edit my Password.

But it only seems like. There is no Error Message but the old one is still keeped. ;)

Yep, same here. I'm fine with that tho. :)

akanevsky
11-27-2006, 09:09 AM
Yep, same here. I'm fine with that tho. :)

Why would there be an error message... The point is to frustrate the hacker and make 'em feel like an idiot. :)

da420
11-27-2006, 03:14 PM
Why would there be an error message... The point is to frustrate the hacker and make 'em feel like an idiot. :)

Haha.. Yep, that's cool. :)

Stoebi
11-29-2006, 12:09 PM
Hi,

it is possible on this way to activate the complete debug mode without altering the $config['Misc']['debug'] option? I mean not the $vbulletin->debug option (this option is useless if you need to use ?explain=1). At the moment I have no idea how can i realize that.

Regards, Stoebi

akanevsky
11-29-2006, 06:05 PM
Hi,

it is possible on this way to activate the complete debug mode without altering the $config['Misc']['debug'] option? I mean not the $vbulletin->debug option (this option is useless if you need to use ?explain=1). At the moment I have no idea how can i realize that.


Regards, Stoebi

I am afraid debug has nothing to do with this hack.

Stoebi
11-29-2006, 09:14 PM
I am afraid debug has nothing to do with this hack.
It was a technical question only.


Regards, Stoebi

Bounce
12-08-2006, 12:15 AM
Firstly works brill on my forums (running 3.6.4) but.................

I have a query thou.. If I select delete user,will it ???

All the sections etc come up but theres no way I'm clicking yes , anyone wanna try it LOL


Come to think of it , I've turned this hack off and it would still do it... or would it .. hmmmmm


:cool:

akanevsky
12-08-2006, 09:49 PM
I have a query thou.. If I select delete user,will it ???

Nay, it shan't.

testebr
05-07-2007, 07:38 PM
This mod has a bug. If I try to add a secondary group for an administrator, it doesn't work. Then I need disable the mod to do it.

Can you fix it?

Thank you! Nice mod.

akanevsky
05-08-2007, 12:20 AM
This mod doesn't have anything with groups, whether primary or secondary.

Gooses
05-08-2007, 12:40 AM
This is great! It solves that pain of a problem! Thanks.

redlabour
01-29-2008, 05:10 PM
Hope this will work for 3.7?

Droptop
03-04-2008, 08:46 AM
Thanks, works great for 3.6.8 PL 2:up: **clicks install**