containers padding
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
root
2024-09-13 18:16:34 +02:00
parent f95aaff4f4
commit 452af042bf

View File

@@ -1,5 +1,14 @@
<?php <?php
include "functions.php"; include "functions.php";
function show_service($name, $containers) {
$str = '<div>'.$name."</div>";
$str .= '<div id="'.$name.'" style="padding-left: 20px">'.$containers.'
</div>';
echo $str;
}
sleep(1); sleep(1);
switch ($_GET["op"]) { switch ($_GET["op"]) {
case "redis": case "redis":
@@ -46,8 +55,7 @@ switch ($_GET["op"]) {
if ($_GET["services"]==1) { if ($_GET["services"]==1) {
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) { foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
//echo base64_decode($content); //echo base64_decode($content);
echo $service_name."<br>"; show_service($service_name, $object["running"]);
echo $object["running"]."<br>";
} }
echo "<br>"; echo "<br>";
} }
@@ -76,8 +84,7 @@ switch ($_GET["op"]) {
elseif ($data["INSTALL_STATUS"]==1) { elseif ($data["INSTALL_STATUS"]==1) {
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) { foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
//echo base64_decode($object["content"]); //echo base64_decode($object["content"]);
echo $service_name."<br>"; show_service($service_name, $object["running"]);
echo $object["running"]."<br>";
} }
echo "<br>"; echo "<br>";
} }