From 6c34162bb0460c4df7c405fe215d964015ed9c52 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 17 Mar 2014 18:09:42 +0900 Subject: [PATCH] =?UTF-8?q?extend=EB=82=B4=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EB=AA=85=EC=88=9C=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=95=EB=A0=AC=ED=95=98=EC=97=AC=20include=20=ED=95=98?= =?UTF-8?q?=EB=8F=84=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 --- common.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 5dd46b317..e28288fe8 100644 --- a/common.php +++ b/common.php @@ -466,13 +466,23 @@ include_once(G5_BBS_PATH.'/visit_insert.inc.php'); // common.php 파일을 수정할 필요가 없도록 확장합니다. +$extend_file = array(); $tmp = dir(G5_EXTEND_PATH); while ($entry = $tmp->read()) { // php 파일만 include 함 if (preg_match("/(\.php)$/i", $entry)) - include_once(G5_EXTEND_PATH.'/'.$entry); + $extend_file[] = $entry; } +if(!empty($extend_file) && is_array($extend_file)) { + natsort($extend_file); + + foreach($extend_file as $file) { + include_once(G5_EXTEND_PATH.'/'.$file); + } +} +unset($extend_file); + ob_start(); // 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면