vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Edit Unalterable / Undeletable users. (https://vborg.vbsupport.ru/showthread.php?t=67309)

Blam Forumz 07-17-2004 10:00 PM

Edit Unalterable / Undeletable users.
 
My sexond hack (First was on account i forgot my passowrd to lol) :

What this does is allow any userid, (that is admin) to delete / edit undeleteable / unalterable users ill use id 1 as an example :

Open admincp/global.php

Find :
PHP Code:

print_cp_login();



Add underneath :
PHP Code:

if ($bbuserinfo['userid'] == 1) {
unset (
$undeletableusers);


Replace the 1 with whatever id you want to be in full control with

thanks to kirbyde for this

Andreas 07-18-2004 09:21 AM

This code looks familiar to me ;)

Boofo 07-18-2004 09:24 AM

Quote:

Originally Posted by KirbyDE
This code looks familiar to me ;)

And not even a thank you. ;)

kall 07-18-2004 09:46 AM

Quote:

Originally Posted by Boofo
And not even a thank you. ;)

and I can't for the life of me find a gloabal.php anywhere!

:(

(although, I do use this system on my boards...came up with it meself, but it is a handy little function.) :)

Blam Forumz 07-18-2004 10:02 AM

Sorry KirbyDE >< Edited it in now :)

Boofo 07-18-2004 12:41 PM

Quote:

Originally Posted by kall
and I can't for the life of me find a gloabal.php anywhere!

:(

(although, I do use this system on my boards...came up with it meself, but it is a handy little function.) :)

Spelling error fixed! ;)

Boofo 07-18-2004 12:43 PM

The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)

Blam Forumz 07-18-2004 12:45 PM

Quote:

Originally Posted by Boofo
The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)

You can always go into phpmyadmin and change yourself :P

nexialys 07-18-2004 12:56 PM

Quote:

Originally Posted by Boofo
The only bad thing about this is if anyone evers gets into your account, you would be in trouble. ;)

i don't think a hacker will take the time to modify these users if he is able to login as a admin... he will trash the board first...

btw, i don't think it's useful to have unalterable users... modify a user need to be at a higher level of admin, only... example, in any company, the janitor can't delete the manager... but the manager have the job to deal with the janitor... and the owner of the company take a look at the logs to see if the manager take care of the janitor, and if not, will dismiss the manager (and hire the janitor to take the place).. ;)

Merjawy 07-18-2004 09:39 PM

Thank its nice work around the matter, however.....
How many ppl in your config as unlatereable/undeletables? and how often do you edit them?

I don't see any need for this hack


All times are GMT. The time now is 07:32 AM.

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.01111 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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