Buttons do not work in frames ((

This commit is contained in:
Igor Barkov (iwork) 2020-09-28 17:44:33 +03:00
parent e09fa9ea6e
commit 716dd93a91

View File

@ -48,6 +48,10 @@ while ($row = $data->fetch_assoc()) {
$iteminfo[] = new InventoryItem($row);
}
if (isset($_POST['battlefield'])) {
header('Location: zayavka.php');
exit();
}
/* === проверяем соответствие комнаты и скрипта === */
if (in_array($user->room, [20, 21, 26, 48, 51, 52, 651, 2655, 2601, 2701, 2702, 2111], 1)) {
@ -587,11 +591,11 @@ if ($edit) {
title="Образы">
<?php endif; ?>
<div class="button-group">
<button class="button primary" onclick="window.location.href='zayavka.php';">Поединки</button>
<input class="button primary" type="submit" name="battlefield" value="Поединки">
<button class="button" onclick="window.location.href='module_quest.php';">Активные задания
</button>
<?php if ($user->room === 20): ?>
<button class="button icon move" onclick="window.location.href='main.php?goto=arena';">Войти
<button class="button icon move" onclick="parent.frames[´main´].location.href='main.php?goto=arena';">Войти
внутрь
</button>
<?php else: ?>