I'd prefer each have different database so because indexu userpanel is not the same with vbulletin userpanel.
Perhaps you could help me. I could create script which handle new user registration, login, and logout out site vbulletin directory (it's inside indexu) called vbulletin.php
PHP Code:
<?php
$forum_path = "/home/forumnet/www/";
///////////////////////////////////////
chdir($forum_path);
require_once('./global.php');
//forum_create_newuser('dody1','1dody@nicecoder.com','aku',2);
//forum_login('dody','aku');
//forum_logout();
///////////////////////////////////////
function forum_create_newuser($username, $email, $password, $usergroupid=2) {
global $vbulletin;
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', $username);
$newuser->set('email', $email);
$newuser->set('password', $password);
$newuser->set('usergroupid', $newuserid);
foreach ($newuser->errors as $errors) {
$error .= "<li>$errors</li>";
}
if(empty($error)) {
$newuserid = $newuser->save();
//return $newuserid;
}
else {
//return $error;
}
}
function forum_login($username, $password) {
global $vbulletin, $forum_path;
include($forum_path."/includes/functions_login.php");
$strikes = verify_strike_status($username);
if(!verify_authentication($username, $password, false, false, true, true)) { }
exec_unstrike_user($username);
process_new_login($vbulletin->GPC['logintype'], $vbulletin->GPC['cookieuser'], $vbulletin->GPC['cssprefs']);
}
function forum_logout() {
global $vbulletin, $forum_path;
include($forum_path."/includes/functions_login.php");
process_logout();
}
?>
It work well when i'm running this script itself, but when i include it in indexu pages, it refuse to work. If you have any advice i'd be happy to hear it, i digged vbulletin.org forum and ask there but no one help me