Теперь и по ЦП можно гулять.
This commit is contained in:
@@ -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> <!--рюкзак-->
|
||||
|
||||
Reference in New Issue
Block a user