diff options
author | BBcan177 <bbcan177@gmail.com> | 2015-02-01 16:29:23 -0500 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2015-02-01 16:29:23 -0500 |
commit | a52ff8074498b7187f21b042505d1ef552d26bda (patch) | |
tree | eb6db7d2af765350fcb10ca37ed554ce66c8f2a7 /config/pfblockerng | |
parent | 1e2ca120d98ffebaeeb00e64c2101bb82b977d98 (diff) | |
download | pfsense-packages-a52ff8074498b7187f21b042505d1ef552d26bda.tar.gz pfsense-packages-a52ff8074498b7187f21b042505d1ef552d26bda.tar.bz2 pfsense-packages-a52ff8074498b7187f21b042505d1ef552d26bda.zip |
pfBlockerNG - Mods to Update file for MaxMind Anon. Proxy/Satellite
1) Mods for MaxMind Anonymous Proxy and Satellite Providers.
2) Add str_replace array to remove ") which will break the Auto Log
Viewer from functioning.
Diffstat (limited to 'config/pfblockerng')
-rw-r--r-- | config/pfblockerng/pfblockerng_update.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/pfblockerng/pfblockerng_update.php b/config/pfblockerng/pfblockerng_update.php index dc0fab85..99480900 100644 --- a/config/pfblockerng/pfblockerng_update.php +++ b/config/pfblockerng/pfblockerng_update.php @@ -128,7 +128,7 @@ function pfb_cron_update($type) { while (!feof($f)) { $pfb_buffer = fread($f, 2048); - $pfb_output .= str_replace( "\r", "", $pfb_buffer); + $pfb_output .= str_replace( array ("\r", "\")"), "", $pfb_buffer); // Refresh on new lines only. This allows Scrolling. if ($lastpos != $lastpos_old) @@ -184,6 +184,7 @@ include_once("head.inc"); $tab_array[] = array(gettext("N.A."), false, "/pkg_edit.php?xml=/pfblockerng/pfblockerng_NorthAmerica.xml&id=0"); $tab_array[] = array(gettext("Oceania"), false, "/pkg_edit.php?xml=/pfblockerng/pfblockerng_Oceania.xml&id=0"); $tab_array[] = array(gettext("S.A."), false, "/pkg_edit.php?xml=/pfblockerng/pfblockerng_SouthAmerica.xml&id=0"); + $tab_array[] = array(gettext("P.S."), false, "/pkg_edit.php?xml=/pfblockerng/pfblockerng_ProxyandSatellite.xml&id=0"); $tab_array[] = array(gettext("Logs"), false, "/pfblockerng/pfblockerng_log.php"); $tab_array[] = array(gettext("Sync"), false, "/pkg_edit.php?xml=/pfblockerng/pfblockerng_sync.xml&id=0"); display_top_tabs($tab_array, true); @@ -378,7 +379,7 @@ if (isset($_POST['pfbview'])) { while (!feof($f)) { $pfb_buffer = fread($f, 4096); - $pfb_output .= str_replace( "\r", "", $pfb_buffer); + $pfb_output .= str_replace( array ("\r", "\")"), "", $pfb_buffer); // Refresh on new lines only. This allows scrolling. if ($lastpos != $lastpos_old) { |