Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <? case 'jackpot_win_sekretauth4serverhandlyngendofgam3yay':
  2. $load = array();
  3. $last = 0;
  4. $match = file_get_contents('salt_secretkeypassfile0024892kek3.txt');
  5. $salt = bin2hex(openssl_random_pseudo_bytes(20 / 2));
  6. $pc = '0.'.rand(100000,900000);
  7. file_put_contents('salt_secretkeypassfile0024892kek3.txt',$salt.':'.$pc);
  8. foreach($db->query($bet_query)->fetchAll() as $bet) {
  9. $load[$bet['username']] = array(array($last,$last + (int)$bet['bet'] - 1),(int)$bet['bet']);
  10. $last += (int)$bet['bet'];
  11. }
  12. if($last > 0) {
  13. $total = (int)$db->query("SELECT SUM(bet) FROM bets")->fetchColumn();
  14. $db->query("DELETE FROM bets");
  15. $rand = mt_rand(0, $last - 1);
  16. foreach ($load as $user => $data) {
  17. if ($rand >= $data[0][0] && $rand <= $data[0][1]) {
  18. $earn = count($load) > 1 ? floor(($total / 100) * 90) : $total;
  19. $p1 = $total / 100;
  20. $perc = round($data[1]/$p1);
  21. $db->query("UPDATE users SET balance=balance+$earn WHERE username='$user'");
  22. die($user . '~' . $earn . '~' . $perc . '~' . $match);
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement