Файл: users/zona/ok.php
Строк: 105
<?
require_once ("../../core/cuctema/core.php");
$set['title']='Краткая информация'; // заголовок страницы
if (!isset($user) && !isset($_GET['id'])){header("Location: /index.php?".SID);exit;}
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$ank[id]' LIMIT 1"),0)==0){header("Location: /index.php?".SID);exit;}
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = $ank[id] LIMIT 1"));
$set['title']='Информация Модератора'; // заголовок страницы
require_once ("../../core/cuctema/head.php");
aut();
if (isset($user)){
echo "<div class='d1'>";
}
else
{
echo "<div class='d1'>";
}
echo "<span style='color:darkmagenta'><b>$ank[nick]</b></span>".online($ank['id'])."</a>n";
echo "<table class='post'>n";
echo " <tr>n";
echo " <td class='p_m' rowspan='2'>n";
avatar($ank['id'],1,0);
echo " </td>n";
echo " <td class='icon16'>n";
echo "</div>";
if(strlen2($ank['ank_city'])>0)echo "<span style='color: #006633'> ".htmlspecialchars($ank['ank_city'])."</span><br/>";
else
echo " <font color='#8f8c85'>Город не указан</font><br />n";
if(strlen2($ank['ank_name'])>0)echo "<span style='color: #006633'> ".htmlspecialchars($ank['ank_name'])."</span><br/>";
else
echo "<span style='color: #006633'>Имя не заполнено</span>";
if(strlen2($ank['ank_d_r'])>0 && strlen2($ank['ank_m_r'])>0 && strlen2($ank['ank_g_r'])>0)
{
$ank['ank_age']=date("Y")-$ank['ank_g_r'];
if (date("n")<$ank['ank_m_r'])$ank['ank_age']=$ank['ank_age']-1;
elseif (date("n")==$ank['ank_m_r']&& date("j")<$ank['ank_d_r'])$ank['ank_age']=$ank['ank_age']-1;
echo "<span style='color: #006633'>$ank[ank_age] </span><br/>";
}
echo " </td>n";
echo " </tr>n";
echo "</table>";
echo "<img src='/mysite/images/anketa.png' alt='' class='icon'/>n";
echo "<a href="/mysite/anketa/?id=$ank[id]">Анкета</a><br />n";
if (isset($user) && $user['id']!=$ank['id']){
echo "<img src='/adm_panel/images/index/11.png' alt='' class='icon'/>n";
echo "<a href="/adm_panel/adm_log.php?id=$ank[id]">Действие Модератора</a><br />n";
}
echo '<div class="foot"><img src="/images/others/back.png" alt=""/> <a href="/shared_zone/?moders">Назад</a></div>';
require_once ("../../core/cuctema/foot.php");
?>