setExFiles($exfiles); } static private $stInstance = NULL; static public function instance() { if(self::$stInstance == NULL) { self::$stInstance = new LZRAccServer('racc'); } return self::$stInstance; } function handle_req($file) { try { Log::record("file is {$file}",Log::DEBUG); if(file_exists($file)) { if($this->is_exclude($file)) { Log::record("Call {$file}",Log::DEBUG); include $file; } else { Base::mobile_control(); } } else { fcgi_header("Content-Type: text/html; charset=UTF-8"); echo "no such file."; } } catch (LzException $ex) { echo ($ex->getMessage()); } catch (Exception $ex) { $msg = "{$ex->getCode()}|{$ex->getMessage()}|"; echo $msg; Log::record("run_looper exception catch code={$ex->getCode()} msg={$ex->getMessage()} trace={$ex->getTraceAsString()}",Log::ERR); } } }