diff options
-rw-r--r-- | config/widget-snort/snort_alerts.inc | 7 | ||||
-rw-r--r-- | config/widget-snort/snort_alerts_helper.php | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/config/widget-snort/snort_alerts.inc b/config/widget-snort/snort_alerts.inc index dad91a35..74adb4bb 100644 --- a/config/widget-snort/snort_alerts.inc +++ b/config/widget-snort/snort_alerts.inc @@ -1,15 +1,16 @@ <?php +require_once("globals.inc"); require_once("includes/snort_alerts.inc.php"); $snort_alerts_title = "Snort Alerts"; $snort_alerts_title_link = "snort/snort_alerts.php"; $snort_alerts_logfile = "{$g['varlog_path']}/snort/alert"; -$nentries = 5; +$nentries = 10; $snort_alerts = get_snort_alerts($snort_alerts_logfile, $nentries); /* AJAX related routines */ -handle_snort_ajax($snort_alerts_logfile, $nentries = 5); +handle_snort_ajax($snort_alerts_logfile, $nentries = 10); -?>
\ No newline at end of file +?> diff --git a/config/widget-snort/snort_alerts_helper.php b/config/widget-snort/snort_alerts_helper.php index 0e7b4fad..b49af1d8 100644 --- a/config/widget-snort/snort_alerts_helper.php +++ b/config/widget-snort/snort_alerts_helper.php @@ -1,6 +1,6 @@ <?php -require("guiconfig.inc"); - +require_once("globals.inc"); +require_once("guiconfig.inc"); require_once("includes/snort_alerts.inc.php"); $snort_alerts_logfile = "{$g['varlog_path']}/snort/alert"; |