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@137 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3ab1c1d3fa
commit
a834afcf38
4 changed files with 11 additions and 6 deletions
4
.htaccess
Normal file
4
.htaccess
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RewriteEngine on
|
||||
RewriteRule ^rss/([a-zA-Z0-9\_\-]*)$ ./index.php?mid=$1&act=dispRss
|
||||
RewriteRule ^trackback/([0-9]*)$ ./index.php?document_srl=$1&act=procReceiveTrackback
|
||||
RewriteRule ^([0-9]*)$ ./index.php?document_srl=$1
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
/**
|
||||
* @brief 모듈객체를 받아서 content 출력
|
||||
**/
|
||||
function printContent($oModule) {
|
||||
function printContent(&$oModule) {
|
||||
// header 출력
|
||||
$this->_printHeader();
|
||||
|
||||
|
|
@ -47,14 +47,14 @@
|
|||
/**
|
||||
* @brief 모듈 객체의 content return
|
||||
**/
|
||||
function getContent($oModule) {
|
||||
function getContent(&$oModule) {
|
||||
return $this->_toDoc($oModule);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈 객체의 content return
|
||||
**/
|
||||
function _toDoc($oModule) {
|
||||
function _toDoc(&$oModule) {
|
||||
if(Context::getRequestMethod() == 'XMLRPC') $content = $this->_toXmlDoc($oModule);
|
||||
else $content = $this->_toHTMLDoc($oModule);
|
||||
return $content;
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
/**
|
||||
* @brief RequestMethod가 XML이면 XML 데이터로 컨텐츠 생성
|
||||
**/
|
||||
function _toXmlDoc($oModule) {
|
||||
function _toXmlDoc(&$oModule) {
|
||||
$xmlDoc = "<response>\n";
|
||||
$xmlDoc .= sprintf("<error>%s</error>\n",$oModule->getError());
|
||||
$xmlDoc .= sprintf("<message>%s</message>\n",$oModule->getMessage());
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
/**
|
||||
* @brief RequestMethod가 XML이 아니면 html 컨텐츠 생성
|
||||
**/
|
||||
function _toHTMLDoc($oModule) {
|
||||
function _toHTMLDoc(&$oModule) {
|
||||
// template handler 객체 생성
|
||||
require_once("./classes/template/TemplateHandler.class.php");
|
||||
$oTemplate = new TemplateHandler();
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@
|
|||
// 모듈 객체 생성
|
||||
$oModule = &$this->getModuleInstance($module, $type);
|
||||
|
||||
|
||||
// 모듈 정보 세팅
|
||||
$oModule->setModuleInfo($module_info, $xml_info);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
Context::loadLang($editor_path);
|
||||
|
||||
// 스킨 디렉토리 세팅
|
||||
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
$this->setTemplatePath($skin_path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue