This commit is contained in:
Igor Barkov (iwork) 2020-06-23 16:36:00 +03:00
parent b0e92398c3
commit 50ab374d3a
2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@
*/
require_once 'config.php';
echo '1';
/**
* Класс-заглушка для работы глобальных переменных в функциях.
* Возвращает массив данных таблицы users.
@ -16,7 +16,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);
@ -837,7 +837,7 @@ HTML;
}
return $r;
}
echo '3';
/**
* Смотрим на себя в главном окне игры.
*
@ -1477,7 +1477,7 @@ function make_seed()
list($usec, $sec) = explode(' ', microtime());
return (float)$sec + ((float)$usec * 100000);
}
echo '4';
function ref_drop()
{
# global $user;
@ -1945,7 +1945,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
@ -2160,3 +2160,5 @@ 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 '6';

View File

@ -10,9 +10,7 @@ if ($get === 'exit') {
if (!isset($_SESSION['uid'])) {
header("Location: index.php");
}
echo '1';
require_once 'functions.php';
echo '2';
$tmaz = time();
try {
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);