루트 index 파일 선택 설정 추가
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./common.php');
|
include_once('./common.php');
|
||||||
|
|
||||||
|
if(isset($default['de_root_index_use']) && $default['de_root_index_use']) {
|
||||||
|
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||||
|
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||||
|
|
||||||
|
define('_SHOP_', true);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
@ -32,6 +32,12 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<li><a href="#anc_scf_etc">기타설정</a></li>
|
<li><a href="#anc_scf_etc">기타설정</a></li>
|
||||||
<li><a href="#anc_scf_sms">SMS설정</a></li>
|
<li><a href="#anc_scf_sms">SMS설정</a></li>
|
||||||
</ul>';
|
</ul>';
|
||||||
|
|
||||||
|
// index 선택 설정 필드추가
|
||||||
|
if(!isset($default['de_root_index_use'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||||
|
ADD `de_root_index_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_admin_info_email` ", true);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fconfig" action="./configformupdate.php" onsubmit="return fconfig_check(this)" method="post" enctype="MULTIPART/FORM-DATA">
|
<form name="fconfig" action="./configformupdate.php" onsubmit="return fconfig_check(this)" method="post" enctype="MULTIPART/FORM-DATA">
|
||||||
@ -690,6 +696,16 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_root_index_use">루트 index 사용</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('쇼핑몰의 접속경로를 '.G5_SHOP_URL.' 에서 '.G5_URL.' 으로 변경하시려면 사용으로 설정해 주십시오.'); ?>
|
||||||
|
<select name="de_root_index_use" id="de_root_index_use">
|
||||||
|
<option value="0" <?php echo get_selected($default['de_root_index_use'], 0); ?>>사용안함</option>
|
||||||
|
<option value="1" <?php echo get_selected($default['de_root_index_use'], 1); ?>>사용</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">관련상품출력</th>
|
<th scope="row">관련상품출력</th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -33,6 +33,7 @@ $sql = " update {$g5['g5_shop_default_table']}
|
|||||||
de_admin_company_addr = '$de_admin_company_addr',
|
de_admin_company_addr = '$de_admin_company_addr',
|
||||||
de_admin_info_name = '$de_admin_info_name',
|
de_admin_info_name = '$de_admin_info_name',
|
||||||
de_admin_info_email = '$de_admin_info_email',
|
de_admin_info_email = '$de_admin_info_email',
|
||||||
|
de_root_index_use = '$de_root_index_use',
|
||||||
de_shop_skin = '$de_shop_skin',
|
de_shop_skin = '$de_shop_skin',
|
||||||
de_shop_mobile_skin = '$de_shop_mobile_skin',
|
de_shop_mobile_skin = '$de_shop_mobile_skin',
|
||||||
de_type1_list_use = '$de_type1_list_use',
|
de_type1_list_use = '$de_type1_list_use',
|
||||||
|
|||||||
@ -2,6 +2,12 @@
|
|||||||
define('_INDEX_', true);
|
define('_INDEX_', true);
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 루트 index를 쇼핑몰 index 설정했을 때
|
||||||
|
if(isset($default['de_root_index_use']) && $default['de_root_index_use']) {
|
||||||
|
require_once(G5_SHOP_PATH.'/index.php');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
if (G5_IS_MOBILE) {
|
||||||
include_once(G5_MOBILE_PATH.'/index.php');
|
include_once(G5_MOBILE_PATH.'/index.php');
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -193,6 +193,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_default` (
|
|||||||
`de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`de_root_index_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`de_shop_skin` varchar(255) NOT NULL DEFAULT '',
|
`de_shop_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_shop_mobile_skin` varchar(255) NOT NULL DEFAULT '',
|
`de_shop_mobile_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_type1_list_use` tinyint(4) NOT NULL DEFAULT '0',
|
`de_type1_list_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
|||||||
@ -218,6 +218,7 @@ if($g5_shop_install) {
|
|||||||
de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
|
de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
|
||||||
de_admin_info_name = '정보책임자명',
|
de_admin_info_name = '정보책임자명',
|
||||||
de_admin_info_email = '정보책임자 E-mail',
|
de_admin_info_email = '정보책임자 E-mail',
|
||||||
|
de_root_index_use = '0',
|
||||||
de_shop_skin = 'basic',
|
de_shop_skin = 'basic',
|
||||||
de_shop_mobile_skin = 'basic',
|
de_shop_mobile_skin = 'basic',
|
||||||
de_type1_list_use = '1',
|
de_type1_list_use = '1',
|
||||||
|
|||||||
@ -19,7 +19,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img" alt="<?php echo $config['cf_title']; ?> 메인"></a></div>
|
<div id="logo"><a href="<?php echo $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img" alt="<?php echo $config['cf_title']; ?> 메인"></a></div>
|
||||||
|
|
||||||
<a href="<?php echo G5_SHOP_URL; ?>/category.php" target="_blank" id="hd_ct">분류</a>
|
<a href="<?php echo G5_SHOP_URL; ?>/category.php" target="_blank" id="hd_ct">분류</a>
|
||||||
<button type="button" id="hd_sch_open">검색<span class="sound_only"> 열기</span></button>
|
<button type="button" id="hd_sch_open">검색<span class="sound_only"> 열기</span></button>
|
||||||
@ -73,7 +73,9 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">장바구니</a></li>
|
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">장바구니</a></li>
|
||||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||||
|
<?php if(!$default['de_root_index_use']) { ?>
|
||||||
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@ -31,7 +31,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
<div id="logo"><a href="<?php echo $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
||||||
|
|
||||||
<aside id="hd_aside">
|
<aside id="hd_aside">
|
||||||
<h2>편의메뉴</h2>
|
<h2>편의메뉴</h2>
|
||||||
@ -79,7 +79,9 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||||
<li><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
<li><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
||||||
|
<?php if(!$default['de_root_index_use']) { ?>
|
||||||
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user