This commit is contained in:
15
scan.php
15
scan.php
@@ -146,7 +146,7 @@ switch ($_GET["op"]) {
|
|||||||
$service_name = strtolower($service_name);
|
$service_name = strtolower($service_name);
|
||||||
//echo base64_decode($content);
|
//echo base64_decode($content);
|
||||||
if (array_key_exists($service_name,$data["INSTALLED_SERVICES"])) {
|
if (array_key_exists($service_name,$data["INSTALLED_SERVICES"])) {
|
||||||
echo '<div>'.$service_name.' - '.$content.' - INSTALLED - <a href="#" onclick="uninstall(\''.$service_name.'\')">UNINSTALL</a> - <a href="#" onclick="reinstall(\''.$service_name.'\')">REINSTALL</a></div>';
|
echo '<div><a href="#" onclick="reinstall(\''.$service_name.'\')">'.$orig_service_name.'</a> - '.$content.' - INSTALLED</div>';
|
||||||
}
|
}
|
||||||
else echo '<div><a href="#" onclick="load_template(\''.$service_name.'\')">'.$orig_service_name.'</a> - '.$content.'</div>';
|
else echo '<div><a href="#" onclick="load_template(\''.$service_name.'\')">'.$orig_service_name.'</a> - '.$content.'</div>';
|
||||||
echo '<div id="'.$service_name.'" class="deployment"></div>';
|
echo '<div id="'.$service_name.'" class="deployment"></div>';
|
||||||
@@ -219,11 +219,21 @@ switch ($_GET["op"]) {
|
|||||||
</div></div>";
|
</div></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
<div class=\"row\">
|
<div class=\"row\">
|
||||||
<div class=\"mb-3\">
|
<div class=\"mb-3\">
|
||||||
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"deploy_{$template->name}_btn\">".($reinstall ? "Reinstall" : "Install")."</button>
|
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" id=\"deploy_{$template->name}_btn\">".($reinstall ? "Reinstall" : "Install")."</button>
|
||||||
|
</div>";
|
||||||
|
echo "
|
||||||
|
<div class=\"mb-3\" style=\"margin-left:30px;\">
|
||||||
|
<button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"uninstall_{$template->name}_btn\" onclick=\"uninstall('{$template->name}')\">Uninstall</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class=\"mb-3\" style=\"margin-left:30px;\">
|
||||||
|
<button class=\"btn btn-lg btn-primary btn-block\" type=\"button\" id=\"cancel_{$template->name}_btn\">Cancel</button>
|
||||||
|
</div>";
|
||||||
|
echo "
|
||||||
</div>
|
</div>
|
||||||
</form></fieldset>
|
</form></fieldset>
|
||||||
<script>
|
<script>
|
||||||
@@ -231,6 +241,9 @@ switch ($_GET["op"]) {
|
|||||||
".($reinstall ? "redeploy" : "deploy")."('{$template->name}');
|
".($reinstall ? "redeploy" : "deploy")."('{$template->name}');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
jQuery('#cancel_{$template->name}_btn').click(function() {
|
||||||
|
$('div#{$template->name}').html('');
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user