aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-01-27 22:29:57 +0000
committerErmal <eri@pfsense.org>2012-01-27 22:29:57 +0000
commit19aac97a631536763bcfdd706f8067df0d9e730e (patch)
tree7b9b19ecfa2a9bde40c2866cba7a5d2777a1dafc
parent6653302f16bd3ffe580fd9a098b8bdc1eecdb7c5 (diff)
downloadpfsense-packages-19aac97a631536763bcfdd706f8067df0d9e730e.tar.gz
pfsense-packages-19aac97a631536763bcfdd706f8067df0d9e730e.tar.bz2
pfsense-packages-19aac97a631536763bcfdd706f8067df0d9e730e.zip
Add the globals.inc to make this work
-rw-r--r--config/widget-snort/snort_alerts.inc7
-rw-r--r--config/widget-snort/snort_alerts_helper.php4
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";