debug
This commit is contained in:
parent
2bc639a5c1
commit
3d7436c0d9
@ -8,7 +8,7 @@
|
|||||||
ini_set('display_errors', 'On');
|
ini_set('display_errors', 'On');
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
define("GAMEDOMAIN","combats.loc");
|
define("GAMEDOMAIN","combats.loc");
|
||||||
|
echo "config.php.start";
|
||||||
/*
|
/*
|
||||||
* Запрещаем кэшировать
|
* Запрещаем кэшировать
|
||||||
*/
|
*/
|
||||||
@ -396,4 +396,4 @@ $exptable = [
|
|||||||
// Нигде не используются?
|
// Нигде не используются?
|
||||||
$abils_array = ['attack', 'sleep', 'sleepf'];
|
$abils_array = ['attack', 'sleep', 'sleepf'];
|
||||||
$ab_user = ['sleep15', 'sleep30', 'closebattle', 'heal20', 'heal35', 'heal50', 'travmoff', 'attack', 'bloodattack', 'death', 'comment', 'openbattle', 'reamdeath', 'clone', 'unclone'];
|
$ab_user = ['sleep15', 'sleep30', 'closebattle', 'heal20', 'heal35', 'heal50', 'travmoff', 'attack', 'bloodattack', 'death', 'comment', 'openbattle', 'reamdeath', 'clone', 'unclone'];
|
||||||
echo 'config_test';
|
echo 'config.php.end';
|
@ -5,6 +5,7 @@ require_once 'config.php';
|
|||||||
$userLoginStatus = db::c()->query('SELECT enter_game FROM users WHERE id = ?i',$_SESSION['uid'])->getNumRows() ?? 0;
|
$userLoginStatus = db::c()->query('SELECT enter_game FROM users WHERE id = ?i',$_SESSION['uid'])->getNumRows() ?? 0;
|
||||||
if (empty($userLoginStatus)) {header("Location: index.php");}
|
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']);}
|
else {db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);}
|
||||||
|
echo "fight.php";
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
echo 'functions.php.topstart';
|
||||||
/**
|
/**
|
||||||
* Copyright (c) 2018.
|
* Copyright (c) 2018.
|
||||||
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
||||||
* Project name: Battles-Game
|
* Project name: Battles-Game
|
||||||
*/
|
*/
|
||||||
echo '1';
|
echo 'functions.php.start';
|
||||||
require_once 'config.php';
|
require_once 'config.php';
|
||||||
echo '1';
|
echo '1';
|
||||||
/**
|
/**
|
||||||
@ -2130,4 +2131,5 @@ function addOnePoint($name, $param = null)
|
|||||||
function checkIntInRange($int, $min = 1, $max = PHP_INT_MAX)
|
function checkIntInRange($int, $min = 1, $max = PHP_INT_MAX)
|
||||||
{
|
{
|
||||||
return (int)filter_var($int, FILTER_VALIDATE_INT, ['options' => ['min_range' => $min, 'max_range' => $max]]);
|
return (int)filter_var($int, FILTER_VALIDATE_INT, ['options' => ['min_range' => $min, 'max_range' => $max]]);
|
||||||
}
|
}
|
||||||
|
echo 'functions.php.end';
|
5
main.php
5
main.php
@ -10,7 +10,7 @@ if ($get === 'exit') {
|
|||||||
if (!isset($_SESSION['uid'])) {
|
if (!isset($_SESSION['uid'])) {
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
}
|
}
|
||||||
echo 'test';
|
echo 'main.php.start';
|
||||||
require_once 'functions.php';
|
require_once 'functions.php';
|
||||||
$tmaz = time();
|
$tmaz = time();
|
||||||
try {
|
try {
|
||||||
@ -1718,4 +1718,5 @@ if (input::get('edit')) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
<?= 'main.php.end'; ?>
|
Loading…
Reference in New Issue
Block a user