G5_COMMUNITY_USE 상수코드 체크문 수정

This commit is contained in:
thisgun
2019-05-03 16:34:57 +09:00
parent 07a2515beb
commit ab8c94b53f
6 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
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)
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');

View File

@ -15,7 +15,7 @@ $mode = substr(strip_tags($_GET['mode']), 0, 20);
if(!in_array($mode, $arr_mode))
$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);
$qstr_index = '&amp;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_view; ?>">게시글 보기</a></li>
<?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>
<?php } ?>
<li><a href="./theme_preview.php?theme=<?php echo $theme.$qstr_ca_list; ?>">상품리스트</a></li>

View File

@ -2,7 +2,7 @@
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)
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');

View File

@ -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>
<?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_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
<?php } ?>

View File

@ -2,7 +2,7 @@
include_once('../../common.php');
// 커뮤니티 사용여부
if(G5_COMMUNITY_USE === false) {
if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) {
define('_SHOP_', true);
}
?>

View File

@ -28,7 +28,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
<div id="tnb">
<h3>회원메뉴</h3>
<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_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
<?php } ?>