Файл: users/profile.php
Строк: 64
<?php
define('R', $_SERVER['DOCUMENT_ROOT']);
define('S', R.'/system');
require_once(R.'/system/kernel.php');
$tmp->header('user');
$idu=$db->guard($_GET['id']);
$u=$db->fass("select * from `users` where `id` = '".$idu."'");
$tmp->div('title', Language::config('user'). ' ' .$u['login']);
User::panel();
$tmp->div('block', avatar($idu, true));
$tmp->div('block', Language::config('acssec').': '.level($idu));
$tmp->div('block', 'ID: '.$u['id']);
$tmp->div('block', Language::config('login').': '.$u['login']);
$tmp->div('block', Language::config('name').': '.$u['name']);
$tmp->div('block', Language::config('fname').': '.$u['first_name']);
$tmp->div('block', Language::config('sex').': '.(!empty($u['sex']) ? ($u['sex']==1 ? Language::config('men') : Language::config('wom')): Language::config('no_empty')));
$tmp->div('block', Language::config('country').': '.(!empty($u['country']) ? $u['country'] : Language::config('no_empty')));
$tmp->div('block', Language::config('city').': '.(!empty($u['city']) ? $u['city'] : Language::config('no_empty')));
$tmp->div('block', Language::config('about').': '.(!empty($u['about']) ? $u['about'] : Language::config('no_empty')));
$tmp->div('block', Language::config('email').': '.(!empty($u['email']) ? $u['email'] : Language::config('no_empty')));
$tmp->div('block', Language::config('icq').': '.(!empty($u['icq']) ? $u['icq'] : Language::config('no_empty')));
if(User::profile('level') >=3){
$tmp->div('block', '<a href="/apanel/uedit'.$u['id'].'">'.Language::config('edit').'</a>');
}
$tmp->footer();
?>