diff options
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 9c2a3a1..95b9747 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -46,7 +46,7 @@ if ($_POST['clear']) { /* format filter logs */ function conv_clog($logfile, $tail) { - global $g, $config; + global $config; $nentries = $config['syslog']['nentries']; if (!$nentries) @@ -61,7 +61,7 @@ function conv_clog($logfile, $tail) { $sor = isset($config['syslog']['reverse']) ? "-r" : ""; - exec("/usr/sbin/clog /var/log/filter.log | tail {$sor} -n {$tail}", $logarr); + exec("/usr/sbin/clog {$logfile} | /usr/sbin/tail {$sor} -n {$tail}", $logarr); $filterlog = array(); |