Fix the api info call

This commit is contained in:
Alejandro Gallardo Escobar 2018-08-07 13:03:53 +02:00
parent e614e3ecec
commit 2778239a0f
1 changed files with 2 additions and 1 deletions

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;
}