отображение ошибок

This commit is contained in:
lopar 2020-06-23 20:04:27 +03:00
parent 442e4fb639
commit f8df0f0c05

View File

@ -25,7 +25,7 @@ $ip = filter_input(INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP);
if (isset($_GET['goto']) && isset($_GET['tStamp']) && isset($_GET['vcode']) && $_GET['vcode'] == md5(sha1($_GET['goto'] . $_GET['tStamp']))) {
db::c()->query('UPDATE `users`,`online` SET `users`.`room` = ?i, `online`.`room` = ?i WHERE `online`.`id` = `users`.`id` AND `online`.`id` = ?i', $_GET['goto'], $_GET['goto'], $_SESSION['uid']);
$user['room'] = intval($_GET['goto']);
}
} else { echo 'test';}
function createbot($bot, $login = "")
{
@ -2110,7 +2110,6 @@ function addOnePoint($name, $param = null)
} else return 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]]);
}