From d00055f8ce8fe1ea7b662e59a42e444aad7fabb7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 21 Apr 2006 19:23:13 +0000 Subject: Complete nosync support Ticket #848 --- usr/local/www/firewall_nat_out_edit.php | 68 ++++++++++++++++----------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'usr/local/www/firewall_nat_out_edit.php') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 8ade0ae..b17f0cd 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -62,8 +62,8 @@ if (isset($id) && $a_out[$id]) { $pconfig['interface'] = "wan"; $pconfig['descr'] = $a_out[$id]['descr']; $pconfig['nonat'] = $a_out[$id]['nonat']; - $pconfig['nosync'] = isset($a_out[$id]['nosync']); - $pconfig['staticnatport'] = isset($a_out[$id]['staticnatport']); + $pconfig['staticnatport'] = isset($a_out[$id]['staticnatport']); + $pconfig['nosync'] = isset($a_out[$id]['nosync']); } else { $pconfig['source_subnet'] = 24; $pconfig['destination'] = "any"; @@ -180,17 +180,17 @@ if ($_POST) { $natent['target'] = $_POST['target']; $natent['interface'] = $_POST['interface']; - /* static-port */ - if(isset($_POST['staticnatport'])) - $natent['staticnatport'] = true; - else - unset($natent['staticnatport']); + /* static-port */ + if(isset($_POST['staticnatport'])) + $natent['staticnatport'] = true; + else + unset($natent['staticnatport']); - /* if user has selected not nat, set it here */ - if(isset($_POST['nonat'])) - $natent['nonat'] = true; - else - unset($natent['nonat']); + /* if user has selected not nat, set it here */ + if(isset($_POST['nonat'])) + $natent['nonat'] = true; + else + unset($natent['nonat']); if ($ext == "any") $natent['destination']['any'] = true; @@ -200,22 +200,22 @@ if ($_POST) { $natent['natport'] = $_POST['natport']; $natent['dstport'] = $_POST['dstport']; - if($_POST['nosync'] == "yes") - $natent['nosync'] = true; - else - unset($natent['nosync']); - + if($_POST['nosync'] == "yes") + $natent['nosync'] = true; + else + unset($natent['nosync']); + if (isset($_POST['destination_not']) && $ext != "any") $natent['destination']['not'] = true; - - if (isset($id) && $a_out[$id]) - $a_out[$id] = $natent; - else { - if (is_numeric($after)) - array_splice($a_out, $after+1, 0, array($natent)); - else - $a_out[] = $natent; - } + + if (isset($id) && $a_out[$id]) + $a_out[$id] = $natent; + else { + if (is_numeric($after)) + array_splice($a_out, $after+1, 0, array($natent)); + else + $a_out[] = $natent; + } touch($d_natconfdirty_path); @@ -405,20 +405,20 @@ function sourcesel_change() { - - No XMLRPC Sync - - >
- HINT: This prevents the rule from automatically syncing to other carp members. - - + + No XMLRPC Sync + + >
+ HINT: This prevents the rule from automatically syncing to other carp members. + + Description
You may enter a description here for your reference (not parsed). - +   -- cgit v1.1