Размер файла: 1.08Kb
- <?php
- /**********************************
- * @package: PerfCMS *
- * @year: 2012 *
- * @author: Artas *
- * @link: http://perfcms.pp.ua *
- **********************************/
- $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()-300) ."'")->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()-300) ."' ORDER BY time DESC LIMIT $start, $ames");
- while($on_g = $on_g_q->fetch()) {
- $tpl->div('menu', img('0.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', NAV .'<a href="/online/">'. $lang->word('users_online').'</a></br/>'. HICO .'<a href="/">'. $lang->word('home').'</a>');
- require_once(SYS.'/view/footer.php');
- ?>