battles/fight.php
2019-01-10 01:21:33 +02:00

57 lines
1.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
session_start();
if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once 'config.php';
db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);
?>
<html>
<head>
<title>Окно игры</title>
<meta charset="utf-8">
<script>
if (!navigator.cookieEnabled) {
document.write('Внимание! В вашем браузере отключена поддержка Cookies. Включите чтобы играть.');
try {
window.stop();
} catch (exception) {
document.execCommand('Stop');
}
}
</script>
<style>
IFRAME.FRAME {
width: 100%;
height: 100%;
border: 0 solid;
}
.frametable {
height:100%;
width:100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: 0 solid;
border-spacing: 0;
}
.frametd {
height: inherit;
padding: 0;
}
</style>
</head>
<body>
<table class="frametable">
<tr style="height: 25px;">
<td class="frametd"><iframe id="header<?= mt_rand() ?>" class="FRAME" src="top_menu.php" scrolling="no" frameborder="0" name="frameheader"></iframe></td>
</tr>
<tr style="height: 75%;">
<td class="frametd"><iframe id="main<?= mt_rand() ?>" class="FRAME" src="main.php?top=<?= mt_rand() ?>" frameborder="0" name="framemain"></iframe></td>
</tr>
<tr>
<td class="frametd"><iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" frameborder="0" name="framechat"></iframe></td>
</tr>
</table>
</body>
</html>