mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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
|
|
@ -23,6 +23,7 @@
|
||||||
<th>{$lang->cmd_move_to_document}</th>
|
<th>{$lang->cmd_move_to_document}</th>
|
||||||
<th>{$lang->cmd_download}</th>
|
<th>{$lang->cmd_download}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!--@foreach($file_list as $no => $val)-->
|
<!--@foreach($file_list as $no => $val)-->
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$no}</td>
|
<td>{$no}</td>
|
||||||
|
|
@ -37,6 +38,7 @@
|
||||||
<td><a href="{$val->download_url}">{$lang->cmd_download}</a></td>
|
<td><a href="{$val->download_url}">{$lang->cmd_download}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<filter name="delete_checked" module="file" act="procDeleteChecked" confirm_msg_code="confirm_delete">
|
<filter name="delete_checked" module="file" act="procEditorAdminDeleteChecked" confirm_msg_code="confirm_delete">
|
||||||
<form>
|
<form>
|
||||||
<node target="cart" required="true" />
|
<node target="cart" required="true" />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module version="0.1">
|
<module version="0.1">
|
||||||
<title xml:lang="ko">설치관리</title>
|
<title xml:lang="ko">설치관리</title>
|
||||||
<title xml:lang="en">install</title>
|
|
||||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
<name xml:lang="ko">제로</name>
|
<name xml:lang="ko">제로</name>
|
||||||
<name xml:lang="en">zero</name>
|
|
||||||
<description xml:lang="ko">설치 관리 모듈</description>
|
<description xml:lang="ko">설치 관리 모듈</description>
|
||||||
<description xml:lang="en">install</description>
|
|
||||||
</author>
|
</author>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<module>
|
<module>
|
||||||
<grants />
|
<grants />
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispIntroduce" type="view" standalone="true" index="true" />
|
<action name="dispInstallIntroduce" type="view" standalone="true" index="true" />
|
||||||
<action name="dispInstallForm" type="view" standalone="true" />
|
<action name="dispInstallForm" type="view" standalone="true" />
|
||||||
<action name="procInstall" type="controller" standalone="true" />
|
<action name="procInstall" type="controller" standalone="true" />
|
||||||
</actions>
|
</actions>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,37 @@
|
||||||
if(Context::isInstalled()) return $this->dispMessage('msg_already_installed');
|
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
|
* @brief 인스톨 환경을 체크하여 결과 return
|
||||||
**/
|
**/
|
||||||
|
|
@ -57,38 +88,6 @@
|
||||||
return $install_enable;
|
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 및 하위 디렉토리 생성
|
* @brief files 및 하위 디렉토리 생성
|
||||||
* DB 정보를 바탕으로 실제 install하기 전에 로컬 환경 설저d
|
* DB 정보를 바탕으로 실제 install하기 전에 로컬 환경 설저d
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief license 및 설치 환경에 대한 메세지 보여줌
|
* @brief license 및 설치 환경에 대한 메세지 보여줌
|
||||||
**/
|
**/
|
||||||
function dispIntroduce() {
|
function dispInstallIntroduce() {
|
||||||
$this->setTemplateFile('introduce');
|
$this->setTemplateFile('introduce');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
<form action="./" method="post" onsubmit="return procFilter(this, install)">
|
<form action="./" method="post" onsubmit="return procFilter(this, install)">
|
||||||
<input type="hidden" name="db_type" value="{$db_type}" />
|
<input type="hidden" name="db_type" value="{$db_type}" />
|
||||||
|
|
||||||
<table border="1">
|
<table border="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">{$lang->install_condition_title}</td>
|
<td colspan="2">{$lang->install_condition_title}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!--@foreach($checklist as $key => $val)-->
|
<!--@foreach($checklist as $key => $val)-->
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2">{$lang->install_checklist_title[$key]}</td>
|
<td rowspan="2">{$lang->install_checklist_title[$key]}</td>
|
||||||
|
|
@ -22,6 +23,7 @@
|
||||||
<td>{$lang->install_checklist_desc[$key]}</td>
|
<td>{$lang->install_checklist_desc[$key]}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!--@if($install_enable)-->
|
<!--@if($install_enable)-->
|
||||||
|
|
@ -41,6 +43,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!--@else-->
|
<!--@else-->
|
||||||
<a href="./">{$lang->cmd_install_fix_checklist}</a>
|
<a href="./">{$lang->cmd_install_fix_checklist}</a>
|
||||||
|
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module version="0.1">
|
<module version="0.1">
|
||||||
<title xml:lang="ko">한국 우편번호 검색</title>
|
<title xml:lang="ko">한국 우편번호 검색</title>
|
||||||
<title xml:lang="en">Korea Zipcode Finder</title>
|
|
||||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
<name xml:lang="ko">제로</name>
|
<name xml:lang="ko">제로</name>
|
||||||
<name xml:lang="en">zero</name>
|
<description xml:lang="ko">제로보드에서 운영하는 우편번호서버를 이용하여 우편번호 검색을 합니다.</description>
|
||||||
<description xml:lang="ko">한국 우편번호 검색을 담당합니다.</description>
|
|
||||||
<description xml:lang="en">Korea Zipcode Finder</description>
|
|
||||||
</author>
|
</author>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
<module>
|
<module>
|
||||||
<grants />
|
<grants />
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispConfig" type="view" admin_index="true" standalone="true" />
|
<action name="dispKrzipAdminConfig" type="view" admin_index="true" standalone="true" />
|
||||||
<action name="procInsertConfig" type="controller" standalone="true" />
|
<action name="procKrzipAdminInsertConfig" type="controller" standalone="true" />
|
||||||
<action name="getZipCodeList" type="model" index="true" standalone="true" />
|
<action name="getKrzipCodeList" type="model" index="true" standalone="true" />
|
||||||
</actions>
|
</actions>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,11 @@
|
||||||
* @brief 설치시 추가 작업이 필요할시 구현
|
* @brief 설치시 추가 작업이 필요할시 구현
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
|
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||||
|
$oModuleController = &getController('module');
|
||||||
|
$oModuleController->insertActionFoward('krzip', 'view', 'dispKrzipAdminConfig');
|
||||||
|
$oModuleController->insertActionFoward('krzip', 'controller', 'procKrzipAdminInsertConfig');
|
||||||
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 설정
|
* @brief 설정
|
||||||
**/
|
**/
|
||||||
function procInsertConfig() {
|
function procKrzipAdminInsertConfig() {
|
||||||
// 기본 정보를 받음
|
// 기본 정보를 받음
|
||||||
$args = Context::gets('krzip_server_hostname','krzip_server_port','krzip_server_query');
|
$args = Context::gets('krzip_server_hostname','krzip_server_port','krzip_server_query');
|
||||||
if(!$args->krzip_server_hostname) $args->krzip_server_hostname = $this->hostname;
|
if(!$args->krzip_server_hostname) $args->krzip_server_hostname = $this->hostname;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
* @brief 우편 번호 검색
|
* @brief 우편 번호 검색
|
||||||
* 동이름을 입력받아서 지정된 서버에 우편번호 목록을 요청한다
|
* 동이름을 입력받아서 지정된 서버에 우편번호 목록을 요청한다
|
||||||
**/
|
**/
|
||||||
function getZipCodeList() {
|
function getKrzipCodeList() {
|
||||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$config = $oModuleModel->getModuleConfig('krzip');
|
$config = $oModuleModel->getModuleConfig('krzip');
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 설정
|
* @brief 설정
|
||||||
**/
|
**/
|
||||||
function dispConfig() {
|
function dispKrzipAdminConfig() {
|
||||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$config = $oModuleModel->getModuleConfig('krzip');
|
$config = $oModuleModel->getModuleConfig('krzip');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue