mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@806 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
df75151c85
commit
91ef593ae8
18 changed files with 268 additions and 263 deletions
|
|
@ -16,6 +16,37 @@
|
|||
if(Context::isInstalled()) return $this->dispMessage('msg_already_installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 입력받은 정보로 설치를 함
|
||||
**/
|
||||
function procInstall() {
|
||||
// 설치가 되어 있는지에 대한 체크
|
||||
if(Context::isInstalled()) return new Object(-1, 'msg_already_installed');
|
||||
|
||||
// DB와 관련된 변수를 받음
|
||||
$db_info = Context::gets('db_type','db_hostname','db_userid','db_password','db_database','db_table_prefix');
|
||||
|
||||
// DB의 타입과 정보를 등록
|
||||
Context::setDBInfo($db_info);
|
||||
|
||||
// DB Instance 생성
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
// DB접속이 가능한지 체크
|
||||
if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed');
|
||||
|
||||
// 모든 모듈의 설치
|
||||
$output = $this->installDownloadedModule();
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// config 파일 생성
|
||||
if(!$this->makeConfigFile()) return new Object(-1, 'msg_install_failed');
|
||||
|
||||
// 설치 완료 메세지 출력
|
||||
$this->setMessage('msg_install_completed');
|
||||
$this->setRedirectUrl('./');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 인스톨 환경을 체크하여 결과 return
|
||||
**/
|
||||
|
|
@ -57,38 +88,6 @@
|
|||
return $install_enable;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 입력받은 정보로 설치를 함
|
||||
**/
|
||||
function procInstall() {
|
||||
// 설치가 되어 있는지에 대한 체크
|
||||
if(Context::isInstalled()) return new Object(-1, 'msg_already_installed');
|
||||
|
||||
// DB와 관련된 변수를 받음
|
||||
$db_info = Context::gets('db_type','db_hostname','db_userid','db_password','db_database','db_table_prefix');
|
||||
|
||||
// DB의 타입과 정보를 등록
|
||||
Context::setDBInfo($db_info);
|
||||
|
||||
// DB Instance 생성
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
// DB접속이 가능한지 체크
|
||||
if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed');
|
||||
|
||||
// 모든 모듈의 설치
|
||||
$output = $this->installDownloadedModule();
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// config 파일 생성
|
||||
if(!$this->makeConfigFile()) return new Object(-1, 'msg_install_failed');
|
||||
|
||||
// 설치 완료 메세지 출력
|
||||
$this->setMessage('msg_install_completed');
|
||||
$this->setRedirectUrl('./');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief files 및 하위 디렉토리 생성
|
||||
* DB 정보를 바탕으로 실제 install하기 전에 로컬 환경 설저d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue