diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:02:05 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:02:05 +0000 |
commit | b73911250669f091119a237ebad5078fdb130ff2 (patch) | |
tree | 00ab2f6cb998ba39cb10615121a86f0c3cd63fa5 /usr/local/www/firewall_virtual_ip_edit.php | |
parent | 7db10f150eeb9e0408e21c9fc6a2cae3521afc95 (diff) | |
download | pfsense-b73911250669f091119a237ebad5078fdb130ff2.zip pfsense-b73911250669f091119a237ebad5078fdb130ff2.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 1d5036a..a48afc2 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -128,9 +128,7 @@ if ($_POST) { $can_post = true; $found = false; $subnet_ip = return_first_two_octets($_POST['subnet']); - $iflist = array("lan", "wan"); - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) - $iflist['opt' . $i] = 'opt' . $i; + $iflist = get_configured_interface_list(false, true); foreach($iflist as $if) { $ww_subnet_ip = $config['interfaces'][$if]['ipaddr']; $ww_subnet_bits = $config['interfaces'][$if]['subnet']; @@ -335,13 +333,7 @@ function typesel_change() { <td width="78%" class="vtable"> <select name="interface" class="formselect"> <?php - if($config['interfaces']['lan']) - $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); - else - $interfaces = array('wan' => 'WAN'); - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { - $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; - } + $interfaces = get_configured_interface_with_descr(false, true); foreach ($interfaces as $iface => $ifacename): ?> <option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>> <?=htmlspecialchars($ifacename);?> |