diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-19 17:24:00 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-19 17:24:00 -0400 |
commit | 5cb08a96dec952ae6e1fd657e6940ea79af4f8d8 (patch) | |
tree | 3785b260aa6654f8cca35bab5b188f2cd86cb9f8 /config/suricata/suricata_alerts.php | |
parent | 96899344ac872f5e811ea5394192c7c233457124 (diff) | |
download | pfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.tar.gz pfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.tar.bz2 pfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.zip |
Add new Log Mgmt tab link and improve parameter checking.
Diffstat (limited to 'config/suricata/suricata_alerts.php')
-rw-r--r-- | config/suricata/suricata_alerts.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/suricata/suricata_alerts.php b/config/suricata/suricata_alerts.php index 99241b7e..01d4daeb 100644 --- a/config/suricata/suricata_alerts.php +++ b/config/suricata/suricata_alerts.php @@ -121,11 +121,12 @@ function suricata_add_supplist_entry($suppress) { return false; } -if (is_numericint($_POST['instance'])) +if (isset($_POST['instance']) && is_numericint($_POST['instance'])) $instanceid = $_POST['instance']; // This is for the auto-refresh so we can stay on the same interface -if (is_numericint($_GET['instance'])) +elseif (isset($_GET['instance']) && is_numericint($_GET['instance'])) $instanceid = $_GET['instance']; + if (is_null($instanceid)) $instanceid = 0; @@ -355,7 +356,8 @@ if ($savemsg) { $tab_array[] = array(gettext("Update Rules"), false, "/suricata/suricata_download_updates.php"); $tab_array[] = array(gettext("Alerts"), true, "/suricata/suricata_alerts.php"); $tab_array[] = array(gettext("Suppress"), false, "/suricata/suricata_suppress.php"); - $tab_array[] = array(gettext("Logs Browser"), false, "/suricata/suricata_logs_browser.php"); + $tab_array[] = array(gettext("Logs Browser"), false, "/suricata/suricata_logs_browser.php?instance={$instanceid}"); + $tab_array[] = array(gettext("Logs Mgmt"), false, "/suricata/suricata_logs_mgmt.php"); display_top_tabs($tab_array); ?> </td></tr> |