Project

General

Profile

Download (3.66 KB) Statistics
| Branch: | Tag: | Revision:
1 55f3ca1d gnhb
<?php
2
/* $Id$ */
3
/*
4 ce77a9c4 Phil Davis
	diag_logs_ppp.php
5 55f3ca1d gnhb
	Copyright (C) 2004-2009 Scott Ullrich
6 ce77a9c4 Phil Davis
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
7 55f3ca1d gnhb
	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 f8ec8de4 Renato Botelho
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP"));
59 55f3ca1d gnhb
include("head.inc");
60
61
?>
62
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
63
<?php include("fbegin.inc"); ?>
64 60219c69 Colin Fleming
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs ppp">
65 55f3ca1d gnhb
 	<tr>
66
		<td>
67
<?php
68
	$tab_array = array();
69 f8ec8de4 Renato Botelho
	$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 ae2c143a jim-p
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
79 f8ec8de4 Renato Botelho
	$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
80 55f3ca1d gnhb
	display_top_tabs($tab_array);
81
?>
82
  		</td>
83
	</tr>
84
	<tr>
85
    	<td>
86
			<div id="mainarea">
87 60219c69 Colin Fleming
			<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
88 55f3ca1d gnhb
		  		<tr>
89 d1d0a1ad Vinicius Coque
					<td colspan="2" class="listtopic"><?php printf(gettext("Last %s PPP log entries"),$nentries);?></td>
90 55f3ca1d gnhb
		  		</tr>
91 f0469c5c jim-p
				<?php dump_clog($ppp_logfile, $nentries); ?>
92 55f3ca1d gnhb
				<tr>
93
					<td>
94 8cd558b6 ayvis
						<br />
95 55f3ca1d gnhb
						<form action="diag_logs_ppp.php" method="post">
96 60219c69 Colin Fleming
						<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
97 55f3ca1d gnhb
						</form>
98
					</td>
99
				</tr>
100
			</table>
101
			</div>
102
		</td>
103
	</tr>
104
</table>
105
<?php include("fend.inc"); ?>
106
</body>
107
</html>