Location: PHPKode > projects > Free PHP Ad Rotator Banner > HBR_1_3/admin/code.php
include "authheader.php";
if($block != "true")
include "heade.php";
<tr><td align=center>
Copy the below code in to the pages where you want HBR  (HIOX Banner / Ad Rotator)<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/hioxBannerRotate.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: Free PHP Ad Rotator Banner