diff options
Diffstat (limited to 'frontends/php/adm.triggerseverities.php')
-rw-r--r-- | frontends/php/adm.triggerseverities.php | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/frontends/php/adm.triggerseverities.php b/frontends/php/adm.triggerseverities.php index 472bc8ca746..4f8774fdd88 100644 --- a/frontends/php/adm.triggerseverities.php +++ b/frontends/php/adm.triggerseverities.php @@ -51,18 +51,18 @@ check_fields($fields); */ if (isset($_REQUEST['save'])) { $configs = array( - 'severity_name_0' => get_request('severity_name_0', _('Not classified')), - 'severity_color_0' => get_request('severity_color_0', ''), - 'severity_name_1' => get_request('severity_name_1', _('Information')), - 'severity_color_1' => get_request('severity_color_1', ''), - 'severity_name_2' => get_request('severity_name_2', _('Warning')), - 'severity_color_2' => get_request('severity_color_2', ''), - 'severity_name_3' => get_request('severity_name_3', _('Average')), - 'severity_color_3' => get_request('severity_color_3', ''), - 'severity_name_4' => get_request('severity_name_4', _('High')), - 'severity_color_4' => get_request('severity_color_4', ''), - 'severity_name_5' => get_request('severity_name_5', _('Disaster')), - 'severity_color_5' => get_request('severity_color_5', '') + 'severity_name_0' => getRequest('severity_name_0', _('Not classified')), + 'severity_color_0' => getRequest('severity_color_0', ''), + 'severity_name_1' => getRequest('severity_name_1', _('Information')), + 'severity_color_1' => getRequest('severity_color_1', ''), + 'severity_name_2' => getRequest('severity_name_2', _('Warning')), + 'severity_color_2' => getRequest('severity_color_2', ''), + 'severity_name_3' => getRequest('severity_name_3', _('Average')), + 'severity_color_3' => getRequest('severity_color_3', ''), + 'severity_name_4' => getRequest('severity_name_4', _('High')), + 'severity_color_4' => getRequest('severity_color_4', ''), + 'severity_name_5' => getRequest('severity_name_5', _('Disaster')), + 'severity_color_5' => getRequest('severity_color_5', '') ); DBstart(); @@ -96,21 +96,21 @@ $cnf_wdgt = new CWidget(); $cnf_wdgt->addPageHeader(_('CONFIGURATION OF TRIGGER SEVERITIES'), $form); $data = array(); -$data['form_refresh'] = get_request('form_refresh', 0); +$data['form_refresh'] = getRequest('form_refresh', 0); if ($data['form_refresh']) { - $data['config']['severity_name_0'] = get_request('severity_name_0'); - $data['config']['severity_color_0'] = get_request('severity_color_0', ''); - $data['config']['severity_name_1'] = get_request('severity_name_1'); - $data['config']['severity_color_1'] = get_request('severity_color_1', ''); - $data['config']['severity_name_2'] = get_request('severity_name_2'); - $data['config']['severity_color_2'] = get_request('severity_color_2', ''); - $data['config']['severity_name_3'] = get_request('severity_name_3'); - $data['config']['severity_color_3'] = get_request('severity_color_3', ''); - $data['config']['severity_name_4'] = get_request('severity_name_4'); - $data['config']['severity_color_4'] = get_request('severity_color_4', ''); - $data['config']['severity_name_5'] = get_request('severity_name_5'); - $data['config']['severity_color_5'] = get_request('severity_color_5', ''); + $data['config']['severity_name_0'] = getRequest('severity_name_0'); + $data['config']['severity_color_0'] = getRequest('severity_color_0', ''); + $data['config']['severity_name_1'] = getRequest('severity_name_1'); + $data['config']['severity_color_1'] = getRequest('severity_color_1', ''); + $data['config']['severity_name_2'] = getRequest('severity_name_2'); + $data['config']['severity_color_2'] = getRequest('severity_color_2', ''); + $data['config']['severity_name_3'] = getRequest('severity_name_3'); + $data['config']['severity_color_3'] = getRequest('severity_color_3', ''); + $data['config']['severity_name_4'] = getRequest('severity_name_4'); + $data['config']['severity_color_4'] = getRequest('severity_color_4', ''); + $data['config']['severity_name_5'] = getRequest('severity_name_5'); + $data['config']['severity_color_5'] = getRequest('severity_color_5', ''); } else { $data['config'] = select_config(false); |