File size: 988B
<?php
$title = 'Профиль пользователя';
require("../system/core.php");
$id = intval($_REQUEST['id']);
$result = mysql_query("SELECT COUNT(`id`) FROM `users` WHERE `id` = '$id'");
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '$id'"));
if(isset($user['id'])){
echo '<div class="phdr">'.$user['login'].'</div><div class="menu">';
echo ' ' .$lng ['login'] . ' : <li><b>'. $user['login'].'</b>'; switch ($user[rights]) {
case"1":
echo'Пользователь';
break;
case"2":
echo' <u>Админ</u>';
break; }
echo '<br />E-mail: <li><b>'.$user['mail'].'</b><br>';
echo ' ' .$lng ['reg'] . ' : <li><b>'.date('d.m.Y', $user['reg_time']).'</b><br/><br>';
echo '</div>';
}else{
error(' ' .$lng ['erus'] . ' !');
echo '';
}
if ($_GET['mod']=='profile') {
echo'<font color="red"> ' .$lng ['fedn'] . ' <br></font><br>';
echo'</div>';
}
else{
}
nav();
require("../system/end.php");
?>