Project

General

Profile

Download (4.17 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
	diag_logs_wireless.php
5
	part of pfSense
6

    
7
	Copyright (C) 2008 Bill Marquette <bill.marquette@gmail.com>.
8
	Copyright (C) 2008 Seth Mos <seth.mos@dds.nl>.
9
	Copyright (C) 2011 Jim Pingle <jimp@pfsense.org>.
10
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
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_MODULE:	routing
37
*/
38

    
39
##|+PRIV
40
##|*IDENT=page-status-systemlogs-wireless
41
##|*NAME=Status: System logs: Wireless page
42
##|*DESCR=Allow access to the 'Status: System logs: System: Wireless' page.
43
##|*MATCH=diag_logs_wireless.php*
44
##|-PRIV
45

    
46
require("guiconfig.inc");
47

    
48
$wireless_logfile = "{$g['varlog_path']}/wireless.log";
49

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

    
54
if ($_POST['clear']) 
55
	clear_log_file($wireless_logfile);
56

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

    
61
?>
62

    
63
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
64
<?php include("fbegin.inc"); ?>
65
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs system wireless">
66
  <tr><td>
67
<?php
68
	$tab_array = array();
69
	$tab_array[] = array(gettext("System"), true, "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"), false, "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></tr>
83
  <tr><td class="tabnavtbl">
84
<?php
85
	$tab_array = array();
86
	$tab_array[] = array(gettext("General"), false, "/diag_logs.php");
87
	$tab_array[] = array(gettext("Gateways"), false, "/diag_logs_gateways.php");
88
	$tab_array[] = array(gettext("Routing"), false, "/diag_logs_routing.php");
89
	$tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php");
90
	$tab_array[] = array(gettext("Wireless"), true, "/diag_logs_wireless.php");
91
        display_top_tabs($tab_array);
92
?>
93
                </td>
94
        </tr>
95
  <tr>
96
    <td>
97
	<div id="mainarea">
98
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
99
		  <tr>
100
			<td colspan="2" class="listtopic">
101
			  <?php printf(gettext("Wireless (hostapd) log entries"),$nentries);?></td>
102
		  </tr>
103
		  <?php dump_clog($wireless_logfile, $nentries); ?>
104
		<tr><td><br /><form action="diag_logs_wireless.php" method="post">
105
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr>
106
		</table>
107
	</div>
108
	</td>
109
  </tr>
110
</table>
111
<?php include("fend.inc"); ?>
112
</body>
113
</html>
(36-36/256)