mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
#195 XE설치시 php버전 5.3.10 이상인지 체크후 권장메세지 출력
This commit is contained in:
parent
c5c69bba4e
commit
30c5bb1971
3 changed files with 14 additions and 1 deletions
|
|
@ -334,7 +334,13 @@ class installController extends install
|
|||
$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;
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -158,6 +158,10 @@
|
|||
<value xml:lang="ko"><![CDATA[[필수] PHP버전이 5.2.4 이상에서 설치가 가능합니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[[Required] XE supports only PHP Version 5.2.4 or higher]]></value>
|
||||
</item>
|
||||
<item name="php_version_warning">
|
||||
<value xml:lang="ko"><![CDATA[[권장] XE는 PHP 5.3.10 버전 이상을 권장합니다.<br> PHP 5.2.x버전은 더이상 업데이트되지 않는 버전입니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[[Recommend] XE recommends only PHP Version 5.3.10 or higher]]></value>
|
||||
</item>
|
||||
<item name="permission">
|
||||
<value xml:lang="ko"><![CDATA[[필수] XE의 설치 경로 또는 ./files 디렉토리의 퍼미션이 707이어야 합니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[[Required] XE installation path or ./files directory's permission must be 707]]></value>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<ul>
|
||||
<li loop="$checklist => $key,$val" cond="!$val">
|
||||
{@ $isDisable = TRUE}
|
||||
<strong>{$lang->install_checklist_title[$key]}<block cond="$key == 'php_version'">(Ver. {$phpversion})</block></strong>
|
||||
<strong>{$lang->install_checklist_title[$key]}ㅇ<block cond="$key == 'php_version'">(Ver. {$phpversion})</block></strong>
|
||||
:
|
||||
<em><i class="x_icon-ban-circle x_icon-white"></i> {$lang->disable}</em>
|
||||
<p>{$lang->install_checklist_desc[$key]}</p>
|
||||
|
|
@ -21,6 +21,9 @@
|
|||
<strong>{$lang->install_checklist_title[$key]}<block cond="$key == 'php_version'">(Ver. {$phpversion})</block></strong>
|
||||
:
|
||||
<em>{$lang->enable}</em>
|
||||
<p cond="$key == 'php_version' && $phpversion_warning === true">
|
||||
{$lang->install_checklist_desc['php_version_warning']} <a href="http://php.net/eol.php" target="_blank">[{$lang->more}]</a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue