diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-21 14:44:30 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-21 14:44:30 +0000 |
commit | cbe3ea96403e554822bd4675cb5565d20ab55fa7 (patch) | |
tree | c96401ee12ee200acbd111194e108cc6c92b4ac2 /usr/local/www/diag_ping.php | |
parent | 1ad25a3ffbf9ad226d8cb3463ef46c2ff82ad936 (diff) | |
download | pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.zip pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/diag_ping.php')
-rwxr-xr-x | usr/local/www/diag_ping.php | 9 |
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; ?> |