diff --git a/functions.php b/functions.php index 1c03120..19e8f00 100644 --- a/functions.php +++ b/functions.php @@ -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]]); } \ No newline at end of file