-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
70 lines (59 loc) · 1.89 KB
/
Copy pathindex.php
File metadata and controls
70 lines (59 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>PasChat online</title>
<meta name="description" content="PasChat online">
<meta name="author" content="Iriscot">
<style>
body {
font: normal 13px arial, sans-serif;
width: 80%;
margin: 3% auto;
padding: 0;
background: #fff;
color: #777;
line-height: 1.9;
}
.message {
margin: 6px 3px;
}
.name {
font-weight: bold;
margin-left: 6px;
}
.name {
color: #0043ff;
}
.text {
color: #000;
}
.quick_links{
padding: 14px;
border-bottom: 1px solid rgba(234, 92, 119, 0.38);
}
.quick_links a{
margin: 5px;
}
</style>
</head>
<body>
<h2>PasChat by <a href="https://iriscot.org/">Iriscot</a></h2>
<div class="quick_links">
<a href="/dl/paschat_latest.exe">Скачать чатик (.exe)</a>
<a href="/dl/paschat_source.pas">Скачать исходники (.pas)</a>
</div>
<h3>Недавние сообщения</h3>
<div class="last_messages">
<?
require_once 'db.php';
$chat_raw = sql("SELECT * FROM (SELECT * FROM `$database['table']` ORDER BY `id` DESC LIMIT 10) AS `tmp` ORDER BY `id` ASC");
if(mysqli_num_rows($chat_raw) > 0){
while($chat_msg = mysqli_fetch_assoc($chat_raw))
echo "<div class=\"message\"><span class=\"date\">{$chat_msg['date']}</span> <span class=\"name\">{$chat_msg['user']}</span>: <span class=\"text\">{$chat_msg['text']}</span></div>";
}else
echo 'На этом сервере пока нет сообщений :(';
?>
</div>
</body>
</html>