Révision a2b16c0c
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/diag_dump_states.php | ||
---|---|---|
74 | 74 |
<form action="diag_dump_states.php" method="get" name="iform"> |
75 | 75 |
|
76 | 76 |
<script type="text/javascript"> |
77 |
//<![CDATA[ |
|
77 | 78 |
function removeState(srcip, dstip) { |
78 | 79 |
var busy = function(index,icon) { |
79 | 80 |
jQuery(icon).bind("onclick",""); |
... | ... | |
101 | 102 |
function(index,row) { jQuery(row).fadeOut(1000); } |
102 | 103 |
); |
103 | 104 |
} |
105 |
//]]> |
|
104 | 106 |
</script> |
105 | 107 |
|
106 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
108 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="tabcon">
|
|
107 | 109 |
<tr> |
108 | 110 |
<td> |
109 | 111 |
<?php |
... | ... | |
126 | 128 |
$current_statecount=`pfctl -si | grep "current entries" | awk '{ print $3 }'`; |
127 | 129 |
?> |
128 | 130 |
|
129 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
131 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="states">
|
|
130 | 132 |
<tr> |
131 | 133 |
<td> |
132 | 134 |
<form action="<?=$_SERVER['SCRIPT_NAME'];?>" method="get"> |
133 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
135 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="filter">
|
|
134 | 136 |
<tr> |
135 | 137 |
<td> |
136 | 138 |
<?=gettext("Current total state count");?>: <?= $current_statecount ?> |
... | ... | |
150 | 152 |
</tr> |
151 | 153 |
<tr> |
152 | 154 |
<td> |
153 |
<table class="tabcont sortable" width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
155 |
<table class="tabcont sortable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="results">
|
|
154 | 156 |
<thead> |
155 | 157 |
<tr> |
156 | 158 |
<th class="listhdrr" width="10%"><?=gettext("Proto");?></th> |
... | ... | |
183 | 185 |
$dstip = trim($parts[0]); |
184 | 186 |
|
185 | 187 |
?> |
186 |
<tr valign="top" name="r:<?= $srcip ?>:<?= $dstip ?>">
|
|
188 |
<tr valign="top" id="r:<?= $srcip ?>:<?= $dstip ?>">
|
|
187 | 189 |
<td class="listlr"><?= $proto ?></td> |
188 | 190 |
<td class="listr"><?= $info ?></td> |
189 | 191 |
<td class="listr"><?= $state ?></td> |
... | ... | |
227 | 229 |
</td> |
228 | 230 |
</tr> |
229 | 231 |
</table> |
232 |
</form> |
|
230 | 233 |
|
231 | 234 |
<?php require("fend.inc"); ?> |
232 | 235 |
</body> |
usr/local/www/diag_resetstate.php | ||
---|---|---|
70 | 70 |
<?php if ($input_errors) print_input_errors($input_errors); ?> |
71 | 71 |
<?php if ($savemsg) print_info_box($savemsg); ?> |
72 | 72 |
<form action="diag_resetstate.php" method="post" name="iform" id="iform"> |
73 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
73 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="reset states">
|
|
74 | 74 |
<tr><td> |
75 | 75 |
<?php |
76 | 76 |
$tab_array = array(); |
... | ... | |
81 | 81 |
display_top_tabs($tab_array); |
82 | 82 |
?> |
83 | 83 |
</td></tr> |
84 |
<tr><td class="tabcont">
|
|
84 |
<tr><td class="tabcont"> |
|
85 | 85 |
|
86 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
|
86 |
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
|
87 | 87 |
<tr> |
88 | 88 |
<td width="22%" valign="top" class="vtable"> </td> |
89 | 89 |
<td width="78%" class="vtable"> <p> |
90 |
<input name="statetable" type="checkbox" id="statetable" value="yes" checked> |
|
90 |
<input name="statetable" type="checkbox" id="statetable" value="yes" checked="checked" />
|
|
91 | 91 |
<strong><?= gettext("Firewall state table"); ?></strong><br /> |
92 | 92 |
<span class="vexpl"><br /> |
93 | 93 |
<?=gettext("Resetting the state tables will remove all entries from " . |
... | ... | |
109 | 109 |
<tr> |
110 | 110 |
<td width="22%" valign="top" class="vtable"> </td> |
111 | 111 |
<td width="78%" class="vtable"><p> |
112 |
<input name="sourcetracking" type="checkbox" id="sourcetracking" value="yes" checked> |
|
112 |
<input name="sourcetracking" type="checkbox" id="sourcetracking" value="yes" checked="checked" />
|
|
113 | 113 |
<strong><?= gettext("Firewall Source Tracking"); ?></strong><br /> |
114 | 114 |
<span class="vexpl"><br /> |
115 | 115 |
<?=gettext("Resetting the source tracking table will remove all source/destination associations. " . |
... | ... | |
124 | 124 |
<tr> |
125 | 125 |
<td width="22%" valign="top"> </td> |
126 | 126 |
<td width="78%"> |
127 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Reset"); ?>"> |
|
127 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Reset"); ?>" />
|
|
128 | 128 |
</td> |
129 | 129 |
</tr> |
130 | 130 |
</table> |
Formats disponibles : Unified diff
Tidy up "diag_dump_states" and "diag_resetstat"
Add CDATA sections to SCRIPTS
Add SUMMARY to TABLES
Add missing closing FORM tag
Update HTML Boolean operators
Close INPUT tags