From 18330d38ae3f645070333a4f22156f079b257d5d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 5 Oct 2006 21:50:56 +0000 Subject: Add OpenNTPD logging tab --- usr/local/www/diag_logs_vpn.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'usr/local/www/diag_logs_vpn.php') 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 -. 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 "\n"; echo "" . htmlspecialchars(join(" ", array_slice($logent, 0, 3))) . "\n"; - + if ($llent[0] == "login") echo "\n"; else echo "\n"; - + echo "" . htmlspecialchars($llent[3]) . "\n"; echo "" . htmlspecialchars($llent[2]) . " \n"; echo "\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"); - -- cgit v1.1
+ Last PPTP VPN log entries