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_logs_filter_dynamic.php | |
parent | 1ad25a3ffbf9ad226d8cb3463ef46c2ff82ad936 (diff) | |
download | pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.zip pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/diag_logs_filter_dynamic.php')
-rwxr-xr-x | usr/local/www/diag_logs_filter_dynamic.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index 81ffd3f..b9262b2 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -62,8 +62,10 @@ function conv_clog_filter($logfile, $tail = 50) { $iftable = array(); $iftable[$config['interfaces']['lan']['if']] = "LAN"; $iftable[get_real_wan_interface()] = "WAN"; - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) - $iftable[$config['interfaces']['opt' . $i]['if']] = $config['interfaces']['opt' . $i]['descr']; + /* optional if list */ + $iflist = get_configured_interface_with_descr(true); + foreach ($iflist as $if => $ifdesc) + $iftable[$config['interfaces'][$if]['if']] = $ifdesc; $sor = isset($config['syslog']['reverse']) ? "-r" : ""; @@ -473,4 +475,4 @@ function handle_ajax() { } } -?>
\ No newline at end of file +?> |