Location: PHPKode > projects > Random Ad Display > HRA_1_3/admin/code.php
include "authheader.php";
if($block != "true")
include "heade.php";
Copy the below code in to the pages where you want HRA(HIOX Random Ad Display)<br><br>
	<table width=400 height=250 align=center class=maintext>
	<form name="select_all">
	<textarea style="color: green; font-size: 13px;" name="text_area" rows="6" cols="80" border=0px>
        	$url = $_SERVER['SCRIPT_FILENAME'];
                $pp = strrpos($url,"/");
                $url = substr($url,0,$pp);
                $ura = $_SERVER['SCRIPT_NAME'];
                $host = $_SERVER['SERVER_NAME'];
                $ser = "http://$host";
                $ura= $ser.$ura; 
                $pp1 = strrpos($ura,"/");
                $ura = substr($ura,0,$pp1);
		$url1=explode('/', $url);
		$url1=implode('/', $url1);
		$ura1=explode('/', $ura);
		$ura1=implode('/', $ura1);
                echo "&lt?php 
	    $"."hm = \"$url1\"; 
	    $"."hm2 = \"$ura1\"; 
	    include \"$"."hm/hioxRandomAd.php\";
	<input type="button" value="Select All" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">
include "footer.php";
Return current item: Random Ad Display