vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Total Admin Security... (https://vborg.vbsupport.ru/showthread.php?t=40738)

Chris M 07-05-2002 10:00 PM

Total Admin Security...
 
Ive always hated the fact that other Admins can delete your account...

Its not that they are untrustworthy, but people could get hold of their password or what have you...

So...

There is an easy way to ensure that they cannot change your password, demote you, or delete you...

Just use this hack below, and then they cant!!!

Just remember to change every occurance of X to your userid...

Also : I have posted 2 screenshots...

Other Related Hacks:

More Admin Security - Protect Templates, Templatesets and Styles!!!

Satan

Chris M 07-06-2002 01:26 PM

This one was designed so that Nobody, not even yourself, could delete your user...

Just incase anybody gets hold of your password:)

Satan

Chris M 07-06-2002 01:28 PM

This is not like my Profile Restricting Hack...

This will not allow them to Update any information about you...

They can still view your profile, but they cannot demote you, or change your password at all...

To do that, they would need to update your information, and this restricts it totally to just you...

Satan

g-force2k2 07-06-2002 01:33 PM

It looks good hellsatan :) only thing i can say is that it won't help if they have your password ;\ cause they can then update your account and change your usergroup... i've been hacked before and they didn't delete any of the admins only moved them to the banned group and then damaged the forum :p

g-force2k2

Chris M 07-06-2002 01:41 PM

Precisely...

Im not offering protection against them having your password:)

This simply prevents others from updating or deleting you...i.e. If a hacker gets in to one of the other accounts, you are totally secure...

You can, of course, protect other parts of the CP, like Templates, to just yourself...

Satan

Neo 07-06-2002 05:41 PM

Nice man, But I would have to say a hack like limit admin abilitys would be better. Like if you didnt want them to have access to forum editing but having access to template editing. That might be cool... I might make that Oo (So many hacks to make)

Chris M 07-06-2002 05:54 PM

Thats easy...

Ive already done it at our forums:)

I'll post that up if you'd like...

Satan

TECK 07-06-2002 05:54 PM

another way of doing this could be:
forum/admin/config.php
add at the bottom:
Code:

// user can edit admins
$editadmin='1';

you can add as many users you want there...

forum/admin/user.php
find:
Code:

adminlog(iif($userid!=0,"user id = $userid",""));
below this add:
Code:

unset($editadmin);
find:
Code:

if ($HTTP_POST_VARS['action']=="doupdate") {
replace it with:
Code:

if ($HTTP_POST_VARS['action']=="doupdate" && checklogperms($editadmin,1,"<p>You are not allowed to edit this user.</p>")) {
let me know what you think.

Chris M 07-06-2002 05:58 PM

Hmm...

I'll test that...

If it works, I'll add it to the file (if you dont mind), as an optional extra...

My way still allows them to view your profile, but they cannot delete or modify you...

Your way they can still delete you...

Satan

TECK 07-06-2002 06:04 PM

np. :)
let me know. the code will stop of doing something 'fancy' to your collegues admins if you are not on the config.php list. that includes password or anything else.


All times are GMT. The time now is 01:32 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.01141 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete