vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   emergency....... need help ASAP (https://vborg.vbsupport.ru/showthread.php?t=71199)

wreck 10-31-2004 10:31 AM

emergency....... need help ASAP
 
one of the admins on my forum messed me about, and i basically cant get onto admin panel.... he closed the site, and has de-adminned me or banned me im not sure..... but i cant get onto my admin cpanel.... how can i get accesse back

Brad 10-31-2004 10:50 AM

Upload the tools.php file from the vBulletin zip (its in the do_not_upload folder) to your forums root directory. Call it via your browser, you'll see this at the bottom of the page:

Quote:

Reset admin access for a user
This will allow you to update your acount back to admin status, once you have done that delete the file from the server. If you leave it on there anyone can run it and become admin, or use the other utilitys in that file.

After you are back in the admin cp demote the admin in question (obviously not worthy of such power right?). To prevent this from happening again edit you config.php file at this line:

PHP Code:

// ****** UNDELETABLE / UNALTERABLE USERS ******
// The users specified here will not be deletable or alterable from the control panel by any users.
// To specify more than one user, separate userids with commas.
$undeletableusers ''

Key in your userid as so:

PHP Code:

$undeletableusers '1'

This will prevent anyone with admin access to the user section from editing/deleting your acount.

wreck 10-31-2004 10:57 AM

^^^aahhhh excellent thanks alot

wreck 10-31-2004 10:59 AM

argh shoot is that for vb2 or vb3??? im using vb2... i tried using getadmin.php but it didnt work

Brad 10-31-2004 11:02 AM

vB3, for vB2 you have to use getadmin.php.

getadmin.php should work...if you can't get it to run, run this query on your database:

[sql]UPDATE user SET usergroupid=6 WHERE userid=1[/sql]

Change the number 1 in the query to match your userid.

Are you sure your acount wasn't deleted!?

If all else fails, contact offical support, they will be able to get you back in quickly.

wreck 10-31-2004 11:04 AM

it could have been then... i have no idea like i say, he has closed the forum and i cant login to admin cp so i cant find out really.... actually let me check the database and ill let you know

LostStyles 10-31-2004 11:05 AM

Thing is, we havent tried the sql query yet...but without it we get this message..

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /home/rapcentr/public_html/forum123/admin/getadmin.php:3) in /home/rapcentr/public_html/forum123/admin/functions.php on line 1602
do you recommend we do the sql query?

thanks.

Brad 10-31-2004 11:11 AM

If you want you can try to steal his acount, edit $password and $userid in the code below, paste in a text editor, save as 'steal_acount.php'.

Upload to your server, run, delete.

PHP Code:

<?php

// steal acount of rouge admin
require_once('./global.php');

// Change this to the password you want the acount to use
$password 'password';

// Change this to the userid of the acount you want to steal
$userid '2';

// hashes password..
$password md5($password);

// Update acount
$DB_site->query("UPDATE user SET password=$password WHERE userid=$userid");

echo(
'Acount should have been stolen, try to log in to the control panel with it');

?>


Brad 10-31-2004 11:14 AM

Quote:

Originally Posted by LostStyles
Thing is, we havent tried the sql query yet...but without it we get this message..



do you recommend we do the sql query?

thanks.

Yea go ahead and do the query, beats de-bugging the age old header error when you can just by-pass it by running the query by hand.

wreck 10-31-2004 11:15 AM

ive got it.. i run the query and it worked... thanks alot, really really appreciate it


All times are GMT. The time now is 03:03 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.01104 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_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