Advertisement
Guest User

Untitled

a guest
Oct 9th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.     $host="localhost";
  3.     $user="h62608";
  4.     $pass="xmLjdV3220"; //установленный вами пароль
  5.     $db_name="Base";
  6.     $link=mysql_connect($host,$user,$pass);
  7.     mysql_select_db($db_name,$link);
  8. ?>
  9. <html>
  10. <head>
  11. <title>seedhelp</title>
  12. </head>
  13. <body>
  14. <?php
  15.     $sql = mysql_query("SELECT `seed` FROM `seed`", $link);
  16.     while ($result = mysql_fetch_array($sql)) {
  17.         $server_seed = "['seed']";
  18.         $day = "20161009";
  19.         $round_id = "497910";
  20.         $hash = hash("sha256",$server_seed."-".$day."-".$round_id);
  21.         $roll = hexdec(substr($hash,0,8)) % 15;
  22.         if  ($roll = 12)
  23.         {
  24.             echo['seed'];
  25.         }
  26.         esle
  27.         {
  28.             echo non;
  29.         }
  30.        
  31.     }
  32. ?>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement