2018-02-13 18:43:24 +00:00
|
|
|
|
<?php
|
2018-01-28 16:40:49 +00:00
|
|
|
|
session_start();
|
2020-09-28 14:02:41 +00:00
|
|
|
|
if (empty($_SESSION['uid'])) {
|
|
|
|
|
header("Location: index.php");
|
|
|
|
|
exit;
|
|
|
|
|
}
|
2019-01-09 23:21:33 +00:00
|
|
|
|
require_once 'config.php';
|
2020-09-28 14:02:41 +00:00
|
|
|
|
$userLoginStatus = db::c()->query('SELECT enter_game FROM users WHERE id = ?i', $_SESSION['uid'])->getNumRows() ?? 0;
|
|
|
|
|
if (empty($userLoginStatus)) {
|
|
|
|
|
header("Location: index.php");
|
|
|
|
|
} else {
|
|
|
|
|
db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);
|
|
|
|
|
}
|
2018-12-13 00:30:00 +00:00
|
|
|
|
?>
|
2020-06-23 08:49:49 +00:00
|
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="ru">
|
2018-12-13 00:30:00 +00:00
|
|
|
|
<head>
|
|
|
|
|
<title>Окно игры</title>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<script>
|
|
|
|
|
if (!navigator.cookieEnabled) {
|
|
|
|
|
document.write('Внимание! В вашем браузере отключена поддержка Cookies. Включите чтобы играть.');
|
|
|
|
|
try {
|
|
|
|
|
window.stop();
|
|
|
|
|
} catch (exception) {
|
|
|
|
|
document.execCommand('Stop');
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
<style>
|
|
|
|
|
IFRAME.FRAME {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border: 0 solid;
|
|
|
|
|
}
|
2020-09-28 14:02:41 +00:00
|
|
|
|
|
2019-01-09 22:49:46 +00:00
|
|
|
|
.frametable {
|
2020-09-28 14:02:41 +00:00
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2019-01-09 22:49:46 +00:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
border: 0 solid;
|
|
|
|
|
border-spacing: 0;
|
|
|
|
|
}
|
2020-09-28 14:02:41 +00:00
|
|
|
|
|
2019-01-09 22:49:46 +00:00
|
|
|
|
.frametd {
|
|
|
|
|
height: inherit;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</style>
|
2018-02-13 18:43:24 +00:00
|
|
|
|
</head>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
<body>
|
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">
|
|
|
|
|
<iframe id="header<?= mt_rand() ?>" class="FRAME" src="top_menu.php" scrolling="no" frameborder="0"
|
|
|
|
|
name="headframe"></iframe>
|
|
|
|
|
</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">
|
|
|
|
|
<iframe id="main<?= mt_rand() ?>" class="FRAME" src="main.php?top=<?= mt_rand() ?>" frameborder="0"
|
|
|
|
|
name="gameframe"></iframe>
|
|
|
|
|
</td>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2020-09-28 14:02:41 +00:00
|
|
|
|
<td class="frametd">
|
|
|
|
|
<iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" frameborder="0" name="chatframe"></iframe>
|
|
|
|
|
</td>
|
2019-01-09 22:01:36 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</body>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</html>
|