diff options
author | jim-p <jimp@pfsense.org> | 2010-11-02 12:52:10 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-02 12:52:10 -0400 |
commit | 874e5f2cc93e35ac2f8609e22e8a346f8487e526 (patch) | |
tree | 69d3fb69308c88ac9868f82dd55c596d326223a0 /usr | |
parent | 2f9d2dc2f02e22d6e310dcff0ff6de597392acc6 (diff) | |
download | pfsense-874e5f2cc93e35ac2f8609e22e8a346f8487e526.zip pfsense-874e5f2cc93e35ac2f8609e22e8a346f8487e526.tar.gz |
Fix VPN log page to use the updated log format (again). Ticket #912.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index 025663d..6e927d1 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -74,18 +74,19 @@ function dump_clog_vpn($logfile, $tail) { foreach ($logarr as $logent) { $logent = preg_split("/\s+/", $logent, 6); $llent = explode(",", $logent[5]); - if ($llent[0] != $vpntype) + $iftype = substr($llent[1], 0, 4); + if ($iftype != $vpntype) continue; echo "<tr>\n"; echo "<td class=\"listlr\" nowrap>" . htmlspecialchars(join(" ", array_slice($logent, 0, 3))) . "</td>\n"; - if ($llent[1] == "login") + if ($llent[0] == "login") echo "<td class=\"listr\"><img src=\"/themes/{$g['theme']}/images/icons/icon_in.gif\" width=\"11\" height=\"11\" title=\"login\"></td>\n"; else echo "<td class=\"listr\"><img src=\"/themes/{$g['theme']}/images/icons/icon_out.gif\" width=\"11\" height=\"11\" title=\"logout\"></td>\n"; - echo "<td class=\"listr\">" . htmlspecialchars($llent[4]) . "</td>\n"; - echo "<td class=\"listr\">" . htmlspecialchars($llent[3]) . " </td>\n"; + echo "<td class=\"listr\">" . htmlspecialchars($llent[3]) . "</td>\n"; + echo "<td class=\"listr\">" . htmlspecialchars($llent[2]) . " </td>\n"; echo "</tr>\n"; } } @@ -121,7 +122,7 @@ include("head.inc"); <?=gettext("Choose which type of VPN you want to view.");?> </td></tr><tr> <td colspan="4"> - <?php $vpns = array("pptp" => gettext("PPTP"), "pppoe" => gettext("PPPoE"), "l2tp" => gettext("L2TP")); + <?php $vpns = array("pptp" => gettext("PPTP"), "poes" => gettext("PPPoE"), "l2tp" => gettext("L2TP")); foreach ($vpns as $kvpn => $dvpn): ?> <a href="/diag_logs_vpn.php?vpntype=<?=$kvpn;?>" > |