summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_sockets.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-05-17 18:00:07 +0100
committerColin Fleming <cj_fleming@sky.com>2014-05-17 18:00:07 +0100
commit339a588fe1ab3a1f31dd2ddb0dced2f9060c8503 (patch)
tree73dd05f63e781893e931b999cfc2402317db7d5b /usr/local/www/diag_sockets.php
parent024068017f98572f6bd41b7ba542fc36fccee39a (diff)
downloadpfsense-339a588fe1ab3a1f31dd2ddb0dced2f9060c8503.zip
pfsense-339a588fe1ab3a1f31dd2ddb0dced2f9060c8503.tar.gz
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
Diffstat (limited to 'usr/local/www/diag_sockets.php')
-rw-r--r--usr/local/www/diag_sockets.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/usr/local/www/diag_sockets.php b/usr/local/www/diag_sockets.php
index 938e2d5..c3008d7 100644
--- a/usr/local/www/diag_sockets.php
+++ b/usr/local/www/diag_sockets.php
@@ -55,7 +55,7 @@ $showAllOption = $showAll ? "" : "?showAll";
?>
<div id="mainarea">
-<table class="tabcont" width="100%">
+<table class="tabcont" width="100%" summary="diag sockets">
<tr>
<td>Information about listening sockets for both <a href="#IPv4">IPv4</a> and <a href="#IPv6">IPv6</a>.</td>
</tr>
@@ -63,7 +63,7 @@ $showAllOption = $showAll ? "" : "?showAll";
<td>For explanation about the meaning of the information listed for each socket click <a href="#about">here</a>.</td>
</tr>
<tr>
-<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>
+<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>
</tr>
</table>
@@ -81,10 +81,10 @@ $showAllOption = $showAll ? "" : "?showAll";
$name = ($tabindex == 0 ? 'IPv4' : 'IPv6');
?>
<a name="<?=$name;?>"></a>
-<table style="padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0">
-<tr><td class="listtopic" colspan="<?=$elements?>"><strong><?=$name;?></strong></font></td></tr>
+<table style="padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0" summary="tab">
+<tr><td class="listtopic" colspan="<?=$elements?>"><strong><?=$name;?></strong></td></tr>
<tr><td>
-<table class="tabcont sortable" id="sortabletable" width="100%" cellspacing="0" cellpadding="6" border="0">
+<table class="tabcont sortable" id="sortabletable" width="100%" cellspacing="0" cellpadding="6" border="0" summary="results">
<?php
foreach (explode("\n", $table) as $i => $line) {
if ($i == 0)
@@ -94,7 +94,7 @@ $showAllOption = $showAll ? "" : "?showAll";
if (trim($line) == "")
continue;
- print("<tr id=\"$i\">\n");
+ print("<tr id=\"$name$i\">\n");
$j = 0;
foreach (explode(' ', $line) as $entry) {
if ($entry == '' || $entry == "ADDRESS") continue;
@@ -113,12 +113,12 @@ $showAllOption = $showAll ? "" : "?showAll";
<?php
}
?>
-</table>
+
<br />
<a name="about"></a>
-<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" border="1">
+<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="info">
<tr><td colspan="2" class="listtopic" >Socket information explanation</td></tr>
-<tr><td colspan="2" class="">
+<tr><td colspan="2" class="listhdrr">
This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".<br />
Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".<br />
<br />
@@ -136,3 +136,5 @@ The information listed for each socket is:</td></tr>
<?php
include('fend.inc');
?>
+</body>
+</html>
OpenPOWER on IntegriCloud