diff options
author | Bill Marquette <billm@pfsense.org> | 2005-02-28 00:49:29 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-02-28 00:49:29 +0000 |
commit | 26ad1de19a206817ebba2c5a949f52042ca985f2 (patch) | |
tree | 51546f8c6a1743fca2fc0a72872e1edc8fdc39b8 | |
parent | bc328042f97ad231d696be3fa95f56a2a0ef70b3 (diff) | |
download | pfsense-26ad1de19a206817ebba2c5a949f52042ca985f2.zip pfsense-26ad1de19a206817ebba2c5a949f52042ca985f2.tar.gz |
more path cleanup
-rwxr-xr-x | usr/local/www/diag_logs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php index 31b0a99..a512f21 100755 --- a/usr/local/www/diag_logs.php +++ b/usr/local/www/diag_logs.php @@ -38,7 +38,7 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { - exec("/usr/sbin/clog -i -s 262144 /var/log/system.log"); + exec("/usr/sbin/clog -i -s 262144 {$g['varlog_path']}/system.log"); } function dump_clog($logfile, $tail, $withorig = true) { @@ -46,7 +46,7 @@ function dump_clog($logfile, $tail, $withorig = true) { $sor = isset($config['syslog']['reverse']) ? "-r" : ""; - exec("/usr/sbin/clog " . $logfile . " | tail {$sor} -n " . $tail, $logarr); + exec("/usr/sbin/clog " . $logfile . " | /usr/bin/tail {$sor} -n " . $tail, $logarr); foreach ($logarr as $logent) { $logent = preg_split("/\s+/", $logent, 6); @@ -92,7 +92,7 @@ function dump_clog($logfile, $tail, $withorig = true) { <td colspan="2" class="listtopic"> Last <?=$nentries;?> system log entries</td> </tr> - <?php dump_clog("/var/log/system.log", $nentries); ?> + <?php dump_clog("{$g['varlog_path']}/system.log", $nentries); ?> </table> <br><form action="diag_logs.php" method="post"> <input name="clear" type="submit" class="formbtn" value="Clear log"> |