diff --git a/pandora_console/godmode/um_client/index.php b/pandora_console/godmode/um_client/index.php index f3e48f9f3d..46f432c6d5 100644 --- a/pandora_console/godmode/um_client/index.php +++ b/pandora_console/godmode/um_client/index.php @@ -91,7 +91,7 @@ if ($license_data !== ENTERPRISE_NOT_HOOK && $license !== 'PANDORA-ENTERPRISE-FR $limit = db_get_value('count(*)', 'tagente_modulo', 'disabled', 0); } - if (($limit * 1.1) > $license_data['limit']) { + if ($limit > ($license_data['limit'] * 1.1)) { ui_print_warning_message( __( 'You cannot use update manager %s. You are exceding monitoring limits by %s elements. Please update your license or disable enterprise section by moving enterprise directory to another location and try again.', diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index dc417c191b..967dda5a44 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -900,6 +900,7 @@ if (is_ajax()) { global $config; global $pandora_version; global $build_version; + $license = db_get_value_sql('SELECT `value` FROM tupdate_settings WHERE `key` LIKE "customer_key"'); $product_name = io_safe_output(get_product_name()); $license_expiry_date = substr($config['license_expiry_date'], 0, 4).'/'.substr($config['license_expiry_date'], 4, 2).'/'.substr($config['license_expiry_date'], 6, 2); $license_expired = false; @@ -974,12 +975,14 @@ if (is_ajax()) {

'.__('Current package').' '.$config['current_package'].'

'.__('MR version').' MR'.$config['MR'].'

Build'.$build_version.'

'; - if (enterprise_installed() === true) { + if (enterprise_installed() === true && $license !== 'PANDORA-ENTERPRISE-FREE') { $dialog .= '

'.__('Support expires').''.$license_expiry_date.'

'; } if ($license_expired === false) { $dialog .= '

'.__('This system has official support, warranty and official updates.').'

'; + } else if ($license === 'PANDORA-ENTERPRISE-FREE') { + $dialog .= '

'.__('This system has no active support contract.').'

'; } else if (enterprise_installed() === true) { $dialog .= '

'.__('This system has no active support contract, and has no support, upgrades or warranty.').'

'; $dialog .= '

'.__('Contact Pandora FMS for expand your support contract.').'

'; @@ -1280,6 +1283,7 @@ if (is_ajax()) { global $config; global $pandora_version; global $build_version; + $license = db_get_value_sql('SELECT `value` FROM tupdate_settings WHERE `key` LIKE "customer_key"'); $product_name = io_safe_output(get_product_name()); $license_expiry_date = substr($config['license_expiry_date'], 0, 4).'/'.substr($config['license_expiry_date'], 4, 2).'/'.substr($config['license_expiry_date'], 6, 2); $license_expired = false; @@ -1316,12 +1320,14 @@ if (is_ajax()) {

'.__('Version').' '.$pandora_version.$lts_name.' - '.(enterprise_installed() ? 'Enterprise' : 'Community').'

'.__('MR version').' MR'.$config['MR'].'

Build'.$build_version.'

'; - if (enterprise_installed() === true) { + if (enterprise_installed() === true && $license !== 'PANDORA-ENTERPRISE-FREE') { $dialog .= '

'.__('Support expires').''.$license_expiry_date.'

'; } if ($license_expired === false) { $dialog .= '

'.__('This system has official support, warranty and official updates.').'

'; + } else if ($license === 'PANDORA-ENTERPRISE-FREE') { + $dialog .= '

'.__('This system has no active support contract.').'

'; } else if (enterprise_installed() === true) { $dialog .= '

'.__('This system has no active support contract, and has no support, upgrades or warranty.').'

'; $dialog .= '

'.__('Contact Pandora FMS for expand your support contract.').'

';