git-svn-id: http://xe-core.googlecode.com/svn/trunk@1208 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-18 02:41:55 +00:00
parent 43f5fe2356
commit 2be28490ce
12 changed files with 87 additions and 208 deletions

View file

@ -13,7 +13,7 @@
**/
function init() {
// 설치가 되어 있으면 오류
if(Context::isInstalled()) return $this->dispMessage('msg_already_installed');
if($this->act != 'procInstallAdminInstall' && Context::isInstalled()) return $this->dispMessage('msg_already_installed');
}
/**
@ -49,6 +49,18 @@
$this->setMessage('msg_install_completed');
}
/**
* @brief 모듈 설치
**/
function procInstallAdminInstall() {
$module_name = Context::get('module_name');
if(!$module_name) return new object(-1, 'invalid_request');
$this->installModule($module_name, './modules/'.$module_name);
$this->setMessage('success_installed');
}
/**
* @brief 인스톨 환경을 체크하여 결과 return
**/