Project

General

Profile

Download (3.3 KB) Statistics
| Branch: | Tag: | Revision:
1 ced6bc9a Scott Ullrich
<?php
2 b46bfcf5 Bill Marquette
/* $Id$ */
3 ced6bc9a Scott Ullrich
/*
4
	diag_logs_auth.php
5
	part of m0n0wall (http://m0n0.ch/wall)
6
7
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
8
	All rights reserved.
9
10
	Redistribution and use in source and binary forms, with or without
11
	modification, are permitted provided that the following conditions are met:
12
13
	1. Redistributions of source code must retain the above copyright notice,
14
	   this list of conditions and the following disclaimer.
15
16
	2. Redistributions in binary form must reproduce the above copyright
17
	   notice, this list of conditions and the following disclaimer in the
18
	   documentation and/or other materials provided with the distribution.
19
20
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
21
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
24
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
	POSSIBILITY OF SUCH DAMAGE.
30
*/
31
32 13d193c2 Scott Ullrich
/*		
33
	pfSense_MODULE:	captiveportal
34
*/
35
36 6b07c15a Matthew Grooms
##|+PRIV
37
##|*IDENT=page-status-systemlogs-portalauth
38
##|*NAME=Status: System logs: Portal Auth page
39
##|*DESCR=Allow access to the 'Status: System logs: Portal Auth' page.
40
##|*MATCH=diag_logs_auth.php*
41
##|-PRIV
42
43 ced6bc9a Scott Ullrich
require("guiconfig.inc");
44
45 963d5343 Bill Marquette
$portal_logfile = "{$g['varlog_path']}/portalauth.log";
46
47 ced6bc9a Scott Ullrich
$nentries = $config['syslog']['nentries'];
48
if (!$nentries)
49
	$nentries = 50;
50
51 d6abaa18 Scott Ullrich
if ($_POST['clear']) 
52
	clear_log_file($portal_logfile);
53 ced6bc9a Scott Ullrich
54 d88c6a9f Scott Ullrich
$pgtitle = array("Status","System logs","Portal Auth");
55 b63695db Scott Ullrich
include("head.inc");
56
57 ced6bc9a Scott Ullrich
?>
58
59
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
60
<?php include("fbegin.inc"); ?>
61
<table width="100%" border="0" cellpadding="0" cellspacing="0">
62
  <tr><td>
63 b63695db Scott Ullrich
<?php
64
	$tab_array = array();
65 9972f533 Bill Marquette
	$tab_array[] = array("System", false, "diag_logs.php");
66
	$tab_array[] = array("Firewall", false, "diag_logs_filter.php");
67
	$tab_array[] = array("DHCP", false, "diag_logs_dhcp.php");
68
	$tab_array[] = array("Portal Auth", true, "diag_logs_auth.php");
69 220ee0de Scott Ullrich
	$tab_array[] = array("IPsec", false, "diag_logs_ipsec.php");
70 295e19dd Scott Ullrich
	$tab_array[] = array("PPP", false, "diag_logs_ppp.php");
71 9972f533 Bill Marquette
	$tab_array[] = array("PPTP VPN", false, "diag_logs_vpn.php");
72 1348a09b Seth Mos
	$tab_array[] = array("Load Balancer", false, "diag_logs_relayd.php");
73 03491df0 Scott Ullrich
	$tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php");
74 18330d38 Scott Ullrich
	$tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php");
75 9972f533 Bill Marquette
	$tab_array[] = array("Settings", false, "diag_logs_settings.php");
76 b63695db Scott Ullrich
	display_top_tabs($tab_array);
77
?>
78 ced6bc9a Scott Ullrich
  </td></tr>
79
  <tr>
80 0f10aee4 Bill Marquette
    <td>
81
	<div id="mainarea">
82
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
83 ced6bc9a Scott Ullrich
		  <tr>
84
			<td colspan="2" class="listtopic">
85
			  Last <?=$nentries;?> Portal Auth log entries</td>
86
		  </tr>
87 6f11653f Colin Smith
		  <?php dump_clog($portal_logfile, $nentries, true); ?>
88 0f10aee4 Bill Marquette
		<tr><td><br><form action="diag_logs_auth.php" method="post">
89 13d193c2 Scott Ullrich
			<input name="clear" type="submit" class="formbtn" value="Clear log"></td></tr>
90 ced6bc9a Scott Ullrich
		</table>
91 0f10aee4 Bill Marquette
	</div>
92 13d193c2 Scott Ullrich
	</form>
93 ced6bc9a Scott Ullrich
	</td>
94
  </tr>
95
</table>
96
<?php include("fend.inc"); ?>
97
</body>
98 b46bfcf5 Bill Marquette
</html>