기타 추적되지 않는 파일들..
@ -27,6 +27,7 @@ $act = isset($_POST['act']) ? clean_xss_tags($_POST['act'], 1, 1) : '';
|
||||
$post_ct_chk = (isset($_POST['ct_chk']) && is_array($_POST['ct_chk'])) ? $_POST['ct_chk'] : array();
|
||||
$post_it_ids = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? $_POST['it_id'] : array();
|
||||
|
||||
|
||||
// 레벨(권한)이 상품구입 권한보다 작다면 상품을 구입할 수 없음.
|
||||
if ($member['mb_level'] < $default['de_level_sell'])
|
||||
{
|
||||
@ -148,7 +149,7 @@ else // 장바구니에 담기
|
||||
$post_io_ids = (isset($_POST['io_id']) && is_array($_POST['io_id'])) ? $_POST['io_id'] : array();
|
||||
$post_io_types = (isset($_POST['io_type']) && is_array($_POST['io_type'])) ? $_POST['io_type'] : array();
|
||||
$post_ct_qtys = (isset($_POST['ct_qty']) && is_array($_POST['ct_qty'])) ? $_POST['ct_qty'] : array();
|
||||
|
||||
|
||||
if ($count && $sw_direct) {
|
||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||
sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
|
||||
@ -185,6 +186,7 @@ else // 장바구니에 담기
|
||||
if(!$it['it_id'])
|
||||
alert('상품정보가 존재하지 않습니다.');
|
||||
|
||||
|
||||
// 최소, 최대 수량 체크
|
||||
if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) {
|
||||
$sum_qty = 0;
|
||||
@ -284,10 +286,65 @@ else // 장바구니에 담기
|
||||
|
||||
// 장바구니에 Insert
|
||||
$comma = '';
|
||||
$sql = " INSERT INTO {$g5['g5_shop_cart_table']}
|
||||
( od_id, mb_id, it_id, it_name, it_sc_type, it_sc_method, it_sc_price, it_sc_minimum, it_sc_qty, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select, ct_select_time )
|
||||
VALUES ";
|
||||
|
||||
|
||||
/* 코어수정 리빌더 20241014 { */
|
||||
|
||||
$columns = [
|
||||
"od_id", "mb_id", "it_id", "it_name", "it_sc_type", "it_sc_method",
|
||||
"it_sc_price", "it_sc_minimum", "it_sc_qty", "ct_status", "ct_price",
|
||||
"ct_point", "ct_point_use", "ct_stock_use", "ct_option", "ct_qty",
|
||||
"ct_notax", "io_id", "io_type", "io_price", "ct_time", "ct_ip",
|
||||
"ct_send_cost", "ct_direct", "ct_select", "ct_select_time"
|
||||
];
|
||||
|
||||
/*
|
||||
'ct_types'
|
||||
'ct_date_s' //시작일
|
||||
'ct_date_e' //종료일
|
||||
'ct_date_d' //일수
|
||||
'ct_date_t' //선택옵션
|
||||
'ct_user_txt1' //추가옵션1 항목
|
||||
'ct_user_txt2' //추가옵션2 항목
|
||||
'ct_user_txt3' //추가옵션3 항목
|
||||
'ct_user_qty1' //추가옵션1 수량
|
||||
'ct_user_qty2' //추가옵션2 수량
|
||||
'ct_user_qty3' //추가옵션3 수량
|
||||
'ct_user_pri1' //추가옵션금액1
|
||||
'ct_user_pri2' //추가옵션금액2
|
||||
'ct_user_pri3' //추가옵션금액3
|
||||
*/
|
||||
|
||||
// 예약 상품
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if (isset($it['it_types']) && $it['it_types'] == 1) {
|
||||
$columns[] = "ct_types";
|
||||
$columns[] = "ct_date_s";
|
||||
$columns[] = "ct_date_e";
|
||||
$columns[] = "ct_date_d";
|
||||
$columns[] = "ct_date_t";
|
||||
$columns[] = "ct_user_txt1";
|
||||
$columns[] = "ct_user_txt2";
|
||||
$columns[] = "ct_user_txt3";
|
||||
$columns[] = "ct_user_qty1";
|
||||
$columns[] = "ct_user_qty2";
|
||||
$columns[] = "ct_user_qty3";
|
||||
$columns[] = "ct_user_pri1";
|
||||
$columns[] = "ct_user_pri2";
|
||||
$columns[] = "ct_user_pri3";
|
||||
}
|
||||
}
|
||||
|
||||
// 파트너
|
||||
if (isset($it['it_partner']) && $it['it_partner']) {
|
||||
$columns[] = "ct_partner";
|
||||
}
|
||||
|
||||
// SQL 쿼리 구성
|
||||
$sql = "INSERT INTO {$g5['g5_shop_cart_table']} (" . implode(", ", $columns) . ") VALUES ";
|
||||
|
||||
/* } */
|
||||
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
$io_id = isset($_POST['io_id'][$it_id][$k]) ? preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]) : '';
|
||||
$io_type = isset($_POST['io_type'][$it_id][$k]) ? preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]) : '';
|
||||
@ -364,8 +421,64 @@ else // 장바구니에 담기
|
||||
|
||||
$io_value = sql_real_escape_string(strip_tags($io_value));
|
||||
$remote_addr = get_real_client_ip();
|
||||
|
||||
/* 코어수정 리빌더 20241014 { */
|
||||
|
||||
// 공통 필드 배열
|
||||
$values = [
|
||||
"'$tmp_cart_id'", "'{$member['mb_id']}'", "'{$it['it_id']}'", "'".addslashes($it['it_name'])."'",
|
||||
"'{$it['it_sc_type']}'", "'{$it['it_sc_method']}'", "'{$it['it_sc_price']}'", "'{$it['it_sc_minimum']}'",
|
||||
"'{$it['it_sc_qty']}'", "'쇼핑'", "'{$it['it_price']}'", "'$point'", "'0'", "'0'", "'$io_value'",
|
||||
"'$ct_qty'", "'{$it['it_notax']}'", "'$io_id'", "'$io_type'", "'$io_price'", "'".G5_TIME_YMDHIS."'",
|
||||
"'$remote_addr'", "'$ct_send_cost'", "'$sw_direct'", "'$ct_select'", "'$ct_select_time'"
|
||||
];
|
||||
|
||||
// 예약 상품
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if (isset($it['it_types']) && $it['it_types'] == 1) {
|
||||
|
||||
$ct_types = isset($_POST['ct_types']) ? trim(strip_tags($_POST['ct_types'])) : '';
|
||||
$ct_date_s = isset($_POST['ct_date_s']) ? trim(strip_tags($_POST['ct_date_s'])) : '';
|
||||
$ct_date_e = isset($_POST['ct_date_e']) ? trim(strip_tags($_POST['ct_date_e'])) : '';
|
||||
$ct_date_d = isset($_POST['ct_date_d']) ? trim(strip_tags($_POST['ct_date_d'])) : '';
|
||||
$ct_date_t = isset($_POST['ct_date_t']) ? trim(strip_tags($_POST['ct_date_t'])) : '';
|
||||
$ct_user_txt1 = isset($_POST['ct_user_txt1']) ? trim(strip_tags($_POST['ct_user_txt1'])) : '';
|
||||
$ct_user_txt2 = isset($_POST['ct_user_txt2']) ? trim(strip_tags($_POST['ct_user_txt2'])) : '';
|
||||
$ct_user_txt3 = isset($_POST['ct_user_txt3']) ? trim(strip_tags($_POST['ct_user_txt3'])) : '';
|
||||
$ct_user_qty1 = isset($_POST['ct_user_qty1']) ? trim(strip_tags($_POST['ct_user_qty1'])) : '';
|
||||
$ct_user_qty2 = isset($_POST['ct_user_qty2']) ? trim(strip_tags($_POST['ct_user_qty2'])) : '';
|
||||
$ct_user_qty3 = isset($_POST['ct_user_qty3']) ? trim(strip_tags($_POST['ct_user_qty3'])) : '';
|
||||
$ct_user_pri1 = isset($_POST['ct_user_pri1']) ? trim(strip_tags($_POST['ct_user_pri1'])) : '';
|
||||
$ct_user_pri2 = isset($_POST['ct_user_pri2']) ? trim(strip_tags($_POST['ct_user_pri2'])) : '';
|
||||
$ct_user_pri3 = isset($_POST['ct_user_pri3']) ? trim(strip_tags($_POST['ct_user_pri3'])) : '';
|
||||
|
||||
$values[] = "'$ct_types'";
|
||||
$values[] = "'$ct_date_s'";
|
||||
$values[] = "'$ct_date_e'";
|
||||
$values[] = "'$ct_date_d'";
|
||||
$values[] = "'$ct_date_t'";
|
||||
$values[] = "'$ct_user_txt1'";
|
||||
$values[] = "'$ct_user_txt2'";
|
||||
$values[] = "'$ct_user_txt3'";
|
||||
$values[] = "'$ct_user_qty1'";
|
||||
$values[] = "'$ct_user_qty2'";
|
||||
$values[] = "'$ct_user_qty3'";
|
||||
$values[] = "'$ct_user_pri1'";
|
||||
$values[] = "'$ct_user_pri2'";
|
||||
$values[] = "'$ct_user_pri3'";
|
||||
}
|
||||
}
|
||||
|
||||
// 파트너
|
||||
if (isset($it['it_partner']) && $it['it_partner']) {
|
||||
$values[] = "'{$it['it_partner']}'";
|
||||
}
|
||||
|
||||
// ✅ SQL 구문 구성
|
||||
$sql .= $comma."( ".implode(", ", $values)." )";
|
||||
|
||||
/* } */
|
||||
|
||||
$sql .= $comma."( '$tmp_cart_id', '{$member['mb_id']}', '{$it['it_id']}', '".addslashes($it['it_name'])."', '{$it['it_sc_type']}', '{$it['it_sc_method']}', '{$it['it_sc_price']}', '{$it['it_sc_minimum']}', '{$it['it_sc_qty']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G5_TIME_YMDHIS."', '$remote_addr', '$ct_send_cost', '$sw_direct', '$ct_select', '$ct_select_time' )";
|
||||
$comma = ' , ';
|
||||
$ct_count++;
|
||||
}
|
||||
|
||||
@ -51,7 +51,8 @@ $result = sql_query($sql);
|
||||
$cp_target = '배송비 할인';
|
||||
} else {
|
||||
$it = get_shop_item($row['cp_target'], true);
|
||||
$cp_target = $it['it_name'].' 상품할인';
|
||||
//$cp_target = $it['it_name'].' 상품할인';
|
||||
$cp_target = isset($it['it_name']) ? $it['it_name'].' 상품할인' : '상품할인';
|
||||
}
|
||||
|
||||
if($row['cp_type'])
|
||||
|
||||
BIN
shop/img/s_star0.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.2 KiB |
@ -3,12 +3,9 @@ include_once('./_common.php');
|
||||
include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');
|
||||
require_once(G5_SHOP_PATH.'/inicis/libs/HttpClient.php');
|
||||
require_once(G5_SHOP_PATH.'/inicis/libs/json_lib.php');
|
||||
require_once(G5_SHOP_PATH.'/inicis/libs/properties.php');
|
||||
|
||||
$inicis_pay_result = false;
|
||||
|
||||
$prop = new properties();
|
||||
|
||||
try {
|
||||
|
||||
//#############################
|
||||
@ -40,18 +37,6 @@ try {
|
||||
///$mKey = $util->makeHash(signKey, "sha256"); // 가맹점 확인을 위한 signKey를 해시값으로 변경 (SHA-256방식 사용)
|
||||
$mKey = hash("sha256", $signKey);
|
||||
|
||||
//##########################################################################
|
||||
// 승인요청 API url (authUrl) 리스트 는 properties 에 세팅하여 사용합니다.
|
||||
// idc_name 으로 수신 받은 센터 네임을 properties 에서 include 하여 승인요청하시면 됩니다.
|
||||
//##########################################################################
|
||||
$idc_name = $_REQUEST["idc_name"];
|
||||
$authUrl = $prop->getAuthUrl($idc_name);
|
||||
|
||||
if (strcmp($authUrl, $_REQUEST["authUrl"]) != 0) {
|
||||
|
||||
die("authUrl check Fail\n");
|
||||
}
|
||||
|
||||
//#####################
|
||||
// 2.signature 생성
|
||||
//#####################
|
||||
@ -187,28 +172,22 @@ try {
|
||||
//#####################
|
||||
|
||||
$netcancelResultString = ""; // 망취소 요청 API url(고정, 임의 세팅 금지)
|
||||
$netCancel = $prop->getNetCancel($idc_name);
|
||||
|
||||
if (strcmp($netCancel, $_REQUEST["netCancelUrl"]) == 0) {
|
||||
|
||||
if ($httpUtil->processHTTP($netCancel, $authMap)) {
|
||||
$netcancelResultString = $httpUtil->body;
|
||||
} else {
|
||||
echo "Http Connect Error\n";
|
||||
echo $httpUtil->errormsg;
|
||||
if ($httpUtil->processHTTP($netCancel, $authMap)) {
|
||||
$netcancelResultString = $httpUtil->body;
|
||||
} else {
|
||||
echo "Http Connect Error\n";
|
||||
echo $httpUtil->errormsg;
|
||||
|
||||
throw new Exception("Http Connect Error");
|
||||
}
|
||||
|
||||
echo "<br/>## 망취소 API 결과 ##<br/>";
|
||||
|
||||
/*##XML output##*/
|
||||
//$netcancelResultString = str_replace("<", "<", $$netcancelResultString);
|
||||
//$netcancelResultString = str_replace(">", ">", $$netcancelResultString);
|
||||
|
||||
// 취소 결과 확인
|
||||
echo "<p>". $netcancelResultString . "</p>";
|
||||
throw new Exception("Http Connect Error");
|
||||
}
|
||||
|
||||
echo "## 망취소 API 결과 ##";
|
||||
|
||||
$netcancelResultString = str_replace("<", "<", $$netcancelResultString);
|
||||
$netcancelResultString = str_replace(">", ">", $$netcancelResultString);
|
||||
|
||||
echo "<pre>", $netcancelResultString . "</pre>";
|
||||
// 취소 결과 확인
|
||||
}
|
||||
} else {
|
||||
|
||||
|
||||
2
shop/inicis/log/.htaccess
Normal file
@ -0,0 +1,2 @@
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
0
shop/inicis/log/index.php
Normal file
@ -46,7 +46,7 @@ $payReqMap = $_SESSION['PAYREQ_MAP'];//결제 요청시, Session에 저장했던
|
||||
<form method="post" name="LGD_RETURNINFO" id="LGD_RETURNINFO">
|
||||
<?php
|
||||
foreach ($payReqMap as $key => $value) {
|
||||
echo "<input type='hidden' name='".get_text($key)."' id='".get_text($key)."' value='".get_text($value)."'>";
|
||||
echo "<input type='hidden' name='$key' id='$key' value='$value'>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@ -14,16 +14,6 @@ if (G5_IS_MOBILE) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 테마에 list.php 있으면 include
|
||||
if(defined('G5_THEME_SHOP_PATH')) {
|
||||
$theme_list_file = G5_THEME_SHOP_PATH.'/list.php';
|
||||
if(is_file($theme_list_file)) {
|
||||
include_once($theme_list_file);
|
||||
return;
|
||||
}
|
||||
unset($theme_list_file);
|
||||
}
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' and ca_use = '1' ";
|
||||
$ca = sql_fetch($sql);
|
||||
if (! (isset($ca['ca_id']) && $ca['ca_id']))
|
||||
@ -45,7 +35,7 @@ if(!$is_admin && $config['cf_cert_use']) {
|
||||
alert($msg, G5_SHOP_URL);
|
||||
}
|
||||
|
||||
$g5['title'] = $ca['ca_name'].' 상품리스트';
|
||||
$g5['title'] = $ca['ca_name'].'';
|
||||
|
||||
if ($ca['ca_include_head'] && is_include_path_check($ca['ca_include_head']))
|
||||
@include_once($ca['ca_include_head']);
|
||||
|
||||
@ -31,7 +31,7 @@ $sql = " select *
|
||||
$result = sql_query($sql);
|
||||
|
||||
if(!sql_num_rows($result))
|
||||
alert_close('배송지 목록 자료가 없습니다.');
|
||||
alert_close('주소지 목록이 없습니다.');
|
||||
|
||||
$order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
|
||||
|
||||
@ -50,21 +50,19 @@ if(defined('G5_THEME_SHOP_PATH')) {
|
||||
}
|
||||
}
|
||||
|
||||
$g5['title'] = '배송지 목록';
|
||||
$g5['title'] = '주소지 목록';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">
|
||||
<div id="sod_addr" class="new_win">
|
||||
|
||||
<h1 id="win_title">배송지 목록</h1>
|
||||
<h1 id="win_title">주소지 목록</h1>
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">배송지정보</th>
|
||||
<th scope="col">관리</th>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">주소지정보</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
@ -80,27 +78,27 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
<div class="chk_box">
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>" class="selec_chk">
|
||||
<label for="chk_<?php echo $i;?>"><span></span><b class="sound_only">배송지선택</b></label>
|
||||
<label for="chk_<?php echo $i;?>"><span></span><b class="sound_only">주소지선택</b></label>
|
||||
</div>
|
||||
|
||||
<label for="ad_subject<?php echo $i;?>" class="sound_only">배송지명</label>
|
||||
<input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject<?php echo $i;?>" class="frm_input" size="12" maxlength="20" value="<?php echo get_text($row['ad_subject']); ?>">
|
||||
</td>
|
||||
|
||||
<td class="td_name"><?php echo get_text($row['ad_name']); ?></td>
|
||||
<td class="td_address">
|
||||
<div class="td_mng">
|
||||
<input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject<?php echo $i;?>" class="frm_input" size="12" maxlength="20" value="<?php echo get_text($row['ad_subject']); ?>" placeholder="주소지명">
|
||||
</div>
|
||||
<?php echo get_text($row['ad_name']); ?>
|
||||
<?php echo print_address($row['ad_addr1'], $row['ad_addr2'], $row['ad_addr3'], $row['ad_jibeon']); ?><br>
|
||||
<span class="ad_tel"><?php echo $row['ad_tel']; ?> / <?php echo $row['ad_hp']; ?></span>
|
||||
|
||||
</td>
|
||||
<td class="td_mng">
|
||||
<span class="ad_tel font-B"><?php echo $row['ad_hp']; ?></span>
|
||||
|
||||
<div class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>" >
|
||||
<button type="button" class="sel_address mng_btn">선택</button>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address mng_btn">삭제</a>
|
||||
<input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>>
|
||||
<label for="ad_default<?php echo $i;?>" class="default_lb mng_btn">기본배송지</label>
|
||||
|
||||
<label for="ad_default<?php echo $i;?>" class="default_lb mng_btn">기본주소지</label>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -151,7 +149,7 @@ $(function() {
|
||||
});
|
||||
|
||||
$(".del_address").on("click", function() {
|
||||
return confirm("배송지 목록을 삭제하시겠습니까?");
|
||||
return confirm("주소지 목록을 삭제하시겠습니까?");
|
||||
});
|
||||
|
||||
// 전체선택 부분
|
||||
|
||||
@ -46,7 +46,7 @@ else
|
||||
|
||||
// 희망배송일 지정
|
||||
if ($default['de_hope_date_use']) {
|
||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
//include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
}
|
||||
|
||||
// 기기별 주문폼 include
|
||||
|
||||
@ -37,10 +37,13 @@ if($is_kakaopay_use) {
|
||||
<tr>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">총수량</th>
|
||||
<th scope="col">판매가</th>
|
||||
<th scope="col">상품금액</th>
|
||||
<th scope="col">소계</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">배송비</th>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<th scope="col">배송비</th>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -83,13 +86,30 @@ if($is_kakaopay_use) {
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
|
||||
// 예약 관련
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT * FROM {$g5['g5_shop_cart_table']} WHERE ct_id = '{$row['ct_id']}' ");
|
||||
}
|
||||
|
||||
// 합계금액 계산 (예약상품일 경우 합계방식 변경)
|
||||
$price_calc = "((ct_price + io_price) * ct_qty)";
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1 && isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$price_calc = "((ct_price + io_price) * ct_qty * ct_date_d +
|
||||
(COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0)) +
|
||||
(COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0)) +
|
||||
(COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0)))";
|
||||
}
|
||||
|
||||
$sql = "SELECT SUM(IF(io_type = 1, (io_price * ct_qty), $price_calc)) AS price,
|
||||
SUM(ct_point * ct_qty) AS point,
|
||||
SUM(ct_qty) AS qty
|
||||
FROM {$g5['g5_shop_cart_table']}
|
||||
WHERE it_id = '{$row['it_id']}'
|
||||
AND od_id = '$s_cart_id'";
|
||||
|
||||
|
||||
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if (!$goods)
|
||||
@ -112,7 +132,7 @@ if($is_kakaopay_use) {
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
}
|
||||
|
||||
$image = get_it_image($row['it_id'], 80, 80);
|
||||
$image = rb_it_image($row['it_id'], 80, 80);
|
||||
|
||||
$it_name = '<b>' . stripslashes($row['it_name']) . '</b>';
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
@ -184,6 +204,12 @@ if($is_kakaopay_use) {
|
||||
if($sendcost == 0)
|
||||
$ct_send_cost = '무료';
|
||||
}
|
||||
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$ct_send_cost = '-';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
@ -201,14 +227,24 @@ if($is_kakaopay_use) {
|
||||
<?php } ?>
|
||||
<?php echo $it_name; ?>
|
||||
<?php echo $cp_button; ?>
|
||||
|
||||
|
||||
<?php
|
||||
//예약정보 로드
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
include (G5_PATH.'/rb/rb.mod/reservation/info.inc.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig text_right"><span class="total_price"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<td class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -258,7 +294,7 @@ if($is_kakaopay_use) {
|
||||
|
||||
<!-- 주문하시는 분 입력 시작 { -->
|
||||
<section id="sod_frm_orderer">
|
||||
<h2>주문하시는 분</h2>
|
||||
<h2>주문자 정보</h2>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
@ -279,12 +315,12 @@ if($is_kakaopay_use) {
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="od_tel">전화번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" required class="frm_input required" maxlength="20"></td>
|
||||
<th scope="row"><label for="od_tel">일반전화</label></th>
|
||||
<td><input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input" maxlength="20"></td>
|
||||
<th scope="row"><label for="od_hp">휴대전화</label></th>
|
||||
<td><input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input required" maxlength="20" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
@ -320,7 +356,7 @@ if($is_kakaopay_use) {
|
||||
}
|
||||
?>
|
||||
</select> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required datepicker" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -332,7 +368,8 @@ if($is_kakaopay_use) {
|
||||
|
||||
<!-- 받으시는 분 입력 시작 { -->
|
||||
<section id="sod_frm_taker">
|
||||
<h2>받으시는 분</h2>
|
||||
<br><br>
|
||||
<h2>사용자(수령자) 정보</h2>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
@ -356,7 +393,7 @@ if($is_kakaopay_use) {
|
||||
if(isset($row['ad_id']) && $row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
@ -369,14 +406,14 @@ if($is_kakaopay_use) {
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? get_text($row['ad_subject']) : get_text($row['ad_name'])).')</label>';
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근</label>';
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규</label>'.PHP_EOL;
|
||||
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>';
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address" class="btn_frmline">주소지목록</a>';
|
||||
} else {
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="checkbox" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
@ -384,7 +421,7 @@ if($is_kakaopay_use) {
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<th scope="row">주소</th>
|
||||
<td>
|
||||
<div class="order_choice_place">
|
||||
<?php echo $addr_list; ?>
|
||||
@ -393,11 +430,11 @@ if($is_kakaopay_use) {
|
||||
</tr>
|
||||
<?php if($is_member) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<th scope="row"><label for="ad_subject">주소명</label></th>
|
||||
<td>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
<label for="ad_default">기본주소로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -406,12 +443,12 @@ if($is_kakaopay_use) {
|
||||
<td><input type="text" name="od_b_name" id="od_b_name" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_tel">전화번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20"></td>
|
||||
<th scope="row"><label for="od_b_tel">일반전화<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_b_tel" id="od_b_tel" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
|
||||
<th scope="row"><label for="od_b_hp">휴대전화</label></th>
|
||||
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input required" required maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
@ -438,24 +475,59 @@ if($is_kakaopay_use) {
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 받으시는 분 입력 끝 -->
|
||||
|
||||
<?php
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT ct_user_qty1 FROM {$g5['g5_shop_cart_table']} WHERE od_id = '$s_cart_id' AND ct_select = '1' LIMIT 1");
|
||||
$ct_user_qty1 = (int)$resv['ct_user_qty1'];
|
||||
if(isset($ct_user_qty1) && $ct_user_qty1 > 0) {
|
||||
?>
|
||||
|
||||
<section id="sod_frm_taker">
|
||||
<br><br>
|
||||
<h2>추가사용자 정보</h2>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php for($i = 1; $i <= $ct_user_qty1; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_name">사용자 <?php echo $i; ?><strong class="sound_only"> 필수</strong></label></th>
|
||||
<td>
|
||||
<input type="text" name="od_names[]" required class="frm_input required" required placeholder="이름" style="width:25%;">
|
||||
<input type="text" name="od_hps[]" class="frm_input required" required placeholder="연락처" style="width:50%;">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="sod_right">
|
||||
<!-- 주문상품 합계 시작 { -->
|
||||
<div id="sod_bsk_tot">
|
||||
<ul>
|
||||
<li class="sod_bsk_sell">
|
||||
<span>주문</span>
|
||||
<li class="sod_bsk_sell" <?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>style="width:50%"<?php } ?>>
|
||||
<span>금액</span>
|
||||
<strong><?php echo number_format($tot_sell_price); ?></strong>원
|
||||
</li>
|
||||
<li class="sod_bsk_coupon">
|
||||
<li class="sod_bsk_coupon" <?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>style="width:50%"<?php } ?>>
|
||||
<span>쿠폰할인</span>
|
||||
<strong id="ct_tot_coupon">0</strong>원
|
||||
</li>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($send_cost); ?></strong>원
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li class="sod_bsk_point">
|
||||
<span>포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?></strong>점
|
||||
@ -522,7 +594,7 @@ if($is_kakaopay_use) {
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문할인</th>
|
||||
<td>
|
||||
<td class="sod_frm_flex">
|
||||
<strong id="od_cp_price">0</strong>원
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
@ -532,18 +604,19 @@ if($is_kakaopay_use) {
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송비할인</th>
|
||||
<td>
|
||||
<td class="sod_frm_flex">
|
||||
<strong id="sc_cp_price">0</strong>원
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><strong id="od_send_cost2">0</strong>원<br>(지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
<td><strong id="od_send_cost2">0</strong>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -882,7 +955,7 @@ $(function() {
|
||||
$("#cp_frm").remove();
|
||||
$cp_btn_el.focus();
|
||||
});
|
||||
|
||||
|
||||
$(document).on("click", ".cp_cancel", function() {
|
||||
coupon_cancel($(this).closest("tr"));
|
||||
calculate_total_price();
|
||||
@ -890,6 +963,7 @@ $(function() {
|
||||
$(this).closest("tr").find(".cp_btn").text("적용").focus();
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
|
||||
$("#od_coupon_btn").click(function() {
|
||||
if( $("#od_coupon_frm").parent(".od_coupon_wrap").length ){
|
||||
@ -948,7 +1022,7 @@ $(function() {
|
||||
$("#od_coupon_frm").remove();
|
||||
$("#od_coupon_btn").text("변경").focus();
|
||||
if(!$("#od_coupon_cancel").length)
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"cp_cancel\">취소</button>");
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"cp_cancel cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
$(document).on("click", "#od_coupon_close", function() {
|
||||
@ -1013,7 +1087,7 @@ $(function() {
|
||||
$("#sc_coupon_frm").remove();
|
||||
$("#sc_coupon_btn").text("변경").focus();
|
||||
if(!$("#sc_coupon_cancel").length)
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"cp_cancel\">취소</button>");
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
$(document).on("click", "#sc_coupon_close", function() {
|
||||
@ -1249,8 +1323,45 @@ function calculate_tax()
|
||||
$("input[name=comm_free_mny]").val(comm_free_mny);
|
||||
}
|
||||
|
||||
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
|
||||
function make_additional_user_data() {
|
||||
var names = [];
|
||||
var hps = [];
|
||||
|
||||
$("input[name='od_names[]']").each(function() {
|
||||
names.push($(this).val().trim());
|
||||
});
|
||||
|
||||
$("input[name='od_hps[]']").each(function() {
|
||||
hps.push($(this).val().trim());
|
||||
});
|
||||
|
||||
// 기존 숨은 필드 제거
|
||||
$("input[name='od_names_final'], input[name='od_hps_final']").remove();
|
||||
|
||||
// 숨은 필드로 추가
|
||||
$("<input>", {
|
||||
type: "hidden",
|
||||
name: "od_names_final",
|
||||
value: names.join('|')
|
||||
}).appendTo("#forderform");
|
||||
|
||||
$("<input>", {
|
||||
type: "hidden",
|
||||
name: "od_hps_final",
|
||||
value: hps.join('|')
|
||||
}).appendTo("#forderform");
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
function forderform_check(f)
|
||||
{
|
||||
|
||||
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
|
||||
make_additional_user_data();
|
||||
<?php } ?>
|
||||
|
||||
// 재고체크
|
||||
var stock_msg = order_stock_check();
|
||||
if(stock_msg != "") {
|
||||
@ -1269,7 +1380,7 @@ function forderform_check(f)
|
||||
if( (f.od_pwd.value.length<3) || (f.od_pwd.value.search(/([^A-Za-z0-9]+)/)!=-1) )
|
||||
error_field(f.od_pwd, "회원이 아니신 경우 주문서 조회시 필요한 비밀번호를 3자리 이상 입력해 주십시오.");
|
||||
}
|
||||
check_field(f.od_tel, "주문하시는 분 전화번호를 입력하십시오.");
|
||||
check_field(f.od_hp, "주문하시는 분 휴대전화 번호를 입력하십시오.");
|
||||
check_field(f.od_addr1, "주소검색을 이용하여 주문하시는 분 주소를 입력하십시오.");
|
||||
//check_field(f.od_addr2, " 주문하시는 분의 상세주소를 입력하십시오.");
|
||||
check_field(f.od_zip, "");
|
||||
@ -1286,7 +1397,7 @@ function forderform_check(f)
|
||||
}
|
||||
|
||||
check_field(f.od_b_name, "받으시는 분 이름을 입력하십시오.");
|
||||
check_field(f.od_b_tel, "받으시는 분 전화번호를 입력하십시오.");
|
||||
check_field(f.od_b_hp, "받으시는 분 휴대전화 번호를 입력하십시오.");
|
||||
check_field(f.od_b_addr1, "주소검색을 이용하여 받으시는 분 주소를 입력하십시오.");
|
||||
//check_field(f.od_b_addr2, "받으시는 분의 상세주소를 입력하십시오.");
|
||||
check_field(f.od_b_zip, "");
|
||||
|
||||
@ -6,7 +6,7 @@ require_once(G5_SHOP_PATH.'/settle_'.$default['de_pg_service'].'.inc.php');
|
||||
// 결제대행사별 코드 include (스크립트 등)
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
?>
|
||||
|
||||
<div class="personal_pay_wrap">
|
||||
<form name="forderform" id="forderform" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">
|
||||
<input type="hidden" name="pp_id" value="<?php echo $pp['pp_id']; ?>">
|
||||
|
||||
@ -138,7 +138,9 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function forderform_check(f)
|
||||
|
||||
@ -23,7 +23,8 @@ $search_all = true;
|
||||
if (isset($_GET['qname']) || isset($_GET['qexplan']) || isset($_GET['qid']) || isset($_GET['qbasic']))
|
||||
$search_all = false;
|
||||
|
||||
$q = utf8_strcut(get_search_string(trim($_GET['q'])), 30, "");
|
||||
//$q = utf8_strcut(get_search_string(trim($_GET['q'])), 30, "");
|
||||
$q = isset($_GET['q']) ? utf8_strcut(get_search_string(trim($_GET['q'])), 30, "") : '';
|
||||
$qname = isset($_GET['qname']) ? trim(clean_xss_tags($_GET['qname'])) : '';
|
||||
$qexplan = isset($_GET['qexplan']) ? trim(clean_xss_tags($_GET['qexplan'])) : '';
|
||||
$qid = isset($_GET['qid']) ? trim(clean_xss_tags($_GET['qid'])) : '';
|
||||
|
||||
@ -57,7 +57,7 @@ $cardQuotaBase = '2:3:4:5:6:7:8:9:10:11:12'; // 가맹점에서 사용할 할
|
||||
|
||||
$inicis_cardpoint = $default['de_inicis_cartpoint_use'] ? ':cardpoint' : ''; //신용카드 포인트 결제에 관한 옵션 ( 신청해야 함 )
|
||||
|
||||
$acceptmethod = 'HPP(2):no_receipt:vbank('.date('Ymd', strtotime("+3 days", G5_SERVER_TIME)).'):below1000:centerCd(Y)'.$useescrow.$inicis_cardpoint;
|
||||
$acceptmethod = 'HPP(2):no_receipt:vbank('.date('Ymd', strtotime("+3 days", G5_SERVER_TIME)).'):below1000'.$useescrow.$inicis_cardpoint;
|
||||
|
||||
/* 기타 */
|
||||
$siteDomain = G5_SHOP_URL.'/inicis'; //가맹점 도메인 입력
|
||||
|
||||
@ -14,19 +14,10 @@ $INIpayLog = false; // 로그를 기록하려면 true 로 수
|
||||
|
||||
//**********************************************************************************
|
||||
|
||||
$allowed_ips = array(
|
||||
"203.238.37.3", // TX5, TX4
|
||||
"203.238.37.15", // PC가상계좌(노티), 모바일 가상계좌, 에스크로
|
||||
"203.238.37.16", //
|
||||
"203.238.37.25", //
|
||||
"203.238.37.32", // 에스크로
|
||||
"183.109.71.153", // PC가상계좌(노티), 모바일(노티), 에스크로
|
||||
"118.129.210.25", // 모바일(노티)
|
||||
"39.115.212.9" // PC가상계좌(노티)
|
||||
);
|
||||
|
||||
if (in_array($_SERVER['REMOTE_ADDR'], $allowed_ips)) { //PG에서 보냈는지 IP로 체크
|
||||
$PG_IP = get_real_client_ip();
|
||||
|
||||
if( $PG_IP == "203.238.37.3" || $PG_IP == "203.238.37.15" || $PG_IP == "203.238.37.16" || $PG_IP == "203.238.37.25" || $PG_IP == "183.109.71.153" || $PG_IP == "39.115.212.9" ) //PG에서 보냈는지 IP로 체크
|
||||
{
|
||||
$msg_id = $msg_id; //메세지 타입
|
||||
$no_tid = $no_tid; //거래번호
|
||||
$no_oid = $no_oid; //상점 주문번호
|
||||
|
||||