Merge branch 'ent-2394-fix-api-info' into 'develop'

Fix the api info call

See merge request 
This commit is contained in:
vgilc 2018-08-07 13:14:17 +02:00
commit 687c2ebc90
1 changed files with 2 additions and 1 deletions
pandora_console/include

View File

@ -54,6 +54,7 @@ $no_login_msg = "";
// Clean unwanted output
ob_clean();
// READ THIS:
// Special call without checks to retrieve version and build of the Pandora FMS
// This info is avalable from the web console without login
// Don't change the format, it is parsed by applications
@ -63,7 +64,7 @@ switch($info) {
$config["MR"] = 0;
}
echo io_safe_output(get_product_name()) . ' ' . $pandora_version . ' - ' . $build_version . " MR" . $config["MR"];
echo 'Pandora FMS ' . $pandora_version . ' - ' . $build_version . " MR" . $config["MR"];
exit;
}