Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public function RegisterBattleNetAccount($email, $password)
  2. {
  3. $GLOBALS['mysqli']->query("use {$GLOBALS['db_auth']}");
  4. //strtoupper
  5. $pass = hash('sha256', strrev(strtoupper(hash('sha256', $email))).':'.$password);
  6. $pass = strtoupper(strrev($pass));
  7. $email = strtoupper($email);
  8.  
  9.  
  10. $stmt = $GLOBALS['mysqli']->prepare("INSERT INTO battlenet_accounts (`email`,`sha_pass_hash`) VALUES (?, ?)");
  11. $stmt->bind_param("ss", $email, $pass);
  12. $stmt->execute();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement