diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index 3611b972ac..803291a1c8 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -76,20 +76,6 @@ if ($update_settings) { [db_escape_key_identifier('value') => $value], [db_escape_key_identifier('key') => $key] ); - - if ($value === OTHER_LICENSE) { - $exist = db_get_value('token', 'tconfig', 'token', 'expiry_date'); - if ($exist === false) { - $expiry_date = date('Ymd', strtotime('+30 days')); - db_process_sql_insert( - 'tconfig', - [ - db_escape_key_identifier('value') => base64_encode($expiry_date), - db_escape_key_identifier('token') => 'expiry_date', - ] - ); - } - } } $customer_key = $_POST['keys']['customer_key']; diff --git a/pandora_console/godmode/um_client/index.php b/pandora_console/godmode/um_client/index.php index 1a78e39b5f..07727cb5cf 100644 --- a/pandora_console/godmode/um_client/index.php +++ b/pandora_console/godmode/um_client/index.php @@ -113,19 +113,18 @@ if ($license_data !== ENTERPRISE_NOT_HOOK) { return; } - if (rtrim($license_data['licensed_to']) === Manager::PANDORA_TRIAL_ISSUER) { - $product_name = get_product_name(); - - ui_print_info_message( - __( - 'You cannot use update manager %s. This license is a trial license to test all %s features. Please update your license to unlock all %s features.', - $mode_str, - $product_name, - $product_name - ) - ); - return; - } + // if (rtrim($license_data['licensed_to']) === Manager::PANDORA_TRIAL_ISSUER) { + // $product_name = get_product_name(); + // ui_print_info_message( + // __( + // 'You cannot use update manager %s. This license is a trial license to test all %s features. Please update your license to unlock all %s features.', + // $mode_str, + // $product_name, + // $product_name + // ) + // ); + // return; + // } } else { $license_data = []; $license_data['count_enabled'] = db_get_value( diff --git a/pandora_console/include/constants.php b/pandora_console/include/constants.php index a699e72339..d68bba9c22 100644 --- a/pandora_console/include/constants.php +++ b/pandora_console/include/constants.php @@ -878,12 +878,6 @@ define( // Pandora FMS Enterprise license. define('LICENSE_FILE', 'customer_key'); -// Pandora FMS license free. -define('OTHER_LICENSE', 'PANDORA-FREE'); -// Total number of agents for free licence. -define('TOTAL_AGENTS_LICENSE', 50); -// Total number of modules for free licence. -define('TOTAL_MODULES_LICENSE', 600); // Pandora HA database list. define('PANDORA_HA_FILE', 'pandora_ha_hosts.conf');