Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require 'sec_inc.php';
  15. $time = time();
  16. $result = mysqli_query($dbcon, 'update ' . DB_PLAYERS . " set timetag = '" . ($time + 1) . "' where username = '" . $plyrname . "' and gID = '" . $gameID . "' ");
  17. $cq = mysqli_query($dbcon, 'select * from ' . DB_LIVECHAT . " where gameID = '" . $gameID . "' ");
  18. $cr = mysqli_fetch_array($cq);
  19.  
  20. if ($time < $cr['updatescreen']) {
  21. $i = 1;
  22.  
  23. for ($chat = '<div id="chatdiv" style="background:#000;padding:0 1px;height:90px;overflow:auto;box-shadow:0 0 5px #000;" class="chattxt">'; $i < 6; $i++) {
  24. $chat .= $cr['c' . $i];
  25. }
  26. $chat .= '</div>';
  27. echo "var chatxt = '";
  28. echo $chat;
  29. echo "';\ndocument.getElementById('chatbox').innerHTML = chatxt;\n";
  30. }
  31.  
  32. $tpq = mysqli_query($dbcon, 'select p1name, p2name, p3name, p4name, p5name, p6name, p1pot, p2pot, p3pot, p4pot, p5pot, p6pot, p1bet, p2bet, p3bet, p4bet, p5bet, p6bet, hand, move, tabletype, pot, bet, tablelimit, tablelow, lastmove, lastbet, dealer from ' . DB_POKER . " where gameID = '" . $gameID . "' ");
  33. $tpr = mysqli_fetch_array($tpq);
  34. $hand = $tpr['hand'];
  35. $autoplayer = $tpr['move'];
  36. $autotimer = 0;
  37. $movetimer = MOVETIMER;
  38. $lmovetimer = KICKTIMER;
  39. $distimer = DISCONNECT;
  40. $kick = $time - $lmovetimer * 60;
  41. $timekick = $time - $distimer;
  42. $lastmove = $tpr['lastmove'];
  43. $diff = $time - $lastmove;
  44. $dealer = $tpr['dealer'];
  45. $tablepot = $tpr['pot'];
  46. $tabletype = $tpr['tabletype'];
  47. $tablelow = $tpr['tablelow'];
  48. $tablelimit = $tpr['tablelimit'];
  49. $tablebet = $tpr['bet'];
  50. $lastbet = $tpr['lastbet'];
  51.  
  52. if ($autoplayer != '') {
  53. $nextup = nextplayer($autoplayer);
  54.  
  55. if ($nextup == $autoplayer) {
  56. $end = true;
  57. }
  58.  
  59. $autoname = $tpr['p' . $autoplayer . 'name'];
  60. $autopot = $tpr['p' . $autoplayer . 'pot'];
  61. $autobet = $tpr['p' . $autoplayer . 'bet'];
  62. $autofold = substr($autobet, 0, 1);
  63. $autostatus = 'live';
  64.  
  65. if ($autopot == 0 && 0 < $autobet && 4 < $hand && $hand < 12) {
  66. $autostatus = 'allin';
  67. }
  68.  
  69. if ($autofold == 'F' && 4 < $hand && $hand < 12) {
  70. $autostatus = 'fold';
  71. }
  72.  
  73. if ($autopot == 0 && ($autobet == 0 || $autostatus == 'fold')) {
  74. $autostatus = 'bust';
  75. }
  76.  
  77. $i = 1;
  78. $np = 0;
  79. $ai = 0;
  80. $fo = 0;
  81. $bu = 0;
  82.  
  83. for ($testvalue = ''; $i < 7; $i++) {
  84. $usr = $tpr['p' . $i . 'name'];
  85. $upot = $tpr['p' . $i . 'pot'];
  86. $ubet = $tpr['p' . $i . 'bet'];
  87. $ufold = substr($ubet, 0, 1);
  88.  
  89. if ($usr != '') {
  90. $np++;
  91.  
  92. if ($upot == 0 && 0 < $ubet && $ufold != 'F' && 4 < $hand && $hand < 15) {
  93. ...............................................................................
  94. ............................................
  95. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement