From f6caa0b6863df8111d34273f2d4b0d3b9d86f9e3 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Tue, 25 Mar 2014 20:13:11 -0400 Subject: Need to declare $g and $config vars as globals. --- config/suricata/suricata_check_cron_misc.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/suricata/suricata_check_cron_misc.inc b/config/suricata/suricata_check_cron_misc.inc index 25e8bb8a..b9ba3fb7 100644 --- a/config/suricata/suricata_check_cron_misc.inc +++ b/config/suricata/suricata_check_cron_misc.inc @@ -30,6 +30,8 @@ require_once("/usr/local/pkg/suricata/suricata.inc"); +global $g, $config; + function suricata_check_dir_size_limit($suricataloglimitsize) { /******************************************************** @@ -41,6 +43,8 @@ function suricata_check_dir_size_limit($suricataloglimitsize) { * On Entry: $surictaaloglimitsize = dir size limit * * in megabytes * ********************************************************/ + + global $config; // Convert Log Limit Size setting from MB to KB $suricataloglimitsizeKB = round($suricataloglimitsize * 1024); -- cgit v1.2.3