2010-11-10 Sergio Martin <sergio.martin@artica.es>

* include/functions.php: Check de enterprise version to
	show the baseline graph option in reports



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3564 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-11-10 11:33:23 +00:00
parent d4325770be
commit 8dfadd90df
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-10 Sergio Martin <sergio.martin@artica.es>
* include/functions.php: Check de enterprise version to
show the baseline graph option in reports
2010-11-10 Sergio Martin <sergio.martin@artica.es> 2010-11-10 Sergio Martin <sergio.martin@artica.es>
* include/functions_reporting.php * include/functions_reporting.php

View File

@ -618,9 +618,13 @@ function get_alert_times ($row2) {
* @return array An array with all the possible reports in Pandora where the array index is the report id. * @return array An array with all the possible reports in Pandora where the array index is the report id.
*/ */
function get_report_types () { function get_report_types () {
global $config;
$types = array (); $types = array ();
$types['simple_graph'] = __('Simple graph'); $types['simple_graph'] = __('Simple graph');
if($config['enterprise_installed']) {
$types['simple_baseline_graph'] = __('Simple baseline graph'); $types['simple_baseline_graph'] = __('Simple baseline graph');
}
$types['custom_graph'] = __('Custom graph'); $types['custom_graph'] = __('Custom graph');
$types['SLA'] = __('S.L.A.'); $types['SLA'] = __('S.L.A.');
$types['monitor_report'] = __('Monitor report'); $types['monitor_report'] = __('Monitor report');