Ciode cleanup

This commit is contained in:
lopar 2019-01-10 01:21:33 +02:00
parent a8a2e073e6
commit 8e635b572e
2 changed files with 2 additions and 18 deletions

View File

@ -1,23 +1,8 @@
<?php
session_start();
if (!isset($_SESSION['uid'])) {
header("Location: index.php");
}
include("config.php");
if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once '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>

View File

@ -27,7 +27,6 @@
</HEAD>
<body>
<div>
<button onClick="document.getElementsByName('framemain').src='/user_anketa.php'">Анкета</button>
<a href="/user_anketa.php" title="Анкета" target="framemain">Анкета</a>
<a href="/contacts.php" title="Контакты" target="framemain">Друзья</a>
<a href="/main.php?edit=1" title="Инвентарь" target="framemain">Инвентарь</a>