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