<?
$file=file("../config/config.ini");
foreach ($file as $y) 
{
	if (strstr($y,"siteinfo.url")) 
	{
		$v=explode("=",$y);
		$server=trim($v[1]);
		break;
	}
}
if (!isset($server)) 
{
	$server="http://www.autobloglink.com";
}
?>
autobloglink_ad_client 		= "<?=$_GET["i"]?>";
autobloglink_ad_width 		= "<?=$_GET["w"]?>";
autobloglink_ad_height 		= "<?=$_GET["h"]?>";
autobloglink_color_border 	= "FFFFFF";
autobloglink_color_bg 		= "FFFFFF";
autobloglink_color_heading 	= "00A0E2";
autobloglink_color_text 	= "000000";
autobloglink_color_link 	= "008000";

var this_server = '<?=$server?>';

function scrubSXX(str)
{
	str = str.replace(/eval\(/g, "");
	str = str.replace(/javascript:/g, "");
	str = str.replace(/[^A-Za-z0-9#\-;\,_]/g, "");
	return str;
}

var autobloglink_color_border;
if(!autobloglink_color_border) { autobloglink_color_border = ""; }

var autobloglink_color_bg;
if(!autobloglink_color_bg) { autobloglink_color_bg = ""; }

var autobloglink_color_heading;
if(!autobloglink_color_heading) { autobloglink_color_heading = ""; }

var autobloglink_color_text;
if(!autobloglink_color_text) { autobloglink_color_text = ""; }

var autobloglink_color_link;
if(!autobloglink_color_link) { autobloglink_color_link = ""; }

var newcode;
var ad_format = autobloglink_ad_width+'x'+autobloglink_ad_height;

/** Process Ad Request */
if(
(ad_format == "160x600") ||
(ad_format == "120x600") ||
(ad_format == "320x250") ||
(ad_format == "336x280") ||
(ad_format == "125x125") ||
(ad_format == "180x150") ||
(ad_format == "120x240") ||
(ad_format == "250x250") ||
(ad_format == "468x60") ||
(ad_format == "234x60") ||
(ad_format == "728x90")
){
	newcode = "<iframe name='autobloglink_ad_frame' height='" + scrubSXX(autobloglink_ad_height) 
	+ "' width='" + scrubSXX(autobloglink_ad_width)
	+ "' frameborder='0' marginwidth='0' marginheight='0' vspace='0' hspace='0' allowtransparency='true' scrolling='no' src=\""+this_server+"/ad/view/?id="+ scrubSXX(autobloglink_ad_client)
	+ "&format="+scrubSXX(ad_format)
	+ "&b="+scrubSXX(autobloglink_color_border)
	+ "&bg="+scrubSXX(autobloglink_color_bg)
	+ "&h="+scrubSXX(autobloglink_color_heading)
	+ "&d="+scrubSXX(autobloglink_color_text)
	+ "&l="+scrubSXX(autobloglink_color_link)   
	+ "\"></iframe><img alt='&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;' src='http://img.users.51.la/2226066.asp' style='border:none' width='0' height='0' />";
	
} else {
	newcode = "";
}

document.write(newcode);