File size: 1.02Kb
<?
if(!function_exists("show_adsalvo_ads")){
// Do not change this code without prior permission from adsalvo.com
function show_adsalvo_ads(){
$st=microtime(true);
$uid=22385; // your adSalvo account id
$mode=3; // 1 for text only; 2 for image only; 3 for mix (recommended)
$params = array();
$ignore = array('HTTP_PRAGMA' => true);
foreach ($_SERVER as $k => $v) {
if ((substr($k, 0, 4) == 'HTTP'||$k == 'REMOTE_ADDR' || $k == 'REQUEST_URI') && empty($ignore[$k]) && isset($v)) {
$params[] = urlencode($k) . '=' . urlencode($v);
}
}
$getparams = implode('&', $params);
$adsalvo_adurl="http://adsalvo.com/xvtrqd/srv.php?uid=$uid&mode=$mode&$getparams";
$adsalvo_adcontents = @file_get_contents($adsalvo_adurl);
$adsalvo_adcontents=str_replace("<!--RT-->", (microtime(true)-$st), $adsalvo_adcontents);
return $adsalvo_adcontents;
}
}
?><?
// Use this function to print Ads
// Do not call this function more than 2 times
// or the impressions and clicks will be counted as non-genuine
echo show_adsalvo_ads();
?>