g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
alert_close("토큰 에러");
}
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
$od = sql_fetch(" select * from {$g5['shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
if (!$od['od_id']) {
alert("존재하는 주문이 아닙니다.");
@ -18,14 +18,14 @@ if (!$od['od_id']) {
// 주문상품의 상태가 주문인지 체크
$sql = " select SUM(IF(ct_status = '주문', 1, 0)) as od_count2,
COUNT(*) as od_count1
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '$od_id' ";
$ct = sql_fetch($sql);
$uid = md5($od['od_id'].$od['od_time'].$od['od_ip']);
if($od['od_status'] != G4_OD_STATUS_ORDER && $od['od_status'] != G4_OD_STATUS_SETTLE) {
alert("취소할 수 있는 주문이 아닙니다.", G4_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
if($od['od_status'] != G5_OD_STATUS_ORDER && $od['od_status'] != G5_OD_STATUS_SETTLE) {
alert("취소할 수 있는 주문이 아닙니다.", G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
}
// PG 결제 취소
@ -53,20 +53,20 @@ if($od['od_tno']) {
$locale_change = true;
}
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
if($locale_change)
setlocale(LC_CTYPE, $def_locale);
}
// 장바구니 자료 취소
sql_query(" update {$g4['shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
sql_query(" update {$g5['shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
// 주문 취소
$cancel_memo = addslashes($cancel_memo);
$cancel_price = $od['od_misu'];
$sql = " update {$g4['shop_order_table']}
$sql = " update {$g5['shop_order_table']}
set od_send_cost = '0',
od_send_cost2 = '0',
od_receipt_price = '0',
@ -76,7 +76,7 @@ $sql = " update {$g4['shop_order_table']}
od_cart_coupon = '0',
od_coupon = '0',
od_send_coupon = '0',
od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\")
od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G5_TIME_YMDHIS." (취소이유 : {$cancel_memo})\")
where od_id = '$od_id' "
sql_query($sql);
@ -84,5 +84,5 @@ sql_query($sql);
if ($od['od_receipt_point'] > 0)
insert_point($member['mb_id'], $od['od_receipt_point'], "주문번호 $od_id 본인 취소");
goto_url(G4_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
goto_url(G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
?>