This commit is contained in:
12
manage.html
12
manage.html
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset id="settings" class="hidden">
|
<fieldset id="settings" class="hidden">
|
||||||
<legend>Settings</legend>
|
<legend>Repositories</legend>
|
||||||
<div id="repositories" style="text-align:left">Loading...</div>
|
<div id="repositories" style="text-align:left">Loading...</div>
|
||||||
|
|
||||||
<form class="form-install" action="#" method="post">
|
<form class="form-install" action="#" method="post">
|
||||||
@@ -36,12 +36,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="mb-3">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>System</legend>
|
||||||
|
<div id="system" style="text-align:left">Loading...</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Deployments</legend>
|
<legend>Deployments</legend>
|
||||||
<div id="deployments" style="text-align:left">Loading...</div>
|
<div id="deployments" style="text-align:left">Loading...</div>
|
||||||
@@ -110,7 +115,7 @@ function get_system() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_deployments() {
|
function check_deployments() {
|
||||||
var url = 'scan.php?op=check_deployments&services=1';
|
var url = 'scan.php?op=check_deployments';
|
||||||
jQuery.get(url, function(data) {
|
jQuery.get(url, function(data) {
|
||||||
if (data!="") {
|
if (data!="") {
|
||||||
jQuery("#deployments").html(data);
|
jQuery("#deployments").html(data);
|
||||||
@@ -148,6 +153,7 @@ function get_containers() {
|
|||||||
|
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
|
|
||||||
|
get_system();
|
||||||
get_repositories();
|
get_repositories();
|
||||||
get_deployments();
|
get_deployments();
|
||||||
get_containers();
|
get_containers();
|
||||||
|
5
scan.php
5
scan.php
@@ -72,11 +72,14 @@ switch ($_GET["op"]) {
|
|||||||
if (!empty($arr)) {
|
if (!empty($arr)) {
|
||||||
foreach ($arr as $key=>$data) {
|
foreach ($arr as $key=>$data) {
|
||||||
if ($key=="deployments") {
|
if ($key=="deployments") {
|
||||||
|
if (count($data["INSTALLED_SERVICES"])) {
|
||||||
foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) {
|
foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) {
|
||||||
//echo base64_decode($content);
|
//echo base64_decode($content);
|
||||||
echo $service_name."<br>";
|
echo $service_name."<br>";
|
||||||
}
|
}
|
||||||
//redis_remove("$key");
|
}
|
||||||
|
else echo "There are no deployments.";
|
||||||
|
redis_remove("$key");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user