사용자 추가한 include 파일이 먼저 실행되도록 수정
This commit is contained in:
10
head.php
10
head.php
@ -9,11 +9,6 @@ include_once(G5_LIB_PATH.'/visit.lib.php');
|
|||||||
include_once(G5_LIB_PATH.'/connect.lib.php');
|
include_once(G5_LIB_PATH.'/connect.lib.php');
|
||||||
include_once(G5_LIB_PATH.'/popular.lib.php');
|
include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
|
||||||
include_once(G5_MOBILE_PATH.'/head.php');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
if ($config['cf_include_head']) {
|
if ($config['cf_include_head']) {
|
||||||
if (!@include_once($config['cf_include_head'])) {
|
if (!@include_once($config['cf_include_head'])) {
|
||||||
@ -21,6 +16,11 @@ if ($config['cf_include_head']) {
|
|||||||
}
|
}
|
||||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G5_IS_MOBILE) {
|
||||||
|
include_once(G5_MOBILE_PATH.'/head.php');
|
||||||
|
return;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 상단 시작 { -->
|
<!-- 상단 시작 { -->
|
||||||
|
|||||||
10
index.php
10
index.php
@ -2,11 +2,6 @@
|
|||||||
define('_INDEX_', true);
|
define('_INDEX_', true);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
|
||||||
include_once(G5_MOBILE_PATH.'/index.php');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
if ($config['cf_include_index']) {
|
if ($config['cf_include_index']) {
|
||||||
if (!@include_once($config['cf_include_index'])) {
|
if (!@include_once($config['cf_include_index'])) {
|
||||||
@ -15,6 +10,11 @@ if ($config['cf_include_index']) {
|
|||||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G5_IS_MOBILE) {
|
||||||
|
include_once(G5_MOBILE_PATH.'/index.php');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
10
tail.php
10
tail.php
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
|
||||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
// 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
if ($config['cf_include_tail']) {
|
if ($config['cf_include_tail']) {
|
||||||
if (!@include_once($config['cf_include_tail'])) {
|
if (!@include_once($config['cf_include_tail'])) {
|
||||||
@ -13,6 +8,11 @@ if ($config['cf_include_tail']) {
|
|||||||
}
|
}
|
||||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G5_IS_MOBILE) {
|
||||||
|
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||||
|
return;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user