View file Autoindex ffmpeg/ads/ad5.php

File size: 1.04Kb
<?
  $mk_user_agent = urlencode(getenv("HTTP_USER_AGENT"));
  $mk_remote_add = urlencode($_SERVER['REMOTE_ADDR']);
// Please don't change the value of parameter "cpm" without the explicit permission of mKhoj.
$url = "http://w.mkhoj.com/showad.asm?cpm=0&siteId=4028cb9021173977012165bd962e025a&handset=$mk_user_agent&carrier=$mk_remote_add";$url=str_replace("&","&",$url);
  @$mk_serve = fopen($url,'r');
   $contents="";
  if ($mk_serve) {
      while (!feof($mk_serve))
          $contents .= fread($mk_serve,1024);
      fclose($mk_serve);
  }

$contents=str_replace("&s=","&s=",$contents);
$contents=str_replace("&h=","&h=",$contents);
$contents=str_replace("&i=","&i=",$contents);
$contents=str_replace("&hs=","&hs=",$contents);
$contents=str_replace("&car=","&car=",$contents);
if($contents == null || $contents == "")
{
 // Please enter compatible wap href tags here to show text/url as there are no ads from mKhoj. Ex: <a href="http://www.mkhoj.com"> mKhoj </a>
}
else
{
 echo $contents;
}


?> [56]