diff options
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index f839486..2fb7738 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -44,27 +44,6 @@ if ($_POST['clear']) { exec("/usr/sbin/clog -i -s 262144 {$filter_logfile}"); } -function dump_clog($logfile, $tail, $withorig = true) { - global $g, $config; - - $sor = isset($config['syslog']['reverse']) ? "-r" : ""; - - exec("/usr/sbin/clog {$logfile} | 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"; - } -} - /* format filter logs */ function conv_clog($logfile, $tail) { global $g, $config; |