From 78d87038aaa7c0dd73512bbbccc7616c8c3b7baf Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 28 Jan 2015 10:01:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EB=93=B1=EC=9D=98=20=ED=8C=8C=EC=9D=BC=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 6 +++--- head.php | 6 ++---- index.php | 6 ++---- tail.php | 6 ++---- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/adm/config_form.php b/adm/config_form.php index 448919f07..a7401dc2c 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -1085,21 +1085,21 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { - + 초기화면 파일은 index.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 상단 파일은 head.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 초기화면 파일은 tail.php 파일과 동일한 위치에 존재해야 합니다.') ?> diff --git a/head.php b/head.php index a489d0dd8..ddbf6470c 100644 --- a/head.php +++ b/head.php @@ -10,10 +10,8 @@ include_once(G5_LIB_PATH.'/connect.lib.php'); include_once(G5_LIB_PATH.'/popular.lib.php'); // 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_head']) { - if (!@include_once($config['cf_include_head'])) { - die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_head'] && is_file(G5_PATH.'/'.$config['cf_include_head']) { + include_once($config['cf_include_head']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/index.php b/index.php index b5e308d96..2ba266fb5 100644 --- a/index.php +++ b/index.php @@ -3,10 +3,8 @@ define('_INDEX_', true); include_once('./_common.php'); // 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_index']) { - if (!@include_once($config['cf_include_index'])) { - die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index']) { + include_once($config['cf_include_index']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/tail.php b/tail.php index aff874a21..2d9b119de 100644 --- a/tail.php +++ b/tail.php @@ -2,10 +2,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_tail']) { - if (!@include_once($config['cf_include_tail'])) { - die('기본환경 설정에서 하단 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail']) { + include_once($config['cf_include_tail']); return; // 이 코드의 아래는 실행을 하지 않습니다. }