1
Discussion & Troubleshooting / Re: Fatal error: Nesting level too deep - recursive dependency?
« on: August 08, 2006, 06:50:14 AM »
I think this is a hosting issue possibly, because I'm seeing it on a couple of other sites of mine

You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
u can try this:
replaceCode: [Select]// --------- End Config ----------
with:Code: [Select]$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:Code: [Select]$function = "Image".$type;
Insert above:Code: [Select]$i = 0;
edit the settings.
$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;
}