This commit is contained in:
Igor Barkov (iwork) 2020-06-23 17:43:14 +03:00
parent 2bc639a5c1
commit 3d7436c0d9
4 changed files with 10 additions and 6 deletions

View File

@ -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';
echo 'config.php.end';

View File

@ -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";
?>
<!doctype html>
<html lang="ru">

View File

@ -1,10 +1,11 @@
<?php
echo 'functions.php.topstart';
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* 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]]);
}
}
echo 'functions.php.end';

View File

@ -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')) {
}
</script>
</BODY>
</HTML>
</HTML>
<?= 'main.php.end'; ?>