
23.10.2007, 00:03
|
|
Members of Antichat - Level 5
Регистрация: 05.04.2006
Сообщений: 1,066
Провел на форуме: 3493315
Репутация:
1228
|
|
PHP код:
<?
function IsOnline($uin)
{
$fs=fsockopen('status.icq.com', 80);
if(! $fs) return false;
fwrite($fs, "GET http://status.icq.com/online.gif?icq=220052&img=5 HTTP/1.0\r\nHost: status.icq.com\r\n\r\n");
$str='';
while(!feof($fs))
$str.=fgets($fs);
if(strstr($str,'0.gif'))
return 'offline';
if(strstr($str,'1.gif'))
return 'online';
if(strstr($str,'2.gif'))
return 'undef';
}
?>
|
|
|