Removed debug code.
This commit is contained in:
parent
61fd9ba6e9
commit
384c3e61b3
@ -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';
|
||||
$ab_user = ['sleep15', 'sleep30', 'closebattle', 'heal20', 'heal35', 'heal50', 'travmoff', 'attack', 'bloodattack', 'death', 'comment', 'openbattle', 'reamdeath', 'clone', 'unclone'];
|
@ -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";
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
|
@ -1,13 +1,10 @@
|
||||
<?php
|
||||
echo 'functions.php.topstart';
|
||||
/**
|
||||
* Copyright (c) 2018.
|
||||
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
||||
* 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';
|
||||
}
|
4
main.php
4
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')) {
|
||||
}
|
||||
</script>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<?= 'main.php.end'; ?>
|
||||
</HTML>
|
Loading…
Reference in New Issue
Block a user