설치시 php 5.2.2 설치 불가로 표시. mysql의 경우 127.0.0.1보다 자주 사용되는 localhost로 DB주소 변경 (이는 DB서버 관리자의 설정인데 localhost로 더 많이 사용한다고 판단)

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1876 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-09 06:02:11 +00:00
parent d9a9453e1c
commit ce3a27e00f
4 changed files with 9 additions and 3 deletions

View file

@ -56,6 +56,10 @@
// 각 필요한 항목 체크
$checklist = array();
// 0. php 버전 체크 (5.2.2는 설치 불가)
if(phpversion()=='5.2.2') $checklist['php_version'] = false;
else $checklist['php_version'] = true;
// 1. permission 체크
if(is_writable('./')||is_writable('./files')) $checklist['permission'] = true;
else $checklist['permission'] = false;
@ -76,7 +80,7 @@
if(function_exists('imagecreatefromgif')) $checklist['gd'] = true;
else $checklist['gd'] = false;
if(!$checklist['permission'] || !$checklist['xml'] || !$checklist['session']) $install_enable = false;
if(!$checklist['php_version'] || !$checklist['permission'] || !$checklist['xml'] || !$checklist['session']) $install_enable = false;
else $install_enable = true;
// 체크 결과를 Context에 저장

View file

@ -201,6 +201,7 @@ EndOfLicense;
$lang->install_condition_title = "필수 설치조건을 확인하세요.";
$lang->install_checklist_title = array(
'php_version' => 'PHP Version',
'permission' => '퍼미션',
'xml' => 'XML 라이브러리',
'iconv' => 'ICONV 라이브러리',
@ -209,6 +210,7 @@ EndOfLicense;
);
$lang->install_checklist_desc = array(
'php_version' => '[필수] PHP버전이 5.2.2일 경우 PHP의 버그로 인하여 설치되지 않습니다',
'permission' => '[필수] 제로보드의 설치 경로 또는 ./files 디렉토리의 퍼미션이 707이어야 합니다',
'xml' => '[필수] XML통신을 위하여 XML 라이브러리가 필요합니다',
'session' => '[필수] 제로보드에서 세션 사용을 위해 php.ini 설정의 session.auto_start=0 이어야 합니다',

View file

@ -15,7 +15,7 @@
<tr>
<th rowspan="6" class="hr" scope="row">{$db_type}</th>
<th class="second" scope="row"><label for="textfield11">{$lang->db_hostname}</label></th>
<td><input type="text" name="db_hostname" value="127.0.0.1" class="inputTypeText w100" id="textfield11" /></td>
<td><input type="text" name="db_hostname" value="localhost" class="inputTypeText w100" id="textfield11" /></td>
</tr>
<tr>
<th class="second" scope="row"><label for="textfield12">{$lang->db_port}</label></th>

View file

@ -15,7 +15,7 @@
<tr>
<th rowspan="6" class="hr" scope="row">{$db_type}</th>
<th class="second" scope="row"><label for="textfield11">{$lang->db_hostname}</label></th>
<td><input type="text" name="db_hostname" value="127.0.0.1" class="inputTypeText w100" id="textfield11" /></td>
<td><input type="text" name="db_hostname" value="localhost" class="inputTypeText w100" id="textfield11" /></td>
</tr>
<tr>
<th class="second" scope="row"><label for="textfield12">{$lang->db_port}</label></th>