View file adzfun.php

File size: 1.38Kb
<?php
//Do not change this code without prior permission from AdzFun.com!
////
function adzfun_ads(){
$pubkey="uoct6vzrkn";
## Wana Adult Ads? Set NO to Filter Adult Ads! ##
$adult="yes";
## Wana Display Banner Ads? Set YES to Display Banners! ##
$banner="yes";
$host = $_SERVER["HTTP_HOST"];
$pge = $_SERVER["REQUEST_URI"];
$ip=rawurlencode($_SERVER['REMOTE_ADDR']);
$ua=rawurlencode($_SERVER['HTTP_USER_AGENT']);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://adzfun.com/getadv.php?id=$pubkey&ip=$ip&re=$host&pg=$pge&ua=$ua&banner=$banner&adult=$adult");
curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie );
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt( $ch, CURLOPT_ENCODING, "" );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout );
curl_setopt( $ch, CURLOPT_MAXREDIRS, 0 );
$content = curl_exec($ch);
echo $content;
curl_close ($ch);
}
// Please do not call this function more than 2 times
// or the impressions and clicks will be counted as non-genuine
// Use this function to Display Ads in anywhere of Your page!
?>