From 7ac5dc3d8c7a5d4807f1004ca08e3bdd433af7c5 Mon Sep 17 00:00:00 2001 From: BBcan177 Date: Sat, 23 May 2015 16:45:07 -0400 Subject: pfBlockerNG v1.09 Code Style Changes --- config/pfblockerng/pfblockerng_alerts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/pfblockerng/pfblockerng_alerts.php') diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php index 25971ab5..bfb15c07 100644 --- a/config/pfblockerng/pfblockerng_alerts.php +++ b/config/pfblockerng/pfblockerng_alerts.php @@ -216,7 +216,7 @@ exec("/sbin/pfctl -vv -sr | grep 'pfB_'", $results); if (!empty($results)) { foreach ($results as $result) { - # Find Rule Descriptions + // Find Rule Descriptions $descr = ""; if (preg_match("/USER_RULE: (\w+)/",$result,$desc)) { $descr = $desc[1]; @@ -225,7 +225,7 @@ if (!empty($results)) { preg_match ("/@(\d+)\(/",$result, $rule); $id = $rule[1]; - # Create array of Rule Description and pfctl Rule Number + // Create array of Rule Description and pfctl Rule Number $rule_list['id'][] = $id; $rule_list[$id]['name'] = $descr; } @@ -905,7 +905,7 @@ if (!empty($fields_array[$type]) && !empty($rule_list)) { $country = substr(exec("$pathgeoip6 -f $pathgeoipdat6 $host"),26,2); } - # IP Query Grep Exclusion + // IP Query Grep Exclusion $pfb_ex1 = "grep -v 'pfB\_\|\_v6\.txt'"; $pfb_ex2 = "grep -v 'pfB\_\|/32\|/24\|\_v6\.txt' | grep -m1 '/'"; @@ -967,7 +967,7 @@ if (!empty($fields_array[$type]) && !empty($rule_list)) { $pfb_query = "No Match"; } - # Split List Column into Two lines. + // Split List Column into Two lines. unset ($pfb_match); if ($pfb_query == "No Match") { $pfb_match[1] = "{$pfb_query}"; -- cgit v1.2.3