Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? case 'jackpot_win_sekretauth4serverhandlyngendofgam3yay':
- $load = array();
- $last = 0;
- $match = file_get_contents('salt_secretkeypassfile0024892kek3.txt');
- $salt = bin2hex(openssl_random_pseudo_bytes(20 / 2));
- $pc = '0.'.rand(100000,900000);
- file_put_contents('salt_secretkeypassfile0024892kek3.txt',$salt.':'.$pc);
- foreach($db->query($bet_query)->fetchAll() as $bet) {
- $load[$bet['username']] = array(array($last,$last + (int)$bet['bet'] - 1),(int)$bet['bet']);
- $last += (int)$bet['bet'];
- }
- if($last > 0) {
- $total = (int)$db->query("SELECT SUM(bet) FROM bets")->fetchColumn();
- $db->query("DELETE FROM bets");
- $rand = mt_rand(0, $last - 1);
- foreach ($load as $user => $data) {
- if ($rand >= $data[0][0] && $rand <= $data[0][1]) {
- $earn = count($load) > 1 ? floor(($total / 100) * 90) : $total;
- $p1 = $total / 100;
- $perc = round($data[1]/$p1);
- $db->query("UPDATE users SET balance=balance+$earn WHERE username='$user'");
- die($user . '~' . $earn . '~' . $perc . '~' . $match);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement