The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Class 'vB_Router' not found
I'm using this code from another thread
Code:
<?php chdir("forum/core/"); // change to your core folder location require_once("global.php"); function create_random_user(){ $dataman =& datamanager_init('User', $vbulletin); $dataman->set('username', "user".rand()); $dataman->set('email', rand()."@domain.com"); $dataman->set('password', "leighf"); return $dataman->save(); } function log_user_in($userid){ $user = fetch_userinfo($userid); $auth = vB_User::verifyAuthentication($user['username'], "leighf", $user['password'], $user['password']); $res = vB_User::processNewLogin($auth); vbsetcookie('userid', $res['userid']); vbsetcookie('password', $res['password']); vbsetcookie('sessionhash', $res['sessionhash']); } // create random user $userid = create_random_user(); // log them in log_user_in($userid); Fatal error: Class 'vB_Router' not found in /home/public_html/forum/core/vb/exception/user.php on line 40 Why is that? How do I fix this? |
#2
|
||||
|
||||
What thread are you getting that code from? No vB3 or vB4 code will work in vB5.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|