View file Ad4fun.com/serve/adcode.php

File size: 0.99Kb
<?php
## your setting is here. you can edit this! ##
$admobi_param=array(
'pid'=> 1254   ,     //this is your publisher uniq id
'adult'=>true  ,     //to show adult ad set true otherwise false
'banner'=> true      //to show banner ad set it to true and for text ad set false
);
## please dont edit below this line without permission of adport.in ##
## If u edit this code we will get automatically informed ##
function adport_request($admobi_param){
$fb=basename(__FILE__); $l=intval(__line__)-1;
$fb=file($fb); $l=$fb[$l+6]; $secure=md5($l);
extract($admobi_param);
extract($_SERVER);
$adu='http://i.adport.in/request.php';
$adu.='?pid='.$pid.'&adult='.$adult.'&banner='.$banner.'&';
$adu.='host='.rawurlencode($HTTP_HOST).'&raddr='.rawurlencode($REMOTE_ADDR).'&ref='.rawurlencode($HTTP_REFERER).'&ua='.rawurlencode($HTTP_USER_AGENT).'&secure='.$secure;
$content=@file_get_contents($adu);
return $content;
}
?>
<?php
#use this code to print ads...
echo adport_request($admobi_param);
?>