File size: 4Kb
<?php
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//
// Sitchi CMS - Mobile Content Management System //
// The author: Nikoloz Sitchinava [sitchi] //
// Link: http://sitchicms.num.ge //
// Skype: SitchiCMS //
// License: LICENSE.txt (see attached file) //
// Version: VERSION.txt (see attached file) //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
define('_SITCHICMS', 1);
$root_path='../';
require $root_path.'includes/db_connect.php';
require $root_path.'includes/start.php';
require $root_path.'includes/header.php';
require $root_path.'includes/functions.php';
require $root_path.'includes/head.php'; // თავი
$lng_info = load_lng('info');
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval(abs($_GET['id']));
if ($ank['id']==0)
{
head($lng_info['1_1'].' | '.$set['title']);
echo'<img src="/themes/'.$set['set_them'].'/images/guest.png" alt="" width="48" height="48""/><br/>';
echo $lng_info['1_2'];
if (isset($_SERVER['HTTP_REFERER']))
echo'<br/><a href="'.htmlspecialchars($_SERVER['HTTP_REFERER']).'"> '.$lng['1_50'].'</a>';
require $root_path.'includes/end.php'; // დასასრული
}
$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '".$ank['id']."' LIMIT 1"));
if (!$ank)
{
header("Location: /");
exit;
}
head($ank['login'].' | '.$set['title']);
echo'<div class="hdr"><b>'.$lng_info['1_3'].'</b></div>';
echo'<div class="list">' .
'<ul>';
echo'<div class="imgright">';
avatars($ank['id']);
echo'</div>';
user_status ($ank['level']);
echo'<li><span class="gray">ID</span>: '.$ank['id'].'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_4'].'</span>: '.(($ank['sqe']==1)?$lng_info['1_24']:$lng_info['1_25']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_5'].'</span>: '.$ank['login'].'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_6'].'</span>: '.($ank['name']?$ank['name']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_7'].'</span>: '.($ank['country']?$ank['country']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_8'].'</span>: '.($ank['city']?$ank['city']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_11'].'</span>: '.moneys($ank['balans']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_9'].'</span>: '.timecount($ank['alltime']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_13'].'</span>: '.($ank['chemze']?$ank['chemze']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_15'].'</span>: '.($ank['email']?$ank['email']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_16'].'</span>: '.($ank['skype']?$ank['skype']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_17'].'</span>: '.($ank['number']?$ank['number']:$lng_info['1_23']).'<br/></li>';
echo'<li><span class="gray">'.$lng_info['1_18'].'</span>: '.($ank['icq']?$ank['icq']:$lng_info['1_23']).'<br/></li>';
if ($ank['site']!=NULL)
echo'<li><span class="gray">'.$lng_info['1_19'].'</span>: <a href="http://'.$ank['site'].'">'.$ank['site'].'</a><br/></li>';
echo'</ul></div>';
if (isset($user) && $user['id']!=$ank['id'])
echo '<a href="mail.php?act=create_mail&login='.$ank['login'].'"">werilis miwera</a><br/>';
if (isset($user) && $user['level']>=2 && $user['level']>$ank['level'])
echo'<a href="'.$root_path.'apanel/ban.php?id='.$ank['id'].'">'.$lng_info['1_20'].' '.$ank['login'].'</a>';
if (isset($user) && $user['id']==$ank['id'])
echo'<a href="info_edit.php?id='.$ank['id'].'">'.$lng_info['1_21'].'</a><br/>';
if (isset($user) && $user['level']>$ank['level'] && $user['level']>2)
echo'<br/><a href="'.$root_path.'apanel/user_edit.php?id='.$ank['id'].'">'.$lng_info['1_22'].'</a><br/>';
if (isset($_SERVER['HTTP_REFERER']))
echo'<a href="'.htmlspecialchars($_SERVER['HTTP_REFERER']).'"> '.$lng['1_50'].'</a>';
require $root_path.'includes/end.php'; // დასასრული
?>