Source
_s('a string of space-separated hostnames; adding %1$s to the list allows the page to be displayed in a frame on the same origin as the page itself',
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* @var CView $this
* @var array $data
*/
$this->includeJsFile('administration.miscconfig.edit.js.php');
$html_page = (new CHtmlPage())
->setTitle(_('Other configuration parameters'))
->setTitleSubmenu(getAdministrationGeneralSubmenu())
->setDocUrl(CDocHelper::getUrl(CDocHelper::ADMINISTRATION_MISCCONFIG_EDIT));
$from_list = (new CFormList())
->addRow(new CLabel(_('Frontend URL'), 'url'),
(new CTextBox('url', $data['url'], false, DB::getFieldLength('config', 'url')))
->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH)
->setAttribute('placeholder', _('Example: https://localhost/zabbix/ui/'))
->setAttribute('autofocus', 'autofocus')
)
->addRow((new CLabel(_('Group for discovered hosts'), 'discovery_groupid'))->setAsteriskMark(),
(new CMultiSelect([
'name' => 'discovery_groupid',
'object_name' => 'hostGroup',
'data' => $data['discovery_group_data'],
'multiple' => false,
'popup' => [
'parameters' => [
'srctbl' => 'host_groups',
'srcfld1' => 'name',
'dstfrm' => 'otherForm',
'dstfld1' => 'discovery_groupid',
'normal_only' => '1'
]
]
]))->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH)
)
->addRow(_('Default host inventory mode'),
(new CRadioButtonList('default_inventory_mode', (int) $data['default_inventory_mode']))
->addValue(_('Disabled'), HOST_INVENTORY_DISABLED)
->addValue(_('Manual'), HOST_INVENTORY_MANUAL)
->addValue(_('Automatic'), HOST_INVENTORY_AUTOMATIC)
->setModern(true)
)
->addRow(_('User group for database down message'),
(new CMultiSelect([
'name' => 'alert_usrgrpid',
'object_name' => 'usersGroups',