license expiration

This commit is contained in:
Roland Gruber 2016-10-24 20:26:39 +02:00
parent 54afe29cb8
commit 70e3afc38e
2 changed files with 5 additions and 2 deletions

View File

@ -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 -->

View File

@ -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 */