system
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-22 19:00:54 +02:00
parent f678bd8731
commit b4d2d8c3fc
2 changed files with 31 additions and 22 deletions

View File

@@ -21,7 +21,7 @@
</div>
<fieldset id="settings" class="hidden">
<legend>Settings</legend>
<legend>Repositories</legend>
<div id="repositories" style="text-align:left">Loading...</div>
<form class="form-install" action="#" method="post">
@@ -36,12 +36,17 @@
</div>
<div class="row">
<div class="mb-3">
<button class="btn btn-lg btn-primary btn-block" type="button"> Send </button>
<button class="btn btn-lg btn-primary btn-block" type="button"> Add </button>
</div>
</div>
</form>
</fieldset>
<fieldset>
<legend>System</legend>
<div id="system" style="text-align:left">Loading...</div>
</fieldset>
<fieldset>
<legend>Deployments</legend>
<div id="deployments" style="text-align:left">Loading...</div>
@@ -110,7 +115,7 @@ function get_system() {
}
function check_deployments() {
var url = 'scan.php?op=check_deployments&services=1';
var url = 'scan.php?op=check_deployments';
jQuery.get(url, function(data) {
if (data!="") {
jQuery("#deployments").html(data);
@@ -148,6 +153,7 @@ function get_containers() {
jQuery(document).ready(function(){
get_system();
get_repositories();
get_deployments();
get_containers();

View File

@@ -72,11 +72,14 @@ switch ($_GET["op"]) {
if (!empty($arr)) {
foreach ($arr as $key=>$data) {
if ($key=="deployments") {
if (count($data["INSTALLED_SERVICES"])) {
foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) {
//echo base64_decode($content);
echo $service_name."<br>";
}
//redis_remove("$key");
}
else echo "There are no deployments.";
redis_remove("$key");
}
}
}