Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2004, 10:31 AM
wreck wreck is offline
 
Join Date: Jun 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-31-2004, 10:50 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-31-2004, 10:57 AM
wreck wreck is offline
 
Join Date: Jun 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^aahhhh excellent thanks alot
Reply With Quote
  #4  
Old 10-31-2004, 10:59 AM
wreck wreck is offline
 
Join Date: Jun 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

argh shoot is that for vb2 or vb3??? im using vb2... i tried using getadmin.php but it didnt work
Reply With Quote
  #5  
Old 10-31-2004, 11:02 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-31-2004, 11:04 AM
wreck wreck is offline
 
Join Date: Jun 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-31-2004, 11:05 AM
LostStyles LostStyles is offline
 
Join Date: Jul 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-31-2004, 11:11 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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');

?>
Reply With Quote
  #9  
Old 10-31-2004, 11:14 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-31-2004, 11:15 AM
wreck wreck is offline
 
Join Date: Jun 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

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 02:18 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.05714 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete