aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squidGuard/squidguard.inc
diff options
context:
space:
mode:
authorD. V. Serg <dvserg@pfsense.org>2008-02-10 17:21:32 +0000
committerD. V. Serg <dvserg@pfsense.org>2008-02-10 17:21:32 +0000
commitd69c08a14ec3fea9fea937628a72cf4274be6ad7 (patch)
tree7fed36b3b5d1d1ea561a97318edc0aa04b87d73b /packages/squidGuard/squidguard.inc
parent8a2c77972456860f1fc0d8556f1c89f1a1b5922d (diff)
downloadpfsense-packages-d69c08a14ec3fea9fea937628a72cf4274be6ad7.tar.gz
pfsense-packages-d69c08a14ec3fea9fea937628a72cf4274be6ad7.tar.bz2
pfsense-packages-d69c08a14ec3fea9fea937628a72cf4274be6ad7.zip
Change squid options update
Fix reboot bug. Small fix's blacklist update.
Diffstat (limited to 'packages/squidGuard/squidguard.inc')
-rw-r--r--packages/squidGuard/squidguard.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/squidGuard/squidguard.inc b/packages/squidGuard/squidguard.inc
index cbfd7aa9..08b09469 100644
--- a/packages/squidGuard/squidguard.inc
+++ b/packages/squidGuard/squidguard.inc
@@ -332,7 +332,7 @@ function squidguard_validate_rewrite($post, $input_errors) {
// squidguard_resync
// -----------------------------------------------------------------------------
function squidguard_resync() {
- global $config;
+ global $config;
$conf = $config['installedpackages'][MODULE_GENERAL]['config'][0];
$upload_file = '';
$submit = '';
@@ -343,7 +343,7 @@ function squidguard_resync() {
$submit = $_POST['submit'];
$url = $_POST['blacklist_url'];
$proxy = $_POST['blacklist_proxy'];
- }
+ }
else
if (isset($_GET['submit'])) {
$submit = $_GET['submit'];
@@ -359,10 +359,10 @@ function squidguard_resync() {
sg_reconfigure_blacklist($url, $proxy);
}
// apply changes
- if ($submit == APPLY_BTN) sg_reconfigure();
-
- // if nothing on GET or POST - then system resync on start or other
- // ... write here ...
+ if ($submit == APPLY_BTN) {
+# write_config('Update squidGuard options.'); // store, if not 'Save' button
+ sg_reconfigure();
+ }
}
@@ -750,7 +750,7 @@ function squidguard_before_form_log($pkg) {
if (empty($move_pos)) $move_pos = 0;
if ($mlog['logtype'] == 'block_log') {
- $slog .= 'block_log report disabled';
+ $slog .= 'block_log report disabled';
/*
$filename = SQUIDGUARD_LOGDIR . "/" . SQUIDGUARD_ACCESSBLOCK_FILE;
if (file_exists($filename)) {