diff options
author | Ermal <eri@pfsense.org> | 2012-06-07 08:51:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-06-07 08:51:16 +0000 |
commit | 3e662cb0b22c4c7277b30a134e85a6d535044f1e (patch) | |
tree | f9e4c40415cbfe4c386f5b6f0d863e27cd7aa7d8 /usr/local/www/firewall_virtual_ip_edit.php | |
parent | 98aea4c3a5152b8121a9f596932d5bfbcac56086 (diff) | |
download | pfsense-3e662cb0b22c4c7277b30a134e85a6d535044f1e.zip pfsense-3e662cb0b22c4c7277b30a134e85a6d535044f1e.tar.gz |
Get rid of carpdev, it will never be
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index c0a21dc..f91fa79 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -145,7 +145,6 @@ if ($_POST) { */ switch ($_POST['mode']) { case "carp": - case "carpdev-dhcp": /* verify against reusage of vhids */ $idtracker = 0; foreach($config['virtualip']['vip'] as $vip) { @@ -210,7 +209,7 @@ if ($_POST) { } /* CARP specific fields */ - if ($_POST['mode'] === "carp" or $_POST['mode'] == "carpdev-dhcp") { + if ($_POST['mode'] === "carp") { $vipent['vhid'] = $_POST['vhid']; $vipent['advskew'] = $_POST['advskew']; $vipent['advbase'] = $_POST['advbase']; @@ -233,12 +232,6 @@ if ($_POST) { $vipent['subnet'] = $_POST['subnet']; } - if ($_POST['mode'] == "carpdev-dhcp") { - unset($vipent['subnet']); - unset($vipent['subnet_bits']); - unset($vipent['alias-subnet']); - } - if (!isset($id)) $id = count($a_vip); if (file_exists("{$g['tmp_path']}/.firewall_virtual_ip.apply")) @@ -339,21 +332,6 @@ function enable_change(enable_over) { document.iform.noexpand.disabled = 1; jQuery('#noexpandrow').css('display','none'); } - if (get_radio_value(document.iform.mode) == "carpdev-dhcp") { - document.iform.type.disabled = 1; - note.removeChild(note.firstChild); - note.appendChild(ipaliasnote); - document.iform.subnet_bits.disabled = 1; - document.iform.subnet.disabled = 1; - document.iform.subnet.value = ''; - document.iform.subnet_bits.value = ''; - document.iform.vhid.disabled = 0; - document.iform.password.disabled = 0; - document.iform.advskew.disabled = 0; - document.iform.advbase.disabled = 0; - document.iform.noexpand.disabled = 1; - jQuery('#noexpandrow').css('display','none'); - } typesel_change(); } function typesel_change() { @@ -410,13 +388,6 @@ function typesel_change() { <?php if ($pconfig['mode'] == "other") echo "checked";?>> <?=gettext("Other");?> <input name="mode" type="radio" onclick="enable_change(false)" value="ipalias" <?php if ($pconfig['mode'] == "ipalias") echo "checked";?>> <?=gettext("IP Alias");?> -<?php -/* - <input name="mode" type="radio" onclick="enable_change(false)" value="carpdev-dhcp" - <?php if ($pconfig['mode'] == "carpdev-dhcp") echo "checked";?>> CarpDEV-DHCP -*/ -?> - </td> </tr> <tr> |