Révision 339a588f
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/diag_sockets.php | ||
---|---|---|
55 | 55 |
|
56 | 56 |
?> |
57 | 57 |
<div id="mainarea"> |
58 |
<table class="tabcont" width="100%"> |
|
58 |
<table class="tabcont" width="100%" summary="diag sockets">
|
|
59 | 59 |
<tr> |
60 | 60 |
<td>Information about listening sockets for both <a href="#IPv4">IPv4</a> and <a href="#IPv6">IPv6</a>.</td> |
61 | 61 |
</tr> |
... | ... | |
63 | 63 |
<td>For explanation about the meaning of the information listed for each socket click <a href="#about">here</a>.</td> |
64 | 64 |
</tr> |
65 | 65 |
<tr> |
66 |
<td><input type="button" value="<?=$showAllText?>" ONCLICK="window.location.href='diag_sockets.php<?=$showAllOption?>'"/>To show information about both listening and connected sockets click this.</td>
|
|
66 |
<td><input type="button" value="<?=$showAllText?>" onclick="window.location.href='diag_sockets.php<?=$showAllOption?>'"/>To show information about both listening and connected sockets click this.</td>
|
|
67 | 67 |
</tr> |
68 | 68 |
</table> |
69 | 69 |
|
... | ... | |
81 | 81 |
$name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); |
82 | 82 |
?> |
83 | 83 |
<a name="<?=$name;?>"></a> |
84 |
<table style="padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
85 |
<tr><td class="listtopic" colspan="<?=$elements?>"><strong><?=$name;?></strong></font></td></tr>
|
|
84 |
<table style="padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0" summary="tab">
|
|
85 |
<tr><td class="listtopic" colspan="<?=$elements?>"><strong><?=$name;?></strong></td></tr> |
|
86 | 86 |
<tr><td> |
87 |
<table class="tabcont sortable" id="sortabletable" width="100%" cellspacing="0" cellpadding="6" border="0"> |
|
87 |
<table class="tabcont sortable" id="sortabletable" width="100%" cellspacing="0" cellpadding="6" border="0" summary="results">
|
|
88 | 88 |
<?php |
89 | 89 |
foreach (explode("\n", $table) as $i => $line) { |
90 | 90 |
if ($i == 0) |
... | ... | |
94 | 94 |
|
95 | 95 |
if (trim($line) == "") |
96 | 96 |
continue; |
97 |
print("<tr id=\"$i\">\n"); |
|
97 |
print("<tr id=\"$name$i\">\n");
|
|
98 | 98 |
$j = 0; |
99 | 99 |
foreach (explode(' ', $line) as $entry) { |
100 | 100 |
if ($entry == '' || $entry == "ADDRESS") continue; |
... | ... | |
113 | 113 |
<?php |
114 | 114 |
} |
115 | 115 |
?> |
116 |
</table> |
|
116 |
|
|
117 | 117 |
<br /> |
118 | 118 |
<a name="about"></a> |
119 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" border="1">
|
|
119 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="info">
|
|
120 | 120 |
<tr><td colspan="2" class="listtopic" >Socket information explanation</td></tr> |
121 |
<tr><td colspan="2" class="">
|
|
121 |
<tr><td colspan="2" class="listhdrr">
|
|
122 | 122 |
This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".<br /> |
123 | 123 |
Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".<br /> |
124 | 124 |
<br /> |
... | ... | |
136 | 136 |
<?php |
137 | 137 |
include('fend.inc'); |
138 | 138 |
?> |
139 |
</body> |
|
140 |
</html> |
Formats disponibles : Unified diff
Tidy up "diag_sockets.php" XHTML
Add SUMMARY to TABLES
Change "onclick" to lower case
Remove closing FONT tag
ID cannot start with a number, so add PHP $name variable
Remove duplicate closing TABLE tag
Remove duplicate BORDER statement
Add missing closing BODY and closing HTML tags