Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function RegisterBattleNetAccount($email, $password)
- {
- $GLOBALS['mysqli']->query("use {$GLOBALS['db_auth']}");
- //strtoupper
- $pass = hash('sha256', strrev(strtoupper(hash('sha256', $email))).':'.$password);
- $pass = strtoupper(strrev($pass));
- $email = strtoupper($email);
- $stmt = $GLOBALS['mysqli']->prepare("INSERT INTO battlenet_accounts (`email`,`sha_pass_hash`) VALUES (?, ?)");
- $stmt->bind_param("ss", $email, $pass);
- $stmt->execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement