setExFiles($exfiles); } 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)) { if(!isset($_GET['act'])) { $_GET['act'] = 'index'; } if(!isset($_GET['op'])) { $_GET['op'] = 'index'; } if(!isset($_POST['act'])) { $_POST['act'] = 'index'; } if(!isset($_POST['op'])) { $_POST['op'] = 'index'; } Base::mobile_control(); } elseif ($this->is_exclude($file)) { include $file; } else { echo "You cannot access this file."; } } else { Log::record("handle_request $file is not exist.",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(); } }