diff --git a/akadem.php b/akadem.php index 302d56e..92714c2 100644 --- a/akadem.php +++ b/akadem.php @@ -42,7 +42,7 @@ if ($get == 'mercenary') $status = setProfession('наёмник', 2, 700, 5); if ($get == 'medic') $status = setProfession('лекарь', 2, 700, 5); if ($get == 'exit') { - db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']); + db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $_SESSION['uid'], $_SESSION['uid']); header('Location: city.php'); } ?> @@ -55,7 +55,6 @@ if ($get == 'exit') {
-

Академия

diff --git a/fontan_luck.php b/fontan_luck.php index e15dab9..4207356 100644 --- a/fontan_luck.php +++ b/fontan_luck.php @@ -2,11 +2,10 @@ session_start(); if (is_null($_SESSION['uid'])) header("Location: index.php"); require_once 'config.php'; -$user = (new users_row($_SESSION['uid']))->result(); $get = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING')); if ($get == 'exit') { - db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']); + db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $_SESSION['uid'], $_SESSION['uid']); header('Location: city.php'); } ?>