This commit is contained in:
@@ -161,21 +161,25 @@ function show_service($name, $containers) {
|
|||||||
function show_service_update($name, $update, $uptodate) {
|
function show_service_update($name, $update, $uptodate) {
|
||||||
$str = '<div>'.$name."</div>";
|
$str = '<div>'.$name."</div>";
|
||||||
|
|
||||||
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
|
|
||||||
$update = trim($update);
|
$update = trim($update);
|
||||||
$arr = explode(" ",$update);
|
if (!empty($update)) {
|
||||||
foreach ($arr as $container) {
|
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
|
||||||
$str .= $container." - UPDATE AVAILABLE<br>";
|
$arr = explode(" ",$update);
|
||||||
|
foreach ($arr as $container) {
|
||||||
|
$str .= $container." - UPDATE AVAILABLE<br>";
|
||||||
|
}
|
||||||
|
$str .= '</div>';
|
||||||
}
|
}
|
||||||
$str .= '</div>';
|
|
||||||
|
|
||||||
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
|
|
||||||
$uptodate = trim($uptodate);
|
$uptodate = trim($uptodate);
|
||||||
$arr = explode(" ",$uptodate);
|
if (!empty($uptodate)) {
|
||||||
foreach ($arr as $container) {
|
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
|
||||||
$str .= $container." - Already up to date<br>";
|
$arr = explode(" ",$uptodate);
|
||||||
|
foreach ($arr as $container) {
|
||||||
|
$str .= $container." - Already up to date<br>";
|
||||||
|
}
|
||||||
|
$str .= '</div>';
|
||||||
}
|
}
|
||||||
$str .= '</div>';
|
|
||||||
|
|
||||||
echo $str;
|
echo $str;
|
||||||
}
|
}
|
||||||
|
2
scan.php
2
scan.php
@@ -101,7 +101,7 @@ switch ($_GET["op"]) {
|
|||||||
if ($key=="updates") {
|
if ($key=="updates") {
|
||||||
if ($data["INSTALL_STATUS"]==1) {
|
if ($data["INSTALL_STATUS"]==1) {
|
||||||
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
foreach ($data["INSTALLED_SERVICES"] as $service_name => $object) {
|
||||||
show_service_update($service_name, $object["update"], $object["uptodate"]);
|
show_service_update($service_name, trim($object["update"]), trim($object["uptodate"]));
|
||||||
}
|
}
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user