g4를 g5로 변경
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/orderinquiry.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/orderinquiry.php');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -13,15 +13,15 @@ $od_pwd = sql_password($od_pwd);
|
||||
// 회원인 경우
|
||||
if ($is_member)
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
}
|
||||
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
}
|
||||
else // 그렇지 않다면 로그인으로 가기
|
||||
{
|
||||
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderinquiry.php'));
|
||||
goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));
|
||||
}
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -34,7 +34,7 @@ $total_count = $row['cnt'];
|
||||
if ($total_count == 0)
|
||||
{
|
||||
if ($is_member) // 회원일 경우는 메인으로 이동
|
||||
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
|
||||
alert('주문이 존재하지 않습니다.', G5_SHOP_URL);
|
||||
else // 비회원일 경우는 이전 페이지로 이동
|
||||
alert('주문이 존재하지 않습니다.');
|
||||
}
|
||||
@ -48,16 +48,16 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
|
||||
if (!$is_member)
|
||||
{
|
||||
$sql = " select od_id, od_time, od_ip from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql = " select od_id, od_time, od_ip from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_id']) {
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
set_session('ss_orderview_uid', $uid);
|
||||
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = '주문내역조회';
|
||||
$g5['title'] = '주문내역조회';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user