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

This commit is contained in:
Igor Barkov (iwork) 2020-09-30 15:44:21 +03:00
parent 5855827f23
commit 2fe8b04d18

View File

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