Файл: modules/users/administration.php
Строк: 41
<?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-2014, 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('administration_site');
include_header($title);
$tpl->div('title', _t('administration_site'));
$users_a = $db->query("SELECT * FROM `users` WHERE `level` > '1'")->rowCount();
if($users_a == 0)
{
$tpl->div('menu', _t('not_users'));
}
else
{
$users_q = $db->query("SELECT * FROM `users` WHERE `level` > '1' ORDER BY level DESC");
while($users = $users_q->fetch())
{
$tpl->div('post', nick($users['id'], '<b>'.user_level($users['id']).'</b><br />'. (!empty($users['country'])? _t('country').': <b>'. $users['country'] .'</b><br />':NULL) . (!empty($users['city'])? _t('city').': <b>'.$users['city'] .'</b><br />':NULL) .(isset($user) && $user['id'] != abs(intval($users['id'])) ? '<a href="/mail/write/?user_id='. abs(intval($users['id'])).'">'. _t('w_mail') .'</a><br/>' : NULL)));
}
}
$tpl->div('block',
NAV .' <a href="/users">'._t('back').'</a><br/>'.
HICO .'<a href="/">'. _t('home').'</a>');
include_footer();
?>