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

This commit is contained in:
zero 2007-02-20 13:20:17 +00:00
parent 3ab1c1d3fa
commit a834afcf38
4 changed files with 11 additions and 6 deletions

4
.htaccess Normal file
View 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

View file

@ -17,7 +17,7 @@
/** /**
* @brief 모듈객체를 받아서 content 출력 * @brief 모듈객체를 받아서 content 출력
**/ **/
function printContent($oModule) { function printContent(&$oModule) {
// header 출력 // header 출력
$this->_printHeader(); $this->_printHeader();
@ -47,14 +47,14 @@
/** /**
* @brief 모듈 객체의 content return * @brief 모듈 객체의 content return
**/ **/
function getContent($oModule) { function getContent(&$oModule) {
return $this->_toDoc($oModule); return $this->_toDoc($oModule);
} }
/** /**
* @brief 모듈 객체의 content return * @brief 모듈 객체의 content return
**/ **/
function _toDoc($oModule) { function _toDoc(&$oModule) {
if(Context::getRequestMethod() == 'XMLRPC') $content = $this->_toXmlDoc($oModule); if(Context::getRequestMethod() == 'XMLRPC') $content = $this->_toXmlDoc($oModule);
else $content = $this->_toHTMLDoc($oModule); else $content = $this->_toHTMLDoc($oModule);
return $content; return $content;
@ -63,7 +63,7 @@
/** /**
* @brief RequestMethod가 XML이면 XML 데이터로 컨텐츠 생성 * @brief RequestMethod가 XML이면 XML 데이터로 컨텐츠 생성
**/ **/
function _toXmlDoc($oModule) { function _toXmlDoc(&$oModule) {
$xmlDoc = "<response>\n"; $xmlDoc = "<response>\n";
$xmlDoc .= sprintf("<error>%s</error>\n",$oModule->getError()); $xmlDoc .= sprintf("<error>%s</error>\n",$oModule->getError());
$xmlDoc .= sprintf("<message>%s</message>\n",$oModule->getMessage()); $xmlDoc .= sprintf("<message>%s</message>\n",$oModule->getMessage());
@ -85,7 +85,7 @@
/** /**
* @brief RequestMethod가 XML이 아니면 html 컨텐츠 생성 * @brief RequestMethod가 XML이 아니면 html 컨텐츠 생성
**/ **/
function _toHTMLDoc($oModule) { function _toHTMLDoc(&$oModule) {
// template handler 객체 생성 // template handler 객체 생성
require_once("./classes/template/TemplateHandler.class.php"); require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler(); $oTemplate = new TemplateHandler();

View file

@ -81,6 +81,7 @@
// 모듈 객체 생성 // 모듈 객체 생성
$oModule = &$this->getModuleInstance($module, $type); $oModule = &$this->getModuleInstance($module, $type);
// 모듈 정보 세팅 // 모듈 정보 세팅
$oModule->setModuleInfo($module_info, $xml_info); $oModule->setModuleInfo($module_info, $xml_info);

View file

@ -25,7 +25,7 @@
Context::loadLang($editor_path); 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); $this->setTemplatePath($skin_path);
} }