Revision 05c90549
Added by Seth Mos about 18 years ago
usr/local/www/vpn_ipsec_edit.php | ||
---|---|---|
41 | 41 |
if (isset($_POST['id'])) |
42 | 42 |
$id = $_POST['id']; |
43 | 43 |
|
44 |
if (isset($_GET['dup'])) { |
|
45 |
$id = $_GET['dup']; |
|
46 |
} |
|
47 |
|
|
44 | 48 |
if (isset($id) && $a_ipsec[$id]) { |
45 | 49 |
$pconfig['disabled'] = isset($a_ipsec[$id]['disabled']); |
46 | 50 |
$pconfig['auto'] = isset($a_ipsec[$id]['auto']); |
... | ... | |
109 | 113 |
$pconfig['remotebits'] = 32; |
110 | 114 |
} |
111 | 115 |
|
116 |
if (isset($_GET['dup'])) |
|
117 |
unset($id); |
|
118 |
|
|
112 | 119 |
if ($_POST) { |
113 | 120 |
if (is_specialnet($_POST['localnettype'])) { |
114 | 121 |
$_POST['localnet'] = $_POST['localnettype']; |
Also available in: Unified diff
Add a plus button on the top header of these pages.
This to make it easier on large configurations.