summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-13 04:35:35 +0000
committerBill Marquette <billm@pfsense.org>2005-07-13 04:35:35 +0000
commit7dc71178eee80630ff4bd5125bf9fde5f90f9d19 (patch)
treeb44892c1eb68768b5c2a12475a6838f5256e887b /usr/local/www/firewall_virtual_ip_edit.php
parente33206c2cca7a0fe4aa93411f45ee5e1d40d23e4 (diff)
downloadpfsense-7dc71178eee80630ff4bd5125bf9fde5f90f9d19.zip
pfsense-7dc71178eee80630ff4bd5125bf9fde5f90f9d19.tar.gz
fix field selections and really make passwords save
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index e0cdcbd..98b6dfd 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -122,6 +122,7 @@ if ($_POST) {
if ($_POST['mode'] === "carp") {
$vipent['vhid'] = $_POST['vhid'];
$vipent['advskew'] = $_POST['advskew'];
+ $vipent['password'] = $_POST['password'];
}
/* Common fields */
@@ -223,9 +224,9 @@ function typesel_change() {
<td width="22%" valign="top" class="vncellreq">Type</td>
<td width="78%" class="vtable">
<input name="mode" type="radio" onclick="enable_change(false)" value="proxyarp"
- <?php if ($pconfig['type'] == "proxyarp" || $pconfig['type'] != "carp") echo "checked";?>> Proxy ARP
+ <?php if ($pconfig['mode'] == "proxyarp" || $pconfig['type'] != "carp") echo "checked";?>> Proxy ARP
<input name="mode" type="radio" onclick="enable_change(false)" value="carp"
- <?php if ($pconfig['type'] == "carp") echo "checked";?>> CARP
+ <?php if ($pconfig['mode'] == "carp") echo "checked";?>> CARP
</td>
</tr>
<tr>
@@ -284,7 +285,7 @@ function typesel_change() {
</tr>
<tr valign="top">
<td width="22%" class="vncellreq">Virtual IP Password</td>
- <td class="vtable"><input type='password' name='password' value=''>
+ <td class="vtable"><input type='password' name='password' value="<?=htmlspecialchars($pconfig['password']);?>">
<br>Enter the VHID group password.
</td>
</tr>
OpenPOWER on IntegriCloud