커뮤니티에서 쇼핑몰 head, tail 사용할 수 있도록 하는 설정 추가
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./common.php');
|
include_once('./common.php');
|
||||||
|
|
||||||
if(isset($default['de_root_index_use']) && $default['de_root_index_use']) {
|
if((isset($default['de_root_index_use']) && $default['de_root_index_use']) || (isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])) {
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
include_once(G5_PATH.'/head.php');
|
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||||
|
include_once(G5_SHOP_PATH.'/_head.php');
|
||||||
|
else
|
||||||
|
include_once(G5_PATH.'/head.php');
|
||||||
?>
|
?>
|
||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
include_once(G5_PATH.'/tail.php');
|
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||||
|
include_once(G5_SHOP_PATH.'/_tail.php');
|
||||||
|
else
|
||||||
|
include_once(G5_PATH.'/tail.php');
|
||||||
?>
|
?>
|
||||||
@ -49,6 +49,12 @@ if(!isset($default['de_card_noint_use'])) {
|
|||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||||
ADD `de_card_noint_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_card_use` ", true);
|
ADD `de_card_noint_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_card_use` ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 레이아웃 선택 설정 필드추가
|
||||||
|
if(!isset($default['de_shop_layout_use'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||||
|
ADD `de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_root_index_use` ", 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">
|
||||||
@ -737,6 +743,16 @@ if(!isset($default['de_card_noint_use'])) {
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_shop_layout_use">쇼핑몰 레이아웃 사용</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('커뮤니티의 레이아웃을 쇼핑몰과 동일하게 적용하시려면 사용으로 설정해 주십시오.'); ?>
|
||||||
|
<select name="de_shop_layout_use" id="de_shop_layout_use">
|
||||||
|
<option value="0" <?php echo get_selected($default['de_shop_layout_use'], 0); ?>>사용안함</option>
|
||||||
|
<option value="1" <?php echo get_selected($default['de_shop_layout_use'], 1); ?>>사용</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">관련상품출력</th>
|
<th scope="row">관련상품출력</th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -34,6 +34,7 @@ $sql = " update {$g5['g5_shop_default_table']}
|
|||||||
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_root_index_use = '$de_root_index_use',
|
||||||
|
de_shop_layout_use = '$de_shop_layout_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',
|
||||||
|
|||||||
@ -1,3 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('../common.php');
|
include_once('../common.php');
|
||||||
|
|
||||||
|
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use']) {
|
||||||
|
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||||
|
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||||
|
|
||||||
|
define('_SHOP_', true);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
@ -194,6 +194,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_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_root_index_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`de_shop_layout_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',
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
include_once(G5_MOBILE_PATH.'/head.php');
|
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||||
|
include_once(G5_SHOP_PATH.'/_head.php');
|
||||||
|
else
|
||||||
|
include_once(G5_PATH.'/head.php');
|
||||||
?>
|
?>
|
||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||||
|
include_once(G5_SHOP_PATH.'/_tail.php');
|
||||||
|
else
|
||||||
|
include_once(G5_PATH.'/tail.php');
|
||||||
?>
|
?>
|
||||||
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once("./_common.php");
|
include_once('./_common.php');
|
||||||
|
|
||||||
define("_INDEX_", TRUE);
|
define("_INDEX_", TRUE);
|
||||||
|
|
||||||
include_once(G5_MSHOP_PATH.'/shop.head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?php echo G5_JS_URL; ?>/swipe.js"></script>
|
<script src="<?php echo G5_JS_URL; ?>/swipe.js"></script>
|
||||||
@ -158,5 +158,5 @@ $(function() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once(G5_MSHOP_PATH.'/shop.tail.php');
|
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||||
?>
|
?>
|
||||||
@ -2,9 +2,11 @@
|
|||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
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');
|
||||||
|
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<header id="hd">
|
<header id="hd">
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
include_once(G5_SHOP_PATH.'/shop.head.php');
|
|
||||||
|
if(G5_IS_MOBILE)
|
||||||
|
include_once(G5_MSHOP_PATH.'/shop.head.php');
|
||||||
|
else
|
||||||
|
include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||||
?>
|
?>
|
||||||
@ -1,4 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
include_once(G5_SHOP_PATH.'/shop.tail.php');
|
|
||||||
|
if(G5_IS_MOBILE)
|
||||||
|
include_once(G5_MSHOP_PATH.'/shop.tail.php');
|
||||||
|
else
|
||||||
|
include_once(G5_SHOP_PATH.'/shop.tail.php');
|
||||||
?>
|
?>
|
||||||
@ -8,9 +8,6 @@ if (G5_IS_MOBILE) {
|
|||||||
|
|
||||||
define("_INDEX_", TRUE);
|
define("_INDEX_", TRUE);
|
||||||
|
|
||||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
|
||||||
include_once(G5_LIB_PATH.'/poll.lib.php');
|
|
||||||
|
|
||||||
include_once(G5_SHOP_PATH.'/shop.head.php');
|
include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ include_once(G5_LIB_PATH.'/poll.lib.php');
|
|||||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
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');
|
||||||
|
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 상단 시작 { -->
|
<!-- 상단 시작 { -->
|
||||||
|
|||||||
Reference in New Issue
Block a user