FINAL
This commit is contained in:
+1
-2
@@ -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') {
|
||||
</head>
|
||||
<body>
|
||||
<div style="float: right;">
|
||||
<button onclick="location.href='main.php'">Обновить</button>
|
||||
<button onclick="location.href='?exit'">Вернуться</button>
|
||||
</div>
|
||||
<h1>Академия</h1>
|
||||
|
||||
Reference in New Issue
Block a user