From 6c07db487164262f9191ad02805523bd153e0ba6 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 15 Jun 2015 14:19:11 +0545 Subject: Code spacing and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting. --- usr/local/www/vpn_l2tp.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'usr/local/www/vpn_l2tp.php') diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index 7a508c5..88f4eae 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -72,7 +72,7 @@ if ($_POST) { /* input validation */ if ($_POST['mode'] == "server") { $reqdfields = explode(" ", "localip remoteip"); - $reqdfieldsn = array(gettext("Server address"),gettext("Remote start address")); + $reqdfieldsn = array(gettext("Server address"), gettext("Remote start address")); if ($_POST['radiusenable']) { $reqdfields = array_merge($reqdfields, explode(" ", "radiusserver radiussecret")); @@ -144,19 +144,20 @@ if ($_POST) { if ($_POST['l2tp_dns1'] == "") { - if (isset($l2tpcfg['dns1'])) + if (isset($l2tpcfg['dns1'])) { unset($l2tpcfg['dns1']); - } else { - $l2tpcfg['dns1'] = $_POST['l2tp_dns1']; } + } else { + $l2tpcfg['dns1'] = $_POST['l2tp_dns1']; + } - if ($_POST['l2tp_dns2'] == "") { - if (isset($l2tpcfg['dns2'])) { - unset($l2tpcfg['dns2']); - } - } else { - $l2tpcfg['dns2'] = $_POST['l2tp_dns2']; + if ($_POST['l2tp_dns2'] == "") { + if (isset($l2tpcfg['dns2'])) { + unset($l2tpcfg['dns2']); } + } else { + $l2tpcfg['dns2'] = $_POST['l2tp_dns2']; + } if ($_POST['radiusenable'] == "yes") { $l2tpcfg['radius']['enable'] = true; @@ -197,8 +198,7 @@ include("head.inc");