u can try this:
replace // --------- End Config ----------
with:$statusimages = "/www/onlinestatusimgs/"; //the directory where online.gif offline.gif and unknown.gif images are.
$statusurl = "http://osi.lostinspacehosting.com:81/"; //the url of status indicator server. WITH TRAILING SLASH!
//list of messengers
$messengers = array(
"icq" => "85389818",
"aim" => "JensF200x",
"yahoo" => "jensfunk"
);
// --------- End Config ----------
function online($id, $what)
{
global $statusurl;
$url = parse_url($statusurl);
$header = "";
if ($request = @fsockopen($url['host'], ((isset($url['port'])) ? $url['port'] : 80), $header, $header, 3))
{
fputs($request, "GET /$what/$id HTTP/1.0\r\nHost: ".$url['host']."\r\n\r\n");
$header = fread($request, 200);
fclose($request);
if (strstr($header, "online"))
{
return true;
}
if (strstr($header, "unknown"))
{
return 2;
}
else
{
return false;
}
}
return 2;
}
Then find: $function = "Image".$type;
Insert above: $i = 0;
$n = array_rand($messengers, count($messengers));
$left = ($width/2) - (48*count($messengers)/2) - 14;
foreach ($n as $key)
{
$status = online($messengers[$key], $key);
$img = ($status) ? (($status === true) ? "online" : "unknown") : "offline";
$st = imagecreatefromgif($statusimages.$key.$img.".gif");
imagecopymerge($im, $st, ($left+$i), ($height-25), 0, 0, 48, 25, 100);
$i += 48;
}
edit the settings.