Файл: modules/users/index.php
Строк: 57
<?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_users';
$title = _t('users');
include_header($title);
$tpl->div('title', _t('users'));
$tpl->div('menu', 
img('users.png').' <a href="/users/list">'._t('all_users').'</a> '.$stat->users().'<br />
'.img('administration.png').' <a href="/users/administration">'._t('administration_site').'</a> ('.$db->query("SELECT * FROM `users` WHERE `level` > '1'")->rowCount().')<br />
'.img('birth.png').' <a href="/users/birthday">'._t('births_info').' '._t('births').'</a> ('.$db->query("SELECT * FROM `users` WHERE `day` = '".date('d')."' AND `month` = '".date('m')."' AND `year` != '0'")->rowCount().')<br />
'. img('user-ban.png') .'<a href="/users/ban-list/">'. _t('ban_list') .'</a> ('.$db->query("SELECT * FROM `users` WHERE `ban_time` > '". time() ."'")->rowCount().')
');
$tpl->div('menu', 
img('u_go.png').' <a href="/users/online_today">'._t('today_online').'</a> ('.$db->query("SELECT * FROM `users` WHERE `time` > '". strtotime('now 00:00:00') ."'")->rowCount().')
');
$tpl->div('post', 
img('search.png').' <a href="/users/search">'._t('search').'</a>
');
$tpl->div('block', 
HICO .'<a href="/">'. _t('home').'</a>');
include_footer();
?>