mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-04 20:44:58 +02:00
Merge branch 'ent-6141-cambios-sistema-de-licencias-trial' into 'develop'
Do not show the UM registration wizard for trial licenses. See merge request artica/pandorafms!3385
This commit is contained in:
commit
b5a62a9977
@ -53,6 +53,23 @@ function update_manager_verify_registration()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a trial license is in use.
|
||||||
|
*
|
||||||
|
* @return boolean true if a trial license is in use, false otherwise.
|
||||||
|
*/
|
||||||
|
function update_manager_verify_trial()
|
||||||
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
if (isset($config['license_licensed_to'])
|
||||||
|
&& strstr($config['license_licensed_to'], 'info@pandorafms.com') !== FALSE
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses responses from configuration wizard.
|
* Parses responses from configuration wizard.
|
||||||
@ -440,6 +457,11 @@ function registration_wiz_modal(
|
|||||||
global $config;
|
global $config;
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
|
// Do not show the wizard for trial licenses.
|
||||||
|
if (update_manager_verify_trial()) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
$product_name = get_product_name();
|
$product_name = get_product_name();
|
||||||
|
|
||||||
$output .= '<div id="registration_wizard" title="';
|
$output .= '<div id="registration_wizard" title="';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user