From 50ab374d3ae3524b06b08d03814824be5a5f4d71 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Tue, 23 Jun 2020 16:36:00 +0300 Subject: [PATCH] debug --- functions.php | 14 ++++++++------ main.php | 2 -- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/functions.php b/functions.php index 10ead04..d85f12e 100644 --- a/functions.php +++ b/functions.php @@ -6,7 +6,7 @@ */ require_once 'config.php'; - +echo '1'; /** * Класс-заглушка для работы глобальных переменных в функциях. * Возвращает массив данных таблицы users. @@ -16,7 +16,7 @@ if (isset($_SESSION['uid'])) $user = (new users_row($_SESSION['uid']))->result() if (isset($user['id']) && $user['block'] == 1) { die(); } - +echo '2'; // ??? //define("HPADDICTIONEFFECT", 33); @@ -837,7 +837,7 @@ HTML; } return $r; } - +echo '3'; /** * Смотрим на себя в главном окне игры. * @@ -1477,7 +1477,7 @@ function make_seed() list($usec, $sec) = explode(' ', microtime()); return (float)$sec + ((float)$usec * 100000); } - +echo '4'; function ref_drop() { # global $user; @@ -1945,7 +1945,7 @@ function deltravma($id) mysql_query("UPDATE `users` SET `sila` = (`sila`+'" . $owntravma['sila'] . "'), `lovk` = (`lovk`+'" . $owntravma['lovk'] . "'), `inta` = (`inta`+'" . $owntravma['inta'] . "') WHERE `id` = '" . $owntravma['owner'] . "' LIMIT 1"); } } - +echo '5'; /** * @param $name * @param $text @@ -2159,4 +2159,6 @@ function addOnePoint($name, $param = null) function checkIntInRange($int, $min = 1, $max = PHP_INT_MAX) { return (int)filter_var($int, FILTER_VALIDATE_INT, ['options' => ['min_range' => $min, 'max_range' => $max]]); -} \ No newline at end of file +} + +echo '6'; \ No newline at end of file diff --git a/main.php b/main.php index cfafddc..9180fb8 100644 --- a/main.php +++ b/main.php @@ -10,9 +10,7 @@ if ($get === 'exit') { if (!isset($_SESSION['uid'])) { header("Location: index.php"); } -echo '1'; require_once 'functions.php'; -echo '2'; $tmaz = time(); try { db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);