diff options
author | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
commit | 6c07db487164262f9191ad02805523bd153e0ba6 (patch) | |
tree | 0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/vpn_l2tp.php | |
parent | 67d9685607eef7c679fda929ad4855be1b2f9dec (diff) | |
download | pfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz |
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.
Diffstat (limited to 'usr/local/www/vpn_l2tp.php')
-rw-r--r-- | usr/local/www/vpn_l2tp.php | 28 |
1 files changed, 14 insertions, 14 deletions
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"); <script type="text/javascript"> //<![CDATA[ -function get_radio_value(obj) -{ +function get_radio_value(obj) { for (i = 0; i < obj.length; i++) { if (obj[i].checked) { return obj[i].value; @@ -358,7 +358,7 @@ function enable_change(enable_over) { <td width="78%" class="vtable"> <select id="l2tp_subnet" name="l2tp_subnet"> <?php - for ($x=0; $x<33; $x++) { + for ($x = 0; $x < 33; $x++) { if ($x == $pconfig['l2tp_subnet']) { $SELECTED = " selected=\"selected\""; } else { @@ -376,7 +376,7 @@ function enable_change(enable_over) { <td width="78%" class="vtable"> <select id="n_l2tp_units" name="n_l2tp_units"> <?php - for ($x=0; $x<255; $x++) { + for ($x = 0; $x < 255; $x++) { if ($x == $pconfig['n_l2tp_units']) { $SELECTED = " selected=\"selected\""; } else { |