Project

General

Profile

« Previous | Next » 

Revision fad728ab

Added by Scott Ullrich over 15 years ago

Move { and } to same line.

View differences:

usr/local/www/vpn_ipsec_phase1.php
58 58
	$p1index = $_GET['dup'];
59 59
}
60 60

  
61
if (isset($p1index) && $a_phase1[$p1index])
62
{
61
if (isset($p1index) && $a_phase1[$p1index]) {
63 62
	// don't copy the ikeid on dup
64 63
	if (!isset($_GET['dup']))
65 64
		$pconfig['ikeid'] = $a_phase1[$p1index]['ikeid'];
......
91 90
	$pconfig['lifetime'] = $a_phase1[$p1index]['lifetime'];
92 91
	$pconfig['authentication_method'] = $a_phase1[$p1index]['authentication_method'];
93 92

  
94
	if (($pconfig['authentication_method'] == "pre_shared_key")||
93
	if (($pconfig['authentication_method'] == "pre_shared_key") || 
95 94
		($pconfig['authentication_method'] == "xauth_psk_server")) {
96 95
		$pconfig['pskey'] = $a_phase1[$p1index]['pre-shared-key'];
97 96
	} else {
......
106 105
		$pconfig['dpd_delay'] = $a_phase1[$p1index]['dpd_delay'];
107 106
		$pconfig['dpd_maxfail'] = $a_phase1[$p1index]['dpd_maxfail'];
108 107
	}
109
}
110
else
111
{
108
} else {
112 109
	/* defaults */
113 110
	$pconfig['interface'] = "wan";
114 111
	if($config['interfaces']['lan']) 

Also available in: Unified diff