Revision 5f601060
Added by Phil Davis over 10 years ago
usr/local/www/diag_logs_wireless.php | ||
---|---|---|
32 | 32 |
POSSIBILITY OF SUCH DAMAGE. |
33 | 33 |
*/ |
34 | 34 |
|
35 |
/*
|
|
35 |
/* |
|
36 | 36 |
pfSense_MODULE: routing |
37 | 37 |
*/ |
38 | 38 |
|
... | ... | |
48 | 48 |
$wireless_logfile = "{$g['varlog_path']}/wireless.log"; |
49 | 49 |
|
50 | 50 |
$nentries = $config['syslog']['nentries']; |
51 |
if (!$nentries) |
|
51 |
if (!$nentries) {
|
|
52 | 52 |
$nentries = 50; |
53 |
} |
|
53 | 54 |
|
54 |
if ($_POST['clear']) |
|
55 |
if ($_POST['clear']) {
|
|
55 | 56 |
clear_log_file($wireless_logfile); |
57 |
} |
|
56 | 58 |
|
57 | 59 |
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Wireless")); |
58 | 60 |
$shortcut_section = "wireless"; |
... | ... | |
63 | 65 |
<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> |
64 | 66 |
<?php include("fbegin.inc"); ?> |
65 | 67 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs system wireless"> |
66 |
<tr><td> |
|
68 |
<tr> |
|
69 |
<td> |
|
67 | 70 |
<?php |
68 | 71 |
$tab_array = array(); |
69 | 72 |
$tab_array[] = array(gettext("System"), true, "diag_logs.php"); |
... | ... | |
79 | 82 |
$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php"); |
80 | 83 |
display_top_tabs($tab_array); |
81 | 84 |
?> |
82 |
</td></tr> |
|
83 |
<tr><td class="tabnavtbl"> |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
<tr> |
|
88 |
<td class="tabnavtbl"> |
|
84 | 89 |
<?php |
85 | 90 |
$tab_array = array(); |
86 | 91 |
$tab_array[] = array(gettext("General"), false, "/diag_logs.php"); |
... | ... | |
88 | 93 |
$tab_array[] = array(gettext("Routing"), false, "/diag_logs_routing.php"); |
89 | 94 |
$tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php"); |
90 | 95 |
$tab_array[] = array(gettext("Wireless"), true, "/diag_logs_wireless.php"); |
91 |
display_top_tabs($tab_array);
|
|
96 |
display_top_tabs($tab_array);
|
|
92 | 97 |
?> |
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> |
|
98 |
</td> |
|
99 |
</tr> |
|
100 |
<tr> |
|
101 |
<td> |
|
102 |
<div id="mainarea"> |
|
103 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area"> |
|
104 |
<tr> |
|
105 |
<td colspan="2" class="listtopic"> |
|
106 |
<?php printf(gettext("Wireless (hostapd) log entries"),$nentries);?> |
|
107 |
</td> |
|
108 |
</tr> |
|
109 |
<?php dump_clog($wireless_logfile, $nentries); ?> |
|
110 |
<tr> |
|
111 |
<td> |
|
112 |
<br /> |
|
113 |
<form action="diag_logs_wireless.php" method="post"> |
|
114 |
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /> |
|
115 |
</form> |
|
116 |
</td> |
|
117 |
</tr> |
|
118 |
</table> |
|
119 |
</div> |
|
120 |
</td> |
|
121 |
</tr> |
|
110 | 122 |
</table> |
111 | 123 |
<?php include("fend.inc"); ?> |
112 | 124 |
</body> |
Also available in: Unified diff
Code style usr-local-www diag