Файл: sys/fnc/online.wap.web.php
Строк: 17
<?
function wap_web($user=NULL)
{
global $set,$time;
static $users;
if (!isset($users[$user]))
{
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$user' AND `date_last` > '".(time()-600)."' LIMIT 1"),0)==1)
{
$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = '$user' LIMIT 1"));
if ($ank['wap_web']=='wap_web')
$users[$user]= " <img src='/style/icons/phone.png' alt='phone' align='right'/>";
else
$users[$user]= " <img src='/style/icons/pc.png' alt='pc' align='right' />";
}
else
{
$users[$user]=null;
///$users[$user]= '<div style="text-align:right">'.vremja($ank['date_last']).'</div>';
}
}
return $users[$user];
}
?>