summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ping.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-21 14:44:30 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-21 14:44:30 +0000
commitcbe3ea96403e554822bd4675cb5565d20ab55fa7 (patch)
treec96401ee12ee200acbd111194e108cc6c92b4ac2 /usr/local/www/diag_ping.php
parent1ad25a3ffbf9ad226d8cb3463ef46c2ff82ad936 (diff)
downloadpfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.zip
pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.tar.gz
Continue interface improvements
Diffstat (limited to 'usr/local/www/diag_ping.php')
-rwxr-xr-xusr/local/www/diag_ping.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php
index 812663a..3741eca 100755
--- a/usr/local/www/diag_ping.php
+++ b/usr/local/www/diag_ping.php
@@ -103,14 +103,9 @@ include("head.inc"); ?>
<td width="22%" valign="top" class="vncellreq">Interface</td>
<td width="78%" class="vtable">
<select name="interface" class="formfld">
- <?php $interfaces = array('wan' => 'WAN', 'lan' => 'LAN');
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
- if (isset($config['interfaces']['opt' . $i]['enable']) &&
- !$config['interfaces']['opt' . $i]['bridge'])
- $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
- }
+ <?php $interfaces = get_configured_interface_with_descr();
foreach ($interfaces as $iface => $ifacename): ?>
- <option value="<?=$iface;?>" <?php if ($iface == $interface) echo "selected"; ?>>
+ <option value="<?=$iface;?>" <?php if (!$config['interfaces'][$iface]['bridge'] && $iface == $interface) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
<?php endforeach; ?>
OpenPOWER on IntegriCloud