Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?
$uin=108672231;
$error=-1;
$offline=0;
$online=1;
$disabled=2;
class icq
{var $uin="";
function setuin ($icquin='')
{$this->$uin=$icquin;}
function status ()
{global $error,$online,$disabled,$offline;
$arr=@file("http://wwp.icq.com/scripts/online.dll?icq=".$this->$uin."&img=1");
$len=strlen($arr[1]);
$ret=$error;
if ($len==105)$ret=$online;
if ($len==18)$ret=$disabled;
if ($len==0)$ret=$offline;
return $ret;}
function statusstring ()
{global $error,$online,$disabled,$offline;
$t=$this->status();
if ($t==$error)
{$ret='(ICQ.COM error)';}
elseif($t==$offline)
{$ret='offline';}
elseif ($t==$online)
{$ret='online';}
elseif ($t==$disabled)
{$ret='disabled';}
return $ret;}}
$icq=new icq;
$icq->setuin($uin);
?>
<? echo $icq->statusstring(); ?>