G5_COMMUNITY_USE 상수코드 체크문 수정
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
include_once('./common.php');
|
include_once('./common.php');
|
||||||
|
|
||||||
// 커뮤니티 사용여부
|
// 커뮤니티 사용여부
|
||||||
if(G5_COMMUNITY_USE === false) {
|
if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) {
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ $mode = substr(strip_tags($_GET['mode']), 0, 20);
|
|||||||
if(!in_array($mode, $arr_mode))
|
if(!in_array($mode, $arr_mode))
|
||||||
$mode = 'index';
|
$mode = 'index';
|
||||||
|
|
||||||
if(G5_COMMUNITY_USE === false || $mode == 'shop' || $mode == 'ca_list' || $mode == 'item')
|
if((defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) || $mode == 'shop' || $mode == 'ca_list' || $mode == 'item')
|
||||||
define('_SHOP_', true);
|
define('_SHOP_', true);
|
||||||
|
|
||||||
$qstr_index = '&mode=index';
|
$qstr_index = '&mode=index';
|
||||||
@ -150,7 +150,7 @@ require_once(G5_PATH.'/head.sub.php');
|
|||||||
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_list; ?>">게시글 리스트</a></li>
|
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_list; ?>">게시글 리스트</a></li>
|
||||||
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_view; ?>">게시글 보기</a></li>
|
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_view; ?>">게시글 보기</a></li>
|
||||||
<?php if(defined('G5_USE_SHOP') && G5_USE_SHOP) { ?>
|
<?php if(defined('G5_USE_SHOP') && G5_USE_SHOP) { ?>
|
||||||
<?php if(G5_COMMUNITY_USE) { ?>
|
<?php if(defined('G5_COMMUNITY_USE') == false || G5_COMMUNITY_USE) { ?>
|
||||||
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_shop; ?>">쇼핑몰</a></li>
|
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_shop; ?>">쇼핑몰</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_ca_list; ?>">상품리스트</a></li>
|
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_ca_list; ?>">상품리스트</a></li>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
include_once('../common.php');
|
include_once('../common.php');
|
||||||
|
|
||||||
// 커뮤니티 사용여부
|
// 커뮤니티 사용여부
|
||||||
if(G5_COMMUNITY_USE === false) {
|
if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) {
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||||
|
|
||||||
|
|||||||
2
head.php
2
head.php
@ -46,7 +46,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
<li><a href="<?php echo G5_BBS_URL ?>/login.php"><b><i class="fa fa-sign-in" aria-hidden="true"></i> 로그인</b></a></li>
|
<li><a href="<?php echo G5_BBS_URL ?>/login.php"><b><i class="fa fa-sign-in" aria-hidden="true"></i> 로그인</b></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if(G5_COMMUNITY_USE) { ?>
|
<?php if(defined('G5_COMMUNITY_USE') == false || G5_COMMUNITY_USE) { ?>
|
||||||
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
||||||
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
include_once('../../common.php');
|
include_once('../../common.php');
|
||||||
|
|
||||||
// 커뮤니티 사용여부
|
// 커뮤니티 사용여부
|
||||||
if(G5_COMMUNITY_USE === false) {
|
if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) {
|
||||||
define('_SHOP_', true);
|
define('_SHOP_', true);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -28,7 +28,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
|||||||
<div id="tnb">
|
<div id="tnb">
|
||||||
<h3>회원메뉴</h3>
|
<h3>회원메뉴</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php if(G5_COMMUNITY_USE) { ?>
|
<?php if(defined('G5_COMMUNITY_USE') == false || G5_COMMUNITY_USE) { ?>
|
||||||
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
||||||
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user