Projet

Général

Profil

Télécharger (4,12 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / www / diag_logs_wireless.php @ fab1cd2f

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
	All rights reserved.
11

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

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

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

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

    
34
/*	
35
	pfSense_MODULE:	routing
36
*/
37

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

    
45
require("guiconfig.inc");
46

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

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

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

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

    
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 system wireless">
65
  <tr><td>
66
<?php
67
	$tab_array = array();
68
	$tab_array[] = array(gettext("System"), true, "diag_logs.php");
69
	$tab_array[] = array(gettext("Firewall"), false, "diag_logs_filter.php");
70
	$tab_array[] = array(gettext("DHCP"), false, "diag_logs_dhcp.php");
71
	$tab_array[] = array(gettext("Portal Auth"), false, "diag_logs_auth.php");
72
	$tab_array[] = array(gettext("IPsec"), false, "diag_logs_ipsec.php");
73
	$tab_array[] = array(gettext("PPP"), false, "diag_logs_ppp.php");
74
	$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
75
	$tab_array[] = array(gettext("Load Balancer"), false, "diag_logs_relayd.php");
76
	$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
77
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
78
	$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
79
	display_top_tabs($tab_array);
80
?>
81
  </td></tr>
82
  <tr><td class="tabnavtbl">
83
<?php
84
	$tab_array = array();
85
	$tab_array[] = array(gettext("General"), false, "/diag_logs.php");
86
	$tab_array[] = array(gettext("Gateways"), false, "/diag_logs_gateways.php");
87
	$tab_array[] = array(gettext("Routing"), false, "/diag_logs_routing.php");
88
	$tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php");
89
	$tab_array[] = array(gettext("Wireless"), true, "/diag_logs_wireless.php");
90
        display_top_tabs($tab_array);
91
?>
92
                </td>
93
        </tr>
94
  <tr>
95
    <td>
96
	<div id="mainarea">
97
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
98
		  <tr>
99
			<td colspan="2" class="listtopic">
100
			  <?php printf(gettext("Wireless (hostapd) log entries"),$nentries);?></td>
101
		  </tr>
102
		  <?php dump_clog($wireless_logfile, $nentries); ?>
103
		<tr><td><br /><form action="diag_logs_wireless.php" method="post">
104
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr>
105
		</table>
106
	</div>
107
	</td>
108
  </tr>
109
</table>
110
<?php include("fend.inc"); ?>
111
</body>
112
</html>
(35-35/255)