Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 2.0.0.3
  8. * @ Author : DeZender
  9. * @ Release on : 06.05.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function downcounter($date) {
  15. $check_time = strtotime($date) - time();
  16. if ($check_time <= 0) {
  17. $com = "0";
  18. return $com;
  19. }
  20. $days = floor($check_time / 86400);
  21. $hours = floor($check_time % 86400 / 3600);
  22. $minutes = floor($check_time % 3600 / 60);
  23. $str = "";
  24. if (0 < $days) {
  25. $str .= declension($days, array("\xe4\xe5\xed\xfc", "\xe4\xed\xff", "\xe4\xed\xe5\xe9")) . " ";
  26. }
  27. if (0 < $hours) {
  28. $str .= declension($hours, array("\xf7\xe0\xf1", "\xf7\xe0\xf1\xe0", "\xf7\xe0\xf1\xee\xe2")) . " ";
  29. }
  30. if (0 < $minutes) {
  31. $str .= declension($minutes, array("\xec\xe8\xed\xf3\xf2\xe0", "\xec\xe8\xed\xf3\xf2\xfb", "\xec\xe8\xed\xf3\xf2")) . " ";
  32. }
  33. return $str;
  34. }
  35.  
  36. function declension($digit, $expr, $onlyword = false) {
  37. if (!is_array($expr)) {
  38. $expr = array_filter(explode(" ", $expr));
  39. }
  40. if (empty($expr[2])) {
  41. $expr[2] = $expr[1];
  42. }
  43. $i = preg_replace("/[^0-9]+/s", "", $digit) % 100;
  44. if ($onlyword) {
  45. $digit = "";
  46. }
  47. if (5 <= $i && $i <= 20) {
  48. $res = $digit . " " . $expr[2];
  49. }
  50. else {
  51. $i %= 10;
  52. if ($i == 1) {
  53. $res = $digit . " " . $expr[0];
  54. }
  55. else {
  56. if (2 <= $i && $i <= 4) {
  57. $res = $digit . " " . $expr[1];
  58. }
  59. else {
  60. $res = $digit . " " . $expr[2];
  61. }
  62. }
  63. }
  64. return trim($res);
  65. }
  66.  
  67. if ($_SERVER["HTTP_HOST"] != "cygames.ru") {
  68. exit("\xcf\xf0\xee\xe4\xf3\xea\xf2 \xed\xe5 \xe0\xea\xf2\xe8\xe2\xe8\xf0\xee\xe2\xe0\xed.");
  69. }
  70. if (!defined("DATALIFEENGINE")) {
  71. exit("Hacking attempt!");
  72. }
  73. if (!$user_group[$member_id["user_group"]]["admin_categories"]) {
  74. msg("error", $lang["index_denied"], $lang["cat_perm"]);
  75. }
  76. header("Content-Type: text/html; charset=windows-1251");
  77. require_once "engine/data/bets_config.php";
  78. include "engine/modules/balance_account/pay.api.php";
  79. $date = gmdate("d.m.Y H:i", time() + 3 * 3600);
  80. echoheader("", "");
  81. echo "<div class=\"box\">\r\n <div class=\"box-content\">\r\n <table>\r\n <tr>\r\n <td width=\"75px\" height=\"75px\" style=\"padding:5px;\"><a href=\"?mod=bets\"><img src=\"http://s1.iconbird.com/ico/0912/ServianaGetPlusTheIcon/w128h1281348162045MyComputer.png\" width=\"75px\" height=\"75px\" /></a></td>\r\n\r\n <td width=\"75px\" height=\"75px\" style=\"padding:5px;\"><a href=\"?mod=bets&action=settings\"><img src=\"http://s1.iconbird.com/ico/0912/ServianaGetPlusTheIcon/w128h1281348162045ControlPanel.png\" width=\"75px\" height=\"75px\" /></a></td>\r\n <td width=\"75px\" height=\"75px\" style=\"padding:5px;\"><a href=\"?mod=bets&action=teams\"><img src=\"http://s1.iconbird.com/ico/0912/ServianaGetPlusTheIcon/w128h1281348162060Game.PNG\" width=\"75px\" height=\"75px\" /></a></td>\r\n <td width=\"75px\" height=\"75px\" style=\"padding:5px;\"><a href=\"?mod=bets&action=inform\"><img src=\"http://s1.iconbird.com/ico/0912/ServianaGetPlusTheIcon/w128h1281348162079JetAudio.PNG\" width=\"75px\" height=\"75px\" /></a></td>\r\n </tr>\r\n <td><a href=\"?mod=bets\"><center>\xcc\xe0\xf2\xf7\xe8</center></a></td>\r\n\r\n <td><a href=\"?mod=bets&action=settings\"><center>\xcd\xe0\xf1\xf2\xf0\xee\xe9\xea\xe8</center></a></td>\r\n <td><a href=\"?mod=bets&action=teams\"><center>\xca\xee\xec\xe0\xed\xe4\xfb/\xd2\xf3\xf0\xed\xe8\xf0\xfb</center></a></td>\r\n <td><a href=\"?mod=bets&action=inform\"><center>\xc8\xed\xf4\xee\xf0\xec\xe0\xf6\xe8\xff</center></a></td>\r\n </table>\r\n </div>\r\n </div>";
  82. date_default_timezone_set("Europe/Moscow");
  83. if (!isset($_GET["action"])) {
  84. echo "<div class=\"box\">\r\n<head>\r\n<script>\r\nsetInterval(function(){\r\n\$(\"#ajax-update\").load(\"?mod=bets #ajax-update\");\r\n}, " . $config_bets["time_update"] . "); \r\n</script>\r\n</head>\r\n<div id=\"ajax-update\">\r\n <div class=\"box-header\">\r\n <div class=\"title\">\xcc\xe0\xf2\xf7\xe8 (<a href=\"?mod=bets&action=addmatch\">\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xec\xe0\xf2\xf7</a>) | \xd1\xe5\xe9\xf7\xe0\xf1: " . $date . " MSK</div>\r\n </div>\r\n <div class=\"box-content\">\r\n <table width=\"100%\" class=\"table\">\r\n <h3><center>\xd1\xea\xee\xf0\xee</center></h3>";
  85. $getdate = strtotime(shell_exec("date"));
  86. $date2 = strtotime($date);
  87. $getmatches = $db->query("SELECT * FROM " . PREFIX . "_bets_events ORDER BY date DESC");
  88. $table = "";
  89. if (0 < $db->num_rows($getmatches)) {
  90. while ($row = $db->get_row($getmatches)) {
  91. if (0 < downcounter($row["date"])) {
  92. $team1 = $row["team1"];
  93. $team2 = $row["team2"];
  94. $bet1 = $row["bet1"];
  95. $bet2 = $row["bet2"];
  96. $id = $row["id"];
  97. ...............................................
  98. ....................
  99. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement