diff options
author | jim-p <jimp@pfsense.org> | 2013-01-21 10:02:07 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-01-21 10:02:07 -0500 |
commit | f0469c5c3480834253ed51391bff6aab1e483fe2 (patch) | |
tree | 01163435abfac1da7682c7000ad1a5baa1c74e0f /usr/local/www | |
parent | 39f245c821a5320734701bc1976711c6e57dc1f9 (diff) | |
download | pfsense-f0469c5c3480834253ed51391bff6aab1e483fe2.zip pfsense-f0469c5c3480834253ed51391bff6aab1e483fe2.tar.gz |
No reason for the ppp log to use this display method, use dump_clog() instead.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_logs_ppp.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/usr/local/www/diag_logs_ppp.php b/usr/local/www/diag_logs_ppp.php index 929edb7..0cd6be8 100755 --- a/usr/local/www/diag_logs_ppp.php +++ b/usr/local/www/diag_logs_ppp.php @@ -54,8 +54,6 @@ if (!$nentries) if ($_POST['clear']) clear_log_file($ppp_logfile); -$ppp_logarr = return_clog($ppp_logfile, $nentries); - $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP")); include("head.inc"); @@ -89,23 +87,7 @@ include("head.inc"); <tr> <td colspan="2" class="listtopic"><?php printf(gettext("Last %s PPP log entries"),$nentries);?></td> </tr> - <?php - foreach($ppp_logarr as $logent){ - if(isset($match)) { - $logent = preg_replace($search, $replace, $logent); - } else { - $searchs = "/(racoon: )([A-Z:].*?)([0-9].+\.[0-9].+.[0-9].+.[0-9].+\[[0-9].+\])(.*)/i"; - $replaces = "$1<strong><font color=red>[".gettext("Unknown Gateway/Dynamic")."]</font></strong>: $2$3$4"; - $logent = preg_replace($searchs, $replaces, $logent); - } - $logent = preg_split("/\s+/", $logent, 6); - echo "<tr valign=\"top\">\n"; - $entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3))); - echo "<td class=\"listlr\" nowrap>" . $entry_date_time . "</td>\n"; - echo "<td class=\"listr\">" . $logent[4] . " " . $logent[5] . "</td>\n"; - echo "</tr>\n"; - } - ?> + <?php dump_clog($ppp_logfile, $nentries); ?> <tr> <td> <br> |