summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-05 19:29:56 +0000
committerBill Marquette <billm@pfsense.org>2005-03-05 19:29:56 +0000
commite8c2c8902f0fcdcc5c74133f5949fdd5378bb226 (patch)
treeb862b0809391a48874ab1ce6a6c62e689d241ced /usr/local/www/firewall_nat.php
parentbac92999551c0b7051d3a2109f73bd469f08253b (diff)
downloadpfsense-e8c2c8902f0fcdcc5c74133f5949fdd5378bb226.zip
pfsense-e8c2c8902f0fcdcc5c74133f5949fdd5378bb226.tar.gz
whitespace cleanup
Diffstat (limited to 'usr/local/www/firewall_nat.php')
-rwxr-xr-xusr/local/www/firewall_nat.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index a210813..42a7211 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -33,18 +33,22 @@
require("guiconfig.inc");
-if (!is_array($config['nat']['rule'])) {
+if (!is_array($config['nat']['rule']))
$config['nat']['rule'] = array();
-}
-nat_rules_sort();
+
$a_nat = &$config['nat']['rule'];
+nat_rules_sort();
if ($_POST) {
$pconfig = $_POST;
if ($_POST['apply']) {
+
+ write_config();
+
$retval = 0;
+
if (!file_exists($d_sysrebootreqd_path)) {
config_lock();
$retval |= filter_configure();
@@ -62,9 +66,6 @@ if ($_POST) {
unlink($d_filterconfdirty_path);
}
}
-
-
-
}
if ($_GET['act'] == "del") {
OpenPOWER on IntegriCloud