From c3272f91709c2621e4f6fc53a9453ef90c9b4eba Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 2 Jan 2023 17:58:22 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90,=201:1=EB=AC=B8?= =?UTF-8?q?=EC=9D=98,=20=EC=87=BC=ED=95=91=EB=AA=B0=EC=83=81=ED=92=88=20?= =?UTF-8?q?=EC=83=81=EB=8B=A8=EB=82=B4=EC=9A=A9=20=ED=95=98=EB=8B=A8?= =?UTF-8?q?=EB=82=B4=EC=9A=A9=EC=97=90=20hook=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/board_head.php | 4 ++-- bbs/board_tail.php | 4 ++-- bbs/qahead.php | 4 ++-- bbs/qatail.php | 4 ++-- mobile/shop/item.php | 4 ++-- shop/item.php | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bbs/board_head.php b/bbs/board_head.php index 2e93e3091..f02e5cbaa 100644 --- a/bbs/board_head.php +++ b/bbs/board_head.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (G5_IS_MOBILE) { // 모바일의 경우 설정을 따르지 않는다. include_once(G5_BBS_PATH.'/_head.php'); - echo html_purifier(stripslashes($board['bo_mobile_content_head'])); + echo run_replace('board_mobile_content_head', html_purifier(stripslashes($board['bo_mobile_content_head'])), $board); } else { // 상단 파일 경로를 입력하지 않았다면 기본 상단 파일도 include 하지 않음 if (trim($board['bo_include_head'])) { @@ -15,5 +15,5 @@ if (G5_IS_MOBILE) { include_once(G5_BBS_PATH.'/_head.php'); } } - echo html_purifier(stripslashes($board['bo_content_head'])); + echo run_replace('board_content_head', html_purifier(stripslashes($board['bo_content_head'])), $board); } \ No newline at end of file diff --git a/bbs/board_tail.php b/bbs/board_tail.php index 06c975b6b..cc9365bfc 100644 --- a/bbs/board_tail.php +++ b/bbs/board_tail.php @@ -3,11 +3,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 게시판 관리의 하단 파일 경로 if (G5_IS_MOBILE) { - echo html_purifier(stripslashes($board['bo_mobile_content_tail'])); + echo run_replace('board_mobile_content_tail', html_purifier(stripslashes($board['bo_mobile_content_tail'])), $board); // 모바일의 경우 설정을 따르지 않는다. include_once(G5_BBS_PATH.'/_tail.php'); } else { - echo html_purifier(stripslashes($board['bo_content_tail'])); + echo run_replace('board_content_tail', html_purifier(stripslashes($board['bo_content_tail'])), $board); // 하단 파일 경로를 입력하지 않았다면 기본 하단 파일도 include 하지 않음 if (trim($board['bo_include_tail'])) { if (is_include_path_check($board['bo_include_tail'])) { //파일경로 체크 diff --git a/bbs/qahead.php b/bbs/qahead.php index 256cd0058..0d5f14595 100644 --- a/bbs/qahead.php +++ b/bbs/qahead.php @@ -7,11 +7,11 @@ $qa_skin_url = get_skin_url('qa', (G5_IS_MOBILE ? $qaconfig['qa_mobile_skin'] : if (G5_IS_MOBILE) { // 모바일의 경우 설정을 따르지 않는다. include_once('./_head.php'); - echo conv_content($qaconfig['qa_mobile_content_head'], 1); + echo run_replace('qa_mobile_content_head', conv_content($qaconfig['qa_mobile_content_head'], 1), $qaconfig); } else { if($qaconfig['qa_include_head'] && is_include_path_check($qaconfig['qa_include_head'])) @include ($qaconfig['qa_include_head']); else include ('./_head.php'); - echo conv_content($qaconfig['qa_content_head'], 1); + echo run_replace('qa_content_head', conv_content($qaconfig['qa_content_head'], 1), $qaconfig); } \ No newline at end of file diff --git a/bbs/qatail.php b/bbs/qatail.php index 1fb3cf646..07e1c21c0 100644 --- a/bbs/qatail.php +++ b/bbs/qatail.php @@ -2,11 +2,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (G5_IS_MOBILE) { - echo conv_content($qaconfig['qa_mobile_content_tail'], 1); + echo run_replace('qa_mobile_content_tail', conv_content($qaconfig['qa_mobile_content_tail'], 1), $qaconfig); // 모바일의 경우 설정을 따르지 않는다. include_once('./_tail.php'); } else { - echo conv_content($qaconfig['qa_content_tail'], 1); + echo run_replace('qa_content_tail', conv_content($qaconfig['qa_content_tail'], 1), $qaconfig); if($qaconfig['qa_include_tail'] && is_include_path_check($qaconfig['qa_include_tail'])) @include ($qaconfig['qa_include_tail']); else diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 5d95f05ee..7436274ad 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -197,7 +197,7 @@ include_once(G5_MSHOP_PATH.'/_head.php'); include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php'); // 상단 HTML -echo '
'.conv_content($it['it_mobile_head_html'], 1).'
'; +echo run_replace('shop_it_mobile_head_html', '
'.conv_content($it['it_mobile_head_html'], 1).'
', $it); ?> @@ -222,6 +222,6 @@ else '.conv_content($it['it_head_html'], 1).''; +echo run_replace('shop_it_head_html', '
'.conv_content($it['it_head_html'], 1).'
', $it); // 보안서버경로 if (G5_HTTPS_DOMAIN) @@ -274,7 +274,7 @@ include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');