2018-02-13 18:43:24 +00:00
|
|
|
|
<?php
|
2021-08-25 15:24:12 +00:00
|
|
|
|
|
2022-01-26 23:15:33 +00:00
|
|
|
|
use Battles\Database\Db;
|
2021-08-25 15:24:12 +00:00
|
|
|
|
use Battles\Template;
|
|
|
|
|
|
2019-01-09 23:21:33 +00:00
|
|
|
|
require_once 'config.php';
|
2022-01-26 23:15:33 +00:00
|
|
|
|
$userLoginStatus = Db::getInstance()->ofetch('select enter_game from users where id = ?', $_SESSION['uid']);
|
2021-08-27 15:55:18 +00:00
|
|
|
|
if (!empty($userLoginStatus->enter_game)) {
|
2022-01-26 23:15:33 +00:00
|
|
|
|
Db::getInstance()->execute('update users set enter_game = 0 where enter_game = 1 and id = ?', $_SESSION['uid']);
|
2020-09-28 14:02:41 +00:00
|
|
|
|
}
|
2020-10-28 20:21:08 +00:00
|
|
|
|
|
2021-08-25 15:24:12 +00:00
|
|
|
|
Template::header('Окно игры');
|
2018-12-13 00:30:00 +00:00
|
|
|
|
?>
|
2020-10-29 23:30:05 +00:00
|
|
|
|
<script>
|
|
|
|
|
if (!navigator.cookieEnabled) {
|
|
|
|
|
document.write('Внимание! В вашем браузере отключена поддержка Cookies. Включите чтобы играть.');
|
|
|
|
|
try {
|
|
|
|
|
window.stop();
|
|
|
|
|
} catch (exception) {
|
|
|
|
|
document.execCommand('Stop');
|
2019-01-09 22:01:36 +00:00
|
|
|
|
}
|
2020-10-29 23:30:05 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
IFRAME.FRAME {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border: 0 solid;
|
2021-08-27 15:55:18 +00:00
|
|
|
|
overflow: hidden;
|
2020-10-29 23:30:05 +00:00
|
|
|
|
}
|
2020-09-28 14:02:41 +00:00
|
|
|
|
|
2020-10-29 23:30:05 +00:00
|
|
|
|
.frametable {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
border: 0 solid;
|
|
|
|
|
border-spacing: 0;
|
|
|
|
|
}
|
2020-09-28 14:02:41 +00:00
|
|
|
|
|
2020-10-29 23:30:05 +00:00
|
|
|
|
.frametd {
|
|
|
|
|
height: inherit;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2019-01-09 22:49:46 +00:00
|
|
|
|
<table class="frametable">
|
2019-01-09 22:01:36 +00:00
|
|
|
|
<tr style="height: 25px;">
|
2020-09-28 14:02:41 +00:00
|
|
|
|
<td class="frametd">
|
2021-08-27 15:55:18 +00:00
|
|
|
|
<iframe id="header<?= mt_rand() ?>" class="FRAME" src="top_menu.php" name="headframe" title="headframe"></iframe>
|
2020-09-28 14:02:41 +00:00
|
|
|
|
</td>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</tr>
|
2019-01-09 22:13:57 +00:00
|
|
|
|
<tr style="height: 75%;">
|
2020-09-28 14:02:41 +00:00
|
|
|
|
<td class="frametd">
|
2021-08-27 15:55:18 +00:00
|
|
|
|
<iframe id="main<?= mt_rand() ?>" class="FRAME" src="main.php?top=<?= mt_rand() ?>" name="gameframe" title="gameframe"></iframe>
|
2020-09-28 14:02:41 +00:00
|
|
|
|
</td>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2020-09-28 14:02:41 +00:00
|
|
|
|
<td class="frametd">
|
2021-08-27 15:55:18 +00:00
|
|
|
|
<iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" name="chatframe" title="chatframe"></iframe>
|
2020-09-28 14:02:41 +00:00
|
|
|
|
</td>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</tr>
|
2020-09-30 14:50:09 +00:00
|
|
|
|
</table>
|