php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -17,5 +17,4 @@ if (isset($_REQUEST['sortodr'])) {
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
define('_SHOP_', true);
?>
define('_SHOP_', true);

View File

@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if(G5_IS_MOBILE)
include_once(G5_MSHOP_PATH.'/shop.head.php');
else
include_once(G5_SHOP_PATH.'/shop.head.php');
?>
include_once(G5_SHOP_PATH.'/shop.head.php');

View File

@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if(G5_IS_MOBILE)
include_once(G5_MSHOP_PATH.'/shop.tail.php');
else
include_once(G5_SHOP_PATH.'/shop.tail.php');
?>
include_once(G5_SHOP_PATH.'/shop.tail.php');

View File

@ -35,6 +35,7 @@ switch ($action) {
cart_item_clean();
$s_cart_id = get_session('ss_cart_id');
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
// 장바구니 상품삭제
$sql = " delete from {$g5['g5_shop_cart_table']}
@ -72,14 +73,15 @@ switch ($action) {
die(json_encode(array('error' => '상품을 구입할 수 있는 권한이 없습니다.')));
}
$count = count($_POST['it_id']);
$count = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
if ($count < 1)
die(json_encode(array('error' => '장바구니에 담을 상품을 선택하여 주십시오.')));
$ct_count = 0;
for($i=0; $i<$count; $i++) {
$it_id = $_POST['it_id'][$i];
$opt_count = count($_POST['io_id'][$it_id]);
$it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
$opt_count = (isset($_POST['io_id'][$it_id]) && is_array($_POST['io_id'][$it_id])) ? count($_POST['io_id'][$it_id]) : 0;
// 상품정보
$it = get_shop_item($it_id, false);
@ -106,7 +108,8 @@ switch ($action) {
die(json_encode(array('error' => '상품의 선택옵션을 선택해 주십시오.')));
for($k=0; $k<$opt_count; $k++) {
if ($_POST['ct_qty'][$it_id][$k] < 1)
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
if ($post_ct_qty < 1)
die(json_encode(array('error' => '수량은 1 이상 입력해 주십시오.')));
}
@ -118,8 +121,10 @@ switch ($action) {
if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) {
$sum_qty = 0;
for($k=0; $k<$opt_count; $k++) {
if($_POST['io_type'][$it_id][$k] == 0)
$sum_qty += $_POST['ct_qty'][$it_id][$k];
if(isset($_POST['io_type'][$it_id][$k]) && $_POST['io_type'][$it_id][$k] == 0){
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
$sum_qty += $post_ct_qty;
}
}
if($it['it_buy_min_qty'] > 0 && $sum_qty < $it['it_buy_min_qty'])
@ -155,20 +160,21 @@ switch ($action) {
VALUES ";
for($k=0; $k<$opt_count; $k++) {
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]);
$io_type = preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]);
$io_value = $_POST['io_value'][$it_id][$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]) : '';
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
if($lst_count && $io_id == '')
continue;
$opt_list_type_id_use = isset($opt_list[$io_type][$io_id]['use']) ? $opt_list[$io_type][$io_id]['use'] : '';
// 구매할 수 없는 옵션은 건너뜀
if($io_id && !$opt_list[$io_type][$io_id]['use'])
if($io_id && ! $opt_list_type_id_use)
continue;
$io_price = $opt_list[$io_type][$io_id]['price'];
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
$io_price = isset($opt_list[$io_type][$io_id]['price']) ? $opt_list[$io_type][$io_id]['price'] : 0;
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
// 구매가격이 음수인지 체크
if($io_type) {
@ -187,7 +193,7 @@ switch ($action) {
and io_id = '$io_id'
and ct_status = '쇼핑' ";
$row2 = sql_fetch($sql2);
if($row2['ct_id']) {
if(isset($row2['ct_id']) && $row2['ct_id']) {
// 재고체크
$tmp_ct_qty = $row2['ct_qty'];
if(!$io_id)
@ -219,6 +225,8 @@ switch ($action) {
if($point < 0)
$point = 0;
}
$ct_send_cost = 0;
// 배송비결제
if($it['it_sc_type'] == 1)
@ -308,6 +316,8 @@ switch ($action) {
break;
case 'wish_update' :
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
if (!$is_member)
die('회원 전용 서비스 입니다.');
@ -318,14 +328,14 @@ switch ($action) {
// 상품정보 체크
$row = get_shop_item($it_id, true);
if(!$row['it_id'])
if(! (isset($row['it_id']) && $row['it_id']))
die('상품정보가 존재하지 않습니다.');
$sql = " select wi_id from {$g5['g5_shop_wish_table']}
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
$row = sql_fetch($sql);
if (!$row['wi_id']) {
if (! (isset($row['wi_id']) && $row['wi_id'])) {
$sql = " insert {$g5['g5_shop_wish_table']}
set mb_id = '{$member['mb_id']}',
it_id = '$it_id',
@ -340,5 +350,4 @@ switch ($action) {
break;
default :
}
?>
}

View File

@ -5,7 +5,7 @@ include_once(G5_LIB_PATH.'/json.lib.php');
if(!$member['mb_id'])
die(json_encode(array('error' => '회원 로그인 후 이용해 주십시오.')));
$cz_id = preg_replace('#[^0-9]#', '', $_GET['cz_id']);
$cz_id = isset($_GET['cz_id']) ? preg_replace('#[^0-9]#', '', $_GET['cz_id']) : 0;
if(!$cz_id)
die(json_encode(array('error' => '올바른 방법으로 이용해 주십시오.')));
@ -66,5 +66,4 @@ if($result && $cp['cz_type'])
// 다운로드 증가
sql_query(" update {$g5['g5_shop_coupon_zone_table']} set cz_download = cz_download + 1 where cz_id = '$cz_id' ");
die(json_encode(array('error' => '')));
?>
die(json_encode(array('error' => '')));

View File

@ -4,6 +4,8 @@ include_once(G5_LIB_PATH.'/json.lib.php');
define('G5_IS_SHOP_AJAX_LIST', true);
$ca_id = isset($_REQUEST['ca_id']) ? safe_replace_regex($_REQUEST['ca_id'], 'ca_id') : '';
$data = array();
$sql = " select *
@ -74,5 +76,4 @@ $data['item'] = $content;
$data['error'] = '';
$data['page'] = $page;
die(json_encode($data));
?>
die(json_encode($data));

View File

@ -11,6 +11,8 @@ $sql = " delete from {$g5['g5_shop_order_data_table']} where dt_type = '1' and d
sql_query($sql);
*/
$od_settle_case = isset($_POST['od_settle_case']) ? clean_xss_tags($_POST['od_settle_case'], 1, 1) : '';
if(isset($_POST['pp_id']) && $_POST['pp_id']) {
$od_id = get_session('ss_personalpay_id');
$cart_id = 0;
@ -65,5 +67,4 @@ $sql = " insert into {$g5['g5_shop_order_data_table']}
dt_time = '".G5_TIME_YMDHIS."' ";
sql_query($sql);
die('');
?>
die('');

View File

@ -97,5 +97,4 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
}
}
die("");
?>
die("");

View File

@ -1,7 +1,7 @@
<?php
include_once("./_common.php");
$bn_id = (int) $bn_id;
$bn_id = isset($_GET['bn_id']) ? (int) $_GET['bn_id'] : 0;
$sql = " select bn_id, bn_url from {$g5['g5_shop_banner_table']} where bn_id = '$bn_id' ";
$row = sql_fetch($sql);
@ -20,5 +20,4 @@ if ($_COOKIE['ck_bn_id'] != $bn_id)
$url = clean_xss_tags($row['bn_url']);
goto_url($url);
?>
goto_url($url);

View File

@ -1,10 +1,13 @@
<?php
include_once('./_common.php');
$naverpay_button_js = '';
include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
// 보관기간이 지난 상품 삭제
cart_item_clean();
$sw_direct = isset($_REQUEST['sw_direct']) ? (int) $_REQUEST['sw_direct'] : 0;
// cart id 설정
set_cart_id($sw_direct);
@ -65,6 +68,7 @@ include_once('./_head.php');
<?php
$tot_point = 0;
$tot_sell_price = 0;
$send_cost = 0;
// $s_cart_id 로 현재 장바구니 자료 쿼리
$sql = " select a.ct_id,
@ -309,5 +313,4 @@ function form_check(act) {
<!-- } 장바구니 끝 -->
<?php
include_once('./_tail.php');
?>
include_once('./_tail.php');

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
$it_id = preg_replace($pattern, '', $_POST['it_id']);
$it_id = isset($_POST['it_id']) ? preg_replace($pattern, '', $_POST['it_id']) : '';
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' and it_use = '1' ";
$it = sql_fetch($sql);

View File

@ -6,6 +6,8 @@ include_once('./_common.php');
// 보관기간이 지난 상품 삭제
cart_item_clean();
$sw_direct = (isset($_REQUEST['sw_direct']) && $_REQUEST['sw_direct']) ? 1 : 0;
// cart id 설정
set_cart_id($sw_direct);
@ -21,6 +23,9 @@ if (!$tmp_cart_id)
}
$tmp_cart_id = preg_replace('/[^a-z0-9_\-]/i', '', $tmp_cart_id);
$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'])
@ -30,18 +35,20 @@ if ($member['mb_level'] < $default['de_level_sell'])
if($act == "buy")
{
if(!count($_POST['ct_chk']))
if(!count($post_ct_chk))
alert("주문하실 상품을 하나이상 선택해 주십시오.");
// 선택필드 초기화
$sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$tmp_cart_id' ";
sql_query($sql);
$fldcnt = count($_POST['it_id']);
$fldcnt = count($post_it_ids);
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
$ct_chk = isset($post_ct_chk[$i]) ? 1 : 0;
if($ct_chk) {
$it_id = $_POST['it_id'][$i];
$it_id = isset($post_it_ids[$i]) ? safe_replace_regex($post_it_ids[$i], 'it_id') : '';
if( !$it_id ) continue;
// 본인인증, 성인인증체크
if(!$is_admin) {
@ -108,39 +115,49 @@ else if ($act == "alldelete") // 모두 삭제이면
}
else if ($act == "seldelete") // 선택삭제
{
if(!count($_POST['ct_chk']))
if(!count($post_ct_chk))
alert("삭제하실 상품을 하나이상 선택해 주십시오.");
$fldcnt = count($_POST['it_id']);
$fldcnt = count($post_it_ids);
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
$ct_chk = isset($post_ct_chk[$i]) ? 1 : 0;
if($ct_chk) {
$it_id = $_POST['it_id'][$i];
$sql = " delete from {$g5['g5_shop_cart_table']} where it_id = '$it_id' and od_id = '$tmp_cart_id' ";
sql_query($sql);
$it_id = isset($post_it_ids[$i]) ? safe_replace_regex($post_it_ids[$i], 'it_id') : '';
if( $it_id ){
$sql = " delete from {$g5['g5_shop_cart_table']} where it_id = '$it_id' and od_id = '$tmp_cart_id' ";
sql_query($sql);
}
}
}
}
else // 장바구니에 담기
{
$count = count($_POST['it_id']);
$count = count($post_it_ids);
if ($count < 1)
alert('장바구니에 담을 상품을 선택하여 주십시오.');
$ct_count = 0;
$post_chk_it_id = (isset($_POST['chk_it_id']) && is_array($_POST['chk_it_id'])) ? $_POST['chk_it_id'] : array();
$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();
for($i=0; $i<$count; $i++) {
// 보관함의 상품을 담을 때 체크되지 않은 상품 건너뜀
if($act == 'multi' && !$_POST['chk_it_id'][$i])
if($act == 'multi' && ! (isset($post_chk_it_id[$i]) && $post_chk_it_id[$i]))
continue;
$it_id = $_POST['it_id'][$i];
$opt_count = count($_POST['io_id'][$it_id]);
$it_id = isset($post_it_ids[$i]) ? safe_replace_regex($post_it_ids[$i], 'it_id') : '';
if($opt_count && $_POST['io_type'][$it_id][0] != 0)
if( !$it_id ) continue;
$opt_count = (isset($post_io_ids[$it_id]) && is_array($post_io_ids[$it_id])) ? count($post_io_ids[$it_id]) : 0;
if($opt_count && isset($post_io_types[$it_id][0]) && $post_io_types[$it_id][0] != 0)
alert('상품의 선택옵션을 선택해 주십시오.');
for($k=0; $k<$opt_count; $k++) {
if ($_POST['ct_qty'][$it_id][$k] < 1)
if (isset($post_ct_qtys[$it_id][$k]) && $post_ct_qtys[$it_id][$k] < 1)
alert('수량은 1 이상 입력해 주십시오.');
}
@ -213,9 +230,9 @@ else // 장바구니에 담기
// 이미 주문폼에 있는 같은 상품의 수량합계를 구한다.
if($sw_direct) {
for($k=0; $k<$opt_count; $k++) {
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]);
$io_type = preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]);
$io_value = $_POST['io_value'][$it_id][$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]) : '';
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
$sql = " select SUM(ct_qty) as cnt from {$g5['g5_shop_cart_table']}
where od_id <> '$tmp_cart_id'
@ -229,7 +246,7 @@ else // 장바구니에 담기
$sum_qty = $row['cnt'];
// 재고 구함
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
if(!$io_id)
$it_stock_qty = get_it_stock_qty($it_id);
else
@ -264,9 +281,9 @@ else // 장바구니에 담기
VALUES ";
for($k=0; $k<$opt_count; $k++) {
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]);
$io_type = preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]);
$io_value = $_POST['io_value'][$it_id][$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]) : '';
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
if($lst_count && $io_id == '')
@ -276,8 +293,8 @@ else // 장바구니에 담기
if($io_id && !$opt_list[$io_type][$io_id]['use'])
continue;
$io_price = $opt_list[$io_type][$io_id]['price'];
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
$io_price = isset($opt_list[$io_type][$io_id]['price']) ? $opt_list[$io_type][$io_id]['price'] : 0;
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
// 구매가격이 음수인지 체크
if($io_type) {
@ -296,7 +313,7 @@ else // 장바구니에 담기
and io_id = '$io_id'
and ct_status = '쇼핑' ";
$row2 = sql_fetch($sql2);
if($row2['ct_id']) {
if(isset($row2['ct_id']) && $row2['ct_id']) {
// 재고체크
$tmp_ct_qty = $row2['ct_qty'];
if(!$io_id)
@ -328,6 +345,8 @@ else // 장바구니에 담기
if($point < 0)
$point = 0;
}
$ct_send_cost = 0;
// 배송비결제
if($it['it_sc_type'] == 1)
@ -363,5 +382,4 @@ if ($sw_direct)
else
{
goto_url(G5_SHOP_URL.'/cart.php');
}
?>
}

View File

@ -82,5 +82,4 @@ $result = sql_query($sql);
</div>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -30,5 +30,4 @@ if (is_file($skin_file)) {
echo '<div class="sct_nofile">'.str_replace(G5_PATH.'/', '', $skin_file).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
include_once(G5_SHOP_PATH.'/_tail.php');
?>
include_once(G5_SHOP_PATH.'/_tail.php');

View File

@ -1,7 +1,9 @@
<?php
include_once('./_common.php');
$ev_id = (int) $ev_id;
$ev_id = isset($_GET['ev_id']) ? (int) $_GET['ev_id'] : 0;
$skin = isset($_GET['skin']) ? clean_xss_tags($_GET['skin'], 1, 1) : '';
$ca_id = isset($_GET['ca_id']) ? clean_xss_tags($_GET['ca_id'], 1, 1) : '';
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
if( isset($sort) && ! in_array($sort, array('it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
@ -17,7 +19,7 @@ $sql = " select * from {$g5['g5_shop_event_table']}
where ev_id = '$ev_id'
and ev_use = 1 ";
$ev = sql_fetch($sql);
if (!$ev['ev_id'])
if (! (isset($ev['ev_id']) && $ev['ev_id']))
alert('등록된 이벤트가 없습니다.');
$g5['title'] = $ev['ev_subject'];
@ -115,5 +117,4 @@ if (file_exists($timg))
<!-- } 이벤트 끝 -->
<?php
include_once('./_tail.php');
?>
include_once('./_tail.php');

View File

@ -132,5 +132,4 @@ $(function(){
<?php } ?>
<?php
include_once(G5_SHOP_PATH.'/shop.tail.php');
?>
include_once(G5_SHOP_PATH.'/shop.tail.php');

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -111,5 +111,4 @@ $inipay->startAction();
$resultCode = $inipay->GetResult("ResultCode"); // 결과코드 ("00"이면 지불 성공)
$resultMsg = $inipay->GetResult("ResultMsg"); // 결과내용 (지불결과에 대한 설명)
$dlv_date = $inipay->GetResult("DLV_Date");
$dlv_time = $inipay->GetResult("DLV_Time");
?>
$dlv_time = $inipay->GetResult("DLV_Time");

View File

@ -60,5 +60,4 @@ if($cancelFlag == "true")
{
$inipay->MakeTXErrMsg(MERCHANT_DB_ERR,"Merchant DB FAIL");
}
}
?>
}

View File

@ -124,19 +124,19 @@ try {
$app_time = $resultMap['applDate'].$resultMap['applTime'];
$pay_method = $resultMap['payMethod'];
$pay_type = $PAY_METHOD[$pay_method];
$depositor = $resultMap['VACT_InputName'];
$depositor = isset($resultMap['VACT_InputName']) ? $resultMap['VACT_InputName'] : '';
$commid = '';
$mobile_no = $resultMap['HPP_Num'];
$app_no = $resultMap['applNum'];
$card_name = $CARD_CODE[$resultMap['CARD_Code']];
$mobile_no = isset($resultMap['HPP_Num']) ? $resultMap['HPP_Num'] : '';
$app_no = isset($resultMap['applNum']) ? $resultMap['applNum'] : '';
$card_name = isset($resultMap['CARD_Code']) ? $CARD_CODE[$resultMap['CARD_Code']] : '';
switch($pay_type) {
case '계좌이체':
$bank_name = $BANK_CODE[$resultMap['ACCT_BankCode']];
$bank_name = isset($BANK_CODE[$resultMap['ACCT_BankCode']]) ? $BANK_CODE[$resultMap['ACCT_BankCode']] : '';
if ($default['de_escrow_use'] == 1)
$escw_yn = 'Y';
break;
case '가상계좌':
$bankname = $BANK_CODE[$resultMap['VACT_BankCode']];
$bankname = isset($BANK_CODE[$resultMap['VACT_BankCode']]) ? $BANK_CODE[$resultMap['VACT_BankCode']] : '';
$account = $resultMap['VACT_Num'].' '.$resultMap['VACT_Name'];
$app_no = $resultMap['VACT_Num'];
if ($default['de_escrow_use'] == 1)
@ -211,5 +211,4 @@ try {
if( !$inicis_pay_result ){
die("<br><br>결제 에러가 일어났습니다. 에러 이유는 위와 같습니다.");
}
?>
}

View File

@ -74,5 +74,4 @@ if(isset($data['pp_id']) && $data['pp_id']) { //개인결제
$od_send_cost2 = (int) $_POST['od_send_cost2'];
include_once(G5_SHOP_PATH.'/orderformupdate.php');
}
?>
}

View File

@ -96,25 +96,4 @@ class CreateIdModule {
return $strNum;
}
}
?>
}

View File

@ -144,6 +144,4 @@ class HttpClient {
return $this->body;
}
}
?>
}

View File

@ -15,56 +15,61 @@ require_once ( "INIXml.php" );
/* ----------------------------------------------------- */
extract($_POST);
extract($_GET);
$paymethod = isset($paymethod) ? preg_replace('/[^0-9a-z_\-]/i', '', $paymethod) : '';
switch ($paymethod) {
case(Card): // 신용카드
case('Card'): // 신용카드
$pgid = "CARD";
break;
case(Account): // 은행 계좌 이체
case('Account'): // 은행 계좌 이체
$pgid = "ACCT";
break;
case(DirectBank): // 실시간 계좌 이체
case('DirectBank'): // 실시간 계좌 이체
$pgid = "DBNK";
break;
case(OCBPoint): // OCB
case('OCBPoint'): // OCB
$pgid = "OCBP";
break;
case(VCard): // ISP 결제
case('VCard'): // ISP 결제
$pgid = "ISP_";
break;
case(HPP): // 휴대폰 결제
case('HPP'): // 휴대폰 결제
$pgid = "HPP_";
break;
case(ArsBill): // 700 전화결제
case('ArsBill'): // 700 전화결제
$pgid = "ARSB";
break;
case(PhoneBill): // PhoneBill 결제(받는 전화)
case('PhoneBill'): // PhoneBill 결제(받는 전화)
$pgid = "PHNB";
break;
case(Ars1588Bill):// 1588 전화결제
case('Ars1588Bill'):// 1588 전화결제
$pgid = "1588";
break;
case(VBank): // 가상계좌 이체
case('VBank'): // 가상계좌 이체
$pgid = "VBNK";
break;
case(Culture): // 문화상품권 결제
case('Culture'): // 문화상품권 결제
$pgid = "CULT";
break;
case(CMS): // CMS 결제
case('CMS'): // CMS 결제
$pgid = "CMS_";
break;
case(AUTH): // 신용카드 유효성 검사
case('AUTH'): // 신용카드 유효성 검사
$pgid = "AUTH";
break;
case(INIcard): // 네티머니 결제
case('INIcard'): // 네티머니 결제
$pgid = "INIC";
break;
case(MDX): // 몬덱스카드
case('MDX'): // 몬덱스카드
$pgid = "MDX_";
break;
default: // 상기 지불수단 외 추가되는 지불수단의 경우 기본으로 paymethod가 4자리로 넘어온다.
$pgid = $paymethod;
}
$quotainterest = isset($quotainterest) ? $quotainterest : '';
if ($quotainterest == "1") {
$interest = "(무이자할부)";
}
@ -78,7 +83,7 @@ function Base64Encode($str) {
}
function GetMicroTime() {
list($usec, $sec) = explode(" ", microtime(true));
list($usec, $sec) = explode(" ", microtime());
return (float) $usec + (float) $sec;
}
@ -110,11 +115,11 @@ class INILog {
$this->debug_msg = array("", "CRITICAL", "ERROR", "NOTICE", "4", "INFO", "6", "DEBUG", "8");
$this->debug_mode = $request["debug"];
$this->type = $request["type"];
$this->log = $request["log"];
$this->log = isset($request["log"]) ? $request["log"] : '';
$this->homedir = $request["inipayhome"];
$this->mid = $request["mid"];
$this->starttime = GetMicroTime();
$this->mergelog = $request["mergelog"];
$this->mergelog = isset($request["mergelog"]) ? $request["mergelog"] : '';
}
function StartLog() {
@ -272,7 +277,7 @@ class INIData {
$this->m_sCmd = CMD_REQ_PAY;
$this->m_sCrypto = FLAG_CRYPTO_3DES;
}
$this->m_sPayMethod = $this->m_REQUEST["paymethod"];
$this->m_sPayMethod = isset($this->m_REQUEST["paymethod"]) ? $this->m_REQUEST["paymethod"] : '';
$this->m_TXVersion = sprintf("%-6.6s", VERSION) .
sprintf("B%-8.8s", BUILDDATE) .
@ -511,15 +516,21 @@ class INIData {
$PD = $xml->add_node($CS, TX_CSHR_SUBSERVICEPRICE1, $this->m_REQUEST[""] );
*/
} else if ($this->m_Type == TYPE_CANCEL) {
$cancelcode = isset($this->m_REQUEST["cancelcode"]) ? $this->m_REQUEST["cancelcode"] : '';
$CI = $xml->add_node("", CANCELINFO);
$CD = $xml->add_node($CI, TX_CANCELTID, $this->m_REQUEST["tid"]);
$CD = $xml->add_node($CI, TX_CANCELMSG, $this->m_REQUEST["cancelmsg"], array("urlencode" => "1"));
$CD = $xml->add_node($CI, TX_CANCELREASON, $this->m_REQUEST["cancelcode"]);
$CD = $xml->add_node($CI, TX_CANCELREASON, $cancelcode);
$node_racctnum = isset($this->m_REQUEST["racctnum"]) ? $this->m_REQUEST["racctnum"] : '';
$node_rbankcode = isset($this->m_REQUEST["rbankcode"]) ? $this->m_REQUEST["rbankcode"] : '';
$node_racctname = isset($this->m_REQUEST["racctname"]) ? $this->m_REQUEST["racctname"] : '';
//휴대폰 익월환불 추가
$CD = $xml->add_node($CI, TX_REFUNDACCTNUM, $this->m_REQUEST["racctnum"]);
$CD = $xml->add_node($CI, TX_REFUNDBANKCODE, $this->m_REQUEST["rbankcode"]);
$CD = $xml->add_node($CI, TX_REFUNDACCTNAME, $this->m_REQUEST["racctname"], array("urlencode" => "1"));
$CD = $xml->add_node($CI, TX_REFUNDACCTNUM, $node_racctnum);
$CD = $xml->add_node($CI, TX_REFUNDBANKCODE, $node_rbankcode);
$CD = $xml->add_node($CI, TX_REFUNDACCTNAME, $node_racctname, array("urlencode" => "1"));
$this->AddUserDefinedEntity(CANCELINFO, "", $xml, $CI);
} else if ($this->m_Type == TYPE_REPAY) {
@ -644,10 +655,13 @@ class INIData {
$this->m_sHead .= sprintf("%20s", $this->m_TXPGPubSN);
$this->m_sHead .= sprintf("%4s", $this->m_sCmd);
$this->m_sHead .= sprintf("%10s", $this->m_REQUEST["mid"]);
if ($this->m_Type == TYPE_RECEIPT)
$this->m_sHead .= sprintf("%20s", $this->m_REQUEST["cr_price"]);
else
$this->m_sHead .= sprintf("%20s", $this->m_REQUEST["price"]);
if ($this->m_Type == TYPE_RECEIPT) {
$cr_price = isset($this->m_REQUEST["cr_price"]) ? $this->m_REQUEST["cr_price"] : 0;
$this->m_sHead .= sprintf("%20s", $cr_price);
} else {
$price = isset($this->m_REQUEST["price"]) ? $this->m_REQUEST["price"] : 0;
$this->m_sHead .= sprintf("%20s", $price);
}
$this->m_sHead .= sprintf("%40s", $this->m_REQUEST["tid"]);
$this->m_sMsg = $this->m_sHead . $this->m_sBody . $this->m_sTail;
@ -699,24 +713,27 @@ class INIData {
//GoodsInfo
//장바구니 기능 추가(2010.04.13)
//==goodscnt가 없을 경우(장바구니 기능이 아닐경우) 기본 값 1로 설정
$tGoodCnt = ($this->m_REQUEST["goodscnt"] != null && (int) $this->m_REQUEST["goodscnt"] > 0 ) ? $this->m_REQUEST["goodscnt"] : 1;
$tGoodCnt = (isset($this->m_REQUEST["goodscnt"]) && (int) $this->m_REQUEST["goodscnt"] > 0 ) ? $this->m_REQUEST["goodscnt"] : 1;
$request_oid = isset($this->m_REQUEST["oid"]) ? $this->m_REQUEST["oid"] : '';
$request_taxfree = isset($this->m_REQUEST["taxfree"]) ? $this->m_REQUEST["taxfree"] : '';
$GI = $xml->add_node($root, GOODSINFO);
//장바구니 기능 추가(2010.04.13)
//==TX_GOOSCNT는 $tGoodCnt로 부터 입력
//$GP = $xml->add_node($GI, TX_GOOSCNT, "1" );
$GP = $xml->add_node($GI, TX_GOOSCNT, $tGoodCnt);
$GP = $xml->add_node($GI, TX_MOID, $this->m_REQUEST["oid"], array("urlencode" => "1"));
$GP = $xml->add_node($GI, TX_MOID, $request_oid, array("urlencode" => "1"));
$GP = $xml->add_node($GI, TX_CURRENCY, $this->m_REQUEST["currency"]);
$GP = $xml->add_node($GI, TX_TAX, $this->m_REQUEST["tax"]);
$GP = $xml->add_node($GI, TX_TAXFREE, $this->m_REQUEST["taxfree"]);
$GP = $xml->add_node($GI, TX_TAXFREE, $request_taxfree);
$this->AddUserDefinedEntity(GOODSINFO, "", $xml, $GI);
//장바구니 기능 추가(2010.04.13) [START]
//==장바구니 XML 전문 추가
$iGoodCnt = 1;
while ($iGoodCnt <= $tGoodCnt) {
if ($this->m_REQUEST["smid_" . $iGoodCnt] != "" && strlen($this->m_REQUEST["smid_" . $iGoodCnt]) > 0) {
if (isset($this->m_REQUEST["smid_" . $iGoodCnt]) && strlen($this->m_REQUEST["smid_" . $iGoodCnt]) > 0) {
$GS = $xml->add_node($GI, GOODS);
$GD = $xml->add_node($GS, TX_SMID, $this->m_REQUEST["smid_" . $iGoodCnt]);
$GD = $xml->add_node($GS, TX_GOODSNAME, $this->m_REQUEST["goodsname_" . $iGoodCnt], array("urlencode" => "1"));
@ -739,6 +756,16 @@ class INIData {
$iGoodCnt++;
}
//장바구니 기능 추가(2010.04.13) [END]
$request_parentemail = isset($this->m_REQUEST["parentemail"]) ? $this->m_REQUEST["parentemail"] : '';
$request_recvname = isset($this->m_REQUEST["recvname"]) ? $this->m_REQUEST["recvname"] : '';
$request_recvtel = isset($this->m_REQUEST["recvtel"]) ? $this->m_REQUEST["recvtel"] : '';
$request_recvmsg = isset($this->m_REQUEST["recvmsg"]) ? $this->m_REQUEST["recvmsg"] : '';
$request_recvaddr = isset($this->m_REQUEST["recvaddr"]) ? $this->m_REQUEST["recvaddr"] : '';
$request_recvpostnum = isset($this->m_REQUEST["recvpostnum"]) ? $this->m_REQUEST["recvpostnum"] : '';
$request_joincard = isset($this->m_REQUEST["joincard"]) ? $this->m_REQUEST["joincard"] : '';
$request_joinexpire = isset($this->m_REQUEST["joinexpire"]) ? $this->m_REQUEST["joinexpire"] : '';
$request_mailorder = isset($this->m_REQUEST["mailorder"]) ? $this->m_REQUEST["mailorder"] : '';
$this->AddUserDefinedEntity(GOODSINFO, GOODS, $xml, $GS);
//BuyerInfo
@ -746,20 +773,20 @@ class INIData {
$BP = $xml->add_node($BI, TX_BUYERNAME, $this->m_REQUEST["buyername"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_BUYERTEL, $this->m_REQUEST["buyertel"]);
$BP = $xml->add_node($BI, TX_BUYEREMAIL, $this->m_REQUEST["buyeremail"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_PARENTEMAIL, $this->m_REQUEST["parentemail"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVNAME, $this->m_REQUEST["recvname"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVTEL, $this->m_REQUEST["recvtel"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVMSG, $this->m_REQUEST["recvmsg"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVADDR, $this->m_REQUEST["recvaddr"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVPOSTNUM, $this->m_REQUEST["recvpostnum"], array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_PARENTEMAIL, $request_parentemail, array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVNAME, $request_recvname, array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVTEL, $request_recvtel, array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVMSG, $request_recvmsg, array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVADDR, $request_recvaddr, array("urlencode" => "1"));
$BP = $xml->add_node($BI, TX_RECVPOSTNUM, $request_recvpostnum, array("urlencode" => "1"));
$this->AddUserDefinedEntity(BUYERINFO, "", $xml, $BI);
//PaymentInfo
$PI = $xml->add_node($root, PAYMENTINFO);
$PM = $xml->add_node($PI, PAYMENT);
$PD = $xml->add_node($PM, TX_PAYMETHOD, $this->m_REQUEST["paymethod"]);
$PD = $xml->add_node($PM, TX_JOINCARD, $this->m_REQUEST["joincard"]);
$PD = $xml->add_node($PM, TX_JOINEXPIRE, $this->m_REQUEST["joinexpire"]);
$PD = $xml->add_node($PM, TX_MAILORDER, $this->m_REQUEST["mailorder"]);
$PD = $xml->add_node($PM, TX_JOINCARD, $request_joincard);
$PD = $xml->add_node($PM, TX_JOINEXPIRE, $request_joinexpire);
$PD = $xml->add_node($PM, TX_MAILORDER, $request_mailorder);
if ($this->m_Type == TYPE_SECUREPAY) {
$PD = $xml->add_node($PM, TX_SESSIONKEY, $this->m_REQUEST["sessionkey"]);
$PD = $xml->add_node($PM, TX_ENCRYPTED, $this->m_REQUEST["encrypted"], array("urlencode" => "1"));
@ -841,30 +868,39 @@ class INIData {
}
//장바구니 기능 추가(2010.04.13) [END]
$this->AddUserDefinedEntity(OPENSUBINFO, "", $xml, $OI);
}
}
$node_mreserved1 = isset($this->m_REQUEST["mreserved1"]) ? $this->m_REQUEST["mreserved1"] : '';
$node_mreserved2 = isset($this->m_REQUEST["mreserved2"]) ? $this->m_REQUEST["mreserved2"] : '';
$node_mreserved3 = isset($this->m_REQUEST["mreserved3"]) ? $this->m_REQUEST["mreserved3"] : '';
$node_language = isset($this->m_REQUEST["language"]) ? $this->m_REQUEST["language"] : '';
$node_url = isset($this->m_REQUEST["url"]) ? $this->m_REQUEST["url"] : '';
$node_id_customer = isset($this->m_REQUEST["id_customer"]) ? $this->m_REQUEST["id_customer"] : '';
$node_id_regnum = isset($this->m_REQUEST["id_regnum"]) ? $this->m_REQUEST["id_regnum"] : '';
//ReservedInfo
$RI = $xml->add_node($root, RESERVEDINFO);
$RD = $xml->add_node($RI, TX_MRESERVED1, $this->m_REQUEST["mreserved1"]);
$RD = $xml->add_node($RI, TX_MRESERVED2, $this->m_REQUEST["mreserved2"]);
$RD = $xml->add_node($RI, TX_MRESERVED3, $this->m_REQUEST["mreserved3"]);
$RD = $xml->add_node($RI, TX_MRESERVED1, $node_mreserved1);
$RD = $xml->add_node($RI, TX_MRESERVED2, $node_mreserved2);
$RD = $xml->add_node($RI, TX_MRESERVED3, $node_mreserved3);
$this->AddUserDefinedEntity(RESERVEDINFO, "", $xml, $RI);
//ManageInfo
$MI = $xml->add_node($root, MANAGEINFO);
$MD = $xml->add_node($MI, TX_LANGUAGE, $this->m_REQUEST["language"]);
$MD = $xml->add_node($MI, TX_URL, $this->m_REQUEST["url"], array("urlencode" => "1"));
$MD = $xml->add_node($MI, TX_LANGUAGE, $node_language);
$MD = $xml->add_node($MI, TX_URL, $node_url, array("urlencode" => "1"));
$MD = $xml->add_node($MI, TX_TXVERSION, $this->m_TXVersion);
//delete UIP(2009.01.21)
//$MD = $xml->add_node($MI, TX_TXUSERIP, $this->m_REQUEST["uip"] );
$MD = $xml->add_node($MI, TX_TXUSERID, $this->m_REQUEST["id_customer"], array("urlencode" => "1"));
$MD = $xml->add_node($MI, TX_TXREGNUM, $this->m_REQUEST["id_regnum"]);
$MD = $xml->add_node($MI, TX_TXUSERID, $node_id_customer, array("urlencode" => "1"));
$MD = $xml->add_node($MI, TX_TXREGNUM, $node_id_regnum);
//Ack, rn
if ($this->m_Type == TYPE_SECUREPAY || $this->m_Type == TYPE_OCBSAVE ||
$this->m_Type == TYPE_FORMPAY || $this->m_Type == TYPE_RECEIPT
) {
$MD = $xml->add_node($MI, TX_ACK, "1");
if ($this->m_REQUEST["rn"] != "")
if (isset($this->m_REQUEST["rn"]) && $this->m_REQUEST["rn"])
$MD = $xml->add_node($MI, TX_RN, $this->m_REQUEST["rn"]);
}
$this->AddUserDefinedEntity(MANAGEINFO, "", $xml, $MI);
@ -908,7 +944,7 @@ class INIData {
$this->m_Xml = $xml->xml_node;
//GOODSINFO
$this->m_RESULT[NM_MOID] = $this->GetXMLData(MOID);
$this->m_RESULT[NM_MOID] = $this->GetXMLData('MOID');
//PAYMENTINFO
//기타지불수단이 paymethod를 주지 않아 임시로 요청 Paymethod로 대체
@ -916,13 +952,14 @@ class INIData {
$this->m_RESULT[NM_PAYMETHOD] = $this->m_sPayMethod;
$ResultCode = $this->GetXMLData("ResultCode");
//if( substr($ResultCode,2, 4) == "0000" )
if (strcmp(substr($ResultCode, 2, 4), "0000") == 0) {
$this->m_RESULT[NM_RESULTCODE] = "00";
$this->m_RESULT[NM_RESULTMSG] = $this->GetXMLData("ResultMsg");
} else {
$this->m_RESULT[NM_RESULTCODE] = "01";
$this->m_RESULT[NM_ERRORCODE] = $ResultCode;
$this->m_RESULT['NM_ERRORCODE'] = $ResultCode;
$this->m_RESULT[NM_RESULTMSG] = "[" . $ResultCode . "|" . $this->GetXMLData("ResultMsg") . "]";
}
$encrypted = $this->GetXMLData("Encrypted");
@ -1036,7 +1073,7 @@ class INIData {
function GTHR($err_code, $err_msg) {
//Set
$data["mid"] = $this->m_REQUEST["mid"];
$data["paymethod"] = $this->m_REQUEST["paymethod"];
$data["paymethod"] = isset($this->m_REQUEST["paymethod"]) ? $this->m_REQUEST["paymethod"] : '';
//delete UIP(2009.01.21)
//$data["user_ip"] = $this->m_REQUEST["uip"];
$data["tx_version"] = $this->m_TXVersion;
@ -1063,20 +1100,24 @@ class INIData {
}
function ParsePIEncrypted() {
parse_str($this->m_REQUEST["encrypted"]);
$this->m_PIPGPubSN = $CertVer;
$this->m_PG1 = $pg1;
$this->m_PG2 = $pg2;
$this->m_PG1IP = $pg1ip;
$this->m_PG2IP = $pg2ip;
$output = array();
if( isset($this->m_REQUEST["encrypted"]) ) {
parse_str($this->m_REQUEST["encrypted"], $output);
}
$this->m_PIPGPubSN = isset($output['CertVer']) ? $output['CertVer'] : '';
$this->m_PG1 = isset($output['pg1']) ? $output['pg1'] : '';
$this->m_PG2 = isset($output['pg2']) ? $output['pg2'] : '';
$this->m_PG1IP = isset($output['pg1ip']) ? $output['pg1ip'] : '';
$this->m_PG2IP = isset($output['pg2ip']) ? $output['pg2ip'] : '';
}
// Xpath로 안가져온다. 한달을 헛지랄 했다!!
// added by ddaemiri, 2007.09.03
function GetXMLData($node) {
$content = $this->m_Xml[$node . "[1]"]["text"];
if ($this->m_Xml[$node . "[1]"]["attr"]["urlencode"] == "1")
$content = isset($this->m_Xml[$node . "[1]"]["text"]) ? $this->m_Xml[$node . "[1]"]["text"] : '';
if (isset($this->m_Xml[$node . "[1]"]["attr"]["urlencode"]) && $this->m_Xml[$node . "[1]"]["attr"]["urlencode"] == "1")
$content = urldecode($content);
return $content;
}
@ -1101,7 +1142,7 @@ class INICrypto {
$this->homedir = $request["inipayhome"];
$this->mid = $request["mid"];
$this->admin = $request["admin"];
$this->mkey = $request["mkey"];
$this->mkey = isset($request["mkey"]) ? $request["mkey"] : '';
if(isset($request['encMethod']) && !empty($request['encMethod'])){
$this->encMethod = strtolower($request['encMethod']);
}
@ -1294,12 +1335,12 @@ class INICrypto {
function remove_ctrl($string) {
for ($i = 0; $i < strlen($string); $i++) {
$chr = $string{$i};
$chr = $string[$i];
$ord = ord($chr);
if ($ord < 10)
$string{$i} = " ";
$string[$i] = " ";
else
$string{$i} = $chr;
$string[$i] = $chr;
}
return trim($string);
}
@ -1310,7 +1351,7 @@ class INICrypto {
}
function pkcs5_unpad($text) {
$pad = ord($text{strlen($text) - 1});
$pad = ord($text[strlen($text) - 1]);
if ($pad > strlen($text))
return false;
if (strspn($text, chr($pad), strlen($text) - $pad) != $pad)
@ -1356,5 +1397,4 @@ class INICrypto {
return $cipher;
}
}
?>
}

View File

@ -75,7 +75,7 @@ define("PROGRAM", "INIPHP");
define("LANG", "PHP");
define("VERSION", "NV5053");
define("BUILDDATE", "20190404");
define("TID_LEN", 40);
if( ! defined('TID_LEN')) define("TID_LEN", 40);
define("MAX_KEY_LEN", 24);
define("MAX_IV_LEN", 8);
@ -135,7 +135,6 @@ define("TXPGPUBSN_LEN", 20);
define("CMD_LEN", 4);
define("MID_LEN", 10);
define("TOTPRICE_LEN", 20);
define("TID_LEN", 40);
//------------------------------------------------------
@ -671,5 +670,4 @@ define("NULL_ESCROWMSG_ERR", "TX6001");
define("NULL_FIELD_REFUNDACCTNUM", "TX9245");
define("NULL_FIELD_REFUNDBANKCODE", "TX9243");
define("NULL_FIELD_REFUNDACCTNAME", "TX9244");
?>
define("NULL_FIELD_REFUNDACCTNAME", "TX9244");

View File

@ -54,7 +54,7 @@ class INIpay50 {
/* -------------------------------------------------- */
function GetResult($name) { //Default Entity
$result = $this->m_RESULT[$name];
$result = isset($this->m_RESULT[$name]) ? $this->m_RESULT[$name] : '';
if ($result == "")
$result = $this->m_Data->GetXMLData($name);
if ($result == "")
@ -246,7 +246,7 @@ class INIpay50 {
if($this->m_type == TYPE_ESCROW && ($this->m_Data->m_EscrowType == TYPE_ESCROW_CNF || $this->m_Data->m_EscrowType == TYPE_ESCROW_DNY)) $is_plugin_escrow = TRUE;
if($this->m_REQUEST["pgn"] != "") {
if(isset($this->m_REQUEST["pgn"]) && $this->m_REQUEST["pgn"] != "") {
$host = $this->m_REQUEST["pgn"];
} else {
if ($this->m_type == TYPE_SECUREPAY || $is_plugin_escrow == TRUE) { //plugin
@ -732,6 +732,4 @@ class INIpay50 {
return;
}
}
?>
}

View File

@ -90,7 +90,8 @@ class INISocket {
$read = array($this->hnd);
$write = array($this->hnd);
$rtv = @socket_select($read, $write, $except = NULL, TIMEOUT_CONNECT);
$except = NULL;
$rtv = @socket_select($read, $write, $except, TIMEOUT_CONNECT);
if ($rtv == 0) { //TIMEOUT
$this->error();
socket_close($this->hnd);
@ -125,8 +126,10 @@ class INISocket {
}
$vWrite = array($this->hnd);
$vRead = null;
$vExcept = null;
while (($rtv = @socket_select($vRead = null, $vWrite, $vExcept = null, TIMEOUT_WRITE)) === FALSE);
while (($rtv = @socket_select($vRead, $vWrite, $vExcept, TIMEOUT_WRITE)) === FALSE);
if ($rtv == 0) {
$this->error();
@ -157,7 +160,10 @@ class INISocket {
$read = array($this->hnd);
$buf = null;
while ($nleft > 0) {
$rtv = @socket_select($read, $write = NULL, $except = NULL, TIMEOUT_READ);
$write = null;
$except = null;
$rtv = @socket_select($read, $write, $except, TIMEOUT_READ);
if ($rtv == 0) {
$this->error();
return SOCK_TIMEO_ERR;
@ -217,6 +223,4 @@ class INISocket {
return $this->sSocErr;
}
}
?>
}

View File

@ -17,7 +17,7 @@ class INIStdPayUtil {
$milliseconds = round(microtime(true) * 1000);
$tempValue1 = round($milliseconds / 1000); //max integer 자릿수가 9이므로 뒤 3자리를 뺀다
$tempValue2 = round(microtime(false) * 1000); //뒤 3자리를 저장
$tempValue2 = round((float) microtime(false) * 1000); //뒤 3자리를 저장
switch (strlen($tempValue2)) {
case '3':
break;
@ -121,5 +121,4 @@ class INIStdPayUtil {
return $signature;
}
}
?>
}

View File

@ -209,12 +209,12 @@ class XML {
*/
function remove_ctrl($string) {
for ($i = 0; $i < strlen($string); $i++) {
$chr = $string{$i};
$chr = $string[$i];
$ord = ord($chr);
if ($ord < 10)
$string{$i} = " ";
$string[$i] = " ";
else
$string{$i} = $chr;
$string[$i] = $chr;
}
return trim($string);
}
@ -333,11 +333,12 @@ class XML {
// Now open the tag.
$xml .= "<" . $this->nodes[$root]["name"];
$count_root_attributes = (isset($this->nodes[$root]["attributes"]) && is_array($this->nodes[$root]["attributes"])) ? count($this->nodes[$root]["attributes"]) : 0;
// Check whether there are attributes for this node.
if (count($this->nodes[$root]["attributes"]) > 0) {
if ($count_root_attributes > 0) {
// Run through all attributes.
foreach ($this->nodes[$root]["attributes"] as $key => $value) {
foreach ((array) $this->nodes[$root]["attributes"] as $key => $value) {
// Check whether this attribute is highlighted.
if (in_array($root . "/attribute::" . $key, $highlight)) {
// Add the highlight code to the XML data.
@ -450,7 +451,9 @@ class XML {
$path = $context . "/" . $name;
// Set the relative context and the position.
$position = ++$this->ids[$path];
$othis_ids_path = isset($this->ids[$path]) ? (int) $this->ids[$path] : 0;
$position = ++$othis_ids_path;
$relative = $name . "[" . $position . "]";
// Calculate the full path.
@ -462,7 +465,8 @@ class XML {
// Calculate the position for the following and preceding axis
// detection.
$this->nodes[$fullpath]["document-position"] = $this->nodes[$context]["document-position"] + 1;
$othis_document_position = isset($this->nodes[$context]["document-position"]) ? (int) $this->nodes[$context]["document-position"] : 0;
$this->nodes[$fullpath]["document-position"] = $othis_document_position + 1;
// Save the information about the node.
$this->nodes[$fullpath]["name"] = $name;
@ -470,7 +474,7 @@ class XML {
$this->nodes[$fullpath]["parent"] = $context;
// Add this element to the element count array.
if (!$this->nodes[$context]["children"][$name]) {
if (! (isset($this->nodes[$context]["children"][$name]) && $this->nodes[$context]["children"][$name])) {
// Set the default name.
$this->nodes[$context]["children"][$name] = 1;
} else {
@ -907,7 +911,8 @@ class XML {
$arr = preg_split("/[\/]+/", $this->path, -1, PREG_SPLIT_NO_EMPTY);
//edited by ddaemiri. libexpat은 \n을 분리자로 인식
//$this->xml_node[$arr[count($arr)-1]]["text"] = addslashes(trim($text));
$this->xml_node[$arr[count($arr) - 1]]["text"] = $this->xml_node[$arr[count($arr) - 1]]["text"] . addslashes(trim($text));
$othis_count_text = isset($this->xml_node[$arr[count($arr) - 1]]["text"]) ? $this->xml_node[$arr[count($arr) - 1]]["text"] : '';
$this->xml_node[$arr[count($arr) - 1]]["text"] = $othis_count_text . addslashes(trim($text));
}
/**
@ -3132,6 +3137,4 @@ class XML {
return $a[$attr];
}
}
?>
}

View File

@ -11,5 +11,4 @@ $output['signature'] = array(
'signature' => hash("sha256", $input)
);
echo json_encode($output);
?>
echo json_encode($output);

View File

@ -801,6 +801,4 @@ if (class_exists('PEAR_Error')) {
}
}
}
?>
}

View File

@ -25,6 +25,4 @@ if (!function_exists('json_encode')) {
$json = new Services_JSON;
return $json->encode($content);
}
}
?>
}

View File

@ -409,6 +409,4 @@ if (!function_exists('hash'))
return $algo($data);
}
}
}
?>
}

View File

@ -6,5 +6,4 @@ if( ! ($default['de_inicis_lpay_use'] || $default['de_inicis_kakaopay_use']) ||
return;
}
include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');
?>
include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');

View File

@ -29,5 +29,4 @@ $mKey = hash("sha256", $signKey);
$params = "oid=" . $orderNumber . "&price=" . $price . "&timestamp=" . $timestamp;
$sign = hash("sha256", $params);
die(json_encode(array('error'=>'', 'mKey'=>$mKey, 'timestamp'=>$timestamp, 'sign'=>$sign)));
?>
die(json_encode(array('error'=>'', 'mKey'=>$mKey, 'timestamp'=>$timestamp, 'sign'=>$sign)));

View File

@ -39,4 +39,4 @@ function paybtn(f) {
INIStdPay.pay(f.id);
}
</script>
<?php } ?>
<?php }

View File

@ -76,4 +76,4 @@ no_receipt : 은행계좌이체시 현금영수증 발행여부 체크박스 비
<?php if($default['de_tax_flag_use']) { ?>
<input type="hidden" name="tax" value="<?php echo $comm_vat_mny; ?>">
<input type="hidden" name="taxfree" value="<?php echo $comm_free_mny; ?>">
<?php } ?>
<?php }

View File

@ -1,3 +1,2 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가;

View File

@ -75,5 +75,4 @@ $inipay->startAction();
sql_query($sql);
} else {
alert(iconv_utf8($inipay->GetResult("ResultMsg")).' 코드 : '.$inipay->GetResult("ResultCode"));
}
?>
}

View File

@ -12,6 +12,8 @@ include_once(G5_SHOP_PATH.'/settle_inicis.inc.php');
* Copyright (C) 2006 Inicis, Co. All rights reserved.
*/
$companynumber = isset($_REQUEST['companynumber']) ? clean_xss_tags($_REQUEST['companynumber'], 1, 1) : '';
if($tx == 'personalpay') {
$od = sql_fetch(" select * from {$g5['g5_shop_personalpay_table']} where pp_id = '$od_id' ");
if (!$od)
@ -189,5 +191,4 @@ function showreceipt() // 현금 영수증 출력
</div>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -6,18 +6,20 @@ if (G5_IS_MOBILE) {
return;
}
$it_id = get_search_string(trim($_GET['it_id']));
$it_id = isset($_GET['it_id']) ? get_search_string(trim($_GET['it_id'])) : '';
$it_seo_title = isset($it_seo_title) ? $it_seo_title : '';
$it = get_shop_item_with_category($it_id, $it_seo_title);
if (! (isset($it['it_id']) && $it['it_id']))
alert('자료가 없습니다.');
$it_id = $it['it_id'];
if( isset($row['it_seo_title']) && ! $row['it_seo_title'] ){
shop_seo_title_update($row['it_id']);
}
if (!$it['it_id'])
alert('자료가 없습니다.');
if (!($it['ca_use'] && $it['it_use'])) {
if (!$is_admin)
alert('현재 판매가능한 상품이 아닙니다.');
@ -144,7 +146,7 @@ else
// 이전 상품보기
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id > '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 ";
$row = sql_fetch($sql);
if ($row['it_id']) {
if (isset($row['it_id']) && $row['it_id']) {
$prev_title = '이전상품<span class="sound_only"> '.$row['it_name'].'</span>';
$prev_href = '<a href="'.get_pretty_url('shop', $row['it_id']).'" id="siblings_prev">';
$prev_href2 = '</a>'.PHP_EOL;
@ -157,7 +159,7 @@ if ($row['it_id']) {
// 다음 상품보기
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id < '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 ";
$row = sql_fetch($sql);
if ($row['it_id']) {
if (isset($row['it_id']) && $row['it_id']) {
$next_title = '다음 상품<span class="sound_only"> '.$row['it_name'].'</span>';
$next_href = '<a href="'.get_pretty_url('shop', $row['it_id']).'" id="siblings_next">';
$next_href2 = '</a>'.PHP_EOL;
@ -190,7 +192,7 @@ if($default['de_rel_list_use']) {
// 소셜 관련
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
$sns_url = shop_item_url($it['it_id']);
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png').' ';
$sns_share_links = get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png').' ';
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/twitter.png').' ';
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/gplus.png');
@ -244,6 +246,7 @@ function pg_anchor($anc_id) {
<?php
}
$naverpay_button_js = '';
include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
?>
@ -277,5 +280,4 @@ echo conv_content($it['it_tail_html'], 1);
if ($ca['ca_include_tail'] && is_include_path_check($ca['ca_include_tail']))
@include_once($ca['ca_include_tail']);
else
include_once(G5_SHOP_PATH.'/_tail.php');
?>
include_once(G5_SHOP_PATH.'/_tail.php');

View File

@ -4,5 +4,4 @@ include_once('./_common.php');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/iteminfo.php');
return;
}
?>
}

View File

@ -3,11 +3,11 @@ include_once('./_common.php');
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
$it_id = preg_replace($pattern, '', $_POST['it_id']);
//$opt_id = preg_replace($pattern, '', $_POST['opt_id']);
$opt_id = addslashes(sql_real_escape_string(preg_replace(G5_OPTION_ID_FILTER, '', $_POST['opt_id'])));
$idx = preg_replace('#[^0-9]#', '', $_POST['idx']);
$sel_count = preg_replace('#[^0-9]#', '', $_POST['sel_count']);
$it_id = isset($_POST['it_id']) ? preg_replace($pattern, '', $_POST['it_id']) : '';
//$opt_id = isset($_POST['opt_id']) ? preg_replace($pattern, '', $_POST['opt_id']) : '';
$opt_id = isset($_POST['opt_id']) ? addslashes(sql_real_escape_string(preg_replace(G5_OPTION_ID_FILTER, '', $_POST['opt_id']))) : '';
$idx = isset($_POST['idx']) ? preg_replace('#[^0-9]#', '', $_POST['idx']) : 0;
$sel_count = isset($_POST['sel_count']) ? preg_replace('#[^0-9]#', '', $_POST['sel_count']) : 0;
$op_title = isset($_POST['op_title']) ? strip_tags($_POST['op_title']) : '';
$it = get_shop_item($it_id, true);
@ -79,5 +79,4 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
}
}
echo $str;
?>
echo $str;

View File

@ -1,6 +1,8 @@
<?php
include_once('./_common.php');
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
if( !isset($it) && !get_session("ss_tv_idx") ){
if( !headers_sent() ){ //헤더를 보내기 전이면 검색엔진에서 제외합니다.
echo '<meta name="robots" content="noindex, nofollow">';
@ -83,5 +85,4 @@ if(!file_exists($itemqa_skin)) {
echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
} else {
include_once($itemqa_skin);
}
?>
}

View File

@ -1,6 +1,11 @@
<?php
include_once('./_common.php');
$w = isset($_REQUEST['w']) ? preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w'])) : '';
$it_id = isset($_REQUEST['it_id']) ? get_search_string(trim($_REQUEST['it_id'])) : '';
$iq_id = isset($_REQUEST['iq_id']) ? preg_replace('/[^0-9]/', '', trim($_REQUEST['iq_id'])) : 0;
$qa = array('iq_subject'=>'', 'iq_question'=>'');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/itemqaform.php');
return;
@ -12,13 +17,9 @@ if (!$is_member) {
alert_close("상품문의는 회원만 작성 가능합니다.");
}
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
$it_id = get_search_string(trim($_REQUEST['it_id']));
$iq_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['iq_id']));
// 상품정보체크
$row = get_shop_item($it_id, true);
if(!$row['it_id'])
if(! (isset($row['it_id']) && $row['it_id']))
alert_close('상품정보가 존재하지 않습니다.');
$chk_secret = '';
@ -65,5 +66,4 @@ if(!file_exists($itemqaform_skin)) {
include_once($itemqaform_skin);
}
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -5,14 +5,19 @@ if (!$is_member) {
alert_close("상품문의는 회원만 작성이 가능합니다.");
}
$iq_id = (int) trim($_REQUEST['iq_id']);
$iq_subject = trim($_POST['iq_subject']);
$iq_question = trim($_POST['iq_question']);
$iq_id = isset($_REQUEST['iq_id']) ? (int) $_REQUEST['iq_id'] : 0;
$iq_subject = isset($_POST['iq_subject']) ? trim($_POST['iq_subject']) : '';
$iq_question = isset($_POST['iq_question']) ? trim($_POST['iq_question']) : '';
$iq_question = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $iq_question);
$iq_answer = trim($_POST['iq_answer']);
$hash = trim($_REQUEST['hash']);
$iq_answer = isset($_POST['iq_answer']) ? trim($_POST['iq_answer']) : '';
$hash = isset($_REQUEST['hash']) ? trim($_REQUEST['hash']) : '';
$get_editor_img_mode = $config['cf_editor'] ? false : true;
$iq_secret = isset($_POST['iq_secret']) ? (int) $_POST['iq_secret'] : 0;
$iq_email = isset($_POST['iq_email']) ? clean_xss_tags($_POST['iq_email'], 1, 1) : '';
$iq_hp = isset($_POST['iq_hp']) ? clean_xss_tags($_POST['iq_hp'], 1, 1) : '';
$is_mobile_shop = isset($_REQUEST['is_mobile_shop']) ? (int) $_REQUEST['is_mobile_shop'] : 0;
if ($w == "" || $w == "u") {
$iq_name = addslashes(strip_tags($member['mb_name']));
$iq_password = $member['mb_password'];
@ -39,7 +44,7 @@ if ($w == "")
iq_subject = '$iq_subject',
iq_question = '$iq_question',
iq_time = '".G5_TIME_YMDHIS."',
iq_ip = '$REMOTE_ADDR' ";
iq_ip = '".$_SERVER['REMOTE_ADDR']."' ";
sql_query($sql);
$alert_msg = '상품문의가 등록 되었습니다.';
@ -102,7 +107,9 @@ else if ($w == "d")
$imgs = get_editor_image($row['iq_answer'], $get_editor_img_mode);
for($i=0;$i<count($imgs[1]);$i++) {
$imgs_count = (isset($imgs[1]) && is_array($imgs[1])) ? count($imgs[1]) : 0;
for($i=0;$i<$imgs_count;$i++) {
$p = parse_url($imgs[1][$i]);
if(strpos($p['path'], "/data/") != 0)
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
@ -127,5 +134,4 @@ else if ($w == "d")
if($w == 'd')
alert($alert_msg, $url);
else
alert_opener($alert_msg, $url);
?>
alert_opener($alert_msg, $url);

View File

@ -70,5 +70,4 @@ if(!file_exists($itemqalist_skin)) {
include_once($itemqalist_skin);
}
include_once('./_tail.php');
?>
include_once('./_tail.php');

View File

@ -1,6 +1,8 @@
<?php
include_once('./_common.php');
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/itemrecommend.php');
return;
@ -66,5 +68,4 @@ function fitemrecommend_check(f)
<!-- } 상품 추천하기 끝 -->
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -5,6 +5,8 @@ include_once(G5_LIB_PATH.'/mailer.lib.php');
if (!$is_member)
alert_close('회원만 메일을 발송할 수 있습니다.');
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
// 스팸으로 인한 코드 수정 060809
//if (substr_count($to_email, "@") > 3) alert("최대 3명까지만 메일을 발송할 수 있습니다.");
if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.');
@ -19,7 +21,7 @@ if ($recommendmail_count > 3)
set_session('ss_recommendmail_count', $recommendmail_count);
// 세션에 저장된 토큰과 폼값으로 넘어온 토큰을 비교하여 틀리면 메일을 발송할 수 없다.
if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
if (isset($_POST["token"]) && get_session("ss_token") === $_POST["token"]) {
// 맞으면 세션을 지워 다시 입력폼을 통해서 들어오도록 한다.
set_session("ss_token", "");
} else {
@ -29,11 +31,11 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
// 상품
$it = get_shop_item($it_id, true);
if (!$it['it_id'])
if (! (isset($it['it_id']) && $it['it_id']))
alert("등록된 상품이 아닙니다.");
$subject = stripslashes($subject);
$content = nl2br(stripslashes($content));
$subject = isset($_POST['subject']) ? stripslashes($_POST['subject']) : '';
$content = isset($_POST['content']) ? nl2br(stripslashes($_POST['content'])) : '';
$from_name = get_text($member['mb_name']);
$from_email = $member['mb_email'];

View File

@ -1,13 +1,15 @@
<?php
include_once('./_common.php');
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
$g5['title'] = '상품 재입고 알림 (SMS)';
include_once(G5_PATH.'/head.sub.php');
// 상품정보
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
if(! (isset($it['it_id']) && $it['it_id']))
alert_close('상품정보가 존재하지 않습니다.');
if(!$it['it_soldout'] || !$it['it_stock_sms'])
@ -74,5 +76,4 @@ function fstocksms_submit(f)
</script>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -1,10 +1,13 @@
<?php
include_once('./_common.php');
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
$ss_hp = isset($_POST['ss_hp']) ? $_POST['ss_hp'] : '';
// 상품정보
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
if(! (isset($it['it_id']) && $it['it_id']))
alert_close('상품정보가 존재하지 않습니다.');
if(!$it['it_soldout'] || !$it['it_stock_sms'])
@ -36,5 +39,4 @@ $sql = " insert into {$g5['g5_shop_item_stocksms_table']}
ss_datetime = '".G5_TIME_YMDHIS."' ";
sql_query($sql);
alert_close('재입고SMS 알림 요청 등록이 완료됐습니다.');
?>
alert_close('재입고SMS 알림 요청 등록이 완료됐습니다.');

View File

@ -1,6 +1,8 @@
<?php
include_once('./_common.php');
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
if( !isset($it) && !get_session("ss_tv_idx") ){
if( !headers_sent() ){ //헤더를 보내기 전이면 검색엔진에서 제외합니다.
echo '<meta name="robots" content="noindex, nofollow">';
@ -83,5 +85,4 @@ if(!file_exists($itemuse_skin)) {
echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
} else {
include_once($itemuse_skin);
}
?>
}

View File

@ -1,6 +1,11 @@
<?php
include_once('./_common.php');
$w = isset($_REQUEST['w']) ? preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w'])) : '';
$it_id = isset($_REQUEST['it_id']) ? get_search_string(trim($_REQUEST['it_id'])) : '';
$is_id = isset($_REQUEST['is_id']) ? preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id'])) : 0;
$use = array('is_subject'=>'', 'is_content'=>'');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/itemuseform.php');
return;
@ -12,13 +17,10 @@ if (!$is_member) {
alert_close("사용후기는 회원만 작성 가능합니다.");
}
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
$it_id = get_search_string(trim($_REQUEST['it_id']));
$is_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id']));
// 상품정보체크
$row = get_shop_item($it_id, true);
if(!$row['it_id'])
if(! (isset($row['it_id']) && $row['it_id']))
alert_close('상품정보가 존재하지 않습니다.');
if ($w == "") {
@ -60,5 +62,4 @@ if(!file_exists($itemuseform_skin)) {
include_once($itemuseform_skin);
}
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -5,15 +5,17 @@ if (!$is_member) {
alert_close("사용후기는 회원만 작성이 가능합니다.");
}
$it_id = trim($_REQUEST['it_id']);
$is_subject = trim($_POST['is_subject']);
$is_content = trim($_POST['is_content']);
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
$is_subject = isset($_POST['is_subject']) ? trim($_POST['is_subject']) : '';
$is_content = isset($_POST['is_content']) ? trim($_POST['is_content']) : '';
$is_content = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $is_content);
$is_name = trim($_POST['is_name']);
$is_password = trim($_POST['is_password']);
$is_score = (int)$_POST['is_score'] > 5 ? 0 : (int)$_POST['is_score'];
$is_name = isset($_POST['is_name']) ? trim($_POST['is_name']) : '';
$is_password = isset($_POST['is_password']) ? trim($_POST['is_password']) : '';
$is_score = isset($_POST['is_score']) ? (int) $_POST['is_score'] : 0;
$is_score = ($is_score > 5) ? 0 : $is_score;
$get_editor_img_mode = $config['cf_editor'] ? false : true;
$is_id = (int) trim($_REQUEST['is_id']);
$is_id = isset($_REQUEST['is_id']) ? (int) $_REQUEST['is_id'] : 0;
$is_mobile_shop = isset($_REQUEST['is_mobile_shop']) ? (int) $_REQUEST['is_mobile_shop'] : 0;
// 사용후기 작성 설정에 따른 체크
check_itemuse_write($it_id, $member['mb_id']);
@ -129,5 +131,4 @@ if( ! $default['de_item_use_use'] ){
if($w == 'd')
alert($alert_msg, $url);
else
alert_opener($alert_msg, $url);
?>
alert_opener($alert_msg, $url);

View File

@ -70,5 +70,4 @@ if(!file_exists($itemuselist_skin)) {
include_once($itemuselist_skin);
}
include_once('./_tail.php');
?>
include_once('./_tail.php');

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -55,5 +55,4 @@ if ($default['de_card_test']) {
}
}
$returnUrl = G5_SHOP_URL.'/kakaopay/inicis_kk_return.php';
?>
$returnUrl = G5_SHOP_URL.'/kakaopay/inicis_kk_return.php';

View File

@ -81,5 +81,4 @@ if(isset($data['pp_id']) && $data['pp_id']) { //개인결제
$od_send_cost2 = (int) $_POST['od_send_cost2'];
include_once(G5_SHOP_PATH.'/orderformupdate.php');
}
?>
}

View File

@ -83,5 +83,4 @@ if($cancelFlag == "true")
$pg_res_cd = $res_cd;
$pg_res_msg = iconv_utf8($res_msg);
}
}
?>
}

View File

@ -25,5 +25,4 @@ if( isset($_REQUEST['P_STATUS']) && isset($_REQUEST['P_TID']) && isset($_REQUEST
}
include G5_SHOP_PATH.'/kakaopay/pc_pay_result.php';
return;
?>
return;

View File

@ -33,5 +33,4 @@ $mKey = hash("sha256", $default['de_kakaopay_key']);
$params = "oid=" . $orderNumber . "&price=" . $price . "&timestamp=" . $timestamp;
$sign = hash("sha256", $params);
die(json_encode(array('error'=>'', 'mKey'=>$mKey, 'timestamp'=>$timestamp, 'sign'=>$sign)));
?>
die(json_encode(array('error'=>'', 'mKey'=>$mKey, 'timestamp'=>$timestamp, 'sign'=>$sign)));

View File

@ -200,5 +200,4 @@ if(isset($data['pp_id']) && !empty($data['pp_id'])) {
include_once( G5_MSHOP_PATH.'/orderformupdate.php' );
}
exit;
?>
exit;

View File

@ -37,5 +37,4 @@ switch($pay_type) {
// 세션 초기화
set_session('P_TID', '');
set_session('P_AMT', '');
set_session('P_HASH', '');
?>
set_session('P_HASH', '');

View File

@ -1,5 +1,4 @@
<?php
include_once('./_common.php');
// 카카오페이 (KG 이니시스) 의 경우 NOTI 과정이 없으므로 이 페이지를 사용하지 않습니다.
?>
// 카카오페이 (KG 이니시스) 의 경우 NOTI 과정이 없으므로 이 페이지를 사용하지 않습니다.

View File

@ -1,5 +1,4 @@
<?php
include_once('./_common.php');
// 카카오페이 (KG 이니시스) 의 경우 NOTI 과정이 없으므로 이 페이지를 사용하지 않습니다.
?>
// 카카오페이 (KG 이니시스) 의 경우 NOTI 과정이 없으므로 이 페이지를 사용하지 않습니다.

View File

@ -16,5 +16,4 @@ if($is_kakaopay_use) {
</div>
<?php
}
?>
}

View File

@ -1,3 +1,2 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가;

View File

@ -75,5 +75,4 @@ $inipay->startAction();
sql_query($sql);
} else {
alert(iconv_utf8($inipay->GetResult("ResultMsg")).' 코드 : '.$inipay->GetResult("ResultCode"));
}
?>
}

View File

@ -211,5 +211,4 @@ try {
if( !$inicis_pay_result ){
die("<br><br>결제 에러가 일어났습니다. 에러 이유는 위와 같습니다.");
}
?>
}

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -37,5 +37,4 @@ $res_cd = $c_PayPlus->m_res_cd; // 결과 코드
$res_msg = $c_PayPlus->m_res_msg; // 결과 메시지
// locale 설정 초기화
setlocale(LC_CTYPE, '');
?>
setlocale(LC_CTYPE, '');

View File

@ -6,5 +6,4 @@ if( !(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')) ){
return;
}
include_once(G5_SHOP_PATH.'/settle_kcp.inc.php');
?>
include_once(G5_SHOP_PATH.'/settle_kcp.inc.php');

View File

@ -93,7 +93,7 @@ function jsf__pay( form )
?>
<input type="hidden" name="pay_method" value="">
<input type="hidden" name="ordr_idxx" value="<?php echo $od_id; ?>">
<input type="hidden" name="good_name" value="<?php echo $goods; ?>">
<input type="hidden" name="good_name" value="<?php echo isset($goods) ? get_text($goods) : ''; ?>">
<input type="hidden" name="good_mny" value="<?php echo $tot_price; ?>">
<input type="hidden" name="buyr_name" value="">
<input type="hidden" name="buyr_mail" value="">
@ -186,7 +186,7 @@ function jsf__pay( form )
<input type="hidden" name="deli_term" value="03">
<!-- 장바구니 상품 개수 : 장바구니에 담겨있는 상품의 개수를 입력 -->
<input type="hidden" name="bask_cntx" value="<?php echo (int)$goods_count + 1; ?>">
<input type="hidden" name="bask_cntx" value="<?php echo isset($goods_count) ? ((int) $goods_count + 1) : 0; ?>">
<!-- 장바구니 상품 상세 정보 (자바 스크립트 샘플(create_goodInfo()) 참고) -->
<input type="hidden" name="good_info" value="">
@ -257,9 +257,9 @@ if($default['de_tax_flag_use']) {
(good_mny = comm_tax_mny + comm_vat_mny + comm_free_mny) */
?>
<input type="hidden" name="tax_flag" value="TG03"> <!-- 변경불가 -->
<input type="hidden" name="comm_tax_mny" value="<?php echo $comm_tax_mny; ?>"> <!-- 과세금액 -->
<input type="hidden" name="comm_vat_mny" value="<?php echo $comm_vat_mny; ?>"> <!-- 부가세 -->
<input type="hidden" name="comm_free_mny" value="<?php echo $comm_free_mny; ?>"> <!-- 비과세 금액 -->
<input type="hidden" name="comm_tax_mny" value=""> <!-- 과세금액 -->
<input type="hidden" name="comm_vat_mny" value=""> <!-- 부가세 -->
<input type="hidden" name="comm_free_mny" value=""> <!-- 비과세 금액 -->
<?php
}
?>

View File

@ -56,4 +56,4 @@ function jsf__pay( form )
}
}
</script>
<?php } ?>
<?php }

View File

@ -246,5 +246,4 @@ if($default['de_tax_flag_use']) {
/* = -------------------------------------------------------------------------- = */
/* = 4. 옵션 정보 END = */
/* ============================================================================== */
?>
/* ============================================================================== */;

View File

@ -140,5 +140,4 @@ if ( $req_tx == "mod" )
}
// locale 설정 초기화
setlocale(LC_CTYPE, '');
?>
setlocale(LC_CTYPE, '');

View File

@ -21,9 +21,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/* = -------------------------------------------------------------------------- = */
/* = 환경 설정 파일 Include END = */
/* ============================================================================== */
?>
<?php
/* ============================================================================== */
/* = POST 형식 체크부분 = */
/* = -------------------------------------------------------------------------- = */
@ -33,34 +31,32 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
exit;
}
/* ============================================================================== */
?>
<?php
/* ============================================================================== */
/* = 01. 지불 요청 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
$tran_cd = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "tran_cd" ]); // 처리 종류
$req_tx = isset($_POST['req_tx']) ? $_POST['req_tx'] : ''; // 요청 종류
$tran_cd = isset($_POST['tran_cd']) ? preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST['tran_cd']) : ''; // 처리 종류
/* = -------------------------------------------------------------------------- = */
$cust_ip = getenv( "REMOTE_ADDR" ); // 요청 IP
$ordr_idxx = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "ordr_idxx" ]); // 쇼핑몰 주문번호
$good_name = addslashes($_POST[ "good_name"]); // 상품명
$good_mny = $_POST[ "good_mny" ]; // 결제 총금액
$ordr_idxx = isset($_POST['ordr_idxx']) ? preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST['ordr_idxx']) : ''; // 쇼핑몰 주문번호
$good_name = isset($_POST['good_name']) ? addslashes($_POST['good_name']) : ''; // 상품명
$good_mny = isset($_POST['good_mny']) ? (int) $_POST['good_mny'] : 0; // 결제 총금액
/* = -------------------------------------------------------------------------- = */
$res_cd = ""; // 응답코드
$res_msg = ""; // 응답메시지
$res_en_msg = ""; // 응답 영문 메세지
$tno = $_POST[ "tno" ]; // KCP 거래 고유 번호
$tno = isset($_POST['tno']) ? $_POST['tno'] : ''; // KCP 거래 고유 번호
/* = -------------------------------------------------------------------------- = */
$buyr_name = addslashes($_POST[ "buyr_name"]); // 주문자명
$buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호
$buyr_tel2 = $_POST[ "buyr_tel2" ]; // 주문자 핸드폰 번호
$buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 E-mail 주소
$buyr_name = isset($_POST['buyr_name']) ? addslashes($_POST['buyr_name']) : ''; // 주문자명
$buyr_tel1 = isset($_POST['buyr_tel1']) ? $_POST['buyr_tel1'] : ''; // 주문자 전화번호
$buyr_tel2 = isset($_POST['buyr_tel2']) ? $_POST['buyr_tel2'] : ''; // 주문자 핸드폰 번호
$buyr_mail = isset($_POST['buyr_mail']) ? $_POST['buyr_mail'] : ''; // 주문자 E-mail 주소
/* = -------------------------------------------------------------------------- = */
$mod_type = $_POST[ "mod_type" ]; // 변경TYPE VALUE 승인취소시 필요
$mod_desc = $_POST[ "mod_desc" ]; // 변경사유
$mod_type = isset($_POST['mod_type']) ? $_POST['mod_type'] : ''; // 변경TYPE VALUE 승인취소시 필요
$mod_desc = isset($_POST['mod_desc']) ? $_POST['mod_desc'] : ''; // 변경사유
/* = -------------------------------------------------------------------------- = */
$use_pay_method = $_POST[ "use_pay_method" ]; // 결제 방법
$use_pay_method = isset($_POST['use_pay_method']) ? $_POST['use_pay_method'] : ''; // 결제 방법
$bSucc = ""; // 업체 DB 처리 성공 여부
/* = -------------------------------------------------------------------------- = */
$app_time = ""; // 승인시간 (모든 결제 수단 공통)
@ -99,29 +95,29 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$commid = ""; // 통신사 코드
$mobile_no = ""; // 휴대폰 번호
/* = -------------------------------------------------------------------------- = */
$shop_user_id = $_POST[ "shop_user_id" ]; // 가맹점 고객 아이디
$shop_user_id = isset($_POST['shop_user_id']) ? $_POST['shop_user_id'] : ''; // 가맹점 고객 아이디
$tk_van_code = ""; // 발급사 코드
$tk_app_no = ""; // 상품권 승인 번호
/* = -------------------------------------------------------------------------- = */
$cash_yn = $_POST[ "cash_yn" ]; // 현금영수증 등록 여부
$cash_yn = isset($_POST['cash_yn']) ? $_POST['cash_yn'] : ''; // 현금영수증 등록 여부
$cash_authno = ""; // 현금 영수증 승인 번호
$cash_tr_code = $_POST[ "cash_tr_code" ]; // 현금 영수증 발행 구분
$cash_id_info = $_POST[ "cash_id_info" ]; // 현금 영수증 등록 번호
$cash_tr_code = isset($_POST['cash_tr_code']) ? $_POST['cash_tr_code'] : ''; // 현금 영수증 발행 구분
$cash_id_info = isset($_POST['cash_id_info']) ? $_POST['cash_id_info'] : ''; // 현금 영수증 등록 번호
/* ============================================================================== */
/* = 01-1. 에스크로 지불 요청 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
$escw_used = $_POST[ "escw_used" ]; // 에스크로 사용 여부
$pay_mod = $_POST[ "pay_mod" ]; // 에스크로 결제처리 모드
$deli_term = $_POST[ "deli_term" ]; // 배송 소요일
$bask_cntx = $_POST[ "bask_cntx" ]; // 장바구니 상품 개수
$good_info = $_POST[ "good_info" ]; // 장바구니 상품 상세 정보
$rcvr_name = addslashes($_POST[ "rcvr_name"]); // 수취인 이름
$rcvr_tel1 = $_POST[ "rcvr_tel1" ]; // 수취인 전화번호
$rcvr_tel2 = $_POST[ "rcvr_tel2" ]; // 수취인 휴대폰번호
$rcvr_mail = $_POST[ "rcvr_mail" ]; // 수취인 E-Mail
$rcvr_zipx = $_POST[ "rcvr_zipx" ]; // 수취인 우편번호
$rcvr_add1 = addslashes($_POST[ "rcvr_add1"]); // 수취인 주소
$rcvr_add2 = addslashes($_POST[ "rcvr_add2"]); // 수취인 상세주소
$escw_used = isset($_POST['escw_used']) ? $_POST['escw_used'] : ''; // 에스크로 사용 여부
$pay_mod = isset($_POST['pay_mod']) ? $_POST['pay_mod'] : ''; // 에스크로 결제처리 모드
$deli_term = isset($_POST['deli_term']) ? $_POST['deli_term'] : ''; // 배송 소요일
$bask_cntx = isset($_POST['bask_cntx']) ? $_POST['bask_cntx'] : 0; // 장바구니 상품 개수
$good_info = isset($_POST['good_info']) ? $_POST['good_info'] : ''; // 장바구니 상품 상세 정보
$rcvr_name = isset($_POST['rcvr_name']) ? addslashes($_POST['rcvr_name']) : ''; // 수취인 이름
$rcvr_tel1 = isset($_POST['rcvr_tel1']) ? $_POST['rcvr_tel1'] : ''; // 수취인 전화번호
$rcvr_tel2 = isset($_POST['rcvr_tel2']) ? $_POST['rcvr_tel2'] : ''; // 수취인 휴대폰번호
$rcvr_mail = isset($_POST['rcvr_mail']) ? $_POST['rcvr_mail'] : ''; // 수취인 E-Mail
$rcvr_zipx = isset($_POST['rcvr_zipx']) ? $_POST['rcvr_zipx'] : ''; // 수취인 우편번호
$rcvr_add1 = isset($_POST['rcvr_add1']) ? addslashes($_POST['rcvr_add1']) : ''; // 수취인 주소
$rcvr_add2 = isset($_POST['rcvr_add2']) ? addslashes($_POST['rcvr_add2']) : ''; // 수취인 상세주소
$escw_yn = ""; // 에스크로 여부
/* ============================================================================== */
@ -150,8 +146,11 @@ if ( $req_tx == "pay" )
{
/* 1004원은 실제로 업체에서 결제하셔야 될 원 금액을 넣어주셔야 합니다. 결제금액 유효성 검증 */
$c_PayPlus->mf_set_ordr_data( "ordr_mony", $good_mny );
$post_enc_data = isset($_POST['enc_data']) ? $_POST['enc_data'] : '';
$post_enc_info = isset($_POST['enc_info']) ? $_POST['enc_info'] : '';
$c_PayPlus->mf_set_encx_data( $_POST[ "enc_data" ], $_POST[ "enc_info" ] );
$c_PayPlus->mf_set_encx_data( $post_enc_data, $post_enc_info );
}
/* = -------------------------------------------------------------------------- = */
@ -181,16 +180,22 @@ else if ($req_tx = "mod_escrow")
if ($mod_type == "STE1") // 상태변경 타입이 [배송요청]인 경우
{
$c_PayPlus->mf_set_modx_data( "deli_numb", $_POST[ "deli_numb" ] ); // 운송장 번호
$c_PayPlus->mf_set_modx_data( "deli_corp", $_POST[ "deli_corp" ] ); // 택배 업체명
$post_deli_numb = isset($_POST['deli_numb']) ? $_POST['deli_numb'] : '';
$post_deli_corp = isset($_POST['deli_corp']) ? $_POST['deli_corp'] : '';
$c_PayPlus->mf_set_modx_data( "deli_numb", $post_deli_numb ); // 운송장 번호
$c_PayPlus->mf_set_modx_data( "deli_corp", $post_deli_corp ); // 택배 업체명
}
else if ($mod_type == "STE2" || $mod_type == "STE4") // 상태변경 타입이 [즉시취소] 또는 [취소]인 계좌이체, 가상계좌의 경우
{
if ($vcnt_yn == "Y")
{
$c_PayPlus->mf_set_modx_data( "refund_account", $_POST[ "refund_account" ] ); // 환불수취계좌번호
$c_PayPlus->mf_set_modx_data( "refund_nm", $_POST[ "refund_nm" ] ); // 환불수취계좌주명
$c_PayPlus->mf_set_modx_data( "bank_code", $_POST[ "bank_code" ] ); // 환불수취은행코드
$post_refund_account = isset($_POST['refund_account']) ? $_POST['refund_account'] : '';
$post_refund_nm = isset($_POST['refund_nm']) ? $_POST['refund_nm'] : '';
$post_bank_code = isset($_POST['bank_code']) ? $_POST['bank_code'] : '';
$c_PayPlus->mf_set_modx_data( "refund_account", $post_refund_account ); // 환불수취계좌번호
$c_PayPlus->mf_set_modx_data( "refund_nm", $post_refund_nm ); // 환불수취계좌주명
$c_PayPlus->mf_set_modx_data( "bank_code", $post_bank_code ); // 환불수취은행코드
}
}
}
@ -368,5 +373,4 @@ if ( $req_tx == "pay" )
/* = -------------------------------------------------------------------------- = */
/* = 05. 승인 결과 처리 END = */
/* ============================================================================== */
?>
/* ============================================================================== */;

View File

@ -75,5 +75,4 @@ if ( $req_tx == "pay" )
/* ============================================================================== */
// locale 설정 초기화
setlocale(LC_CTYPE, '');
?>
setlocale(LC_CTYPE, '');

View File

@ -238,11 +238,12 @@
/* -------------------------------------------------------------------- */
function mf_get_res_data( $name )
{
return $this->m_res_data[ $name ];
return isset($this->m_res_data[ $name ]) ? $this->m_res_data[ $name ] : '';
}
function mf_get_payx_data()
{
$my_data = '';
if ( $this->m_payx_common != "" || $this->m_payx_card != "" )
{
$my_data = "payx_data=";
@ -283,7 +284,7 @@
$exec_cmd = array_shift( $arg );
while ( list(,$i) = each($arg) )
foreach((array) $arg as $key=>$i)
{
$exec_cmd .= " " . escapeshellarg( $i );
}
@ -292,5 +293,4 @@
return $rt;
}
}
?>
}

View File

@ -387,5 +387,4 @@ setlocale(LC_CTYPE, 'ko_KR.euc-kr');
<?php
// locale 설정 초기화
setlocale(LC_CTYPE, '');
?>
setlocale(LC_CTYPE, '');

View File

@ -287,5 +287,4 @@ class C_PAYPLUS_CLI_T
return $rt;
}
}
?>
}

View File

@ -28,48 +28,48 @@ require_once(G5_SHOP_PATH.'/settle_kcp.inc.php');
/* ============================================================================== */
/* = 지불 결과 = */
/* = -------------------------------------------------------------------------- = */
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
$bSucc = $_POST[ "bSucc" ]; // DB처리 여부
$trad_time = $_POST[ "trad_time" ]; // 원거래 시각
$req_tx = isset($_POST["req_tx"]) ? $_POST["req_tx"] : ''; // 요청 종류
$bSucc = isset($_POST["bSucc"]) ? $_POST["bSucc"] : ''; // DB처리 여부
$trad_time = isset($_POST["trad_time"]) ? $_POST["trad_time"] : ''; // 원거래 시각
/* = -------------------------------------------------------------------------- = */
$ordr_idxx = $_POST[ "ordr_idxx" ]; // 주문번호
$buyr_name = $_POST[ "buyr_name" ]; // 주문자 이름
$buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호
$buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 메일
$good_name = $_POST[ "good_name" ]; // 주문상품명
$comment = $_POST[ "comment" ]; // 비고
$ordr_idxx = isset($_POST["ordr_idxx"]) ? $_POST["ordr_idxx"] : ''; // 주문번호
$buyr_name = isset($_POST["buyr_name"]) ? $_POST["buyr_name"] : ''; // 주문자 이름
$buyr_tel1 = isset($_POST["buyr_tel1"]) ? $_POST["buyr_tel1"] : ''; // 주문자 전화번호
$buyr_mail = isset($_POST["buyr_mail"]) ? $_POST["buyr_mail"] : ''; // 주문자 메일
$good_name = isset($_POST["good_name"]) ? $_POST["good_name"] : ''; // 주문상품명
$comment = isset($_POST["comment"]) ? $_POST["comment"] : ''; // 비고
/* = -------------------------------------------------------------------------- = */
$corp_type = $_POST[ "corp_type" ]; // 사업장 구분
$corp_tax_type = $_POST[ "corp_tax_type" ]; // 과세/면세 구분
$corp_tax_no = $_POST[ "corp_tax_no" ]; // 발행 사업자 번호
$corp_nm = $_POST[ "corp_nm" ]; // 상호
$corp_owner_nm = $_POST[ "corp_owner_nm" ]; // 대표자명
$corp_addr = $_POST[ "corp_addr" ]; // 사업장 주소
$corp_telno = $_POST[ "corp_telno" ]; // 사업장 대표 연락처
$corp_type = isset($_POST["corp_type"]) ? $_POST["corp_type"] : ''; // 사업장 구분
$corp_tax_type = isset($_POST["corp_tax_type"]) ? $_POST["corp_tax_type"] : ''; // 과세/면세 구분
$corp_tax_no = isset($_POST["corp_tax_no"]) ? $_POST["corp_tax_no"] : ''; // 발행 사업자 번호
$corp_nm = isset($_POST["corp_nm"]) ? $_POST["corp_nm"] : ''; // 상호
$corp_owner_nm = isset($_POST["corp_owner_nm"]) ? $_POST["corp_owner_nm"] : ''; // 대표자명
$corp_addr = isset($_POST["corp_addr"]) ? $_POST["corp_addr"] : ''; // 사업장 주소
$corp_telno = isset($_POST["corp_telno"]) ? $_POST["corp_telno"] : ''; // 사업장 대표 연락처
/* = -------------------------------------------------------------------------- = */
$tr_code = $_POST[ "tr_code" ]; // 발행용도
$id_info = $_POST[ "id_info" ]; // 신분확인 ID
$amt_tot = $_POST[ "amt_tot" ]; // 거래금액 총 합
$amt_sup = $_POST[ "amt_sup" ]; // 공급가액
$amt_svc = $_POST[ "amt_svc" ]; // 봉사료
$amt_tax = $_POST[ "amt_tax" ]; // 부가가치세
$tr_code = isset($_POST["tr_code"]) ? $_POST["tr_code"] : ''; // 발행용도
$id_info = isset($_POST["id_info"]) ? $_POST["id_info"] : ''; // 신분확인 ID
$amt_tot = isset($_POST["amt_tot"]) ? $_POST["amt_tot"] : ''; // 거래금액 총 합
$amt_sup = isset($_POST["amt_sup"]) ? $_POST["amt_sup"] : ''; // 공급가액
$amt_svc = isset($_POST["amt_svc"]) ? $_POST["amt_svc"] : ''; // 봉사료
$amt_tax = isset($_POST["amt_tax"]) ? $_POST["amt_tax"] : ''; // 부가가치세
/* = -------------------------------------------------------------------------- = */
$pay_type = $_POST[ "pay_type" ]; // 결제 서비스 구분
$pay_trade_no = $_POST[ "pay_trade_no" ]; // 결제 거래번호
$pay_type = isset($_POST["pay_type"]) ? $_POST["pay_type"] : ''; // 결제 서비스 구분
$pay_trade_no = isset($_POST["pay_trade_no"]) ? $_POST["pay_trade_no"] : ''; // 결제 거래번호
/* = -------------------------------------------------------------------------- = */
$mod_type = $_POST[ "mod_type" ]; // 변경 타입
$mod_value = $_POST[ "mod_value" ]; // 변경 요청 거래번호
$mod_gubn = $_POST[ "mod_gubn" ]; // 변경 요청 거래번호 구분
$mod_mny = $_POST[ "mod_mny" ]; // 변경 요청 금액
$rem_mny = $_POST[ "rem_mny" ]; // 변경처리 이전 금액
$mod_type = isset($_POST["mod_type"]) ? $_POST["mod_type"] : ''; // 변경 타입
$mod_value = isset($_POST["mod_value"]) ? $_POST["mod_value"] : ''; // 변경 요청 거래번호
$mod_gubn = isset($_POST["mod_gubn"]) ? $_POST["mod_gubn"] : ''; // 변경 요청 거래번호 구분
$mod_mny = isset($_POST["mod_mny"]) ? $_POST["mod_mny"] : ''; // 변경 요청 금액
$rem_mny = isset($_POST["rem_mny"]) ? $_POST["rem_mny"] : ''; // 변경처리 이전 금액
/* = -------------------------------------------------------------------------- = */
$res_cd = clean_xss_tags(strip_tags($_POST[ "res_cd" ])); // 응답코드
$res_msg = clean_xss_tags(strip_tags($_POST[ "res_msg" ])); // 응답메시지
$cash_no = clean_xss_tags(strip_tags($_POST[ "cash_no" ])); // 현금영수증 거래번호
$receipt_no = clean_xss_tags(strip_tags($_POST[ "receipt_no" ])); // 현금영수증 승인번호
$app_time = clean_xss_tags(strip_tags($_POST[ "app_time" ])); // 승인시간(YYYYMMDDhhmmss)
$reg_stat = clean_xss_tags(strip_tags($_POST[ "reg_stat" ])); // 등록 상태 코드
$reg_desc = clean_xss_tags(strip_tags($_POST[ "reg_desc" ])); // 등록 상태 설명
$res_cd = isset($_POST["res_cd"]) ? clean_xss_tags(strip_tags($_POST["res_cd"])) : ''; // 응답코드
$res_msg = isset($_POST["res_msg"]) ? clean_xss_tags(strip_tags($_POST["res_msg"])) : ''; // 응답메시지
$cash_no = isset($_POST["cash_no"]) ? clean_xss_tags(strip_tags($_POST["cash_no"])) : ''; // 현금영수증 거래번호
$receipt_no = isset($_POST["receipt_no"]) ? clean_xss_tags(strip_tags($_POST["receipt_no"])) : ''; // 현금영수증 승인번호
$app_time = isset($_POST["app_time"]) ? clean_xss_tags(strip_tags($_POST["app_time"])) : ''; // 승인시간(YYYYMMDDhhmmss)
$reg_stat = isset($_POST["reg_stat"]) ? clean_xss_tags(strip_tags($_POST["reg_stat"])) : ''; // 등록 상태 코드
$reg_desc = isset($_POST["reg_desc"]) ? clean_xss_tags(strip_tags($_POST["reg_desc"])) : ''; // 등록 상태 설명
/* ============================================================================== */
$req_tx_name = "";

View File

@ -1,17 +1,17 @@
<?php
include_once('./_common.php');
$it_id = isset($_GET['it_id']) ? get_search_string(trim($_GET['it_id'])) : '';
$no = (isset($_GET['no']) && $_GET['no']) ? (int) $_GET['no'] : 1;
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/largeimage.php');
return;
}
$it_id = get_search_string(trim($_GET['it_id']));
$no = (isset($_GET['no']) && $_GET['no']) ? (int) $_GET['no'] : 1;
$row = get_shop_item($it_id, true);
if(!$row['it_id'])
if(! (isset($row['it_id']) && $row['it_id']))
alert_close('상품정보가 존재하지 않습니다.');
$imagefile = G5_DATA_PATH.'/item/'.$row['it_img'.$no];
@ -28,5 +28,4 @@ if(is_file($skin))
else
echo '<p>'.str_replace(G5_PATH.'/', '', $skin).'파일이 존재하지 않습니다.</p>';
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -113,5 +113,4 @@ else
{
// 비정상처리 되었을때 DB 처리
}
}
?>
}

View File

@ -67,4 +67,4 @@ function payment_return() {
}
}
</script>
<?php } ?>
<?php }

View File

@ -1,3 +1,2 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가;

View File

@ -96,5 +96,4 @@ if ($xpay->TX()) {
*/
alert('결제 부분취소 요청이 실패하였습니다.\\n\\n'.$xpay->Response_Code().' : '.$xpay->Response_Msg());
}
?>
}

View File

@ -28,8 +28,8 @@ $payReqMap = $_SESSION['PAYREQ_MAP'];//결제 요청시, Session에 저장했던
</head>
<body onload="setLGDResult()">
<?php
$LGD_RESPCODE = clean_xss_tags(strip_tags($_POST['LGD_RESPCODE']));
$LGD_RESPMSG = clean_xss_tags(strip_tags($_POST['LGD_RESPMSG']));
$LGD_RESPCODE = isset($_POST['LGD_RESPCODE']) ? clean_xss_tags(strip_tags($_POST['LGD_RESPCODE'])) : '';
$LGD_RESPMSG = isset($_POST['LGD_RESPMSG']) ? clean_xss_tags(strip_tags($_POST['LGD_RESPMSG'])) : '';
$LGD_PAYKEY = '';
$payReqMap['LGD_RESPCODE'] = $LGD_RESPCODE;
@ -40,7 +40,7 @@ $payReqMap = $_SESSION['PAYREQ_MAP'];//결제 요청시, Session에 저장했던
$payReqMap['LGD_PAYKEY'] = $LGD_PAYKEY;
}
else{
echo "LGD_RESPCODE:" + $LGD_RESPCODE + " ,LGD_RESPMSG:" + $LGD_RESPMSG; //인증 실패에 대한 처리 로직 추가
echo "LGD_RESPCODE:" . $LGD_RESPCODE . " ,LGD_RESPMSG:" . $LGD_RESPMSG; //인증 실패에 대한 처리 로직 추가
}
?>
<form method="post" name="LGD_RETURNINFO" id="LGD_RETURNINFO">

View File

@ -254,5 +254,4 @@ switch($LGD_PAYTYPE) {
</div>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -14,5 +14,4 @@ if( !$isDBOK ) {
echo "자동취소가 정상적으로 처리되지 않았습니다.<br>";
}
*/
}
?>
}

View File

@ -88,5 +88,4 @@ $payReqMap['LGD_PAYKEY'] = '';
$_SESSION['PAYREQ_MAP'] = $payReqMap;
die(json_encode(array('LGD_HASHDATA' => $LGD_HASHDATA, 'error' => '')));
?>
die(json_encode(array('LGD_HASHDATA' => $LGD_HASHDATA, 'error' => '')));

View File

@ -77,12 +77,12 @@ if ($xpay->TX()) {
$tno = $xpay->Response('LGD_TID',0);
$amount = $xpay->Response('LGD_AMOUNT',0);
$app_time = $xpay->Response('LGD_PAYDATE',0);
$bank_name = $xpay->Response('LGD_FINANCENAME',0);
$bank_name = $bankname = $xpay->Response('LGD_FINANCENAME',0);
$depositor = $xpay->Response('LGD_PAYER',0);
$account = $xpay->Response('LGD_FINANCENAME',0).' '.$xpay->Response('LGD_ACCOUNTNUM',0).' '.$xpay->Response('LGD_SAOWNER',0);
$commid = $xpay->Response('LGD_FINANCENAME',0);
$mobile_no = $xpay->Response('LGD_TELNO',0);
$app_no = $xpay->Response('LGD_FINANCEAUTHNUM',0);
$app_no = $od_app_no = $xpay->Response('LGD_FINANCEAUTHNUM',0);
$card_name = $xpay->Response('LGD_FINANCENAME',0);
$pay_type = $xpay->Response('LGD_PAYTYPE',0);
$escw_yn = $xpay->Response('LGD_ESCROWYN',0);
@ -116,5 +116,4 @@ if ($xpay->TX()) {
*/
alert($xpay->Response_Msg().' 코드 : '.$xpay->Response_Code());
}
?>
}

View File

@ -1,6 +1,9 @@
<?php
include_once('./_common.php');
$ca_id = isset($_REQUEST['ca_id']) ? safe_replace_regex($_REQUEST['ca_id'], 'ca_id') : '';
$skin = isset($_REQUEST['skin']) ? safe_replace_regex($_REQUEST['skin'], 'skin') : '';
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
if( isset($sort) && ! in_array($sort, array('it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
$sort='';
@ -13,7 +16,7 @@ if (G5_IS_MOBILE) {
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' and ca_use = '1' ";
$ca = sql_fetch($sql);
if (!$ca['ca_id'])
if (! (isset($ca['ca_id']) && $ca['ca_id']))
alert('등록된 분류가 없습니다.');
// 테마미리보기 스킨 등의 변수 재설정
@ -145,15 +148,11 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
{
echo '<div class="sct_nofile">'.str_replace(G5_PATH.'/', '', $skin_file).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>
<?php
$qstr1 .= 'ca_id='.$ca_id;
$qstr1 = 'ca_id='.$ca_id;
$qstr1 .='&amp;sort='.$sort.'&amp;sortodr='.$sortodr;
echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr1.'&amp;page=');
?>
<?php
// 하단 HTML
echo '<div id="sct_thtml">'.conv_content($ca['ca_tail_html'], 1).'</div>';
@ -167,5 +166,4 @@ if ($ca['ca_include_tail'] && is_include_path_check($ca['ca_include_tail']))
else
include_once(G5_SHOP_PATH.'/_tail.php');
echo "\n<!-- {$ca['ca_skin']} -->\n";
?>
echo "\n<!-- {$ca['ca_skin']} -->\n";

View File

@ -2,16 +2,14 @@
include_once('./_common.php');
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
if( isset($sort) && ! in_array($sort, array('it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
$sort='';
}
$sort = (isset($_REQUEST['sort']) && in_array($_REQUEST['sort'], array('it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time'))) ? $_REQUEST['sort'] : '';
$type = isset($_REQUEST['type']) ? preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']) : '';
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/listtype.php');
return;
}
$type = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']);
if ($type == 1) $g5['title'] = '히트상품';
else if ($type == 2) $g5['title'] = '추천상품';
else if ($type == 3) $g5['title'] = '최신상품';
@ -28,9 +26,7 @@ $list_row = $default['de_listtype_list_row']; // 한 페이지에 몇라인
$img_width = $default['de_listtype_img_width']; // 출력이미지 폭
$img_height = $default['de_listtype_img_height']; // 출력이미지 높이
?>
<?php
// 상품 출력순서가 있다면
$order_by = ' it_order, it_id desc ';
if ($sort != '')
@ -38,6 +34,7 @@ if ($sort != '')
else
$order_by = 'it_order, it_id desc';
$skin = isset($skin) ? $skin : '';
if (!$skin || preg_match('#\.+[\\\/]#', $skin))
$skin = $default['de_listtype_list_skin'];
else
@ -82,13 +79,8 @@ else
{
echo '<div align="center">'.$skin.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>
<?php
$qstr .= '&amp;type='.$type.'&amp;sort='.$sort;
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&amp;page=");
?>
<?php
include_once('./_tail.php');
?>
include_once('./_tail.php');

View File

@ -48,7 +48,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
</table>
<?php } // end if ?>
<?php if (count($card_list)) { ?>
<?php if (isset($card_list) && is_array($card_list) && $card_list) { ?>
<table style="<?php echo $cont_st; ?>">
<caption style="<?php echo $caption_st; ?>">신용카드 결제 확인</caption>
<colgroup>

View File

@ -4,6 +4,9 @@ include_once('./_common.php');
if (!$is_member)
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));
// 읽지 않은 쪽지수
$memo_not_read = isset($member['mb_memo_cnt']) ? (int) $member['mb_memo_cnt'] : 0;
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/mypage.php');
return;
@ -154,5 +157,4 @@ function member_leave()
<!-- } 마이페이지 끝 -->
<?php
include_once("./_tail.php");
?>
include_once("./_tail.php");

View File

@ -1,4 +1,3 @@
<?php
define('_SHOP_', true);
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -75,5 +75,4 @@ foreach($itemIds as $it_id) {
</item>
<?php
}
echo('</response>');
?>
echo('</response>');

View File

@ -4,27 +4,27 @@ include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
include_once(G5_LIB_PATH.'/naverpay.lib.php');
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
$post_naverpay_form = isset($_POST['naverpay_form']) ? clean_xss_tags($_POST['naverpay_form']) : '';
$is_collect = false; //착불체크 변수 초기화
$is_prepay = false; //선불체크 변수 초기화
$is_cart = false; //장바구니 체크 변수 초기화
if($_POST['naverpay_form'] == 'cart.php') {
if(!count($_POST['ct_chk']))
if($post_naverpay_form == 'cart.php') {
if(! (isset($_POST['ct_chk']) && is_array($_POST['ct_chk']) && count($_POST['ct_chk'])))
return_error2json('구매하실 상품을 하나이상 선택해 주십시오.');
$s_cart_id = get_session('ss_cart_id');
$fldcnt = count($_POST['it_id']);
$fldcnt = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
$items = array();
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
$ct_chk = isset($_POST['ct_chk'][$i]) ? $_POST['ct_chk'][$i] : '';
$it_id = isset($_POST['it_id'][$i]) ? preg_replace($pattern, '', $_POST['it_id'][$i]) : '';
if(!$ct_chk)
if(!$ct_chk || !$it_id)
continue;
$it_id = preg_replace($pattern, '', $_POST['it_id'][$i]);
// 장바구니 상품
$sql = " select ct_id, it_id, ct_option, io_id, io_type, ct_qty, ct_send_cost, it_sc_type from {$g5['g5_shop_cart_table']} where od_id = '$s_cart_id' and it_id = '$it_id' and ct_status = '쇼핑' order by ct_id asc ";
$result = sql_query($sql);
@ -76,7 +76,7 @@ if( $is_cart && $is_prepay && $is_collect ){
}
*/
$count = count($_POST['it_id']);
$count = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
if ($count < 1)
return_error2json('구매하실 상품을 선택하여 주십시오.');
@ -84,9 +84,9 @@ $itm_ids = array();
$sel_options = array();
$sup_options = array();
if($_POST['naverpay_form'] == 'item.php')
$back_uri = shop_item_url($_POST['it_id'][0]);
else if($_POST['naverpay_form'] == 'cart.php')
if($post_naverpay_form == 'item.php')
$back_uri = isset($_POST['it_id'][0]) ? shop_item_url($_POST['it_id'][0]) : '';
else if($post_naverpay_form == 'cart.php')
$back_uri = G5_SHOP_URL.'/cart.php';
else
$back_uri = '';
@ -94,8 +94,10 @@ else
define('NAVERPAY_BACK_URL', $back_uri);
for($i=0; $i<$count; $i++) {
$it_id = preg_replace($pattern, '', $_POST['it_id'][$i]);
$opt_count = count($_POST['io_id'][$it_id]);
$it_id = isset($_POST['it_id'][$i]) ? preg_replace($pattern, '', $_POST['it_id'][$i]) : '';
$opt_count = (isset($_POST['io_id'][$it_id]) && is_array($_POST['io_id'][$it_id])) ? count($_POST['io_id'][$it_id]) : 0;
if( ! $it_id) continue;
if($opt_count && $_POST['io_type'][$it_id][0] != 0)
return_error2json('상품의 선택옵션을 선택해 주십시오.');
@ -107,7 +109,8 @@ for($i=0; $i<$count; $i++) {
// 상품정보
$it = get_shop_item($it_id, true);
if(!$it['it_id'])
if(! (isset($it['it_id']) && $it['it_id']))
return_error2json('상품정보가 존재하지 않습니다.');
if(!$it['it_use'] || $it['it_soldout'] || $it['it_tel_inq'])
@ -148,13 +151,12 @@ for($i=0; $i<$count; $i++) {
// 재고 검사
//--------------------------------------------------------
for($k=0; $k<$opt_count; $k++) {
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', trim(stripslashes($_POST['io_id'][$it_id][$k])));
$io_type = (int) $_POST['io_type'][$it_id][$k];
$io_value = $_POST['io_value'][$it_id][$k];
$io_id = isset($_POST['io_id'][$it_id][$k]) ? preg_replace(G5_OPTION_ID_FILTER, '', trim(stripslashes($_POST['io_id'][$it_id][$k]))) : '';
$io_type = isset($_POST['io_type'][$it_id][$k]) ? (int) $_POST['io_type'][$it_id][$k] : 0;
$io_value = isset($_POST['io_value'][$it_id][$k]) ? (int) $_POST['io_value'][$it_id][$k] : 0;
// 재고 구함
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
if(!$io_id)
$it_stock_qty = get_it_stock_qty($it_id);
else
@ -170,9 +172,9 @@ for($i=0; $i<$count; $i++) {
$itm_ids[] = $it_id;
for($k=0; $k<$opt_count; $k++) {
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', trim(stripslashes($_POST['io_id'][$it_id][$k])));
$io_type = (int) $_POST['io_type'][$it_id][$k];
$io_value = $_POST['io_value'][$it_id][$k];
$io_id = isset($_POST['io_id'][$it_id][$k]) ? preg_replace(G5_OPTION_ID_FILTER, '', trim(stripslashes($_POST['io_id'][$it_id][$k]))) : '';
$io_type = isset($_POST['io_type'][$it_id][$k]) ? (int) $_POST['io_type'][$it_id][$k] : 0;
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
if($lst_count && $io_id == '')
@ -182,8 +184,8 @@ for($i=0; $i<$count; $i++) {
if($io_id && !$opt_list[$io_type][$io_id]['use'])
continue;
$io_price = $opt_list[$io_type][$io_id]['price'];
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
$io_price = isset($opt_list[$io_type][$io_id]['price']) ? $opt_list[$io_type][$io_id]['price'] : 0;
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
$it_price = get_price($it);
@ -250,6 +252,8 @@ if ($nc_sock) {
fwrite($nc_sock, "\r\n");
fwrite($nc_sock, $query."\r\n");
fwrite($nc_sock, "\r\n");
$headers = $bodys = '';
// get header
while(!feof($nc_sock)) {
@ -283,5 +287,4 @@ if ($nc_sock) {
}
if($resultCode == 200)
die(json_encode(array('error'=>'', 'ORDER_ID'=>$orderId, 'SHOP_ID'=>$default['de_naverpay_mid'], 'TOTAL_PRICE'=>$totalPrice)));
?>
die(json_encode(array('error'=>'', 'ORDER_ID'=>$orderId, 'SHOP_ID'=>$default['de_naverpay_mid'], 'TOTAL_PRICE'=>$totalPrice)));

Some files were not shown because too many files have changed in this diff Show More