コード例 #1
0
 protected function load_server_config($load_admin = false)
 {
     $this->_serv = new CData(DInfo::CT_SERV, $this->getConfFilePath(DInfo::CT_SERV));
     $this->_disp->Set(DInfo::FLD_ServData, $this->_serv);
     if (($conferr = $this->_serv->GetConfErr()) != NULL) {
         $this->_disp->Set(DInfo::FLD_TopMsg, $conferr);
     }
     $has_set_timout = CAuthorizer::HasSetTimeout();
     if (!$has_set_timout || $load_admin) {
         $this->_admin = new CData(DInfo::CT_ADMIN, $this->getConfFilePath(DInfo::CT_ADMIN));
         if (($conferr = $this->_admin->GetConfErr()) != NULL) {
             $this->_disp->Set(DInfo::FLD_TopMsg, $conferr);
         }
         if (!$has_set_timout) {
             $timeout = $this->_admin->GetChildVal('sessionTimeout');
             if ($timeout == NULL) {
                 $timeout = 60;
             }
             // default
             CAuthorizer::SetTimeout($timeout);
         }
     }
 }