Project

General

Profile

Download (3.05 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
require("guiconfig.inc");
33
34 963d5343 Bill Marquette
$portal_logfile = "{$g['varlog_path']}/portalauth.log";
35
36 ced6bc9a Scott Ullrich
$nentries = $config['syslog']['nentries'];
37
if (!$nentries)
38
	$nentries = 50;
39
40
if ($_POST['clear']) {
41 963d5343 Bill Marquette
	exec("/usr/sbin/clog -i -s 262144 {$portal_logfile}");
42 ced6bc9a Scott Ullrich
}
43
44 b63695db Scott Ullrich
$pgtitle = "Diagnostics: System logs: Portal Auth";
45
include("head.inc");
46
47 ced6bc9a Scott Ullrich
?>
48
49
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
50
<?php include("fbegin.inc"); ?>
51 310b2c06 Bill Marquette
<p class="pgtitle"><?=$pgtitle?></p>
52 ced6bc9a Scott Ullrich
<table width="100%" border="0" cellpadding="0" cellspacing="0">
53
  <tr><td>
54 b63695db Scott Ullrich
<?php
55
	$tab_array = array();
56 9972f533 Bill Marquette
	$tab_array[] = array("System", false, "diag_logs.php");
57
	$tab_array[] = array("Firewall", false, "diag_logs_filter.php");
58
	$tab_array[] = array("DHCP", false, "diag_logs_dhcp.php");
59
	$tab_array[] = array("Portal Auth", true, "diag_logs_auth.php");
60 907d8503 Chris Buechler
	$tab_array[] = array("IPsec VPN", false, "diag_logs_ipsec.php");
61 9972f533 Bill Marquette
	$tab_array[] = array("PPTP VPN", false, "diag_logs_vpn.php");
62 ba0a9384 Scott Ullrich
	$tab_array[] = array("Load Balancer", false, "diag_logs_slbd.php");
63 03491df0 Scott Ullrich
	$tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php");
64 18330d38 Scott Ullrich
	$tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php");
65 9972f533 Bill Marquette
	$tab_array[] = array("Settings", false, "diag_logs_settings.php");
66 b63695db Scott Ullrich
	display_top_tabs($tab_array);
67
?>
68 ced6bc9a Scott Ullrich
  </td></tr>
69
  <tr>
70 0f10aee4 Bill Marquette
    <td>
71
	<div id="mainarea">
72
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
73 ced6bc9a Scott Ullrich
		  <tr>
74
			<td colspan="2" class="listtopic">
75
			  Last <?=$nentries;?> Portal Auth log entries</td>
76
		  </tr>
77 6f11653f Colin Smith
		  <?php dump_clog($portal_logfile, $nentries, true); ?>
78 0f10aee4 Bill Marquette
		<tr><td><br><form action="diag_logs_auth.php" method="post">
79
<input name="clear" type="submit" class="formbtn" value="Clear log"></td></tr>
80 ced6bc9a Scott Ullrich
		</table>
81 0f10aee4 Bill Marquette
	</div>
82 ced6bc9a Scott Ullrich
</form>
83
	</td>
84
  </tr>
85
</table>
86
<?php include("fend.inc"); ?>
87
</body>
88 b46bfcf5 Bill Marquette
</html>