header
This commit is contained in:
@@ -161,7 +161,7 @@ function show_service($name, $containers) {
|
|||||||
|
|
||||||
function show_service_update($name, $update, $uptodate) {
|
function show_service_update($name, $update, $uptodate) {
|
||||||
$str = '<table id="'.$name.'">';
|
$str = '<table id="'.$name.'">';
|
||||||
$str .= "<tr><th>{$name}</th><td><b>Container name</b></td><td><b>Status</b></td><td><b>Action</b></td></tr>";
|
$str .= "<tr><th>{$name}</th></tr>";
|
||||||
|
|
||||||
$update = trim($update);
|
$update = trim($update);
|
||||||
if (!empty($update)) {
|
if (!empty($update)) {
|
||||||
|
6
scan.php
6
scan.php
@@ -45,6 +45,7 @@ switch ($_GET["op"]) {
|
|||||||
if ($data["INSTALL_STATUS"]==2) echo "NEW";
|
if ($data["INSTALL_STATUS"]==2) echo "NEW";
|
||||||
elseif ($data["INSTALL_STATUS"]==1) {
|
elseif ($data["INSTALL_STATUS"]==1) {
|
||||||
if ($_GET["services"]==1) {
|
if ($_GET["services"]==1) {
|
||||||
|
echo "<table><tr><td><b>Service/Container</b></td><td><b>Image</b></td><td><b>Status</b></td><td><b>Action</b></td></tr></table>";
|
||||||
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
||||||
//echo base64_decode($content);
|
//echo base64_decode($content);
|
||||||
show_service($service_name, $object["running"]);
|
show_service($service_name, $object["running"]);
|
||||||
@@ -74,10 +75,10 @@ switch ($_GET["op"]) {
|
|||||||
if ($key=="services") {
|
if ($key=="services") {
|
||||||
if ($data["INSTALL_STATUS"]==2) echo "NEW";
|
if ($data["INSTALL_STATUS"]==2) echo "NEW";
|
||||||
elseif ($data["INSTALL_STATUS"]==1) {
|
elseif ($data["INSTALL_STATUS"]==1) {
|
||||||
echo "<table><tr><td>Service/Container</td><td><b>Image</b></td><td><b>Status</b></td><td><b>Action</b></td></tr></table>";
|
echo "<table><tr><td><b>Service/Container</b></td><td><b>Image</b></td><td><b>Status</b></td><td><b>Action</b></td></tr></table>";
|
||||||
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"]);
|
||||||
show_service($service_name, $object["running"].":Up");
|
show_service($service_name, $object["running"]);
|
||||||
}
|
}
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
}
|
}
|
||||||
@@ -101,6 +102,7 @@ switch ($_GET["op"]) {
|
|||||||
foreach ($arr as $key=>$data) {
|
foreach ($arr as $key=>$data) {
|
||||||
if ($key=="updates") {
|
if ($key=="updates") {
|
||||||
if ($data["INSTALL_STATUS"]==1) {
|
if ($data["INSTALL_STATUS"]==1) {
|
||||||
|
echo "<table><tr><td><b>Service/Container</b></td><td><b>Image</b></td><td><b>Status</b></td><td><b>Action</b></td></tr></table>";
|
||||||
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
||||||
show_service_update($service_name, trim($object["update"]), trim($object["uptodate"]));
|
show_service_update($service_name, trim($object["update"]), trim($object["uptodate"]));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user