Теперь и по ЦП можно гулять.

This commit is contained in:
lopar
2020-10-27 01:18:02 +02:00
parent f4fb3b11a8
commit 5ec1219b04
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -66,6 +66,10 @@ if ($_POST['move_outside'] ?? 0 && $user->room != 20) {
header('Location: main.php?goto=plo');
exit();
}
if ($_POST['main_page'] ?? 0) {
header('Location: main.php');
exit();
}
/* === проверяем соответствие комнаты и скрипта === */
if (in_array($user->room, [20, 21, 26, 48, 51, 52, 651, 2655, 2601, 2701, 2702, 2111], 1)) {
@@ -562,8 +566,7 @@ Template::header('Игра');
<?php else: ?>
<input class="button icon move" type="submit" name="move_outside" value="Выйти на улицу">
<?php endif; ?>
<button class="button icon loop" onclick="window.location.href='main.php';">Обновить страницу
</button>
<input class="button" type="submit" name="main_page" value="На главную">
</div>
</div>
<div> <!--рюкзак-->