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_packet_capture.php | |
parent | 1ad25a3ffbf9ad226d8cb3463ef46c2ff82ad936 (diff) | |
download | pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.zip pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/diag_packet_capture.php')
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index c795a1a..d07d3e2 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -119,14 +119,9 @@ include("head.inc"); ?> <td width="17%" valign="top" class="vncellreq">Interface</td> <td width="83%" 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 ($selectedif == $iface) echo "selected"; ?>> + <option value="<?=$iface;?>" <?php if (!$config['interfaces'][$iface]['bridge'] && $selectedif == $iface) echo "selected"; ?>> <?php echo $ifacename;?> </option> <?php endforeach;?> |