mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
#1334 설치 시 PHP 버전 체크 시 5.3.0 이상으로 변경
This commit is contained in:
parent
712541c50c
commit
eaea1178ec
5 changed files with 35 additions and 40 deletions
|
|
@ -340,14 +340,17 @@ class installController extends install
|
|||
// Check each item
|
||||
$checklist = array();
|
||||
// 0. check your version of php (5.2.4 or higher)
|
||||
if(version_compare(PHP_VERSION, '5.2.4') == -1) $checklist['php_version'] = false;
|
||||
else if(version_compare(PHP_VERSION, '5.3.10') == -1)
|
||||
$checklist['php_version'] = true;
|
||||
if(version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<'))
|
||||
{
|
||||
$checklist['php_version'] = false;
|
||||
}
|
||||
|
||||
if(version_compare(PHP_VERSION, __XE_RECOMMEND_PHP_VERSION__, '<'))
|
||||
{
|
||||
$checklist['php_version'] = true;
|
||||
Context::set('phpversion_warning', true);
|
||||
}
|
||||
else $checklist['php_version'] = true;
|
||||
|
||||
|
||||
// 1. Check permission
|
||||
if(is_writable('./')||is_writable('./files')) $checklist['permission'] = true;
|
||||
else $checklist['permission'] = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue