mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7723 201d5d3c-b55e-5fd7-737f-ddc643e51545
61 lines
2.3 KiB
PHP
61 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* @file index.php
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief 시작 페이지
|
|
*
|
|
* Request Argument에서 mid, act로 module 객체를 찾아서 생성하고 \n
|
|
* 모듈 정보를 세팅함
|
|
*
|
|
* @mainpage XpressEngine
|
|
* @section intro 소개
|
|
* XE 는 오픈 프로젝트로 개발되는 오픈 소스입니다.\n
|
|
* 자세한 내용은 아래 링크를 참조하세요.
|
|
* - 공식홈페이지 : http://www.xpressengine.com
|
|
* - SVN Repository : http://svn.xpressengine.net/xe
|
|
* \n
|
|
* "XpressEngine (XE)" is free software; you can redistribute it and/or \n
|
|
* modify it under the terms of the GNU Lesser General Public \n
|
|
* License as published by the Free Software Foundation; either \n
|
|
* version 2.1 of the License, or (at your option) any later version. \n
|
|
* \n
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
* \n
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
**/
|
|
|
|
/**
|
|
* @brief 기본적인 상수 선언, 웹에서 직접 호출되는 것을 막기 위해 체크하는 상수 선언
|
|
**/
|
|
define('__ZBXE__', true);
|
|
|
|
/**
|
|
* @brief 필요한 설정 파일들을 include
|
|
**/
|
|
require('./config/config.inc.php');
|
|
|
|
/**
|
|
* @brief Context 객체를 생성하여 초기화
|
|
* 모든 Request Argument/ 환경변수등을 세팅
|
|
**/
|
|
$oContext = &Context::getInstance();
|
|
$oContext->init();
|
|
|
|
/**
|
|
* @brief default_url 이 설정되어 있고 현재 url이 default_url과 다르면 SSO인증을 위한 rediret 시도 후 모듈 동작
|
|
**/
|
|
if($oContext->checkSSO()) {
|
|
$oModuleHandler = new ModuleHandler();
|
|
if($oModuleHandler->init()) {
|
|
$oModule = &$oModuleHandler->procModule();
|
|
$oModuleHandler->displayContent($oModule);
|
|
}
|
|
}
|
|
$oContext->close();
|
|
?>
|