Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
[Mini-Hack] Protect Admins in the Admin CP. Details »»
[Mini-Hack] Protect Admins in the Admin CP.
Version: 1.00, by Slynderdale Slynderdale is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-14-2003 Last Update: Never Installs: 15
 
No support by the author.

This is just a mini-hack I made, I know theres others like it, but this one is simple and protects admins from being edited, deleted, editing access masks and so on and the options can be changed in config.php, heres the current options:

PHP Code:
// which users are allowed to edit the admin usernames
$caneditadmin "all";
// if they cant edit admins, can they edit them selves?
$caneditadminself true;

// admins that are protected from others editing them
$protectedadmins "1";
// can the protected admins edit them selves?
$protectedadminsself true
Its pretty much self explanatory, if a unathorized admin tries to edit, delete and so on an admin, they get an error message saying there not allowed to do that.

With the option $caneditadmin, you can control what admins can edit other admins.
With the option $caneditadminself, if set to true, the admin can edit there own account even if there not listed in caneditadmin.

With the option $protectedadmins, no other admin can edit them even of there listed in caneditadmin, this is good for protecting a main admin account from being tampered with.
With the option $protectedadminsself, if set to true, it allows the protected admins to edit there own account.

The $caneditadmin and $protectedadmins can support multiple accounts, each account must be seperated with a comma for example:
$caneditadmin = "1,2,3,6";
or you can use "all" for every admin, for example:
$caneditadmin = "all";

The $caneditadminself and $protectedadminsself can be set to true, if the admin can edit there own account or false if they cant.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-16-2003, 07:12 AM
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! I was looking for a replacement for Chen's modified version!

*clicks install*
Reply With Quote
  #3  
Old 01-16-2003, 08:08 AM
w596 w596 is offline
 
Join Date: Jul 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your txt file you say...

PHP Code:
-------------------------------------
|     
In admin/config.php find:     |
-------------------------------------

?>

-------------------------------------
|          above it add:            |
-------------------------------------

// which users are allowed to edit the admin usernames
$caneditadmin = "all";
// if they cant edit admins, can they edit them selves?
$caneditadminself = true;

// admins that are protected from others editing them
$protectedadmins = "1";
// can the protected admins edit them selves?
$protectedadminsself = true; 

Did you actually mean to say below it add:?

LOL see the next two posts... Thanks for straightening me out scsa20


BTW it works perfectly.

Thanks,
W596
Reply With Quote
  #4  
Old 01-16-2003, 08:35 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, it's correct, you so'pose to add it above ?>, otherwise it'll just think it's normal text in normal HTML

btw... nice hack, need to install this later
Reply With Quote
  #5  
Old 01-16-2003, 09:42 AM
w596 w596 is offline
 
Join Date: Jul 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LMAO!!!

My Bad... I think maybe I'm dyslexic, I seen it as <?
doh!
Reply With Quote
  #6  
Old 01-18-2003, 06:38 AM
HHTKAO HHTKAO is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great, im definitly adding this. nice hack
Reply With Quote
  #7  
Old 02-08-2003, 07:00 PM
Katana Myronson Katana Myronson is offline
 
Join Date: Oct 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack.... its going on to my list of hacks.
Reply With Quote
  #8  
Old 06-15-2003, 09:30 PM
Sam FT's Avatar
Sam FT Sam FT is offline
 
Join Date: Apr 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome hack. I had the Total Admin Security by hellsatan for keeping any one from deleting my account. But this is even better with the abiltiy to keep other admins from edit each other.
Reply With Quote
  #9  
Old 06-16-2003, 01:14 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 11:30 PM Music Pirate said this in Post #8
This is an awesome hack. I had the Total Admin Security by hellsatan for keeping any one from deleting my account. But this is even better with the abiltiy to keep other admins from edit each other.
Heh - Total Admin Security can easily be modified to perform the same function

Satan
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04476 seconds
  • Memory Usage 2,279KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete