Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- function downcounter($date) {
- $check_time = strtotime($date) - time();
- if ($check_time <= 0) {
- $com = "0";
- return $com;
- }
- $days = floor($check_time / 86400);
- $hours = floor($check_time % 86400 / 3600);
- $minutes = floor($check_time % 3600 / 60);
- $str = "";
- if (0 < $days) {
- $str .= declension($days, array("\xe4\xe5\xed\xfc", "\xe4\xed\xff", "\xe4\xed\xe5\xe9")) . " ";
- }
- if (0 < $hours) {
- $str .= declension($hours, array("\xf7\xe0\xf1", "\xf7\xe0\xf1\xe0", "\xf7\xe0\xf1\xee\xe2")) . " ";
- }
- if (0 < $minutes) {
- $str .= declension($minutes, array("\xec\xe8\xed\xf3\xf2\xe0", "\xec\xe8\xed\xf3\xf2\xfb", "\xec\xe8\xed\xf3\xf2")) . " ";
- }
- return $str;
- }
- function declension($digit, $expr, $onlyword = false) {
- if (!is_array($expr)) {
- $expr = array_filter(explode(" ", $expr));
- }
- if (empty($expr[2])) {
- $expr[2] = $expr[1];
- }
- $i = preg_replace("/[^0-9]+/s", "", $digit) % 100;
- if ($onlyword) {
- $digit = "";
- }
- if (5 <= $i && $i <= 20) {
- $res = $digit . " " . $expr[2];
- }
- else {
- $i %= 10;
- if ($i == 1) {
- $res = $digit . " " . $expr[0];
- }
- else {
- if (2 <= $i && $i <= 4) {
- $res = $digit . " " . $expr[1];
- }
- else {
- $res = $digit . " " . $expr[2];
- }
- }
- }
- return trim($res);
- }
- if ($_SERVER["HTTP_HOST"] != "cygames.ru") {
- exit("\xcf\xf0\xee\xe4\xf3\xea\xf2 \xed\xe5 \xe0\xea\xf2\xe8\xe2\xe8\xf0\xee\xe2\xe0\xed.");
- }
- if (!defined("DATALIFEENGINE")) {
- exit("Hacking attempt!");
- }
- if (!$user_group[$member_id["user_group"]]["admin_categories"]) {
- msg("error", $lang["index_denied"], $lang["cat_perm"]);
- }
- header("Content-Type: text/html; charset=windows-1251");
- require_once "engine/data/bets_config.php";
- include "engine/modules/balance_account/pay.api.php";
- $date = gmdate("d.m.Y H:i", time() + 3 * 3600);
- echoheader("", "");
- 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>";
- date_default_timezone_set("Europe/Moscow");
- if (!isset($_GET["action"])) {
- 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>";
- $getdate = strtotime(shell_exec("date"));
- $date2 = strtotime($date);
- $getmatches = $db->query("SELECT * FROM " . PREFIX . "_bets_events ORDER BY date DESC");
- $table = "";
- if (0 < $db->num_rows($getmatches)) {
- while ($row = $db->get_row($getmatches)) {
- if (0 < downcounter($row["date"])) {
- $team1 = $row["team1"];
- $team2 = $row["team2"];
- $bet1 = $row["bet1"];
- $bet2 = $row["bet2"];
- $id = $row["id"];
- ...............................................
- ....................
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement