Source
21
21
22
22
require_once dirname(__FILE__).'/include/config.inc.php';
23
23
require_once dirname(__FILE__).'/include/hosts.inc.php';
24
24
require_once dirname(__FILE__).'/include/forms.inc.php';
25
25
26
26
$page['title'] = _('Host inventory');
27
27
$page['file'] = 'hostinventories.php';
28
28
29
29
$hostId = getRequest('hostid', 0);
30
30
31
-
if ($hostId > 0) {
32
-
$page['web_layout_mode'] = CViewHelper::loadLayoutMode();
33
-
}
34
-
35
31
require_once dirname(__FILE__).'/include/page_header.php';
36
32
37
33
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
38
34
$fields = [
39
35
'hostid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null],
40
36
// filter
41
37
'filter_set' => [T_ZBX_STR, O_OPT, P_SYS, null, null],
42
38
'filter_rst' => [T_ZBX_STR, O_OPT, P_SYS, null, null],
43
39
'filter_field' => [T_ZBX_STR, O_OPT, null, null, null],
44
40
'filter_field_value' => [T_ZBX_STR, O_OPT, null, null, null],