setExFiles([]); } protected function preLooper() { parent::preLooper(); DFAFilter::instance(); area_helper::instance(); } public function handle_request($file) { session::instance()->start(); try { fcgi_header("Content-Type: text/html; charset=UTF-8"); if(file_exists($file)) { if ($this->isIndex($file)) { Base::mobile_control(); } elseif ($this->is_exclude($file)) { include $file; } else { echo "You cannot access this file."; } } else { Log::record("Can Not call file: {$file}",Log::DEBUG); echo "no such file."; } } catch (UnloginException $ex) { joutput_error(errcode::ErrUnLogin,errcode::msg(errcode::ErrUnLogin)); } catch (Exception $ex) { joutput_error($ex->getCode(),$ex->getMessage()); Log::record("run_looper exception catch code={$ex->getCode()} msg={$ex->getMessage()} trace={$ex->getTraceAsString()}",Log::ERR); } session::instance()->end(); } }