diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-17 16:38:25 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-17 16:38:25 +0545 |
commit | d61309a07ce3fd295cb4f9903b4c62245facfdd4 (patch) | |
tree | 43696d918e15be1efa49baea8323866c2077dc30 /src/usr/local/www/system_gateways_edit.php | |
parent | 0cf1b4f4f29f2ad63691d598e83a9327ae9867ff (diff) | |
download | pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.zip pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.tar.gz |
Code style system_*
Diffstat (limited to 'src/usr/local/www/system_gateways_edit.php')
-rw-r--r-- | src/usr/local/www/system_gateways_edit.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 7acb07b..cbd51be 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -536,17 +536,17 @@ if ($_POST) { /* NOTE: If gateway ip is changed need to cleanup the old static interface route */ if ($_POST['monitor'] != "dynamic" && !empty($a_gateway_item[$realid]) && is_ipaddr($a_gateway_item[$realid]['gateway']) && - $gateway['gateway'] != $a_gateway_item[$realid]['gateway'] && - isset($a_gateway_item[$realid]["nonlocalgateway"])) { + $gateway['gateway'] != $a_gateway_item[$realid]['gateway'] && + isset($a_gateway_item[$realid]["nonlocalgateway"])) { $realif = get_real_interface($a_gateway_item[$realid]['interface']); $inet = (!is_ipaddrv4($a_gateway_item[$realid]['gateway']) ? "-inet6" : "-inet"); $cmd = "/sbin/route delete $inet " . escapeshellarg($a_gateway_item[$realid]['gateway']) . " -iface " . escapeshellarg($realif); mwexec($cmd); } - + /* NOTE: If monitor ip is changed need to cleanup the old static route */ if ($_POST['monitor'] != "dynamic" && !empty($a_gateway_item[$realid]) && is_ipaddr($a_gateway_item[$realid]['monitor']) && - $_POST['monitor'] != $a_gateway_item[$realid]['monitor'] && $gateway['gateway'] != $a_gateway_item[$realid]['monitor']) { + $_POST['monitor'] != $a_gateway_item[$realid]['monitor'] && $gateway['gateway'] != $a_gateway_item[$realid]['monitor']) { if (is_ipaddrv4($a_gateway_item[$realid]['monitor'])) { mwexec("/sbin/route delete " . escapeshellarg($a_gateway_item[$realid]['monitor'])); } else { @@ -634,13 +634,14 @@ $shortcut_section = "gateways"; include("head.inc"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} $form = new Form; /* If this is a system gateway we need this var */ -if(($pconfig['attribute'] == "system") || is_numeric($pconfig['attribute'])) { +if (($pconfig['attribute'] == "system") || is_numeric($pconfig['attribute'])) { $form->addGlobal(new Form_Input( 'attribute', null, @@ -781,7 +782,7 @@ if (!(!empty($pconfig['latencylow']) || !empty($pconfig['latencyhigh']) || $form->add($section); $section = new Form_Section('Advanced'); -if(isset($advdflt)) { +if (isset($advdflt)) { $section->addClass('collapse'); } |