DaLightz
See ya'll in the afterlife.
- May 19, 2012
- 1,136
- 262
- Thread starter
- #21
Register forms stored @ Application>Library>Classes>Class.Users.php
[just a snip of code.]
[just a snip of code.]
PHP:
public function RegisterUser($username, $password, $email, $motto, $credits, $pixels, $rank, $figure, $gender)
{
// Note: I didn't add the Butterfly config yet. I'll change this after..
global $MySQLi;
$SSO = 'HybridCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);
$MySQLi->query("INSERT INTO users (username, password, mail, motto, credits, activity_points, rank, look, gender, ip_last, ip_reg, account_created, last_online, auth_ticket) VALUES('" . $username . "', '" . $password . "', '" . $email . "', '" . $motto . "', '" . $credits . "', '" . $pixels . "', '" . $rank . "', '" . $figure . "', '" . $gender . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . time() . "', '" . time() . "', '" . $SSO . "')");
unset($SSO);
}