From d9bb4967f4234993efab65bf22bcb60e3e621cc4 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Mon, 7 May 2012 15:25:22 -0300 Subject: sarg -fix exclude_string and exclude_codes declaration on sarg.conf --- config/sarg/sarg.inc | 4 ++-- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc index e650efd6..2bcd4115 100644 --- a/config/sarg/sarg.inc +++ b/config/sarg/sarg.inc @@ -209,7 +209,7 @@ function sync_package_sarg() { $date_format=(empty($sarg['report_date_format'])?"u":$sarg['report_date_format']); $report_type=preg_replace('/,/',' ',$sarg['report_type']); $report_charset=(empty($sarg['report_charset'])?"UTF-8":$sarg['report_charset']); - $exclude_string=(empty($sarg['exclude_string'])?"":'exclude_string"'.$sarg['exclude_string']."'"); + $exclude_string=(empty($sarg['exclude_string'])?"":'exclude_string "'.$sarg['exclude_string'].'"'); #limits $max_elapsed=(empty($sarg['max_elapsed'])?"0":$sarg['max_elapsed']); @@ -257,7 +257,7 @@ function sync_package_sarg() { include("/usr/local/pkg/sarg.template"); file_put_contents("/usr/local/etc/sarg/sarg.conf", $sg, LOCK_EX); file_put_contents('/usr/local/etc/sarg/exclude_hosts.conf', sarg_text_area_decode($sarg['exclude_hostlist']),LOCK_EX); - file_put_contents('/usr/local/etc/sarg/exclude_codes.conf', sarg_text_area_decode($sarg['exclude_codelist']),LOCK_EX); + file_put_contents('/usr/local/etc/sarg/exclude_codes', sarg_text_area_decode($sarg['exclude_codelist']),LOCK_EX); file_put_contents('/usr/local/etc/sarg/hostalias',sarg_text_area_decode($sarg['hostalias']),LOCK_EX); file_put_contents('/usr/local/etc/sarg/exclude_users.conf', sarg_text_area_decode($sarguser['exclude_userlist']),LOCK_EX); diff --git a/pkg_config.8.xml b/pkg_config.8.xml index c58d8b0c..83b88a99 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -552,7 +552,7 @@ http://forum.pfsense.org/index.php/topic,47765.0.html http://e-sac.siteseguro.ws/packages/8/All/ sarg-2.3.2.tbz - 2.3.2 pkg v.0.4.2 + 2.3.2 pkg v.0.4.2_1 beta 2.0 sarg.xml diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index ef686936..6cc195b5 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -638,7 +638,7 @@ http://forum.pfsense.org/index.php/topic,47765.0.html http://e-sac.siteseguro.ws/packages/amd64/8/All/ sarg-2.3.2.tbz - 2.3.2 pkg v.0.4.2 + 2.3.2 pkg v.0.4.2_1 beta 2.0 sarg.xml -- cgit v1.2.3