Дублирующийся функционал.
This commit is contained in:
parent
5082b2f85a
commit
b8ec908335
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
if (!isset($_SESSION['uid'])) header("Location: index.php");
|
|
||||||
include_once "config.php";
|
|
||||||
|
|
||||||
$timer = time() - 60;
|
|
||||||
$data = db::c()->query('SELECT `login`,`status`,`align`,(SELECT 1 FROM `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer);
|
|
||||||
?>
|
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel=stylesheet href="css/main.css">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a href="/main.php"> ← на главную</a>
|
|
||||||
<h1>
|
|
||||||
<A HREF="javascript:top.AddToPrivate('pal', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A> Модераторы онлайн
|
|
||||||
</h1>
|
|
||||||
<?php
|
|
||||||
while ($row = $data->fetch_assoc()) {
|
|
||||||
if (!empty($row['online'])) {
|
|
||||||
echo '<A HREF="javascript:top.AddToPrivate(\'{$row[\'login\']}\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
|
|
||||||
echo "<img src=i/align_{$row['align']}.gif> {$row['login']} — {$row['status']}<br>";
|
|
||||||
} else {
|
|
||||||
echo '<img src="i/lock1.gif">';
|
|
||||||
echo "<em style='color:silver;'><img src=i/align_{$row['align']}.gif> {$row['login']} — {$row['status']}</em><br>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -33,7 +33,6 @@
|
|||||||
<a href="/relikt.php?edit=1" title="Реликты" target="main">Реликты</a>
|
<a href="/relikt.php?edit=1" title="Реликты" target="main">Реликты</a>
|
||||||
<a href="/klan.php" title="Клан" target="main">Клан</a>
|
<a href="/klan.php" title="Клан" target="main">Клан</a>
|
||||||
<a href="/orden.php" title="Особые умения" target="main">Особые умения</a>
|
<a href="/orden.php" title="Особые умения" target="main">Особые умения</a>
|
||||||
<a href="/moderators.php" title="Модераторы" target="main">Модераторы</a>
|
|
||||||
<a href="/forum.php" title="Форум" target="main">Форум</a>
|
<a href="/forum.php" title="Форум" target="main">Форум</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user