aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2014-12-18 23:09:40 -0500
committerBBcan177 <bbcan177@gmail.com>2014-12-18 23:09:40 -0500
commit802b110fa5ca09328fed5fa391d2f73d023bea6d (patch)
tree0616b366201177b4bf199875891420fabc0c2e8e /config
parent249e28266b5ddd9002a07f4f1a36e613a8bb0da6 (diff)
downloadpfsense-packages-802b110fa5ca09328fed5fa391d2f73d023bea6d.tar.gz
pfsense-packages-802b110fa5ca09328fed5fa391d2f73d023bea6d.tar.bz2
pfsense-packages-802b110fa5ca09328fed5fa391d2f73d023bea6d.zip
Mods to inc and log file
- Remove un-necessary code in de-install function of inc file. - Remove check for logfile extension as other file extensions can now be deleted in log browser.
Diffstat (limited to 'config')
-rw-r--r--config/pfblockerng/pfblockerng.inc11
-rw-r--r--config/pfblockerng/pfblockerng_log.php10
2 files changed, 2 insertions, 19 deletions
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc
index 69baceeb..d59a8f3a 100644
--- a/config/pfblockerng/pfblockerng.inc
+++ b/config/pfblockerng/pfblockerng.inc
@@ -2279,8 +2279,6 @@ function pfblockerng_php_deinstall_command() {
# Set these two variables to Disable pfBlockerNG on De-Install
$pfb['save'] = TRUE;
$pfb['install'] = TRUE;
- pfb_global();
-
sync_package_pfblockerng();
rmdir_recursive("/usr/local/pkg/pfblockerng");
rmdir_recursive("/usr/local/www/pfblockerng");
@@ -2320,15 +2318,6 @@ function pfblockerng_php_deinstall_command() {
unset($config['installedpackages']['pfblockerngsouthamerica']);
if (is_array($config['installedpackages']['pfblockerngtopspammers']))
unset($config['installedpackages']['pfblockerngtopspammers']);
-
- # Remove any pfBlockerNG Aliastable Files
- $pfb_files = glob("{$pfb['aliasdir']}/pfB_*.txt");
- if (!empty($pfb_files)) {
- foreach ($pfb_files as $pfb_list) {
- $pfb_file = basename($pfb_list, ".txt");
- unlink_if_exists("{$pfb_file}.txt");
- }
- }
}
# Remove Widget (code from Snort deinstall)
diff --git a/config/pfblockerng/pfblockerng_log.php b/config/pfblockerng/pfblockerng_log.php
index fc452032..339daca0 100644
--- a/config/pfblockerng/pfblockerng_log.php
+++ b/config/pfblockerng/pfblockerng_log.php
@@ -181,15 +181,9 @@ if (isset($_POST['file'])) {
if (isset($_POST['logFile'])) {
$s_logfile = $_POST['logFile'];
- # Clear log
+ # Clear selected file
if (isset($_POST['clear'])) {
- if (is_file($s_logfile)) {
- # Only allow clearing of 'log' files
- $ext = pathinfo($s_logfile, PATHINFO_EXTENSION);
- if ($ext == "log") {
- unlink_if_exists($s_logfile);
- }
- }
+ unlink_if_exists($s_logfile);
}
# Download log