From c35d05b4e34ab7dcd246faca2803c10d660019e4 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 21 Aug 2007 08:20:07 +0000 Subject: [PATCH] =?UTF-8?q?#108.=20config.inc.php/func.inc.php=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=A7=81=EC=A0=91=20=ED=98=B8=EC=B6=9C=ED=95=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=97=86=EB=8F=84=EB=A1=9D=20=5F=5FZBXE=5F=5F=20?= =?UTF-8?q?=EC=83=81=EC=88=98=20=EC=84=A0=EC=96=B8=EC=9D=84=20index.php?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B4=EB=8F=99=ED=95=98=EA=B3=A0=20=EA=B0=81=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=ED=8C=8C=EC=9D=BC=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=84=A0=EC=96=B8=20=ED=99=95=EC=9D=B8=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2363 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/config.inc.php | 7 ++----- config/func.inc.php | 2 ++ index.php | 5 +++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/config.inc.php b/config/config.inc.php index bcbb68331..1ffc8fab1 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -4,11 +4,8 @@ * @author zero (zero@nzeo.com) * @brief 기본적으로 사용하는 class파일의 include 및 환경 설정을 함 **/ - - /** - * @brief 기본적인 상수 선언, 웹에서 직접 호출되는 것을 막기 위해 체크하는 상수 선언 - **/ - define('__ZBXE__', true); + + if(!defined('__ZBXE__')) exit(); /** * @brief 디버그 메세지의 출력 장소 diff --git a/config/func.inc.php b/config/func.inc.php index 75bb88f33..b5f804627 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -5,6 +5,8 @@ * @brief 편의 목적으로 만든 함수라이브러리 파일 **/ + if(!defined('__ZBXE__')) exit(); + /** * @brief php5에 대비하여 clone 정의 **/ diff --git a/index.php b/index.php index 61e8fb861..1db9c2747 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,11 @@ * **/ + /** + * @brief 기본적인 상수 선언, 웹에서 직접 호출되는 것을 막기 위해 체크하는 상수 선언 + **/ + define('__ZBXE__', true); + /** * @brief 필요한 설정 파일들을 include **/