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)
-   -   Login as User (https://vborg.vbsupport.ru/showthread.php?t=59556)

MrNase 06-03-2004 06:15 PM

Works like a charm :)

You should add to the instruction that you must use the number which is on the top of your vb files :)

Battle_Ring 06-03-2004 07:04 PM

i have my license number in and it still aitn workign for me it jusat logs me out

monstergamer 06-03-2004 07:41 PM

thanx, now i can see some of the problems that members have that i dont see. :D

[high]* monstergamer clicks install[/high]

Battle_Ring 06-03-2004 08:36 PM

i have my license number in and it still aitn workign for me it jusat logs me out

uppin for help

monstergamer 06-03-2004 09:07 PM

Quote:

Originally Posted by Battle_Ring
i have my license number in and it still aitn workign for me it jusat logs me out

uppin for help

make sure it is you License # and not your customer number

i made that mistake the first time lol

Battle_Ring 06-03-2004 09:09 PM

it is do i need the # in there too?

monstergamer 06-03-2004 09:19 PM

Quote:

Originally Posted by Battle_Ring
it is do i need the # in there too?

if you go to the members area at http://www.vbulletin.com/members/
you should see you License # / URL
right under that is your license number

PHP Code:

 if ($_REQUEST['do'] == 'loginasuser')
{
$_hack_canlogin ""// comma separated list of allowed userids. leave blank for all admins
 
if($_hack_canlogin!=""){
$_hack_canlogin explode(",",$_hack_canlogin);
if(
is_array($_hack_canlogin) and !@in_array($bbuserinfo[userid],$_hack_canlogin)){
print_cp_no_permission();
}
}
$user $DB_site->query_first("SELECT userid,password,usergroupid FROM " TABLE_PREFIX "user WHERE userid='".$_REQUEST['userid']."'");
if(
$user['usergroupid']==6){
print_cp_no_permission();
}
// delete the current session
$DB_site->query("DELETE FROM " TABLE_PREFIX "session WHERE userid = $bbuserinfo[userid]");
// also all cookies
$prefix_length strlen(COOKIE_PREFIX);
foreach (
$_COOKIE AS $key => $val)
{
$index strpos($keyCOOKIE_PREFIX);
if (
$index !== false)
{
$key substr($key$prefix_length);
if (
trim($key) == '')
{
    continue;
}
vbsetcookie($key''1);
}
}
// now set cookies for the desired user
vbsetcookie('userid'$user['userid']);
vbsetcookie('password'md5($user['password'] . 'YOUR VB License # ( 8 DIGITS I THINK ) HERE'));
// back to forumhome
Header("Location: ../index.php");
// finished :)
exit;


REPLACE YOUR VB License # ( 8 DIGITS I THINK ) HERE with your LICENSE #

then paste under

PHP Code:

 // #############################################################################
// put this before print_cp_header() so we can use an HTTP header 


Battle_Ring 06-03-2004 09:31 PM

thats what i have

Battle_Ring 06-04-2004 04:50 PM

someoen help me with this pleaseeeeeeeee

Battle_Ring 06-06-2004 02:56 AM

im still lookign for help with this


All times are GMT. The time now is 10:28 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.01214 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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