Revision 5f601060
Added by Phil Davis about 10 years ago
usr/local/www/diag_pf_info.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
/* $Id$ */ |
3 | 3 |
/* |
4 |
diag_pf_info.php
|
|
5 |
Copyright (C) 2010 Scott Ullrich
|
|
6 |
Copyright (C) 2013-2015 Electric Sheep Fencing, LP
|
|
7 |
All rights reserved.
|
|
4 |
diag_pf_info.php
|
|
5 |
Copyright (C) 2010 Scott Ullrich
|
|
6 |
Copyright (C) 2013-2015 Electric Sheep Fencing, LP
|
|
7 |
All rights reserved.
|
|
8 | 8 |
|
9 |
Redistribution and use in source and binary forms, with or without
|
|
10 |
modification, are permitted provided that the following conditions are met:
|
|
9 |
Redistribution and use in source and binary forms, with or without
|
|
10 |
modification, are permitted provided that the following conditions are met:
|
|
11 | 11 |
|
12 |
1. Redistributions of source code must retain the above copyright notice,
|
|
13 |
this list of conditions and the following disclaimer.
|
|
12 |
1. Redistributions of source code must retain the above copyright notice,
|
|
13 |
this list of conditions and the following disclaimer.
|
|
14 | 14 |
|
15 |
2. Redistributions in binary form must reproduce the above copyright
|
|
16 |
notice, this list of conditions and the following disclaimer in the
|
|
17 |
documentation and/or other materials provided with the distribution.
|
|
15 |
2. Redistributions in binary form must reproduce the above copyright
|
|
16 |
notice, this list of conditions and the following disclaimer in the
|
|
17 |
documentation and/or other materials provided with the distribution.
|
|
18 | 18 |
|
19 |
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
20 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21 |
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
22 |
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
23 |
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
24 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
25 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
26 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
27 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
28 |
POSSIBILITY OF SUCH DAMAGE.
|
|
19 |
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
20 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21 |
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
22 |
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
23 |
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
24 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
25 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
26 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
27 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
28 |
POSSIBILITY OF SUCH DAMAGE.
|
|
29 | 29 |
*/ |
30 | 30 |
|
31 | 31 |
/* |
... | ... | |
44 | 44 |
|
45 | 45 |
$pgtitle = gettext("Diagnostics: pfInfo"); |
46 | 46 |
|
47 |
if($_REQUEST['getactivity']) { |
|
47 |
if ($_REQUEST['getactivity']) {
|
|
48 | 48 |
$text = `/sbin/pfctl -vvsi`; |
49 | 49 |
$text .= "<p/>"; |
50 | 50 |
$text .= `/sbin/pfctl -vvsm`; |
... | ... | |
81 | 81 |
</script> |
82 | 82 |
<div id="maincontent"> |
83 | 83 |
<?php |
84 |
if($savemsg) { |
|
84 |
if ($savemsg) {
|
|
85 | 85 |
echo "<div id=\"savemsg\">"; |
86 | 86 |
print_info_box($savemsg); |
87 |
echo "</div>";
|
|
87 |
echo "</div>"; |
|
88 | 88 |
} |
89 |
if ($input_errors) |
|
89 |
if ($input_errors) {
|
|
90 | 90 |
print_input_errors($input_errors); |
91 |
} |
|
91 | 92 |
?> |
92 | 93 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="diag pf info"> |
93 |
<tr>
|
|
94 |
<td>
|
|
95 |
<table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="tabcont"> |
|
96 |
<tr> |
|
97 |
<td align="center"> |
|
98 |
<table summary="results"> |
|
99 |
<tr><td> |
|
100 |
<div id="pfactivitydiv"> |
|
101 |
<?=gettext("Gathering PF information, please wait...");?> |
|
102 |
</div> |
|
103 |
</td></tr> |
|
104 |
</table> |
|
105 |
</td> |
|
106 |
</tr> |
|
107 |
</table> |
|
108 |
</td>
|
|
109 |
</tr>
|
|
94 |
<tr>
|
|
95 |
<td>
|
|
96 |
<table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="tabcont">
|
|
97 |
<tr>
|
|
98 |
<td align="center">
|
|
99 |
<table summary="results">
|
|
100 |
<tr><td>
|
|
101 |
<div id="pfactivitydiv">
|
|
102 |
<?=gettext("Gathering PF information, please wait...");?>
|
|
103 |
</div>
|
|
104 |
</td></tr>
|
|
105 |
</table>
|
|
106 |
</td>
|
|
107 |
</tr>
|
|
108 |
</table>
|
|
109 |
</td>
|
|
110 |
</tr>
|
|
110 | 111 |
</table> |
111 | 112 |
</div> |
112 | 113 |
<?php include("fend.inc"); ?> |
Also available in: Unified diff
Code style usr-local-www diag