aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-14 19:56:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-14 19:56:39 +0000
commita4d5660828ea31e64d931496a80dd524eecb950a (patch)
tree00eb3e2abf179d6b486ad8ed4c48a7fabd578317
parente0bcb1df5f596f9a66f24b296418506597116e62 (diff)
downloadpfsense-packages-a4d5660828ea31e64d931496a80dd524eecb950a.tar.gz
pfsense-packages-a4d5660828ea31e64d931496a80dd524eecb950a.tar.bz2
pfsense-packages-a4d5660828ea31e64d931496a80dd524eecb950a.zip
Do not depend on sync rules flag, we can now toggle all four areas
-rw-r--r--packages/carp_sync_server.php42
1 files changed, 20 insertions, 22 deletions
diff --git a/packages/carp_sync_server.php b/packages/carp_sync_server.php
index 417a59f6..54142cdc 100644
--- a/packages/carp_sync_server.php
+++ b/packages/carp_sync_server.php
@@ -36,28 +36,26 @@ require_once("filter.inc");
if($config['installedpackages']['carpsettings']['config'] != "")
foreach($config['installedpackages']['carpsettings']['config'] as $carp)
- if($carp['synchronizerules'] <> "") {
- $rules = return_filename_as_string("{$g['tmp_path']}/rules_section.txt");
- $aliases = return_filename_as_string("{$g['tmp_path']}/aliases_section.txt");
- $nat = return_filename_as_string("{$g['tmp_path']}/nat_section.txt");
- $trafficshaper = return_filename_as_string("{$g['tmp_path']}/trafficshaper_section.txt");
- if($rules <> "") {
- restore_config_section("filter", $rules);
- unlink("{$g['tmp_path']}/rules_section.txt");
- }
- if($aliases <> "") {
- restore_config_section("aliases", $aliases);
- unlink("{$g['tmp_path']}/aliases_section.txt");
- }
- if($nat <> "") {
- restore_config_section("nat", $nat);
- unlink("{$g['tmp_path']}/nat_section.txt");
- }
- if($trafficshaper <> "") {
- restore_config_section("shaper", $trafficshaper);
- unlink("{$g['tmp_path']}/nat_section.txt");
- }
- filter_configure();
+ $rules = return_filename_as_string("{$g['tmp_path']}/rules_section.txt");
+ $aliases = return_filename_as_string("{$g['tmp_path']}/aliases_section.txt");
+ $nat = return_filename_as_string("{$g['tmp_path']}/nat_section.txt");
+ $trafficshaper = return_filename_as_string("{$g['tmp_path']}/trafficshaper_section.txt");
+ if($rules <> "") {
+ restore_config_section("filter", $rules);
+ unlink("{$g['tmp_path']}/rules_section.txt");
}
+ if($aliases <> "") {
+ restore_config_section("aliases", $aliases);
+ unlink("{$g['tmp_path']}/aliases_section.txt");
+ }
+ if($nat <> "") {
+ restore_config_section("nat", $nat);
+ unlink("{$g['tmp_path']}/nat_section.txt");
+ }
+ if($trafficshaper <> "") {
+ restore_config_section("shaper", $trafficshaper);
+ unlink("{$g['tmp_path']}/nat_section.txt");
+ }
+ filter_configure();
?> \ No newline at end of file