diff --git a/common.js b/common.js index aaac50f..d23f6dd 100644 --- a/common.js +++ b/common.js @@ -271,7 +271,7 @@ function uninstall(additional) { jQuery("div.deployment").each(function(index) { $(this).html(''); }); - data = '
YOU ARE GOING TO UNINSTALL '+additional.toUpperCase()+'.
ARE YOU SURE? IF YES, PLEASE CLICK ON THE BUTTON BELOW.

'; + data = '
YOU ARE GOING TO UNINSTALL '+additional.toUpperCase()+'.
ARE YOU SURE? IF YES, PLEASE CLICK ON THE BUTTON BELOW.

'; jQuery("#"+additional).html(data); jQuery("#popupText").html(data); // manage2 } @@ -480,8 +480,17 @@ function get_containers() { }); } +function get_version() { + var url = 'scan.php?op=version'; + jQuery.get(url, function(data) { + console.log('version: '+data); + jQuery('#logo').attr('title',data); + }); +} + jQuery(document).ready(function(){ + get_version(); get_repositories(); get_deployments(); get_system(); diff --git a/manage.html b/manage.html index e56cae6..2d20636 100644 --- a/manage.html +++ b/manage.html @@ -11,7 +11,7 @@ diff --git a/scan.php b/scan.php index 30bfc40..a25114e 100644 --- a/scan.php +++ b/scan.php @@ -493,6 +493,14 @@ switch ($_GET["op"]) { } echo $text; break; + case "version": + $arr = check_response("version"); + if (!empty($arr)) { + $data = $arr["version"]; + echo $data["VERSION"]; + } + else echo "Version not found"; + break; case "repositories": $arr = array("STATUS" => 0); $json = json_encode($arr, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);