From f56b577c254b662aa20a540f406309feb6089d6e Mon Sep 17 00:00:00 2001 From: projectSylas Date: Wed, 5 Jan 2022 16:29:56 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=83=81=EB=8B=A8,=20=ED=95=98=EB=8B=A8?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EA=B2=BD=EB=A1=9C=EB=A5=BC=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=ED=95=98=EC=A7=80=20=EC=95=8A=EC=95=98=EB=8B=A4?= =?UTF-8?q?=EB=A9=B4=20=EA=B8=B0=EB=B3=B8=20=EC=83=81=EB=8B=A8,=20?= =?UTF-8?q?=ED=95=98=EB=8B=A8=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20include=20?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(=EC=9E=91=EC=9D=80=EB=B3=84=EB=8B=98,220105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/board_head.php | 11 +++++++---- bbs/board_tail.php | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/bbs/board_head.php b/bbs/board_head.php index 2fb10c18c..2e93e3091 100644 --- a/bbs/board_head.php +++ b/bbs/board_head.php @@ -7,10 +7,13 @@ if (G5_IS_MOBILE) { include_once(G5_BBS_PATH.'/_head.php'); echo html_purifier(stripslashes($board['bo_mobile_content_head'])); } else { - if($board['bo_include_head'] && is_include_path_check($board['bo_include_head'])) { //파일경로 체크 - @include ($board['bo_include_head']); - } else { //파일경로가 올바르지 않으면 기본파일을 가져옴 - include_once(G5_BBS_PATH.'/_head.php'); + // 상단 파일 경로를 입력하지 않았다면 기본 상단 파일도 include 하지 않음 + if (trim($board['bo_include_head'])) { + if (is_include_path_check($board['bo_include_head'])) { //파일경로 체크 + @include ($board['bo_include_head']); + } else { //파일경로가 올바르지 않으면 기본파일을 가져옴 + include_once(G5_BBS_PATH.'/_head.php'); + } } echo html_purifier(stripslashes($board['bo_content_head'])); } \ No newline at end of file diff --git a/bbs/board_tail.php b/bbs/board_tail.php index 87385e9fe..06c975b6b 100644 --- a/bbs/board_tail.php +++ b/bbs/board_tail.php @@ -8,9 +8,12 @@ if (G5_IS_MOBILE) { include_once(G5_BBS_PATH.'/_tail.php'); } else { echo html_purifier(stripslashes($board['bo_content_tail'])); - if($board['bo_include_tail'] && is_include_path_check($board['bo_include_tail'])) { //파일경로 체크 - @include ($board['bo_include_tail']); - } else { //파일경로가 올바르지 않으면 기본파일을 가져옴 - include_once(G5_BBS_PATH.'/_tail.php'); + // 하단 파일 경로를 입력하지 않았다면 기본 하단 파일도 include 하지 않음 + if (trim($board['bo_include_tail'])) { + if (is_include_path_check($board['bo_include_tail'])) { //파일경로 체크 + @include ($board['bo_include_tail']); + } else { //파일경로가 올바르지 않으면 기본파일을 가져옴 + include_once(G5_BBS_PATH.'/_tail.php'); + } } } \ No newline at end of file