Show warning if PHP version is less than 7.2

This commit is contained in:
Kijin Sung 2022-12-18 01:54:31 +09:00
parent cf01c51c0e
commit 3b48a0e2ce
3 changed files with 14 additions and 0 deletions

View file

@ -402,3 +402,6 @@ $lang->module_exists_in_wrong_path = 'Module(s) installed in incorrect path';
$lang->about_module_exists_in_wrong_path = 'The following module(s) appear to be installed in incorrect directories.<br />Please ignore this message if you have intentionally renamed a module for testing or debugging purposes.';
$lang->apcu_clear_cache_function_not_found = 'apcu is disabled on this server.';
$lang->opcache_reset_function_not_found = 'opcache is disabled on this server.';
$lang->unsupported_php_version_notice = 'The minimum PHP version for using Rhymix will change in 2023. Please upgrade your PHP version, and check if all the modules and widgets you added are compatible with the new version.';
$lang->unsupported_php_version_required = 'Requirement: minimum PHP 7.2 or higher, recommended PHP 7.4 or higher';
$lang->unsupported_php_version_current = 'Your version: PHP %s';

View file

@ -398,3 +398,6 @@ $lang->module_exists_in_wrong_path = '잘못된 경로에 설치된 모듈이
$lang->about_module_exists_in_wrong_path = '아래의 모듈이 잘못된 경로에 설치된 것으로 보입니다. 설치 경로를 다시 확인하시기 바랍니다.<br />테스트나 오류 수정을 위해 임시로 모듈을 다른 경로에 옮겨놓으신 경우 이 메시지는 무시하셔도 됩니다.';
$lang->apcu_clear_cache_function_not_found = 'apcu를 사용하지 않는 서버입니다.';
$lang->opcache_reset_function_not_found = 'opcache를 사용하지 않는 서버입니다.';
$lang->unsupported_php_version_notice = '2023년부터 라이믹스가 지원하는 PHP 버전이 변경됩니다. PHP 버전을 업그레이드하시고, 추가로 설치하신 모듈과 위젯 등이 새로운 PHP 버전에서 정상 작동하는지 미리 확인하시기 바랍니다.';
$lang->unsupported_php_version_required = '필요한 버전: 최소 PHP 7.2 이상, 권장 PHP 7.4 이상';
$lang->unsupported_php_version_current = '사용중인 버전: PHP %s';

View file

@ -18,6 +18,14 @@
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="message error" cond="version_compare(PHP_VERSION, '7.2', '<')">
<p>{$lang->unsupported_php_version_notice}</p>
<ul>
<li>{$lang->unsupported_php_version_required}</li>
<li>{sprintf($lang->unsupported_php_version_current, PHP_VERSION)}</li>
</ul>
</div>
<div class="message error" cond="config('lock.locked')">
<h2>{$lang->sitelock_in_use}</h2>
<p>{$lang->about_sitelock_in_use} <a href="{getUrl(['module' => 'admin', 'act' => 'dispAdminConfigSitelock'])}">{$lang->cmd_configure}</a></p>