2018-02-15 22:08:42 +00:00
< ? php
session_start ();
if ( ! isset ( $_SESSION [ 'uid' ])) header ( " Location: index.php " );
include_once " config.php " ;
$timer = time () - 60 ;
2018-02-15 22:41:14 +00:00
$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 ();
2018-02-15 22:08:42 +00:00
?>
<! 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 ( $data ) {
if ( ! empty ( $data [ 'online' ])) {
2018-02-15 22:41:14 +00:00
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> " ;
2018-02-15 22:08:42 +00:00
} else {
echo '<img src="i/lock1.gif">' ;
2018-02-15 22:41:14 +00:00
echo " <em style='color:silver;'> { $data [ 'align' ] . $data [ 'login' ] } — { $data [ 'status' ] } </em><br> " ;
2018-02-15 22:08:42 +00:00
}
}
?>
</ body >
</ html >