diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-05 21:50:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-05 21:50:56 +0000 |
commit | 18330d38ae3f645070333a4f22156f079b257d5d (patch) | |
tree | 11712e67ac1925bf1151d460b2283c6a5217d2e4 /usr/local/www/diag_logs_vpn.php | |
parent | f06645b18a05d30d4a4588329ac4a5500879c7c9 (diff) | |
download | pfsense-18330d38ae3f645070333a4f22156f079b257d5d.zip pfsense-18330d38ae3f645070333a4f22156f079b257d5d.tar.gz |
Add OpenNTPD logging tab
Diffstat (limited to 'usr/local/www/diag_logs_vpn.php')
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index 9bd3b1d..ffcf4b1 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -1,22 +1,22 @@ #!/usr/local/bin/php -<?php +<?php /* diag_logs_vpn.php part of m0n0wall (http://m0n0.ch/wall) - + Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -50,19 +50,19 @@ function dump_clog_vpn($logfile, $tail) { $logarr = ""; exec("/usr/sbin/clog " . $logfile . " | tail {$sor} -n " . $tail, $logarr); - + foreach ($logarr as $logent) { $logent = preg_split("/\s+/", $logent, 6); $llent = explode(",", $logent[5]); - + echo "<tr>\n"; echo "<td class=\"listlr\" nowrap>" . htmlspecialchars(join(" ", array_slice($logent, 0, 3))) . "</td>\n"; - + 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[3]) . "</td>\n"; echo "<td class=\"listr\">" . htmlspecialchars($llent[2]) . " </td>\n"; echo "</tr>\n"; @@ -87,6 +87,7 @@ include("head.inc"); $tab_array[] = array("PPTP VPN", true, "diag_logs_vpn.php"); $tab_array[] = array("Load Balancer", false, "diag_logs_slbd.php"); $tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php"); + $tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php"); $tab_array[] = array("Settings", false, "diag_logs_settings.php"); display_top_tabs($tab_array); ?> @@ -94,7 +95,7 @@ include("head.inc"); <tr> <td class="tabcont"> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr> - <td colspan="4" class="listtopic"> + <td colspan="4" class="listtopic"> Last <?=$nentries;?> PPTP VPN log entries</td> </tr> <tr> |