44 lines
2.1 KiB
PHP
44 lines
2.1 KiB
PHP
<?php
|
||
session_start();
|
||
if (!isset($_SESSION['uid'])) {
|
||
header("Location: index.php");
|
||
}
|
||
include("config.php");
|
||
db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);
|
||
|
||
// OLD FRAMESET
|
||
// '<frameset rows="45, *, 30">' +
|
||
// '<frame src="top_menu.php" scrolling="no" noresize="noresize" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0">' +
|
||
// '<frameset rows="72%, *">' +
|
||
// '<frame name="main" src="main.php?top=' + rnd + '" style="border-bottom-width: 2px; border-bottom-style:solid; border-bottom-color:#B0B0B0">' +
|
||
// '<frameset cols="*,263">' +
|
||
// '<frame id="chat" name="chat" src="buttons.php?ch=' + rnd + '" scrolling="yes" FRAMEBORDER="0" MARGINWIDTH="3" MARGINHEIGHT="3">' +
|
||
// '<frame name="online" src="ch.php?online=' + rnd + '" scrolling="yes" FRAMEBORDER=' + frmval + ' BORDER="0" MARGINWIDTH="3" MARGINHEIGHT="0" ' + addstyle + '>' +
|
||
// '</frameset>' +
|
||
// '</frameset>' +
|
||
// '<frame name="bottom" scrolling="no" noresize="noresize" src="buttons.php?' + rnd + '">' +
|
||
// '</frameset>'
|
||
?>
|
||
<html>
|
||
<head>
|
||
<title>Окно игры</title>
|
||
<meta charset="utf-8">
|
||
<script>
|
||
if (!navigator.cookieEnabled) {
|
||
document.write('Внимание! В вашем браузере отключена поддержка Cookies. Включите чтобы играть.');
|
||
try {
|
||
window.stop();
|
||
} catch (exception) {
|
||
document.execCommand('Stop');
|
||
}
|
||
}
|
||
</script>
|
||
</head>
|
||
<frameset rows="25, *" frameborder=0>
|
||
<frame src="top_menu.php" scrolling="no" noresize style="border-bottom: 1px solid silver;">
|
||
<frameset rows="75%, *">
|
||
<frame name="main" src="main.php?top=<?= mt_rand() ?>" style="border-bottom: 1px solid silver;">
|
||
<frame id="chat" name="chat" src="chat.php" scrolling="yes">
|
||
</frameset>
|
||
</frameset>
|
||
</html>
|