vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Unalterable Admins Can Edit Themselves (https://vborg.vbsupport.ru/showthread.php?t=132240)

akanevsky 11-22-2006 10:00 PM

Unalterable Admins Can Edit Themselves
 
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

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

Quote:

Originally Posted by Ntfu2 (Post 1123348)
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

Quote:

Originally Posted by Psionic Vision (Post 1123353)
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

Quote:

Originally Posted by redlabour (Post 1123497)
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

Quote:

Originally Posted by Psionic Vision (Post 1123568)
Are you sure you are unalterable and that you are using admincp to edit your password?

1. Sure.

2. Sure.

Code:

$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

Quote:

Originally Posted by Abe1 (Post 1123588)
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

Quote:

Originally Posted by redlabour (Post 1123575)
1. Sure.

2. Sure.

Code:

$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

Quote:

Originally Posted by COBRAws (Post 1124065)
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

Quote:

Originally Posted by da420 (Post 1124630)
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

Quote:

Originally Posted by Distance (Post 1124790)
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

Quote:

Originally Posted by redlabour (Post 1126204)
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

Quote:

Originally Posted by da420 (Post 1126206)
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

Quote:

Originally Posted by Psionic Vision (Post 1126262)
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

Quote:

Originally Posted by Stoebi (Post 1128041)
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

Quote:

Originally Posted by Psionic Vision (Post 1128199)
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

Quote:

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**


All times are GMT. The time now is 04:54 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
  • Page Generation 0.02756 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete