Advertisement
fghfghfhghfgf

Untitled

Jan 3rd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. include("../config/dbconf.php");
  3.  
  4. function encryptpw($user, $pass) {
  5. $user = strtoupper($user);
  6. $pass = strtoupper($user);
  7. return sha1($user.':'.$pass);
  8. }
  9.  
  10. $email = strtoupper($_POST['email']);
  11. $expansion = $_POST['exp'];
  12. $bnetindex = "1";
  13.  
  14.  
  15. // Battlenet Password
  16. $bnetpassword = strtoupper(bin2hex(strrev(hex2bin(strtoupper(hash("sha256",strtoupper(hash("sha256", strtoupper($email)).":".strtoupper($_POST['pass']))))))));
  17.  
  18. // Queries
  19. $query = $conn->prepare("SELECT id FROM battlenet_accounts WHERE email = ?");
  20. $query->bind_param("s", $email);
  21. $query->bind_result($id);
  22. $query->store_result();
  23. if($query->num_rows > 0) {
  24. echo "1";
  25. return;
  26. } else {
  27. echo "JE SUIS UN GÉNIE";
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement