Коммит 78a5ac55 создал по автору lopar's avatar lopar
Просмотр файлов

Оказалось, close_page.php всё таки не нужен.

владелец 9bc793f7
<?php
//Закрываем страницы.
define('INDEX', '//' . $_SERVER['SERVER_NAME'] . '/index.php');
const PAGES_TO_CLOSE = [
'/chat/linker/linker.php',
];
if (in_array($_SERVER['REQUEST_URI'], PAGES_TO_CLOSE)) {
header(INDEX);
exit();
}
\ Нет новой строки в конце файла
<?php
//Закроем прямой доступ к странице
require_once 'close_page.php';
require_once STYLE . 'header.html';
//Окно чата
......
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>Открытый чат</title>
<link href="./style/style.css" type="text/css" rel="stylesheet">
</head>
<body>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>Открытый чат</title>
<link href="./style/style.css" type="text/css" rel="stylesheet">
</head>
<body>
body {
font-size: 11pt; font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
color: #000000;
background-color: #ffffff;
font-size: 11pt;
font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
color: #000000;
background-color: #ffffff;
}
A:link {
font-size: 10pt;
font-weight: normal;
color: #333;
text-decoration: none;
font-size: 10pt;
font-weight: normal;
color: #333;
text-decoration: none;
}
a:visited {
color: #333;
text-decoration: none;
font-weight: normal;
color: #333;
text-decoration: none;
font-weight: normal;
}
a:active {
font-weight: normal;
color: #333;
text-decoration: none;
font-weight: normal;
color: #333;
text-decoration: none;
}
a:hover {
font-weight: bold;
text-decoration: none;
font-weight: bold;
text-decoration: none;
}
.sender {
font-weight: normal;
}
}
\ Нет новой строки в конце файла
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать