Skip to content

Commit d4ee3cf

Browse files
committed
block all and enforce upgrade when the version is out of date.
1 parent b015389 commit d4ee3cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

public_html/lists/admin/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,13 @@ function mb_strtolower($string)
490490
if (version_compare(PHP_VERSION, '5.4.0', '<') && WARN_ABOUT_PHP_SETTINGS) {
491491
Error(s('Your PHP version is out of date. phpList requires PHP version 5.4.0 or higher.'));
492492
}
493+
if (defined('RELEASEDATE') && ((time() - RELEASEDATE) / 31536000) > 2) {
494+
Fatal_Error(s('Your phpList version is older than two years. Please %supgrade phpList</a> before continuing.</br>
495+
Visit <a href="https://www.phplist.org/users/" title="'.s('Get some help').'">the support site</a> if you need some help.'
496+
,'<a href="https://www.phplist.com/download?utm_source=pl'.VERSION.'&amp;utm_medium=outdated-download-forced&amp;utm_campaign=phpList" title="'.s('Download the latest version').'" target="_blank">'));
497+
return;
498+
}
499+
493500
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
494501
Fatal_Error(s('Your PHP version is too old. Please upgrade PHP before continuing'));
495502
return;

0 commit comments

Comments
 (0)