summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-21 17:13:18 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-21 17:13:18 +0000
commitfbb45bb034aad683b2bd207a497d0cfc0b1b5a1e (patch)
treec3ca0e3af16571da1d6f07059b72465bce5f97d3 /usr/local/www/load_balancer_pool_edit.php
parentb73911250669f091119a237ebad5078fdb130ff2 (diff)
downloadpfsense-fbb45bb034aad683b2bd207a497d0cfc0b1b5a1e.zip
pfsense-fbb45bb034aad683b2bd207a497d0cfc0b1b5a1e.tar.gz
Continue interface improvements
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index 7190bde..5aadeae 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -327,11 +327,10 @@ function clearcombo(){
<div style="float: none;">
<select id="gatewayip" name="gatewayip" onchange="gateway_change();" style="float: left;">
<?php
- $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) {
+ if ($iface == "lan")
+ continue;
$ifinfo = get_interface_info($iface);
if(isset($ifinfo['gateway'])) { ?>
<option value="<?=$ifinfo['gateway'];?>"><?=htmlspecialchars($ifacename);?>'s Gateway</option>
@@ -357,13 +356,7 @@ function clearcombo(){
<input name="ipaddr" type="text" size="16" style="float: left;">
<select id="iface" name="iface" style="float: left; display: none;">
<?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) {
$ifinfo = get_interface_info($iface);
if(isset($ifinfo['gateway'])) { ?>
OpenPOWER on IntegriCloud