Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("../config/dbconf.php");
- function encryptpw($user, $pass) {
- $user = strtoupper($user);
- $pass = strtoupper($user);
- return sha1($user.':'.$pass);
- }
- $email = strtoupper($_POST['email']);
- $expansion = $_POST['exp'];
- $bnetindex = "1";
- // Battlenet Password
- $bnetpassword = strtoupper(bin2hex(strrev(hex2bin(strtoupper(hash("sha256",strtoupper(hash("sha256", strtoupper($email)).":".strtoupper($_POST['pass']))))))));
- // Queries
- $query = $conn->prepare("SELECT id FROM battlenet_accounts WHERE email = ?");
- $query->bind_param("s", $email);
- $query->bind_result($id);
- $query->store_result();
- if($getid->num_rows > 0) {
- echo "1";
- return;
- } else {
- echo "JE SUIS UN GÉNIE";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement