diff --git a/head.php b/head.php index f48c29c2d..5a18ce906 100644 --- a/head.php +++ b/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.'/popular.lib.php'); -if (G5_IS_MOBILE) { - include_once(G5_MOBILE_PATH.'/head.php'); - return; -} - // 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. if ($config['cf_include_head']) { if (!@include_once($config['cf_include_head'])) { @@ -21,6 +16,11 @@ if ($config['cf_include_head']) { } return; // 이 코드의 아래는 실행을 하지 않습니다. } + +if (G5_IS_MOBILE) { + include_once(G5_MOBILE_PATH.'/head.php'); + return; +} ?> diff --git a/index.php b/index.php index dceff581f..14d29d8a6 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,14 @@ define('_INDEX_', true); include_once('./_common.php'); +// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. +if ($config['cf_include_index']) { + if (!@include_once($config['cf_include_index'])) { + die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.'); + } + return; // 이 코드의 아래는 실행을 하지 않습니다. +} + // 루트 index를 쇼핑몰 index 설정했을 때 if(isset($default['de_root_index_use']) && $default['de_root_index_use']) { require_once(G5_SHOP_PATH.'/index.php'); @@ -13,14 +21,6 @@ if (G5_IS_MOBILE) { return; } -// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_index']) { - if (!@include_once($config['cf_include_index'])) { - die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.'); - } - return; // 이 코드의 아래는 실행을 하지 않습니다. -} - include_once('./_head.php'); ?> diff --git a/tail.php b/tail.php index aa6684787..0c06084f9 100644 --- a/tail.php +++ b/tail.php @@ -1,11 +1,6 @@