Вход Регистрация
Файл: modules/pages/guests.php
Строк: 35
<?php
$locate 
= 'in_guests';
$title = $lang->word('guests_online');
require_once(
SYS.'/view/header.php');
$tpl->div('title', $lang->word('guests_online'));
$on_g_a = $db->query("SELECT * FROM `guests` WHERE `time` > '". (time()-600) ."'")->rowCount();
$pages = new Paginator($on_g_a, $ames);
if(
$on_g_a == 0) {
$tpl->div('menu', $lang->word('not_guests'));
} else {
$on_g_q = $db->query("SELECT * FROM `guests` WHERE `time` > '". (time()-600) ."' ORDER BY time DESC LIMIT $start, $ames");
while(
$on_g = $on_g_q->fetch()) {
$tpl->div('menu', img('guest.png') .$lang->word('guest') .' ('. rtime($on_g['time']) .')<br/>
        IP: '
.$on_g['ip'] .'<br/>
        Browser: '
.$on_g['browser'] .'<br/>');
}
$pages->view('/guests/?');
}
$tpl->div('block', img('users.png') .'<a href="/online/">'. $lang->word('users_online').'</a></br/>'. HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(
SYS.'/view/footer.php');
?>
Онлайн: 2
Реклама