Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Checking if someone is online with ICQ in PHP

Author:mike - Wed Nov 19 09:03:57 2003

<?php
        // ***
        // ICQ tjek funktion
        // ***
        function icq_test($uin) {
                $arr = file( "http://online.mirabilis.com/scripts/online.dll?icq=$uin&img=1");
                    $len = strlen($arr[1]);
                    if ($len == 96) {
                        return  "<b><font color=\"#00FF00\">Online</font></b>";
                } elseif ($len == 83) {
                        return  "<b><font color=\"#FF4040\">Offline</font></b>";
                } elseif ($len == 1) {
                        return  "<b><font color=\"#FF4040\">Offline</font></b>";
                } else {
                        return  "Status ukendt";
                }
        }
?
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk