diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-17 17:47:26 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-17 17:47:26 +0545 |
commit | c86c14dc50e2285e6e86eded0ae9e61fffac1550 (patch) | |
tree | 009b23ed4bf8d739d27ae10a666304259f726465 /src/usr/local/www/vpn_l2tp.php | |
parent | 0cf1b4f4f29f2ad63691d598e83a9327ae9867ff (diff) | |
download | pfsense-c86c14dc50e2285e6e86eded0ae9e61fffac1550.zip pfsense-c86c14dc50e2285e6e86eded0ae9e61fffac1550.tar.gz |
Code style v w
Diffstat (limited to 'src/usr/local/www/vpn_l2tp.php')
-rw-r--r-- | src/usr/local/www/vpn_l2tp.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/local/www/vpn_l2tp.php b/src/usr/local/www/vpn_l2tp.php index 9021b4f..17bb288 100644 --- a/src/usr/local/www/vpn_l2tp.php +++ b/src/usr/local/www/vpn_l2tp.php @@ -127,7 +127,7 @@ if ($_POST) { $subnet_end = ip2ulong($_POST['remoteip']) + $_POST['n_l2tp_units'] - 1; if ((ip2ulong($_POST['localip']) >= $subnet_start) && - (ip2ulong($_POST['localip']) <= $subnet_end)) { + (ip2ulong($_POST['localip']) <= $subnet_end)) { $input_errors[] = gettext("The specified server address lies in the remote subnet."); } if ($_POST['localip'] == get_interface_ip("lan")) { @@ -206,11 +206,13 @@ $pgtitle = array(gettext("VPN"), gettext("L2TP"), gettext("Configuration")); $shortcut_section = "l2tps"; include("head.inc"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} -if ($savemsg) +if ($savemsg) { print_info_box($savemsg); +} $tab_array = array(); $tab_array[] = array(gettext("Configuration"), true, "vpn_l2tp.php"); @@ -354,7 +356,7 @@ print_info_box(gettext("Don't forget to add a firewall rule to permit traffic fr <script type="text/javascript"> //<![CDATA[ -events.push(function(){ +events.push(function() { function setL2TP () { hide = ! $('#mode').prop('checked'); |