Прикручиваем шаблон. Хороним идиотские ошибки. Делаем новые, более идиотские.

This commit is contained in:
Igor Barkov (iwork) 2020-09-30 15:44:21 +03:00
parent 5855827f23
commit 2fe8b04d18
1 changed files with 6 additions and 26 deletions

View File

@ -4,22 +4,15 @@ if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
include_once "config.php";
include_once "functions.php";
header("Cache-Control: no-cache");
$header = filter_input(INPUT_GET, 'header');
$ch = filter_input(INPUT_GET, 'ch');
require_once "functions.php";
$header = $_GET['header'] ?? null;
$ch = $_GET['ch'] ?? null;
if ($header) {
exit;
} elseif ($ch != null) {
Template::header('buttons');
?>
<html>
<head>
<link rel="stylesheet" href="css/main.css"/>
<meta charset="utf-8"/>
<script type="text/javascript" src="js/ZeroClipboard.js"></script>
<script language="JavaScript" src="js/ch.js"></script>
<script language="JavaScript" src="js/sl2.js"></script>
@ -213,8 +206,6 @@ if ($header) {
}
</script>
</head>
<body marginheight=0 marginwidth=0">
<div id="fixednew"
style="position: fixed; margin: -3px; padding: 0; z-index: 999; width: 100%; text-align: center; overflow: auto;">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
@ -245,10 +236,7 @@ if ($header) {
<div id="oMenu" style="position: absolute; border:1px solid #666; background-color:#CCC; display:none; "></div>
<div id="ClearMenu" style="position: absolute; border:1px solid #666; background-color: #e2e0e0; display: none;"></div>
<? } else { ?>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-type"/>
<? } else { Template::header(buttons); ?>
<script language="JavaScript" src="js/chat.js"></script>
<script language="JavaScript">
@ -314,8 +302,6 @@ if ($header) {
document.F1.om.value = '';
}
}
function subm() {
t = top.frames['chat'].currenttab;
$('input[name="chtype"]:hidden').val(t);
@ -441,10 +427,6 @@ if ($header) {
window.onresize = rslength;
</script>
</head>
<body marginheight=0 marginwidth=0 bgcolor=#E6E6E6 onload="top.strt();"> <!-- rslength(); -->
<form action="ch.php" target="refreshed" method="GET" name="F1" id="F1" onsubmit="subm(); top.NextRefreshChat();">
<input type="hidden" name="color" value="000000"/>
<input type="hidden" name="sys" value=""/>
@ -552,6 +534,4 @@ if ($header) {
}
</script>
</FORM>
<? } ?>
</body>
</html>
<? } ?>