diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-05 00:45:49 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-05 00:45:49 +0000 |
commit | 1982ad48c10d5c945e2e0127dab571daca7df6e6 (patch) | |
tree | 5173483fa7fbe1c7cc0d7a3b22df81c21b2a9e0a /usr | |
parent | 2c64eed71bea98db80752c89a504c0d9302015c5 (diff) | |
download | pfsense-1982ad48c10d5c945e2e0127dab571daca7df6e6.zip pfsense-1982ad48c10d5c945e2e0127dab571daca7df6e6.tar.gz |
Remove dump_clog.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs.php | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php index f2fbfa4..2ee9b1e 100755 --- a/usr/local/www/diag_logs.php +++ b/usr/local/www/diag_logs.php @@ -44,27 +44,6 @@ if ($_POST['clear']) { exec("/usr/sbin/clog -i -s 262144 {$system_logfile}"); } -function dump_clog($logfile, $tail, $withorig = true) { - global $g, $config; - - $sor = isset($config['syslog']['reverse']) ? "-r" : ""; - - exec("/usr/sbin/clog {$logfile} | /usr/bin/grep -v racoon | /usr/bin/tail {$sor} -n {$tail}", $logarr); - - foreach ($logarr as $logent) { - $logent = preg_split("/\s+/", $logent, 6); - echo "<tr valign=\"top\">\n"; - - if ($withorig) { - echo "<td class=\"listlr\" nowrap>" . htmlspecialchars(join(" ", array_slice($logent, 0, 3))) . "</td>\n"; - echo "<td class=\"listr\">" . htmlspecialchars($logent[4] . " " . $logent[5]) . "</td>\n"; - } else { - echo "<td class=\"listlr\" colspan=\"2\">" . htmlspecialchars($logent[5]) . "</td>\n"; - } - echo "</tr>\n"; - } -} - ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> @@ -96,7 +75,7 @@ function dump_clog($logfile, $tail, $withorig = true) { <td colspan="2" class="listtopic"> Last <?=$nentries;?> system log entries</td> </tr> - <?php dump_clog($system_logfile, $nentries); ?> + <?php dump_clog($system_logfile, $nentries, "racoon", true); ?> </table> <br><form action="diag_logs.php" method="post"> <input name="clear" type="submit" class="formbtn" value="Clear log"> |