',$html); /*$t=(int)date('H'); if(23>$t&&$t>7) { if(!strpos($path,'/FCKeditor/')) { $html=str_replace('','',$html); } }*/ //根据时间段控制网站打开关闭 /*$client_ip = $_SERVER['REMOTE_ADDR']; if($client_ip != '180.169.31.70' && $client_ip != '125.215.44.193'){ if(!strpos($path,'/FCKeditor/')) { $html=str_replace('','',$html); } }*/ //根据IP控制网站打开关闭 /*$client_ip = $_SERVER['REMOTE_ADDR']; if($client_ip != '125.215.44.195' && $client_ip != '125.215.44.193' && $client_ip != '125.215.44.229'){ $t=(int)date('H'); if(23>$t&&$t>7) { if(!strpos($path,'/FCKeditor/')) { $html=str_replace('','',$html); } } }*/ if(!strpos($path,'/FCKeditor/')) { $ua = strtolower($_SERVER['HTTP_USER_AGENT']); $uachar = "/(iphone|android|phone|mobile|wap|netfront|java|opera mobi|opera mini|ucweb|windows ce|symbian|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc |motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource |alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220)/i"; if($ua != '' && preg_match($uachar, $ua)) { $path=str_replace("./","/",$path); $Loaction="http://m.nnhsj.com". $path; //echo 'window.location.href='.$Loaction.';'; $Loaction=str_replace("index.html","",$Loaction); header("location: ".$Loaction.""); } $html=str_replace(' ',' ',$html); } echo $html; ?>