From 3b48a0e2ce3c0c4a4187c539c11359572a59bc17 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 18 Dec 2022 01:54:31 +0900 Subject: [PATCH] Show warning if PHP version is less than 7.2 --- modules/admin/lang/en.php | 3 +++ modules/admin/lang/ko.php | 3 +++ modules/admin/tpl/index.html | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/modules/admin/lang/en.php b/modules/admin/lang/en.php index 7f2b54b0d..f5e4cd8a9 100644 --- a/modules/admin/lang/en.php +++ b/modules/admin/lang/en.php @@ -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.
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'; diff --git a/modules/admin/lang/ko.php b/modules/admin/lang/ko.php index 0f6d880ea..4401cb904 100644 --- a/modules/admin/lang/ko.php +++ b/modules/admin/lang/ko.php @@ -398,3 +398,6 @@ $lang->module_exists_in_wrong_path = '잘못된 경로에 설치된 모듈이 $lang->about_module_exists_in_wrong_path = '아래의 모듈이 잘못된 경로에 설치된 것으로 보입니다. 설치 경로를 다시 확인하시기 바랍니다.
테스트나 오류 수정을 위해 임시로 모듈을 다른 경로에 옮겨놓으신 경우 이 메시지는 무시하셔도 됩니다.'; $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'; diff --git a/modules/admin/tpl/index.html b/modules/admin/tpl/index.html index 62131a883..87593bb7d 100644 --- a/modules/admin/tpl/index.html +++ b/modules/admin/tpl/index.html @@ -18,6 +18,14 @@

{$XE_VALIDATOR_MESSAGE}

+
+

{$lang->unsupported_php_version_notice}

+ +
+

{$lang->sitelock_in_use}

{$lang->about_sitelock_in_use} {$lang->cmd_configure}