<?php
require_once 'config.php';
include_once $_config['server_type'].'/functions.php';
include_once $_config['server_type'].'/dbconnect.php';
include_once $_config['server_type'].'/define.php';
ob_start();ob_start();
if (!session_id()){ session_start(); }
header("Cache-control: private");
$db->debug=0;
$_SESSION['page'] = '3';
$username = "yourusername";
$password = "yourpassword";
$email = "youremail";
$question = "Question";
$answer = "Answear";
$ip = "yourIP";
$dbi = $db->Execute('exec cabal_tool_registerAccount_Web ?,?,?,?,?,?', array($username, $password, $email, $question, $answer, $ip));
echo $dbi;
if ($dbi) {
$msg .= 'Registration Finished!!! <br>';
unset($_SESSION['page']);
unset($_SESSION['check']);
unset($_SESSION['time']);
echo 'Reg_finish({"register":[{"page":"'.$_SESSION['page'].'","message":"'.$msg.' ","SID":"'.session_id().'"}]} )';
} else {
$_SESSION['page'] = '2';
echo 'Reg_form({"register":[{"page":"'.$_SESSION['page'].'","message":"Error in creating new Account ","SID":"'.session_id().'"}]} )';
}
?>