#12721 free licence change 2

This commit is contained in:
Daniel Maya 2024-02-15 16:22:11 +01:00
parent b38ba492d1
commit 5dad6bfb4b
2 changed files with 5 additions and 5 deletions

View File

@ -77,10 +77,10 @@ if ($update_settings) {
[db_escape_key_identifier('key') => $key]
);
if ($value === LICENSE_FREE) {
if ($value === OTHER_LICENSE) {
$exist = db_get_value('token', 'tconfig', 'token', 'expiry_date');
if ($exist === false) {
$expiry_date = date('Ymd', strtotime(date('Ymd').'+ 1 month'));
$expiry_date = date('Ymd', strtotime('+30 days'));
db_process_sql_insert(
'tconfig',
[

View File

@ -879,11 +879,11 @@ define(
// Pandora FMS Enterprise license.
define('LICENSE_FILE', 'customer_key');
// Pandora FMS license free.
define('LICENSE_FREE', 'PANDORA-FREE');
define('OTHER_LICENSE', 'PANDORA-FREE');
// Total number of agents for free licence.
define('TOTAL_AGENTS_FREE', 50);
define('TOTAL_AGENTS_LICENSE', 50);
// Total number of modules for free licence.
define('TOTAL_MODULES_FREE', 600);
define('TOTAL_MODULES_LICENSE', 600);
// Pandora HA database list.
define('PANDORA_HA_FILE', 'pandora_ha_hosts.conf');