Файл: sys/fnc/u.php
Строк: 115
<?
function u($user=NULL)
{
$ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id`='".$user."'"));
$ank=get_user($user);
$s= mysql_fetch_assoc(mysql_query("SELECT * FROM `onstatus` WHERE `id` = '$ank[onstatus]' LIMIT 1"));
echo "".status($ank['id'])."";
if ($ank['nick_name']==0)echo "<span style='color:$ank[ncolor]'>$ank[nick]</span>";
else if ($ank['nick_name']==1)echo "<span style='color:$ank[ncolor]'>".htmlspecialchars($ank['ank_name'])." ".htmlspecialchars($ank['familiya'])."</span>";
else if ($ank['nick_name']==2)echo "<span style='color:$ank[ncolor]'>".htmlspecialchars($ank['byname'])."</span>";
if ($ank['onstatus']==0)echo " (<span style='color:$ank[scolor]'><b>Новичок</b></span>)";
else echo " (<span style='color:$ank[scolor]'><b>".htmlspecialchars($s['name'])."</b></span>)";
echo "".flag($ank['id'])."";
echo "".medal($ank['id'])."";
echo "".vip($ank['id'])."";
echo "".wap_web($ank['id'])."";
}
function us($user=NULL)
{
$ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id`='".$user."'"));
$ank=get_user($user);
$s= mysql_fetch_assoc(mysql_query("SELECT * FROM `onstatus` WHERE `id` = '$ank[onstatus]' LIMIT 1"));
echo "".status($ank['id'])."";
if ($ank['nick_name']==0)echo "<a href='/id$ank[id]'><span style='color:$ank[ncolor]'>$ank[nick]</span></a>";
else if ($ank['nick_name']==1)echo "<a href='/id$ank[id]'><span style='color:$ank[ncolor]'>".htmlspecialchars($ank['ank_name'])." ".htmlspecialchars($ank['familiya'])."</span></a>";
else if ($ank['nick_name']==2)echo "<a href='/id$ank[id]'><span style='color:$ank[ncolor]'>".htmlspecialchars($ank['byname'])."</span></a>";
if ($ank['onstatus']==0)echo " (<a href='/user/services/onstatus.php'><span style='color:$ank[scolor]'><b>Новичок</b></span></a>)";
else echo " (<a href='/user/services/onstatus.php'><span style='color:$ank[scolor]'><b>".htmlspecialchars($s['name'])."</b></span></a>)";
echo "".flag($ank['id'])."";
echo "".medal($ank['id'])."";
echo "".vip($ank['id'])."";
echo "".wap_web($ank['id'])."";
}
function uslist($user=NULL)
{
$ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id`='".$user."'"));
echo "<a href='/id$ank[id]'><table><td>";
echo "".photo($ank['id'],2,50,50)."</td><td>";
echo "".u($ank['id'])."";
echo "<br/><img src='/notebook/img/time.png' alt=''> <b>Away: </b>".vremja($ank['date_last'])."";
echo "</td></table></a>";
}
?>