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

This commit is contained in:
zero 2007-02-14 06:54:08 +00:00
parent 7c8fc30c8c
commit ef0f13e800
3 changed files with 123 additions and 106 deletions

View file

@ -3,7 +3,8 @@
* @file ./admin.php * @file ./admin.php
* @author zero <zero@nzeo.com> * @author zero <zero@nzeo.com>
* @brief 관리자 페이지 * @brief 관리자 페이지
* 추가되는 모듈의 관리를 위해 소스코드의 변경을 피하기 위해 *
* 추가되는 모듈의 관리를 위해 소스코드의 변경을 피하기 위해\n
* 관리자 페이지는 모듈의 admin action을 호출하여 구성을 한다. * 관리자 페이지는 모듈의 admin action을 호출하여 구성을 한다.
**/ **/
@ -57,9 +58,7 @@
* @brief 관리자 모듈의 실행 결과가 있으면 해당 실행결과를 출력 * @brief 관리자 모듈의 실행 결과가 있으면 해당 실행결과를 출력
**/ **/
if($oAdmin->proc($act)) { if($oAdmin->proc($act)) {
$oModule = &$oAdmin; $oModule = &$oAdmin;
/** /**
* @brief 관리자 모듈의 실행 결과가 없으면 호출된 다른 모듈의 관리자를 확인 * @brief 관리자 모듈의 실행 결과가 없으면 호출된 다른 모듈의 관리자를 확인
**/ **/

25
rss.php
View file

@ -1,22 +1,31 @@
<?php <?php
/** /**
* @file : rss.php * @file ./rss.php
* @author : zero <zero@nzeo.com> * @author zero (zero@nzeo.com)
* @desc : rss를 출력하기 위한 파일. index.php와 거의 동일하나 act를 dispRss 고정시키는 것만 다름 * @brief rss를 출력하기 위한 파일. index.php와 거의 동일하나 act를 dispRss 고정시키는 것만 다름
**/ **/
// 필요한 설정 파일들을 include /**
* @brief 필요한 설정 파일들을 includ
**/
require_once("./config/config.inc.php"); require_once("./config/config.inc.php");
// Request Method와 설정값들을 세팅 /**
* @brief Request Method와 설정값들을 세팅
**/
$oContext = &Context::getInstance(); $oContext = &Context::getInstance();
$oContext->init(); $oContext->init();
// act값을 dispRss로 강제 설정 /**
// 각 모듈마다 dispRss가 필수적으로 있어야 함 * @brief act값을 dispRss로 강제 설정
*
* 모듈마다 dispRss가 필수적으로 있어야
**/
Context::set('act', 'dispRss'); Context::set('act', 'dispRss');
// ModuleHandler 호출하여 content 출력 /**
* @brief ModuleHandler 호출하여 content 출력
**/
$oModuleHandler = new ModuleHandler(); $oModuleHandler = new ModuleHandler();
$oModule = $oModuleHandler->proc(); $oModule = $oModuleHandler->proc();
?> ?>

View file

@ -1,22 +1,31 @@
<?php <?php
/** /**
* @file : trackback.php * @file ./trackback.php
* @author : zero <zero@nzeo.com> * @author zero (zero@nzeo.com)
* @desc : 트랙백을 받기 위한 파일. 파일이름때문에.. index.php와 거의 동일하나 act를 procReceiveTrackback로 고정 * @brief 트랙백을 받기 위한 파일. 파일이름때문에.. index.php와 거의 동일하나 act를 procReceiveTrackback로 고정
**/ **/
// 필요한 설정 파일들을 include /**
* @brief 필요한 설정 파일들을 include
**/
require_once("./config/config.inc.php"); require_once("./config/config.inc.php");
// Request Method와 설정값들을 세팅 /**
* @brief Request Method와 설정값들을 세팅
**/
$oContext = &Context::getInstance(); $oContext = &Context::getInstance();
$oContext->init(); $oContext->init();
// act값을 procReceiveTrackback로 강제 설정 /**
// 각 모듈마다 procReceiveTrackback가 필수적으로 있어야 함 * @brief act값을 procReceiveTrackback로 강제 설정
*
* 모듈마다 procReceiveTrackback가 필수적으로 있어야
**/
Context::set('act', 'procReceiveTrackback'); Context::set('act', 'procReceiveTrackback');
// ModuleHandler 호출하여 content 출력 /**
* @brief ModuleHandler 호출하여 content 출력
**/
$oModuleHandler = new ModuleHandler(); $oModuleHandler = new ModuleHandler();
$oModule = $oModuleHandler->proc(); $oModule = $oModuleHandler->proc();
?> ?>