diff options
author | Bill Marquette <billm@pfsense.org> | 2005-07-04 19:37:35 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-07-04 19:37:35 +0000 |
commit | 13c25b6ea2957c11a7619a604941a80ebe930267 (patch) | |
tree | 5a20ab5229fbb1793ddbd116aca12a393b225adb /usr | |
parent | 0f10aee430288f25dc4f0454e3aa18ccfe050bb2 (diff) | |
download | pfsense-13c25b6ea2957c11a7619a604941a80ebe930267.zip pfsense-13c25b6ea2957c11a7619a604941a80ebe930267.tar.gz |
Code cleanup
Diffstat (limited to 'usr')
-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(); |