From 0b43c7fbb78d2938c81e967adeed583677fb854d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Oct 2024 13:31:41 +0200 Subject: [PATCH] header --- functions.php | 2 +- scan.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 1325c2c..7f84f78 100644 --- a/functions.php +++ b/functions.php @@ -161,7 +161,7 @@ function show_service($name, $containers) { function show_service_update($name, $update, $uptodate) { $str = ''; - $str .= ""; + $str .= ""; $update = trim($update); if (!empty($update)) { diff --git a/scan.php b/scan.php index d34f639..33c7fa2 100644 --- a/scan.php +++ b/scan.php @@ -45,6 +45,7 @@ switch ($_GET["op"]) { if ($data["INSTALL_STATUS"]==2) echo "NEW"; elseif ($data["INSTALL_STATUS"]==1) { if ($_GET["services"]==1) { + echo "
{$name}Container nameStatusAction
{$name}
Service/ContainerImageStatusAction
"; foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) { //echo base64_decode($content); show_service($service_name, $object["running"]); @@ -74,10 +75,10 @@ switch ($_GET["op"]) { if ($key=="services") { if ($data["INSTALL_STATUS"]==2) echo "NEW"; elseif ($data["INSTALL_STATUS"]==1) { - echo "
Service/ContainerImageStatusAction
"; + echo "
Service/ContainerImageStatusAction
"; foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) { //echo base64_decode($object["content"]); - show_service($service_name, $object["running"].":Up"); + show_service($service_name, $object["running"]); } echo "
"; } @@ -101,6 +102,7 @@ switch ($_GET["op"]) { foreach ($arr as $key=>$data) { if ($key=="updates") { if ($data["INSTALL_STATUS"]==1) { + echo "
Service/ContainerImageStatusAction
"; foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) { show_service_update($service_name, trim($object["update"]), trim($object["uptodate"])); }