Source
23
23
require_once dirname(__FILE__).'/include/maps.inc.php';
24
24
require_once dirname(__FILE__).'/include/forms.inc.php';
25
25
26
26
$page['title'] = _('Configuration of network maps');
27
27
$page['file'] = 'sysmap.php';
28
28
$page['scripts'] = ['class.svg.canvas.js', 'class.svg.map.js', 'class.cmap.js',
29
29
'colorpicker.js', 'class.tagfilteritem.js'
30
30
];
31
31
$page['type'] = detect_page_type();
32
32
33
-
require_once dirname(__FILE__).'/include/page_header.php';
34
-
35
33
if (!CWebUser::checkAccess(CRoleHelper::ACTIONS_EDIT_MAPS)) {
36
34
access_deny(ACCESS_DENY_PAGE);
37
35
}
38
36
37
+
require_once dirname(__FILE__).'/include/page_header.php';
38
+
39
39
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
40
40
$fields = [
41
41
'sysmapid' => [T_ZBX_INT, O_MAND, P_SYS, DB_ID, null],
42
42
'selementid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null],
43
43
'sysmap' => [T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({action}) && {action} == "update"'],
44
44
// actions
45
45
'action' => [T_ZBX_STR, O_OPT, P_ACT, IN('"update","expand"'), null],
46
46
'delete' => [T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null],
47
47
'cancel' => [T_ZBX_STR, O_OPT, P_SYS, null, null],
48
48
'form' => [T_ZBX_STR, O_OPT, P_SYS, null, null],