protected function add_ADM_PHP($id)
 {
     $attrs = array(DTblDefBase::NewBoolAttr('enableCoreDump', DMsg::ALbl('l_enablecoredump'), false), DTblDefBase::NewIntAttr('sessionTimeout', DMsg::ALbl('l_sessiontimeout'), true, 60, NULL, 'consoleSessionTimeout'));
     $this->_tblDef[$id] = DTbl::NewRegular($id, DMsg::UIStr('tab_g'), $attrs);
 }
Example #2
0
 protected function add_L_GENERAL($id)
 {
     $ip = DTblDefBase::NewSelAttr('ip', DMsg::ALbl('l_ip'), $this->_options['ip'], false, 'listenerIP');
     $ip->SetFlag(DAttr::BM_NOFILE);
     $port = DTblDefBase::NewIntAttr('port', DMsg::ALbl('l_port'), false, 0, 65535, 'listenerPort');
     $port->SetFlag(DAttr::BM_NOFILE);
     $processes = isset($_SERVER['LSWS_CHILDREN']) ? $_SERVER['LSWS_CHILDREN'] : 1;
     for ($i = 1; $i <= $processes; ++$i) {
         $bindoptions[1 << $i - 1] = "Process {$i}";
     }
     $attrs = array(DTblDefBase::NewTextAttr('name', DMsg::ALbl('l_listenername'), 'name', false, 'listenerName'), DTblDefBase::NewCustFlagAttr('address', DMsg::ALbl('l_address'), DAttr::BM_HIDE | DAttr::BM_NOEDIT, false), $ip, $port, DTblDefBase::NewCheckBoxAttr('binding', DMsg::ALbl('l_binding'), $bindoptions, true, 'listenerBinding'), DTblDefBase::NewBoolAttr('secure', DMsg::ALbl('l_secure'), false, 'listenerSecure'), $this->_attrs['note']);
     $this->_tblDef[$id] = DTbl::NewIndexed($id, DMsg::ALbl('l_addresssettings'), $attrs, 'name');
 }