<?php
if (defined('VB_RELATIVE_PATH'))
{
chdir('./' . VB_RELATIVE_PATH);
}
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumlist.php');
?>
<?php
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', $username);
$newuser->set('email', $email);
$newuser->set('password', $password);
$newuser->set('usergroupid', 2);
if (count($newuser->errors)>0) {
// handle the error (duplicate username, duplicate email)
} else {
// user created
$newuserid = $newuser->save();
}
?>
<?php
$cars=array('XFG'=>1, 'XRG'=>2, 'XRT'=>4, 'RB4'=>8, 'FXO'=>0x10,
'LX4'=>0x20, 'LX6'=>0x40, 'MRT'=>0x80, 'UF1'=>0x100,
'RAC'=>0x200, 'FZ5'=>0x400, 'FOX'=>0x800, 'XFR'=>0x1000,
'UFR'=>0x2000, 'FO8'=>0x4000, 'FXR'=>0x8000, 'XRR'=>0x10000,
'FZR'=>0x20000, 'FBM'=>0x40000, 'BF1'=>0x80000);
$PLC = new IS_PLC;
$PLC->UCID($this->connID)->Cars($cars['UF1']+$cars['BF1'])->Send($this->serverID);
?>