protected function add_SERVICE_SUSPENDVH($id) { $attrs = array(DTblDefBase::NewCustFlagAttr('suspendedVhosts', NULL, DAttr::BM_HIDE | DAttr::BM_NOEDIT, true, 'vhname', NULL, NULL, 1)); $this->_tblDef[$id] = DTbl::NewRegular($id, DMsg::ALbl('l_suspendvh'), $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'); }