vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Only Original Admin can Remove Users? (https://vborg.vbsupport.ru/showthread.php?t=39651)

Chris M 06-09-2002 05:13 PM

Only Original Admin can Remove Users?
 
I am more concerned with their Ability to remove Admins, but Moderators and Users would like to be protected too...

Can someone either point me towards a Hack, or write a hack that will prevent all the Admins except for the Original one to remove other Admins?

Also...If you could do that, could you tell me how to exempt certain Users from this? By this, I mean enable ALL Admins to remove certain users (people we suspect of being troublemakers), but not others?

Thanks...

Satan

Chris M 06-09-2002 06:33 PM

Anyone?

Satan

nuno 06-09-2002 06:50 PM

i would like to see this aswell
Chen? :)

Logician 06-10-2002 07:46 AM

1- You are on the wrong track. I really dont understand why you guys need necessitity to grant someone Site Admin priviliges if you have doubts that he can delete your account? :rolleyes: Simply make them Super Moderators and you'll be perfectly fine.

2- However I'm pretty sure you wont listen to me and still ask for the hack so here you go lol: :p

edit admin/user.php:

find:

if ($HTTP_POST_VARS['action']=="kill") {

after that add:

if ($userid==1) { show_nopermission(); exit;}

Now no one can delete the account of user 1.

But I still INSIST you really consider not to make anyone Site Admin. Preventing them not deleting your account is pretty meaningless when he is able to:
  • change your password
  • delete all your messages
  • change your user group and make you a banned user
  • delete all your templates in your board
  • delete all other accounts in your board
  • make all users site admins
  • thousands of other bad things he can do in your admin cp

And to preventing them from doing all these is only and easily achivable if you remove their Site Admin priviliges ;)

Chris M 06-10-2002 09:10 AM

Well...

I can sort out the following :

1.) change your password
2.) delete all your messages (he cant without your password)
3.) change your user group and make you a banned user

Those 3 would be covered by my hack...

I only wanted to remove the chance of them deleting my account via the "View all Users" list...They cannot access my profile if I dont want them to...

About the templates and other stuff - Of course, you dont allow users who you dont trust, but it is better to be safe than sorry...

BTW : Thanks:)

Satan


All times are GMT. The time now is 11:12 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.00945 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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