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(); }