-
Notifications
You must be signed in to change notification settings - Fork 14
/
shop.config.php
109 lines (88 loc) · 4.85 KB
/
shop.config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) return;
//------------------------------------------------------------------------------
// 쇼핑몰 상수 모음 시작
//------------------------------------------------------------------------------
define('G5_SHOP_DIR', 'shop');
define('G5_SHOP_PATH', G5_PATH.'/'.G5_SHOP_DIR);
define('G5_SHOP_URL', G5_URL.'/'.G5_SHOP_DIR);
define('G5_MSHOP_PATH', G5_MOBILE_PATH.'/'.G5_SHOP_DIR);
define('G5_MSHOP_URL', G5_MOBILE_URL.'/'.G5_SHOP_DIR);
define('G5_SHOP_IMG_URL', G5_SHOP_URL.'/'.G5_IMG_DIR);
define('G5_MSHOP_IMG_URL', G5_MSHOP_URL.'/'.G5_IMG_DIR);
// 보안서버주소 설정
if (G5_HTTPS_DOMAIN) {
define('G5_HTTPS_SHOP_URL', G5_HTTPS_DOMAIN.'/'.G5_SHOP_DIR);
define('G5_HTTPS_MSHOP_URL', G5_HTTPS_DOMAIN.'/'.G5_MOBILE_DIR.'/'.G5_SHOP_DIR);
} else {
define('G5_HTTPS_SHOP_URL', G5_SHOP_URL);
define('G5_HTTPS_MSHOP_URL', G5_MSHOP_URL);
}
//------------------------------------------------------------------------------
// 쇼핑몰 상수 모음 끝
//------------------------------------------------------------------------------
//==============================================================================
// 쇼핑몰 필수 실행코드 모음 시작
//==============================================================================
// 쇼핑몰 설정값 배열변수
$default = sql_fetch(" select * from {$g5['g5_shop_default_table']} ");
if(!defined('_THEME_PREVIEW_')) {
// 테마 경로 설정
if(defined('G5_THEME_PATH')) {
define('G5_THEME_SHOP_PATH', G5_THEME_PATH.'/'.G5_SHOP_DIR);
define('G5_THEME_SHOP_URL', G5_THEME_URL.'/'.G5_SHOP_DIR);
define('G5_THEME_MSHOP_PATH', G5_THEME_PATH.'/'.G5_MOBILE_DIR.'/'.G5_SHOP_DIR);
define('G5_THEME_MSHOP_URL', G5_THEME_URL.'/'.G5_MOBILE_DIR.'/'.G5_SHOP_DIR);
}
// 스킨 경로 설정
if(preg_match('#^theme/(.+)$#', $default['de_shop_skin'], $match)) {
define('G5_SHOP_SKIN_PATH', G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1]);
define('G5_SHOP_SKIN_URL', G5_THEME_URL .'/'.G5_SKIN_DIR.'/shop/'.$match[1]);
} else {
define('G5_SHOP_SKIN_PATH', G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$default['de_shop_skin']);
define('G5_SHOP_SKIN_URL', G5_URL .'/'.G5_SKIN_DIR.'/shop/'.$default['de_shop_skin']);
}
if(preg_match('#^theme/(.+)$#', $default['de_shop_mobile_skin'], $match)) {
define('G5_MSHOP_SKIN_PATH', G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1]);
define('G5_MSHOP_SKIN_URL', G5_THEME_URL .'/'.G5_MOBILE_DIR.'/'.G5_SKIN_DIR.'/shop/'.$match[1]);
} else {
define('G5_MSHOP_SKIN_PATH', G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin']);
define('G5_MSHOP_SKIN_URL', G5_MOBILE_URL .'/'.G5_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin']);
}
}
// 옵션 ID 특수문자 필터링 패턴
define('G5_OPTION_ID_FILTER', '/[\'\"\\\'\\\"]/');
/*
// 주문상태 상수
define('G5_OD_STATUS_ORDER' , '입금확인중');
define('G5_OD_STATUS_SETTLE' , '결제완료');
define('G5_OD_STATUS_READY' , '배송준비중');
define('G5_OD_STATUS_DELIVERY' , '배송중');
define('G5_OD_STATUS_FINISH' , '배송완료');
*/
/*
# 주문상태는 상수로 처리하지 않고 실제 문자열 값을 처리한다.
'쇼핑' : 고객이 장바구니에 상품을 담고 있는 경우 입니다.
'입금확인중' : 무통장, 가상계좌의 경우 결제하기 전을 말합니다.
'결제완료' : 결제가 완료된 상태를 말합니다.
'배송준비중' : 배송준비중이 되면 취소가 불가합니다.
'배송중' : 배송중이면 반품이 불가합니다.
'배송완료' : 배송이 완료된 상태에서만 포인트적립이 가능합니다.
'취소' : 입금확인중이나 결제완료후 취소가 가능합니다.
'반품' : 배송완료 후에만 반품처리가 가능합니다.
'품절' :
# 13.10.04
'쇼핑' : 고객이 장바구니에 상품을 담고 있는 경우 입니다.
'주문' : 무통장, 가상계좌의 경우 결제하기 전을 말합니다.
'입금' : 신용카드, 계좌이체, 휴대폰결제가 된 상태, 무통장, 가상계좌는 주문후 입금한 상태를 말합니다.
'배송' : 배송이 되면 취소가 불가합니다.
'완료' : 배송이 완료된 상태에서만 포인트적립이 가능합니다.
'취소' : 입금이후로는 고객의 취소가 불가합니다.
'반품' : 배송완료 후에만 반품처리가 가능합니다.
'품절' : 주문이나 입금후 상품의 품절된 상태를 나타냅니다.
*/
//==============================================================================
// 쇼핑몰 필수 실행코드 모음 끝
//==============================================================================
?>