From 0cb0207da40121c327e0da6e798adfda393bcd7f Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Wed, 16 Mar 2005 05:43:09 +0000 Subject: shaper should sync now make the if() actually work and remove bogus foreach that was probably intended to do something else --- packages/carp_sync_server.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/carp_sync_server.php b/packages/carp_sync_server.php index 84c5fc82..8fd3e883 100644 --- a/packages/carp_sync_server.php +++ b/packages/carp_sync_server.php @@ -34,12 +34,11 @@ require_once("config.inc"); require_once("xmlparse_pkg.inc"); require_once("filter.inc"); -if($config['installedpackages']['carpsettings']['config'] != "") - foreach($config['installedpackages']['carpsettings']['config'] as $carp) +if($config['installedpackages']['carpsettings']['config'] != "") { $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"); + $trafficshaper = return_filename_as_string("{$g['tmp_path']}/shaper_section.txt"); if($rules <> "") { restore_config_section("filter", $rules); unlink("{$g['tmp_path']}/filter_section.txt"); @@ -57,5 +56,6 @@ if($config['installedpackages']['carpsettings']['config'] != "") unlink("{$g['tmp_path']}/shaper_section.txt"); } filter_configure(); +} -?> \ No newline at end of file +?> -- cgit v1.2.3