diff options
author | Ermal <eri@pfsense.org> | 2012-07-10 20:17:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-10 20:17:57 +0000 |
commit | b201fba1d783150665f21a7b452496e6047033cb (patch) | |
tree | d909071856240dda3b4888070c28a68adacd580c /config | |
parent | 38aba1ae737a50f4d5814bf5df69458d777a760d (diff) | |
download | pfsense-packages-b201fba1d783150665f21a7b452496e6047033cb.tar.gz pfsense-packages-b201fba1d783150665f21a7b452496e6047033cb.tar.bz2 pfsense-packages-b201fba1d783150665f21a7b452496e6047033cb.zip |
Correct clearing the snort alerts with Clear button. Also save the interface selected and clicking alerts tab.
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort_alerts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index 806d4738..5e14f923 100644 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -79,7 +79,7 @@ if ($_POST['save']) exit; } -if ($_GET['action'] == "clear" || $_POST['clear']) { +if ($_GET['action'] == "clear" || $_POST['delete']) { if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) { conf_mount_rw(); snort_post_delete_logs($snort_uuid); @@ -266,7 +266,7 @@ if ($pconfig['arefresh'] == 'on') $tab_array[0] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php"); $tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php"); $tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php"); - $tab_array[3] = array(gettext("Alerts"), true, "/snort/snort_alerts.php"); + $tab_array[3] = array(gettext("Alerts"), true, "/snort/snort_alerts.php?instance={$instanceid}"); $tab_array[4] = array(gettext("Blocked"), false, "/snort/snort_blocked.php"); $tab_array[5] = array(gettext("Whitelists"), false, "/snort/snort_interfaces_whitelist.php"); $tab_array[6] = array(gettext("Suppress"), false, "/snort/snort_interfaces_suppress.php"); |