Убрана сбоящая привязка к jquery-1.7.2.min.js восмилетней давности и неподдерживаемые jquery плагины.
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['uid'])) {header("Location: index.php");}
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
require_once 'config.php';
|
||||
$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']);}
|
||||
$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']);
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
@@ -27,9 +33,10 @@ else {db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1
|
||||
height: 100%;
|
||||
border: 0 solid;
|
||||
}
|
||||
|
||||
.frametable {
|
||||
height:100%;
|
||||
width:100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@@ -38,6 +45,7 @@ else {db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1
|
||||
border: 0 solid;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.frametd {
|
||||
height: inherit;
|
||||
padding: 0;
|
||||
@@ -47,13 +55,21 @@ else {db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1
|
||||
<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="headframe"></iframe></td>
|
||||
<td class="frametd">
|
||||
<iframe id="header<?= mt_rand() ?>" class="FRAME" src="top_menu.php" scrolling="no" frameborder="0"
|
||||
name="headframe"></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="gameframe"></iframe></td>
|
||||
<td class="frametd">
|
||||
<iframe id="main<?= mt_rand() ?>" class="FRAME" src="main.php?top=<?= mt_rand() ?>" frameborder="0"
|
||||
name="gameframe"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="frametd"><iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" frameborder="0" name="chatframe"></iframe></td>
|
||||
<td class="frametd">
|
||||
<iframe id="chat<?= mt_rand() ?>" class="FRAME" src="chat.php" frameborder="0" name="chatframe"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user