protected function add_L_SSL_FEATURE($id) { $attrs = array($this->_attrs['ssl_renegProtection'], $this->_attrs['sslSessionCache'], $this->_attrs['sslSessionTickets'], DTblDefBase::NewCheckBoxAttr('enableSpdy', DMsg::ALbl('l_enablespdy'), array('1' => 'SPDY/2', '2' => 'SPDY/3', '4' => 'HTTP/2', '0' => DMsg::ALbl('o_none')))); $this->_tblDef[$id] = DTbl::NewRegular($id, DMsg::ALbl('l_securityandfeatures'), $attrs); }
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'); }