Project

General

Profile

Download (3.66 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
	diag_logs_ppp.php
5
	Copyright (C) 2004-2009 Scott Ullrich
6
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
7
	All rights reserved.
8

    
9
	originally part of m0n0wall (http://m0n0.ch/wall)
10
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
11
	All rights reserved.
12

    
13
	Redistribution and use in source and binary forms, with or without
14
	modification, are permitted provided that the following conditions are met:
15

    
16
	1. Redistributions of source code must retain the above copyright notice,
17
	   this list of conditions and the following disclaimer.
18

    
19
	2. Redistributions in binary form must reproduce the above copyright
20
	   notice, this list of conditions and the following disclaimer in the
21
	   documentation and/or other materials provided with the distribution.
22

    
23
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
24
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
27
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
	POSSIBILITY OF SUCH DAMAGE.
33
*/
34

    
35
/*	
36
	pfSense_BUILDER_BINARIES:	/sbin/ifconfig	/usr/bin/awk	
37
	pfSense_MODULE:
38
*/
39

    
40
##|+PRIV
41
##|*IDENT=page-status-systemlogs-ppp
42
##|*NAME=Status: System logs: IPsec VPN page
43
##|*DESCR=Allow access to the 'Status: System logs: IPsec VPN' page.
44
##|*MATCH=diag_logs_ppp.php*
45
##|-PRIV
46

    
47
require("guiconfig.inc");
48

    
49
$ppp_logfile = "{$g['varlog_path']}/ppp.log";
50

    
51
$nentries = $config['syslog']['nentries'];
52
if (!$nentries)
53
	$nentries = 50;
54

    
55
if ($_POST['clear']) 
56
	clear_log_file($ppp_logfile);
57

    
58
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP"));
59
include("head.inc");
60

    
61
?>
62
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
63
<?php include("fbegin.inc"); ?>
64
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs ppp">
65
 	<tr>
66
		<td>
67
<?php
68
	$tab_array = array();
69
	$tab_array[] = array(gettext("System"), false, "diag_logs.php");
70
	$tab_array[] = array(gettext("Firewall"), false, "diag_logs_filter.php");
71
	$tab_array[] = array(gettext("DHCP"), false, "diag_logs_dhcp.php");
72
	$tab_array[] = array(gettext("Portal Auth"), false, "diag_logs_auth.php");
73
	$tab_array[] = array(gettext("IPsec"), false, "diag_logs_ipsec.php");
74
	$tab_array[] = array(gettext("PPP"), true, "diag_logs_ppp.php");
75
	$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
76
	$tab_array[] = array(gettext("Load Balancer"), false, "diag_logs_relayd.php");
77
	$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
78
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
79
	$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
80
	display_top_tabs($tab_array);
81
?>
82
  		</td>
83
	</tr>
84
	<tr>
85
    	<td>
86
			<div id="mainarea">
87
			<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
88
		  		<tr>
89
					<td colspan="2" class="listtopic"><?php printf(gettext("Last %s PPP log entries"),$nentries);?></td>
90
		  		</tr>
91
				<?php dump_clog($ppp_logfile, $nentries); ?>
92
				<tr>
93
					<td>
94
						<br />
95
						<form action="diag_logs_ppp.php" method="post">
96
						<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
97
						</form>
98
					</td>
99
				</tr>
100
			</table>
101
			</div>
102
		</td>
103
	</tr>
104
</table>
105
<?php include("fend.inc"); ?>
106
</body>
107
</html>
(30-30/252)