Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.10.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.04.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function isWild($sym)
  15. {
  16. global $wild_img;
  17.  
  18. if ($sym === $wild_img) {
  19. return true;
  20. }
  21. else {
  22. return false;
  23. }
  24. }
  25.  
  26. function GiveMeStroku($x)
  27. {
  28. $x = (int) $x;
  29. $y = 3;
  30. $у = $x % $y;
  31.  
  32. if ($у == 0) {
  33. $у = 3;
  34. }
  35.  
  36. $у--;
  37. return $у;
  38. }
  39.  
  40. include $_SERVER['DOCUMENT_ROOT'] . '/games/script_header.php';
  41. $psym[0] = [0, 0, 5, 25, 100];
  42. $psym[1] = [0, 0, 5, 25, 100];
  43. $psym[2] = [0, 0, 5, 25, 100];
  44. $psym[3] = [0, 0, 5, 40, 150];
  45. $psym[4] = [0, 0, 5, 40, 150];
  46. $psym[5] = [0, 5, 30, 100, 750];
  47. $psym[6] = [0, 5, 30, 100, 750];
  48. $psym[7] = [0, 5, 40, 400, 2000];
  49. $psym[8] = [0, 10, 100, 1000, 5000];
  50. $psym[9] = [0, 0, 2, 20, 200];
  51. $lin[0] = [2, 5, 8, 11, 14];
  52. $lin[1] = [1, 4, 7, 10, 13];
  53. $lin[2] = [3, 6, 9, 12, 15];
  54. $lin[3] = [1, 5, 9, 11, 13];
  55. $lin[4] = [3, 5, 7, 11, 15];
  56. $lin[5] = [2, 6, 9, 12, 14];
  57. $lin[6] = [2, 4, 7, 10, 14];
  58. $lin[7] = [3, 6, 8, 10, 13];
  59. $lin[8] = [1, 4, 8, 12, 15];
  60. $wild_img = 9;
  61. $scatter_img = 9;
  62. $scatters_count = 2;
  63. $scatters_count_for_bonus = 3;
  64.  
  65. foreach ($psym as $key4 => $allshit) {
  66. $row65[] = $key4;
  67. }
  68.  
  69. $data = json_decode(stripcslashes($_POST['data']), true);
  70. $action = $data['action'];
  71. $user_balance = get_balance($userId);
  72.  
  73. if ($action != 'error') {
  74. $line = (isset($data['lines']) ? $data['lines'] : 9);
  75. $bet12 = (isset($data['bet']) ? $data['bet'] : 1);
  76. $allbet7 = $bet12 * $line;
  77. array_splice($lin, $line);
  78.  
  79. if ($user_balance < 0) {
  80. $errorMessage = 'error|Ошибка! Ваш баланс (' . $user_balance . ') недостаточен для игры';
  81. $action = 'error';
  82. }
  83. else if (($action != 'state') && (($bet12 < 0.0001) || (10000 < $bet12))) {
  84. $action = 'error';
  85. $errorMessage = 'error|Ошибка! Ваша ставка (' . $bet12 . ') должна быть от 0.01 до 10000';
  86. }
  87. else if (($action != 'state') && ($action != 'double') && !in_array($line, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30])) {
  88. $action = 'error';
  89. $errorMessage = 'error|Ошибка! Выбранное вами количество линий игры (' . $line . ') должно быть от 1 до 20';
  90. }
  91. else if (($action == 'spin') && ($user_balance < $allbet7)) {
  92. $action = 'error';
  93. $errorMessage = 'error|Ошибка! Ваш баланс (' . $user_balance . ') недостаточен для игры по сделанной ставке (' . $allbet7 . ')';
  94. }
  95. }
  96.  
  97. if ($action == 'error') {
  98. $msg = (isset($errorMessage) ? $errorMessage : 'error|Ошибка! Неверное действие');
  99. ge_serv_show_str($msg);
  100. }
  101.  
  102. if ($action == 'init') {
  103. if ($demomode) {
  104. $currnecy = 'DEMO';
  105. }
  106. else {
  107. $currnecy = 'RUB';
  108. }
  109.  
  110. echo '{"balance":{"before":' . $user_balance . ',"after":' . $user_balance . '},"denomination":1,"init":{"bet":' . $bet12 . ',"lines":' . $line . ',"ranges":{"bet":{"0.5":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"1":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"2":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"5":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"10":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100}},"denomination":{"0":0.5,"1":1,"2":2,"3":5,"4":10}},"currency":"' . $currnecy . '","restorestate":false,"extra":{"max_multiplier":500},"next_request_id":2,"directory":{"paytable":{"0":{"3":5,"4":25,"5":100},"1":{"3":5,"4":25,"5":100},"2":{"3":5,"4":25,"5":100},"3":{"3":5,"4":40,"5":150},"4":{"3":5,"4":40,"5":150},"5":{"2":5,"3":30,"4":100,"5":750},"6":{"2":5,"3":30,"4":100,"5":750},"7":{"2":5,"3":40,"4":400,"5":2000},"8":{"2":10,"3":100,"4":1000,"5":5000},"9":{"3":{"onetime_win":2,"freespin_count":10},"4":{"onetime_win":20,"freespin_count":10},"5":{"onetime_win":200,"freespin_count":10}}},"lines":{"0":{"0":1,"1":1,"2":1,"3":1,"4":1},"1":{"0":0,"1":0,"2":0,"3":0,"4":0},"2":{"0":2,"1":2,"2":2,"3":2,"4":2},"3":{"0":0,"1":1,"2":2,"3":1,"4":0},"4":{"0":2,"1":1,"2":0,"3":1,"4":2},"5":{"0":1,"1":2,"2":2,"3":2,"4":1},"6":{"0":1,"1":0,"2":0,"3":0,"4":1},"7":{"0":2,"1":2,"2":1,"3":0,"4":0},"8":{"0":0,"1":0,"2":1,"3":2,"4":2}},"available_lines_count":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":6,"6":7,"7":8,"8":9}},"start_symbols":{"0":{"0":{"code":1},"1":{"code":0},"2":{"code":3}},"1":{"0":{"code":2},"1":{"code":4},"2":{"code":0}},"2":{"0":{"code":3},"1":{"code":4},"2":{"code":0}},"3":{"0":{"code":3},"1":{"code":5},"2":{"code":4}},"4":{"0":{"code":3},"1":{"code":4},"2":{"code":2}}},"collect":1},"macro_round":{"wins":{"total":0}}}';
  111. }
  112.  
  113. if ($action == 'collect') {
  114. $afterbf = $user_balance - $_SESSION['book_CurBWin'];
  115. $totaler = 0;
  116. echo '{"balance":{"before":' . $user_balance . ',"after":' . $user_balance . '},"denomination":1,"macro_round":{"wins":{"total":' . $totaler . '}}}';
  117. }
  118. if (($action == 'spin') || ($action == 'initspin')) {
  119. $win_lines = [];
  120. $rnd_bonus = 0;
  121. $rnd_result = 0;
  122. $mas_win = 0;
  123. $winall = 0;
  124. $_SESSION['bookofra_last_win'] = 0;
  125.  
  126. if ($action == 'spin') {
  127. $gset = spin_all('spin', $bet12, $line);
  128.  
  129. if ($gset['type'] == 'bon') {
  130. $rnd_bonus = 1;
  131. }
  132.  
  133. if ($gset['type'] == 'win') {
  134. $rnd_result = $mas_win = 1;
  135. }
  136.  
  137. $casbank = $gset['sum'];
  138. $minwin = $gset['sum'] * 0.5;
  139. $new_out['a_bank'] = $casbank;
  140.  
  141. if ($rnd_bonus == 1) {
  142. $rnd_result = 0;
  143. $mas_win = 0;
  144. $_SESSION['book_FullBWin'] = $casbank;
  145. $_SESSION['book_freeGameCount'] = 10;
  146. $_SESSION['book_CurBWin'] = 0;
  147. $_SESSION['walk_wild_map'] = [];
  148. $casbank = 0;
  149. $minwin = 0;
  150. }
  151. }
  152. else if ($action == 'initspin') {
  153. $rnd_result = 0;
  154. $rnd_bonus = 0;
  155. $mas_win = 0;
  156. $casbank = 0;
  157. $minwin = 0;
  158. }
  159.  
  160. $srand = rand(1, 100);
  161. ...........................................................................
  162. ...........................................
  163. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement