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@170 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4d87dc94e8
commit
71a4d8bf95
4 changed files with 12 additions and 10 deletions
|
|
@ -31,21 +31,26 @@
|
||||||
* 변수를 세팅한다.
|
* 변수를 세팅한다.
|
||||||
**/
|
**/
|
||||||
function ModuleHandler($module = '', $act = '', $mid = '', $document_srl = '') {
|
function ModuleHandler($module = '', $act = '', $mid = '', $document_srl = '') {
|
||||||
|
// act값 설정
|
||||||
|
if(!$act) $this->act = Context::get('act');
|
||||||
|
else $this->act = $act;
|
||||||
|
|
||||||
|
// 설치가 안되어 있다면 install module을 지정
|
||||||
|
if(!Context::isInstalled()) {
|
||||||
|
$this->module = 'install';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Request Argument중 모듈을 찾을 수 있는 변수를 구함
|
// Request Argument중 모듈을 찾을 수 있는 변수를 구함
|
||||||
if(!$module) $this->module = Context::get('module');
|
if(!$module) $this->module = Context::get('module');
|
||||||
else $this->module = $module;
|
else $this->module = $module;
|
||||||
|
|
||||||
if(!$act) $this->act = Context::get('act');
|
|
||||||
else $this->act = $act;
|
|
||||||
|
|
||||||
if(!$mid) $this->mid = Context::get('mid');
|
if(!$mid) $this->mid = Context::get('mid');
|
||||||
else $this->mid = $mid;
|
else $this->mid = $mid;
|
||||||
|
|
||||||
if(!$document_srl) $this->document_srl = Context::get('document_srl');
|
if(!$document_srl) $this->document_srl = Context::get('document_srl');
|
||||||
else $this->document_srl = $document_srl;
|
else $this->document_srl = $document_srl;
|
||||||
|
|
||||||
// 설치가 안되어 있다면 install module을 지정
|
|
||||||
if(!Context::isInstalled()) $this->module = 'install';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -358,7 +358,7 @@
|
||||||
$skin = $module_info->skin;
|
$skin = $module_info->skin;
|
||||||
|
|
||||||
// 스킨의 정보르 구해옴 (extra_vars를 체크하기 위해서)
|
// 스킨의 정보르 구해옴 (extra_vars를 체크하기 위해서)
|
||||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin);
|
$skin_info = $oModuleModel->loadSkinInfo($this->module, $skin);
|
||||||
|
|
||||||
// 입력받은 변수들을 체크 (mo, act, module_srl, page등 기본적인 변수들 없앰)
|
// 입력받은 변수들을 체크 (mo, act, module_srl, page등 기본적인 변수들 없앰)
|
||||||
$obj = Context::getRequestVars();
|
$obj = Context::getRequestVars();
|
||||||
|
|
|
||||||
|
|
@ -443,9 +443,6 @@
|
||||||
|
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$skin_info = $oModuleModel->loadSkinInfo($this->module, $skin);
|
$skin_info = $oModuleModel->loadSkinInfo($this->module, $skin);
|
||||||
print "<pre>";
|
|
||||||
print_r($skin_info);
|
|
||||||
print "</pre>";
|
|
||||||
|
|
||||||
// skin_info에 extra_vars 값을 지정
|
// skin_info에 extra_vars 값을 지정
|
||||||
if(count($skin_info->extra_vars)) {
|
if(count($skin_info->extra_vars)) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<table name="categories">
|
<table name="document_categories">
|
||||||
<column name="category_srl" type="number" size="11" default="0" notnull="notnull" primary_key="primary_key" />
|
<column name="category_srl" type="number" size="11" default="0" notnull="notnull" primary_key="primary_key" />
|
||||||
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
|
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
|
||||||
<column name="title" type="varchar" size="250" />
|
<column name="title" type="varchar" size="250" />
|
||||||
Loading…
Add table
Add a link
Reference in a new issue