Вход Регистрация
Файл: modules/pages/guests.php
Строк: 51
<?php
/**
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
 * @link          http://perf-engine.net
 * @package       PerfEngine
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
$locate 'in_guests';
$title _t('guests_online');
include_header($title);
$tpl->div('title'_t('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'_t('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('post'img('guest.png') .' '_t('guest') .' ('rtime($on_g['time']) .')<br/>
        IP: '
.$on_g['ip'] .'<br/>
        Browser: '
.$on_g['browser'] .'<br/>');
    }
    
$pages->view();
}
$tpl->div('block'NAV .'<a href="/user/online/">'_t('users_online').'</a></br/>'HICO .'<a href="/">'_t('home').'</a>');
include_footer();
?>
Онлайн: 0
Реклама