这是一个框架,运行入口文件时,最后base::run();
public static function run(){//base.php文件中的一个方法
self::cp();
self::init();
self::control();
}
接着俺对这三个方法展开了追踪,先说第一个
private static function cp(){ if (self::cpurl == '') return; if ($_server['http_host'] == 'localhost') return; if ($_server['http_host'] == '127.0.0.1') return; if (strpos(self::cpurl,'||') !== false){ $a = explode('||',self::cpurl); foreach ($a as $v) { $d = strtolower(stristr($_server['http_host'],$v)); if ($d == strtolower($v)){ return; }else{ continue; } } header('location: http://www.haoid.cn');exit(); }else{ $d = strtolower(stristr($_server['http_host'],self::cpurl)); if ($d != strtolower(self::cpurl)){ header('location: http://www.haoid.cn');exit(); } } }
你这断章取义的怎么能行?!
呵呵,我算看出来了,论坛里的这些天天抢分的人也就是能回答那些基础点的东西了,这个论坛废了!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号