From e0d2dc00c19fd634075431472454a72140c9dda3 Mon Sep 17 00:00:00 2001 From: sva-e025532 Date: Thu, 21 Aug 2025 09:11:17 +0200 Subject: [PATCH] Remove redundant comments, streamline query logic, and clean up variable handling for improved code readability and efficiency in `StdOut.php` and `StdOut-detail.php`. --- X/StdOut-detail.php | 29 ++--------------------------- X/StdOut.php | 13 +++---------- 2 files changed, 5 insertions(+), 37 deletions(-) diff --git a/X/StdOut-detail.php b/X/StdOut-detail.php index f60d11d..0a8c6b5 100644 --- a/X/StdOut-detail.php +++ b/X/StdOut-detail.php @@ -68,9 +68,6 @@
"") { $aixok++; @@ -237,11 +215,9 @@ } } } else { - // Si aucun résultat n'a été trouvé pour ce host $rc = $stdout = $ts = ""; } - // Affichage du tableau HTML (inchangé) echo "$host"; echo "$os"; echo "" . $ts . ""; @@ -260,7 +236,6 @@
$taix AIX : "; diff --git a/X/StdOut.php b/X/StdOut.php index 5afd46d..30ac995 100644 --- a/X/StdOut.php +++ b/X/StdOut.php @@ -63,29 +63,22 @@
- "; - - // Loop through the results (now very fast, no more queries inside) if (is_array($results)) { foreach ($results as $script) { $scriptName = $script['cmd']; $startTime = $script['debut']; $endTime = $script['fin']; - echo ""; } } - echo "
"; ?>