Модераторы
This commit is contained in:
parent
931b065a5d
commit
4b805cb970
@ -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`,(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();
|
||||
$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);
|
||||
var_dump($data);
|
||||
?>
|
||||
<!doctype html>
|
||||
@ -19,7 +19,7 @@ var_dump($data);
|
||||
<A HREF="javascript:top.AddToPrivate('pal', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A> Модераторы онлайн
|
||||
</h1>
|
||||
<?php
|
||||
#while ($data) {
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
// if (!empty($data['online'])) {
|
||||
// echo '<A HREF="javascript:top.AddToPrivate(\'{$data[\'login\']}\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
|
||||
// echo "<img src=i/align_{$data['align']}.gif> {$data['login']} — {$data['status']}<br>";
|
||||
@ -27,8 +27,8 @@ var_dump($data);
|
||||
// echo '<img src="i/lock1.gif">';
|
||||
// echo "<em style='color:silver;'><img src=i/align_{$data['align']}.gif> {$data['login']} — {$data['status']}</em><br>";
|
||||
// }
|
||||
# var_dump($data);
|
||||
#}
|
||||
var_dump($row);
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user