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:48 -0500 |
commit | 35b443af7325d3cdc6be76f381ea7e67bcf8d7b9 (patch) | |
tree | 8abf4b5d210ff64fefebf233f6ec433205e76d53 /usr/local | |
parent | f8bb2aacdcb344c68a8b79610d4b6e6b557495e5 (diff) | |
download | pfsense-35b443af7325d3cdc6be76f381ea7e67bcf8d7b9.zip pfsense-35b443af7325d3cdc6be76f381ea7e67bcf8d7b9.tar.gz |
No reason for the ppp log to use this display method, use dump_clog() instead.
Diffstat (limited to 'usr/local')
-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 036eaa5..de1bc83 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"); @@ -90,23 +88,7 @@ include("head.inc"); <tr> <td colspan="2" class="listtopic"><?php printf (gettext("Last $nentries 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> |