diff options
author | lgcosta <lgcosta@pfsense.org> | 2011-04-01 12:06:55 -0300 |
---|---|---|
committer | lgcosta <lgcosta@pfsense.org> | 2011-04-01 12:06:55 -0300 |
commit | 681b43b0790694b737dc91573a233a8aa468b681 (patch) | |
tree | 08e86fa063576ca2b33c26a9c6b5bd2485b17e37 /usr | |
parent | bc7885617260468b4da4471d0b6b703053dd7ff8 (diff) | |
download | pfsense-681b43b0790694b737dc91573a233a8aa468b681.zip pfsense-681b43b0790694b737dc91573a233a8aa468b681.tar.gz |
standardize the device_mode variable
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index d28315d..c355577 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -113,7 +113,7 @@ if($_GET['act']=="edit"){ $pconfig['description'] = $a_client[$id]['description']; $pconfig['custom_options'] = $a_client[$id]['custom_options']; $pconfig['ns_cert_type'] = $a_client[$id]['ns_cert_type']; - $pconfig['dev_mode'] = $a_client[$id]['dev_mode']; + $pconfig['device_mode'] = $a_client[$id]['device_mode']; if ($pconfig['mode'] != "p2p_shared_key") { $pconfig['caref'] = $a_client[$id]['caref']; @@ -228,7 +228,7 @@ if ($_POST) { if ($_POST['disable'] == "yes") $client['disable'] = true; $client['protocol'] = $pconfig['protocol']; - $client['dev_mode'] = $pconfig['dev_mode']; + $client['device_mode'] = $pconfig['device_mode']; list($client['interface'], $client['ipaddr']) = explode ("|",$pconfig['interface']); $client['local_port'] = $pconfig['local_port']; $client['server_addr'] = $pconfig['server_addr']; @@ -439,11 +439,11 @@ if ($savemsg) <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Device mode");?></td> <td width="78%" class="vtable"> - <select name='dev_mode' class="formselect"> + <select name='device_mode' class="formselect"> <?php foreach ($openvpn_dev_mode as $mode): $selected = ""; - if ($pconfig['dev_mode'] == $mode) + if ($pconfig['device_mode'] == $mode) $selected = "selected"; ?> <option value="<?=$mode;?>" <?=$selected;?>><?=$mode;?></option> |