From e0fb12c1854a03686ce985d3dde1a8ba3b88d318 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 3 Sep 2014 07:38:15 -0300 Subject: Fix indent and whitespace --- usr/local/www/vpn_ipsec.php | 286 +++++++++++++++++++++++--------------------- 1 file changed, 149 insertions(+), 137 deletions(-) diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 75118b5..09fd39a 100644 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -136,14 +136,14 @@ include("head.inc"); @@ -171,61 +171,62 @@ include("head.inc");
- +
- "; - $spane = ""; - } - else - $spans = $spane = ""; - - show_ipsec_header($ph1ent); - $counter++; // used to determine if we need to output header manually (no records exist) - ?> +"; + $spane = ""; + } + else + $spans = $spane = ""; + + show_ipsec_header($ph1ent); + $counter++; // used to determine if we need to output header manually (no records exist) +?> - + @@ -280,30 +283,36 @@ include("head.inc"); - +
- + - $carpip) - $iflabels[$cif] = $carpip." (".get_vip_descr($carpip).")"; - - $aliaslist = get_configured_ip_aliases_list(); - foreach ($aliaslist as $aliasip => $aliasif) - $iflabels[$aliasip] = $aliasip." (".get_vip_descr($aliasip).")"; - - $grouplist = return_gateway_groups_array(); - foreach ($grouplist as $name => $group) { - if($group[0]['vip'] <> "") - $vipif = $group[0]['vip']; - else - $vipif = $group[0]['int']; - $iflabels[$name] = "GW Group {$name}"; - } - $if = htmlspecialchars($iflabels[$ph1ent['interface']]); + $carpip) + $iflabels[$cif] = $carpip." (".get_vip_descr($carpip).")"; + + $aliaslist = get_configured_ip_aliases_list(); + foreach ($aliaslist as $aliasip => $aliasif) + $iflabels[$aliasip] = $aliasip." (".get_vip_descr($aliasip).")"; + + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + if($group[0]['vip'] <> "") + $vipif = $group[0]['vip']; + else + $vipif = $group[0]['int']; + $iflabels[$name] = "GW Group {$name}"; } - else - $if = "WAN"; + $if = htmlspecialchars($iflabels[$ph1ent['interface']]); + } + else + $if = "WAN"; - if (!isset($ph1ent['mobile'])) - echo $if."
".$ph1ent['remote-gateway']; - else - echo $if."
" . gettext("Mobile Client") . ""; - ?> + if (!isset($ph1ent['mobile'])) + echo $if."
".$ph1ent['remote-gateway']; + else + echo $if."
" . gettext("Mobile Client") . ""; +?>
@@ -236,14 +237,14 @@ include("head.inc"); - + @@ -270,7 +271,9 @@ include("head.inc");
- + -
- + - + @@ -313,75 +322,78 @@ include("head.inc"); - "; - $spane = ""; - } - else - $spans = $spane = ""; - ?> +"; + $spane = ""; + } else + $spans = $spane = ""; +?> - "tunnel") and ($ph2ent['mode'] <> "tunnel6")) { - echo ""; - } - ?> - - - - + "tunnel") and ($ph2ent['mode'] <> "tunnel6")) { + echo ""; + } +?> + + + + - - - + @@ -407,12 +419,12 @@ include("head.inc");   - + @@ -465,7 +477,7 @@ function show_phase2(id, buttonid) { function show_ipsec_header($ph1ent) { global $g; - if (isset($ph1ent['mobile'])) + if (isset($ph1ent['mobile'])) $mobile = "&mobile=true"; ?> @@ -475,12 +487,12 @@ function show_ipsec_header($ph1ent) { - + -- cgit v1.1