From aa86158caf89507148a3299dd1bb9b79b7400916 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 23 Jan 2015 09:48:36 +0900 Subject: [PATCH] =?UTF-8?q?head.sub.php=20=ED=8C=8C=EC=9D=BC=20=EB=93=B1?= =?UTF-8?q?=EC=9D=84=20=EC=82=AC=EC=9A=A9=EC=9E=90=EA=B0=80=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=83=81=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/user.config.php | 8 ++++++++ head.sub.php | 6 ++++++ tail.sub.php | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 extend/user.config.php diff --git a/extend/user.config.php b/extend/user.config.php new file mode 100644 index 000000000..91e087675 --- /dev/null +++ b/extend/user.config.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/head.sub.php b/head.sub.php index 587d438c8..bcfb4b9c2 100644 --- a/head.sub.php +++ b/head.sub.php @@ -4,6 +4,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $begin_time = get_microtime(); +// 사용자가 지정한 head.sub.php 파일이 있다면 include +if(defined('G5_HEAD_SUB_FILE') && is_file(G5_PATH.'/'.G5_HEAD_SUB_FILE)) { + include_once(G5_PATH.'/'.G5_HEAD_SUB_FILE); + return; +} + if (!isset($g5['title'])) { $g5['title'] = $config['cf_title']; $g5_head_title = $g5['title']; diff --git a/tail.sub.php b/tail.sub.php index ec5920f63..4234d2b6b 100644 --- a/tail.sub.php +++ b/tail.sub.php @@ -1,5 +1,11 @@