Файл: modules/user/online.php
Строк: 40
<?php
$locate = 'in_online';
$title = $lang->word('users_online');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('users_online'));
$on_u_a = $db->query("SELECT * FROM `users` WHERE `time` > '". (time()-600) ."'")->rowCount();
$pages = new Paginator($on_u_a, $ames);
if($on_u_a == 0) {
$tpl->div('menu', $lang->word('not_users'));
} else {
$on_u_q = $db->query("SELECT * FROM `users` WHERE `time` > '". (time()-600) ."' ORDER BY time DESC LIMIT $start, $ames");
while($on_u = $on_u_q->fetch()) {
$tpl->div('menu', nick($on_u['id']) .' ['. rtime($on_u['time']) .'] <small><span style="float:right;">['. (!empty($on_u['locate']) ? $lang->word($on_u['locate']): NULL).']</span></small>');
}
$pages->view('/online/?');
}
$tpl->div('block', img('guest.png') .'<a href="/guests/">'. $lang->word('guests_online').'</a></br/>'. HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(SYS.'/view/footer.php');
?>