Example #1
0
	}

	$(document).ready(function() {
	    checkStatus(1);
	});

	-->
	</script>
</head>
<body>

<div align="center" id="message">
One moment while we setup your account.
<br/><br/><br/>
<img src="./assets/ajax-loader.gif"/>

</div>

</body>
</html>
<?php 
if ($run_install) {
    flush();
    set_time_limit(90);
    $subdomain = $_SESSION['subdomain_granted'];
    $affiliate_id = $_SESSION['affiliate_id'];
    if (SystemInstaller::makeInstallation($subdomain, $affiliate_id)) {
        SystemInstaller::markDone($install_id, $affiliate_id);
    }
    exit;
}
Example #2
0
     $error['user_pass'] .= '<div class="error">You must type verify your password</div>';
 }
 if (strlen($_POST['user_pass']) < 6 or strlen($_POST['user_pass']) > 35) {
     $error['user_pass'] .= '<div class="error">Your passwords must be at least 6 characters long</div>';
 }
 if ($_POST['user_pass'] != $_POST['verify_user_pass']) {
     $error['user_pass'] .= '<div class="error">Your passwords did not match, please try again</div>';
 }
 if ($_POST['cb_pass'] != $_POST['verify_cb_pass']) {
     $error['cb_pass'] .= '<div class="error">Your passwords did not match, please try again</div>';
 }
 //print_r_html($error);
 //if no error occured, lets create the user account
 if (!$error) {
     //no error, so now setup all of the mysql database structures
     SystemInstaller::makeInstall();
     $mysql['user_email'] = mysql_real_escape_string($_POST['user_email']);
     $mysql['user_name'] = mysql_real_escape_string($_POST['user_name']);
     $mysql['user_timezone'] = mysql_real_escape_string($_POST['user_timezone']);
     $mysql['user_time_register'] = mysql_real_escape_string(time());
     $mysql['cb_user'] = mysql_real_escape_string($_POST['cb_user']);
     $mysql['cb_pass'] = mysql_real_escape_string($_POST['cb_pass']);
     //md5 the user pass with salt
     $user_pass = salt_user_pass($_POST['user_pass']);
     $mysql['user_pass'] = mysql_real_escape_string($user_pass);
     //insert this user
     $user_sql = "  \tINSERT INTO \t202_users\n\t\t\t\t\t    \tSET\t\t\t\tuser_email='" . $mysql['user_email'] . "',\n\t\t\t\t\t    \t\t \t\t\tuser_name='" . $mysql['user_name'] . "',\n\t\t\t\t\t    \t\t\t\t\tuser_pass='******'user_pass'] . "',\n\t\t\t\t\t    \t\t\t\t\tcb_user='******'cb_user'] . "',\n\t\t\t\t\t    \t\t\t\t\tcb_pass='******'cb_pass'] . "',\n\t\t\t\t\t    \t\t\t\t\tuser_timezone='" . $mysql['user_timezone'] . "',\n\t\t\t\t\t    \t\t\t\t\tuser_time_register='" . $mysql['user_time_register'] . "'";
     $user_result = _mysql_query($user_sql);
     $user_id = mysql_insert_id();
     $mysql['user_id'] = mysql_real_escape_string($user_id);
     //update user preference table