diff --git a/modules/install/conf/module.xml b/modules/install/conf/module.xml index 844cf0fca..5423c5a01 100644 --- a/modules/install/conf/module.xml +++ b/modules/install/conf/module.xml @@ -3,6 +3,7 @@ + diff --git a/modules/install/install.view.php b/modules/install/install.view.php index a0065d73c..956b1d93c 100644 --- a/modules/install/install.view.php +++ b/modules/install/install.view.php @@ -7,6 +7,8 @@ class installView extends install { + var $install_enable = false; + /** * @brief 초기화 **/ @@ -18,26 +20,35 @@ if(Context::isInstalled()) return $this->stop('msg_already_installed'); // 컨트롤러 생성 - $oController = &getController('install'); - - // 설치 불가능하다면 introduce를 출력 - if(!$oController->checkInstallEnv()) $this->act = "dispInstallIntroduce"; + $oInstallController = &getController('install'); + $this->install_enable = $oInstallController->checkInstallEnv(); // 설치 가능한 환경이라면 installController::makeDefaultDirectory() 실행 - else $oController->makeDefaultDirectory(); + if($this->install_enable) $oInstallController->makeDefaultDirectory(); } /** - * @brief license 및 설치 환경에 대한 메세지 보여줌 + * @brief license 메세지 노출 **/ function dispInstallIntroduce() { $this->setTemplateFile('introduce'); } + /** + * @brief 설치 환경에 대한 메세지 보여줌 + **/ + function dispInstallCheckEnv() { + $this->setTemplateFile('check_env'); + } + + /** * @brief DB 선택 화면 **/ function dispInstallSelectDB() { + // 설치 불가능하다면 check_env를 출력 + if(!$this->install_enable) return $this->dispInstallCheckEnv(); + $this->setTemplateFile('select_db'); } @@ -45,8 +56,11 @@ * @brief DB 정보/ 최고 관리자 정보 입력 화면을 보여줌 **/ function dispInstallForm() { + // 설치 불가능하다면 check_env를 출력 + if(!$this->install_enable) return $this->dispInstallCheckEnv(); + // db_type이 지정되지 않았다면 다시 초기화면 출력 - if(!Context::get('db_type')) return $this->viewIntroduce(); + if(!Context::get('db_type')) return $this->dispInstallSelectDB(); // disp_db_info_form.html 파일 출력 $tpl_filename = sprintf('form.%s', Context::get('db_type')); diff --git a/modules/install/lang/ko.lang.php b/modules/install/lang/ko.lang.php index 6e4132df3..ad473b015 100644 --- a/modules/install/lang/ko.lang.php +++ b/modules/install/lang/ko.lang.php @@ -6,9 +6,8 @@ **/ $lang->introduce_title = '제로보드 XE 설치'; - $lang->introduce = - "제로보드 XE 를 사용해주셔서 감사합니다.\n". - "제로보드 XE 는 GPL라이센스를 따르며 블라블라..\n"; + $lang->license = + "제로보드XE는 GPL라이센스를 따릅니다"; $lang->install_condition_title = "설치 조건"; @@ -37,6 +36,7 @@ $lang->install_session_auto_start = 'php설정의 session.auto_start==1 이라 세션 처리에 문제가 발생할 수 있습니다'; $lang->install_permission_denied = '설치대상 디렉토리의 퍼미션이 707이 아닙니다'; + $lang->cmd_agree_license = '라이센스에 동의합니다'; $lang->cmd_install_fix_checklist = '필수 조건을 설정후 다음 버튼을 눌러 주세요.'; $lang->cmd_install_next = '설치를 진행합니다'; diff --git a/modules/install/tpl/check_evn.html b/modules/install/tpl/check_evn.html new file mode 100644 index 000000000..6567e6669 --- /dev/null +++ b/modules/install/tpl/check_evn.html @@ -0,0 +1,39 @@ + + + + + + +
{$lang->introduce_title}
+ + + + + + + + + + + + + + + + +
{$lang->install_condition_title}
{$lang->install_checklist_title[$key]} + + {$lang->enable} + + {$lang->disable} + +
{$lang->install_checklist_desc[$key]}
+ + +[{$lang->cmd_install_next}] + + +{$lang->cmd_install_fix_checklist} +[{$lang->cmd_next}] + + diff --git a/modules/install/tpl/header.html b/modules/install/tpl/header.html new file mode 100644 index 000000000..8c6386ccf --- /dev/null +++ b/modules/install/tpl/header.html @@ -0,0 +1,5 @@ + + + + +
{$lang->introduce_title}
diff --git a/modules/install/tpl/introduce.html b/modules/install/tpl/introduce.html index e014146b3..7140f6db8 100644 --- a/modules/install/tpl/introduce.html +++ b/modules/install/tpl/introduce.html @@ -1,42 +1,12 @@ - - - - + + +
{$lang->introduce_title}
- {nl2br($lang->introduce)} + {nl2br($lang->license)}
- - - - - - - - - - - - - - -
{$lang->install_condition_title}
{$lang->install_checklist_title[$key]} - - {$lang->enable} - - {$lang->disable} - -
{$lang->install_checklist_desc[$key]}
- - -[{$lang->cmd_install_next}] - - -{$lang->cmd_install_fix_checklist} -[{$lang->cmd_next}] - - +[{$lang->cmd_agree_license}]