时间:2021-07-01 10:21:17 帮助过:8人阅读
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(); } } }
你这断章取义的怎么能行?!
呵呵,我算看出来了,论坛里的这些天天抢分的人也就是能回答那些基础点的东西了,这个论坛废了!