From 3d7436c0d93b14791bd2959245764b0ee628380c Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Tue, 23 Jun 2020 17:43:14 +0300 Subject: [PATCH] debug --- config.php | 4 ++-- fight.php | 1 + functions.php | 6 ++++-- main.php | 5 +++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/config.php b/config.php index 449b3dc..a0ac5da 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,7 @@ ini_set('display_errors', 'On'); error_reporting(E_ALL); define("GAMEDOMAIN","combats.loc"); - +echo "config.php.start"; /* * Запрещаем кэшировать */ @@ -396,4 +396,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_test'; \ No newline at end of file +echo 'config.php.end'; \ No newline at end of file diff --git a/fight.php b/fight.php index c767c58..3cc2383 100644 --- a/fight.php +++ b/fight.php @@ -5,6 +5,7 @@ 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 e1f8689..00448a9 100644 --- a/functions.php +++ b/functions.php @@ -1,10 +1,11 @@ * Project name: Battles-Game */ -echo '1'; +echo 'functions.php.start'; require_once 'config.php'; echo '1'; /** @@ -2130,4 +2131,5 @@ 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 'functions.php.end'; \ No newline at end of file diff --git a/main.php b/main.php index 0bd8de6..0b18f95 100644 --- a/main.php +++ b/main.php @@ -10,7 +10,7 @@ if ($get === 'exit') { if (!isset($_SESSION['uid'])) { header("Location: index.php"); } -echo 'test'; +echo 'main.php.start'; require_once 'functions.php'; $tmaz = time(); try { @@ -1718,4 +1718,5 @@ if (input::get('edit')) { } - \ No newline at end of file + + \ No newline at end of file