From fad728ab92e26a1b5817816474d3814c71c394db Mon Sep 17 00:00:00 2001 From: sullrich Date: Wed, 2 Dec 2009 17:37:56 -0500 Subject: Move { and } to same line. --- usr/local/www/vpn_ipsec_phase1.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'usr/local/www/vpn_ipsec_phase1.php') diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 5b8fb25..7348cad 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -58,8 +58,7 @@ if (isset($_GET['dup'])) { $p1index = $_GET['dup']; } -if (isset($p1index) && $a_phase1[$p1index]) -{ +if (isset($p1index) && $a_phase1[$p1index]) { // don't copy the ikeid on dup if (!isset($_GET['dup'])) $pconfig['ikeid'] = $a_phase1[$p1index]['ikeid']; @@ -91,7 +90,7 @@ if (isset($p1index) && $a_phase1[$p1index]) $pconfig['lifetime'] = $a_phase1[$p1index]['lifetime']; $pconfig['authentication_method'] = $a_phase1[$p1index]['authentication_method']; - if (($pconfig['authentication_method'] == "pre_shared_key")|| + if (($pconfig['authentication_method'] == "pre_shared_key") || ($pconfig['authentication_method'] == "xauth_psk_server")) { $pconfig['pskey'] = $a_phase1[$p1index]['pre-shared-key']; } else { @@ -106,9 +105,7 @@ if (isset($p1index) && $a_phase1[$p1index]) $pconfig['dpd_delay'] = $a_phase1[$p1index]['dpd_delay']; $pconfig['dpd_maxfail'] = $a_phase1[$p1index]['dpd_maxfail']; } -} -else -{ +} else { /* defaults */ $pconfig['interface'] = "wan"; if($config['interfaces']['lan']) -- cgit v1.1