mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#12721 free licence change 2
This commit is contained in:
parent
b38ba492d1
commit
5dad6bfb4b
@ -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',
|
||||
[
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user