battles/fight.php

72 lines
2.8 KiB
PHP
Raw Normal View History

<?php
2018-01-28 16:40:49 +00:00
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']);
2018-01-28 16:40:49 +00:00
// OLD FRAMESET
2018-03-08 20:28:05 +00:00
// '<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');
}
2018-01-28 16:40:49 +00:00
}
</script>
<style>
IFRAME.FRAME {
width: 100%;
height: 100%;
border: 0 solid;
}
2019-01-09 22:49:46 +00:00
.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>
2019-01-09 22:49:46 +00:00
<table class="frametable">
<tr style="height: 25px;">
2019-01-09 22:49:46 +00:00
<td class="frametd"><iframe id="header<?= mt_rand() ?>" class="FRAME" src="top_menu.php" scrolling="no" frameborder="0" name="frameheader"></iframe></td>
</tr>
2019-01-09 22:13:57 +00:00
<tr style="height: 75%;">
2019-01-09 22:49:46 +00:00
<td class="frametd"><iframe id="main<?= mt_rand() ?>" class="FRAME" src="main.php?top=<?= mt_rand() ?>" frameborder="0" name="framemain"></iframe></td>
</tr>
<tr>
2019-01-09 22:49:46 +00:00
<td class="frametd"><iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" frameborder="0" name="framechat"></iframe></td>
</tr>
</table>
</body>
2018-01-28 16:40:49 +00:00
</html>