Модераторы

This commit is contained in:
lopar 2018-02-16 00:41:14 +02:00
parent d6a067c288
commit 23119efbfb

View File

@ -4,7 +4,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
include_once "config.php";
$timer = time() - 60;
$data = db::c()->query('SELECT `login`,`status`,`align`,`room`,(SELECT `id` FROM `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer)->fetch_assoc();
$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)->fetch_assoc();
?>
<!doctype html>
<html>
@ -20,11 +20,11 @@ $data = db::c()->query('SELECT `login`,`status`,`align`,`room`,(SELECT `id` FROM
<?php
while ($data) {
if (!empty($data['online'])) {
echo '<A HREF="javascript:top.AddToPrivate(\'', $data['login'], '\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
echo $data['align'] . $data['login'] . "" . $data['status'] . " — <em>" . $data['room'] . "</em><br>";
echo '<A HREF="javascript:top.AddToPrivate(\'{$data[\'login\']}\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
echo "{$data['align'].$data['login']}{$data['status']}<br>";
} else {
echo '<img src="i/lock1.gif">';
echo $data['align'] . $data['login'] . "" . $data['status'] . " — <small><em>персонаж не в клубе</em></small><br>";
echo "<em style='color:silver;'>{$data['align'].$data['login']}{$data['status']}</em><br>";
}
}
?>