license expiration
This commit is contained in:
parent
54afe29cb8
commit
70e3afc38e
|
@ -131,9 +131,12 @@ echo $_SESSION['header'];
|
|||
if (!$cfgMain->isWritable()) {
|
||||
StatusMessage('WARN', 'The config file is not writable.', 'Your changes cannot be saved until you make the file writable for the webserver user.');
|
||||
}
|
||||
if (!empty($_GET['invalidLicense'])) {
|
||||
if (!empty($_GET['invalidLicense']) && ($_GET['invalidLicense'] == '1')) {
|
||||
StatusMessage('WARN', _('Invalid licence'), _('Please setup your licence data.'));
|
||||
}
|
||||
if (!empty($_GET['invalidLicense']) && ($_GET['invalidLicense'] == '2')) {
|
||||
StatusMessage('WARN', _('Expired licence'), _('Please setup your licence data.'));
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
<!-- form to change main options -->
|
||||
|
|
|
@ -45,7 +45,7 @@ include_once("../lib/config.inc");
|
|||
if (isLAMProVersion()) {
|
||||
include_once("../lib/env.inc");
|
||||
$validator = new \LAM\ENV\LAMLicenseValidator();
|
||||
$validator->validateAndRedirect('config/mainlogin.php?invalidLicense=1');
|
||||
$validator->validateAndRedirect('config/mainlogin.php?invalidLicense=1', 'config/mainlogin.php?invalidLicense=2');
|
||||
}
|
||||
|
||||
/** Upgrade functions */
|
||||
|
|
Loading…
Reference in New Issue