<?
function online($user=NULL)
{
global $set,$time;
if (mysql_result(mysql_query(\"SELECT COUNT(*) FROM `user` WHERE `id` = \'$user\' AND `date_last` > \'\".(time()-1500).\"\' LIMIT 1\",0)==1)
{
$ank=mysql_fetch_array(mysql_query(\"SELECT * FROM `user` WHERE `id` = $user LIMIT 1\");
if ($ank[\'group_access\']>7){
if ($ank[\'pol\']==1) $adm=\'<img src=\"/style/user/1.png\" alt=\"\" class=\"icon\"/>\';
else
$adm=\'<img src=\"/style/user/2.png\" alt=\"\" class=\"icon\"/>\';
echo \"$adm\";}
else
if ($ank[\'group_access\']>1 && $ank[\'group_access\']<=7)
{if ($ank[\'pol\']==1)
$mod=\'<img src=\"/style/user/3.png\" alt=\"\" class=\"icon\"/>\';
else
$mod=\'<img src=\"/style/user/4.png\" alt=\"\" class=\"icon\"/>\';
echo \"$mod\";}
else
if(isset ($ank[\'online\'])==0)
{if ($ank[\'pol\']==1) $user=\'<img src=\"/style/user/5.png\" alt=\"\" class=\"icon\"/>\';
else
$user=\'<img src=\"/style/user/6.png\" alt=\"\" class=\"icon\"/>\';
echo \"$user\";}
}else{
$ank=mysql_fetch_array(mysql_query(\"SELECT * FROM `user` WHERE `id` = $user LIMIT 1\");
if ($ank[\'group_access\']>7){
if ($ank[\'pol\']==1) $adm=\'<img src=\"/style/user/1_1.png\" alt=\"\" class=\"icon\"/>\';else$adm=\'<img src=\"/style/user/2_2.png\" alt=\"\" class=\"icon\"/>\';echo \"$adm\";}else{if ($ank[\'pol\']==1) $mod=\'<img src=\"/style/user/3_3.png\" alt=\"\" class=\"icon\"/>\';else$mod=\'<img src=\"/style/user/4_4.png\" alt=\"\" class=\"icon\"/>\';echo \"$mod\";}if(isset ($ank[\'online\'])==0){if ($ank[\'pol\']==1) $user=\'<img src=\"/style/user/5_5.png\" alt=\"\" class=\"icon\"/>\';else$user=\'<img src=\"/style/user/6_6.png\" alt=\"\" class=\"icon\"/>\';echo \"$user\";}}else{$ank=mysql_fetch_array(mysql_query(\"SELECT * FROM `user` WHERE `id` = $user LIMIT 1\");if ($ank[\'group_access\']>7){if ($ank[\'pol\']==1) $adm=\'<img src=\"/style/user/1_1.png\" alt=\"\" class=\"icon\"/>\';else$adm=\'<img src=\"/style/user/2_2.png\" alt=\"\" class=\"icon\"/>\';echo \"$adm\";}elseif ($ank[\'group_access\']>1 && $ank[\'group_access\']<=7){if ($ank[\'pol\']==1) $mod=\'<img src=\"/style/user/3_3.png\" alt=\"\" class=\"icon\"/>\';else$mod=\'<img src=\"/style/user/4_4.png\" alt=\"\" class=\"icon\"/>\';else
if (isset($ank[\'online\'])==0){if ($ank[\'pol\']==1) $user=\'<img src=\"/style/user/5_5.png\" alt=\"\" class=\"icon\"/>\';else$user=\'<img src=\"/style/user/6_6.png\" alt=\"\" class=\"icon\"/>\';echo \"$user\";}}if($ank[\'status_vip\']==1)echo \" <img src=\'/Vip.png\'> \";echo \"\".vip($ank[\'id\']).\"\"; // VIp статус ENK
Дальше идет путь к картинкам.
этот статус выбирается на странице онлайн?