FINAL
This commit is contained in:
parent
649213a006
commit
0ca08d3b55
@ -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>
|
||||
|
@ -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');
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user