Открыть боковую панель
dcc0
OpenChatPhp
Коммиты
78a5ac55
Коммит
78a5ac55
создал
Янв 29, 2022
по автору
lopar
Просмотр файлов
Оказалось, close_page.php всё таки не нужен.
владелец
9bc793f7
Изменения
4
Скрыть пробелы
Построчно
Рядом
chat/linker/close_page.php
удалено
100644 → 0
Просмотр файла @
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
();
}
\ Нет новой строки в конце файла
chat/linker/linker.php
Просмотр файла @
78a5ac55
<?php
//Закроем прямой доступ к странице
require_once
'close_page.php'
;
require_once
STYLE
.
'header.html'
;
//Окно чата
...
...
chat/style/header.html
Просмотр файла @
78a5ac55
<!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>
chat/style/style.css
Просмотр файла @
78a5ac55
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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать