output['info_servers'] = $text['info_servers'];
$tpl->output['info_num_of_comments'] = $text['info_num_of_comments'];
$tpl->output['info_num_of_servers'] = $text['info_num_of_servers'];
$user_info = $db->query_fetch_assoc('select `name`, `id`, `email`, `admin`, `ban` from `users` where `id`='.$id);
$tpl->output['name']=$user_info['name'];
if ($user_info['admin']==1)
{
$tpl->output['user_name']=$user_info['name'].'(Admin)';
}
else
{
$tpl->output['user_name']=$user_info['name'];
}
if ($user['admin']==1)
{
$tpl->output['user_email'] = '
E-mail | '.$user_info['email'].' |
';
if ($user_info['ban']==1)
{
$tpl->output['admin'] = 'UnBan |
';
}
else
{
$tpl->output['admin'] = 'Ban |
';
}
}
else
{
$tpl->output['user_email'] = '';
$tpl->output['admin']='';
}
$db->query('servers', 'select `name`, `id` from `servers` where `owner`='.$id);
$tpl->output['user_num_of_servers'] = $db->query_result('select count(*) as pocet from `servers` where `owner`='.$id);
$tpl->output['user_servers'] = '';
while ($row = $db->fetch_assoc('servers'))
{
$tpl->output['user_servers'] .= ulink('server/'.$row['id'], $row['name']).'
';
}
$tpl->output['user_num_of_comments'] = $db->query_result('select count(*) as pocet from `comments` where `author`='.$id);
?>