Вход Регистрация
Файл: modules/user/online.php
Строк: 38
<?php
/**********************************
*    @package: PerfCMS              *
*    @year: 2012                      *
*    @author: Artas                  *
*    @link: http://perfcms.pp.ua      *
**********************************/
$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()-300) ."'")->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()-300) ."' 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']) .')<br/>'. (!empty($on_u['locate']) ? $lang->word($on_u['locate']) : NULL));
}
$pages->view('/online/?');
}
$tpl->div('block', NAV .'<a href="/guests/">'. $lang->word('guests_online').'</a></br/>'. HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(
SYS.'/view/footer.php');
?>
Онлайн: 1
Реклама