diff --git a/config.php b/config.php index a0ac5da..34a913c 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,6 @@ ini_set('display_errors', 'On'); error_reporting(E_ALL); define("GAMEDOMAIN","combats.loc"); -echo "config.php.start"; /* * Запрещаем кэшировать */ @@ -395,5 +394,4 @@ $exptable = [ // Нигде не используются? $abils_array = ['attack', 'sleep', 'sleepf']; -$ab_user = ['sleep15', 'sleep30', 'closebattle', 'heal20', 'heal35', 'heal50', 'travmoff', 'attack', 'bloodattack', 'death', 'comment', 'openbattle', 'reamdeath', 'clone', 'unclone']; -echo 'config.php.end'; \ No newline at end of file +$ab_user = ['sleep15', 'sleep30', 'closebattle', 'heal20', 'heal35', 'heal50', 'travmoff', 'attack', 'bloodattack', 'death', 'comment', 'openbattle', 'reamdeath', 'clone', 'unclone']; \ No newline at end of file diff --git a/fight.php b/fight.php index 3cc2383..c767c58 100644 --- a/fight.php +++ b/fight.php @@ -5,7 +5,6 @@ require_once 'config.php'; $userLoginStatus = db::c()->query('SELECT enter_game FROM users WHERE id = ?i',$_SESSION['uid'])->getNumRows() ?? 0; if (empty($userLoginStatus)) {header("Location: index.php");} else {db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);} -echo "fight.php"; ?> diff --git a/functions.php b/functions.php index 00448a9..8ffefb1 100644 --- a/functions.php +++ b/functions.php @@ -1,13 +1,10 @@ * Project name: Battles-Game */ -echo 'functions.php.start'; require_once 'config.php'; -echo '1'; /** * Класс-заглушка для работы глобальных переменных в функциях. * Возвращает массив данных таблицы users. @@ -17,7 +14,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); @@ -838,7 +835,7 @@ HTML; } return $r; } -echo '3'; + /** * Смотрим на себя в главном окне игры. * @@ -1473,7 +1470,7 @@ function dropitem($slot) } } -echo '4'; + function ref_drop() { # global $user; @@ -1917,7 +1914,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 @@ -2131,5 +2128,4 @@ 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]]); -} -echo 'functions.php.end'; \ No newline at end of file +} \ No newline at end of file diff --git a/main.php b/main.php index 0b18f95..9180fb8 100644 --- a/main.php +++ b/main.php @@ -10,7 +10,6 @@ if ($get === 'exit') { if (!isset($_SESSION['uid'])) { header("Location: index.php"); } -echo 'main.php.start'; require_once 'functions.php'; $tmaz = time(); try { @@ -1718,5 +1717,4 @@ if (input::get('edit')) { } - - \ No newline at end of file + \ No newline at end of file