From 20e1e49548c3d41249b67ed895d36a552f74eecd Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 13 Mar 2016 20:40:54 +0100 Subject: [PATCH] whitespace / unused css classes in diag_sockets.php --- src/www/diag_sockets.php | 199 ++++++++++++++++++--------------------- 1 file changed, 90 insertions(+), 109 deletions(-) diff --git a/src/www/diag_sockets.php b/src/www/diag_sockets.php index df728927f..1d81d5691 100644 --- a/src/www/diag_sockets.php +++ b/src/www/diag_sockets.php @@ -1,31 +1,30 @@
-
-
- -
- -

','','','') ?>

-

','') ?>

-


- - 0) print_input_errors($input_errors); ?> -
- - +
+
+
+

','','','') ?>

+

','') ?>

+


+ 0) print_input_errors($input_errors); ?> +
$table) { - $elements = ($tabindex == 0 ? 7 : 7); - $name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); + if (isset($_GET['showAll'])) { + $internet4 = shell_exec('sockstat -4'); + $internet6 = shell_exec('sockstat -6'); + } else { + $internet4 = shell_exec('sockstat -4lL'); + $internet6 = shell_exec('sockstat -6lL'); + } + foreach (array(&$internet4, &$internet6) as $tabindex => $table) { + $elements = ($tabindex == 0 ? 7 : 7); + $name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); ?> - - -
- -
- -
-

-
- - - $line) { - if ($i == 0) - $class = 'listhdrr'; - else - $class = 'listlr'; - - if (trim($line) == "") - continue; - print("\n"); - $j = 0; - foreach (explode(' ', $line) as $entry) { - if ($entry == '' || $entry == "ADDRESS") continue; - if ($i == 0) - print("\n"); - else - print("\n"); - if ($i > 0) - $class = 'listr'; - $j++; - } - print("\n"); - }?> -
$entry$entry
+
+
+
+

+
+ + $line) { + if (trim($line) == "") { + continue; + } + print("\n"); + $j = 0; + foreach (explode(' ', $line) as $entry) { + if ($entry == '' || $entry == "ADDRESS") { + continue; + } + if ($i == 0) { + print("\n"); + } else { + print("\n"); + } + if ($i > 0) + $class = 'listr'; + $j++; + } + print("\n"); + }?> +
$entry$entry
-
+
- -
- -
- -
-

Socket information explanation

-
- -
+
+
+
+

Socket information explanation

+
+

','
','
') ?>

-
+
- - - - - - - - - -
USER
COMMAND
PID
FD
PROTO
ADDRESS') ?>
LOCAL ADDRESS
FOREIGN ADDRESS
- -
-
-
-
+ + + + + + + + + +
USER
COMMAND
PID
FD
PROTO
ADDRESS') ?>
LOCAL ADDRESS
FOREIGN ADDRESS
+
+
+ + -