This commit is contained in:
20
manage.html
20
manage.html
@@ -189,6 +189,26 @@ function load_template(additional) {
|
||||
});
|
||||
}
|
||||
|
||||
function uninstall(additional) {
|
||||
var url = 'scan.php?op=uninstall&additional='+additional;
|
||||
jQuery.get(url, function(data) {
|
||||
if (data!="") {
|
||||
jQuery("#"+additional).html(data);
|
||||
setTimeout(check_uninstall, 1000, additional);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function check_uninstall(additional) {
|
||||
var url = 'scan.php?op=check_uninstall';
|
||||
jQuery.get(url, function(data) {
|
||||
if (data!="") {
|
||||
jQuery("#"+additional).html(data);
|
||||
}
|
||||
else setTimeout(check_uninstall, 1000, additional);
|
||||
});
|
||||
}
|
||||
|
||||
function deploy(additional) {
|
||||
pars = '';
|
||||
jQuery('input.additional_field').each(function(index) {
|
||||
|
5
scan.php
5
scan.php
@@ -129,7 +129,10 @@ switch ($_GET["op"]) {
|
||||
else {
|
||||
foreach ($data["DEPLOYMENTS"] as $service_name => $content) {
|
||||
//echo base64_decode($content);
|
||||
echo '<div><a href="#" onclick="load_template(\''.$service_name.'\')">'.$service_name.'</a> - '.$content.(array_key_exists($service_name,$data["INSTALLED_SERVICES"]) ? " - INSTALLED" : "").'</div>';
|
||||
if (array_key_exists($service_name,$data["INSTALLED_SERVICES"])) {
|
||||
echo '<div>'.$service_name.' - '.$content.' - INSTALLED - <a href="#" onclick="uninstall(\''.$service_name.'\')">UNINSTALL</a></div>';
|
||||
}
|
||||
else echo '<div><a href="#" onclick="load_template(\''.$service_name.'\')">'.$service_name.'</a> - '.$content.'</div>';
|
||||
echo '<div id="'.$service_name.'"></div>';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user