RSS 보이기 사용
diff --git a/adm/board_form_update.php b/adm/board_form_update.php
index bea127247..79a882870 100644
--- a/adm/board_form_update.php
+++ b/adm/board_form_update.php
@@ -114,6 +114,7 @@ $sql_common = " gr_id = '{$gr_id}',
bo_use_file_content = '{$_POST['bo_use_file_content']}',
bo_use_secret = '{$_POST['bo_use_secret']}',
bo_use_dhtml_editor = '{$_POST['bo_use_dhtml_editor']}',
+ bo_select_editor = '{$_POST['bo_select_editor']}',
bo_use_rss_view = '{$_POST['bo_use_rss_view']}',
bo_use_good = '{$_POST['bo_use_good']}',
bo_use_nogood = '{$_POST['bo_use_nogood']}',
@@ -301,6 +302,7 @@ if (is_checked('chk_grp_use_sideview')) $grp_fields .= " , bo_use_sidevi
if (is_checked('chk_grp_use_file_content')) $grp_fields .= " , bo_use_file_content = '{$bo_use_file_content}' ";
if (is_checked('chk_grp_use_secret')) $grp_fields .= " , bo_use_secret = '{$bo_use_secret}' ";
if (is_checked('chk_grp_use_dhtml_editor')) $grp_fields .= " , bo_use_dhtml_editor = '{$bo_use_dhtml_editor}' ";
+if (is_checked('chk_grp_select_editor')) $grp_fields .= " , bo_select_editor = '{$bo_select_editor}' ";
if (is_checked('chk_grp_use_rss_view')) $grp_fields .= " , bo_use_rss_view = '{$bo_use_rss_view}' ";
if (is_checked('chk_grp_use_good')) $grp_fields .= " , bo_use_good = '{$bo_use_good}' ";
if (is_checked('chk_grp_use_nogood')) $grp_fields .= " , bo_use_nogood = '{$bo_use_nogood}' ";
@@ -390,6 +392,7 @@ if (is_checked('chk_all_use_sideview')) $all_fields .= " , bo_use_sidevi
if (is_checked('chk_all_use_file_content')) $all_fields .= " , bo_use_file_content = '{$bo_use_file_content}' ";
if (is_checked('chk_all_use_secret')) $all_fields .= " , bo_use_secret = '{$bo_use_secret}' ";
if (is_checked('chk_all_use_dhtml_editor')) $all_fields .= " , bo_use_dhtml_editor = '{$bo_use_dhtml_editor}' ";
+if (is_checked('chk_all_select_editor')) $all_fields .= " , bo_select_editor = '{$bo_select_editor}' ";
if (is_checked('chk_all_use_rss_view')) $all_fields .= " , bo_use_rss_view = '{$bo_use_rss_view}' ";
if (is_checked('chk_all_use_good')) $all_fields .= " , bo_use_good = '{$bo_use_good}' ";
if (is_checked('chk_all_use_nogood')) $all_fields .= " , bo_use_nogood = '{$bo_use_nogood}' ";
diff --git a/adm/css/admin.css b/adm/css/admin.css
index 04fc49593..ac5bd3350 100644
--- a/adm/css/admin.css
+++ b/adm/css/admin.css
@@ -198,12 +198,14 @@ a.btn_submit{background:#ff4081;color:#fff}
.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;border:0;border-radius:5px;padding:0 10px}
a.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;line-height:33px;border-radius:5px;padding:0 10px;text-decoration:none !important}
.btn_ov01{display:inline-block;line-height:30px;height:30px;font-size:0.92em;vertical-align:top}
-.btn_ov01:after{display:block;visibility:hidden;clear :both;content:""}
.btn_ov01 .ov_txt{float:left;background:#9eacc6;color:#fff;border-radius:5px 0 0 5px;padding:0 5px}
.btn_ov01 .ov_num{float:left;background:#ededed;color:#666;border-radius:0 5px 5px 0;padding:0 5px}
a.btn_ov02,a.ov_listall{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#565e8c;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px }
a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
+.local_ov01.local_ov [data-tooltip-text]:hover {position:relative}
+.local_ov01.local_ov [data-tooltip-text]:hover:after{line-height:20px;background-color:#000;background-color:rgba(0,0,0,0.8);-webkit-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-moz-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;color:#FFF;font-size:11px;content:attr(data-tooltip-text);white-space: pre;margin-bottom:10px;top:130%;left:0;padding:7px 12px;position:absolute;max-width:500px;word-wrap:break-word;z-index:9999}
+
/*form*/
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
.frm_input{height:35px;line-height:32px;border:1px solid #d5d5d5;}
diff --git a/adm/img/svc_btn_02.jpg b/adm/img/svc_btn_02.jpg
index c41ced6dd..9bc06843e 100644
Binary files a/adm/img/svc_btn_02.jpg and b/adm/img/svc_btn_02.jpg differ
diff --git a/adm/member_list.php b/adm/member_list.php
index be3aa7990..e8bcf4611 100644
--- a/adm/member_list.php
+++ b/adm/member_list.php
@@ -70,8 +70,8 @@ $colspan = 16;
-
+ if (strstr($default['de_taxsave_types'], 'account')) {
+ $account_checked = 'checked="checked"';
+ }
+ if (strstr($default['de_taxsave_types'], 'vbank')) {
+ $vbank_checked = 'checked="checked"';
+ }
+ if (strstr($default['de_taxsave_types'], 'transfer')) {
+ $transfer_checked = 'checked="checked"';
+ }
+ ?>
KG이니시스 상점아이디
- KG이니시스 서비스신청하기
+ KG이니시스 신청하기
@@ -999,7 +1022,7 @@ if(!$default['de_kakaopay_cancelpwd']){
일반결제 의 테스트 사이트코드는 T0000 이며, 에스크로 결제 의 테스트 사이트코드는 T0007 입니다.
- 테스트결제의 상점관리자 로그인 정보는 LG유플러스 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus
+ 테스트결제의 상점관리자 로그인 정보는 토스페이먼츠 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus
일반결제 의 테스트 사이트 mid는 INIpayTest 이며, 에스크로 결제 의 테스트 사이트 mid는 iniescrow0 입니다.
@@ -1672,67 +1695,73 @@ function fconfig_check(f)
-
- var msg = "",
- pg_msg = "";
+
+ var msg = "",
+ pg_msg = "";
- if( f.de_pg_service.value == "kcp" ){
- if( f.de_kcp_mid.value && f.de_kcp_site_key.value && parseInt(f.de_card_test.value) > 0 ){
- pg_msg = "NHN KCP";
- }
- } else if ( f.de_pg_service.value == "lg" ) {
- if( f.cf_lg_mid.value && f.cf_lg_mert_key.value && parseInt(f.de_card_test.value) > 0 ){
- pg_msg = "LG유플러스";
- }
- } else if ( f.de_pg_service.value == "inicis" ) {
- if( f.de_inicis_mid.value && f.de_inicis_sign_key.value && parseInt(f.de_card_test.value) > 0 ){
- pg_msg = "KG이니시스";
- }
- }
+ if( f.de_pg_service.value == "kcp" ){
+ if( f.de_kcp_mid.value && f.de_kcp_site_key.value && parseInt(f.de_card_test.value) > 0 ){
+ pg_msg = "NHN KCP";
+ }
+ } else if ( f.de_pg_service.value == "lg" ) {
+ if( f.cf_lg_mid.value && f.cf_lg_mert_key.value && parseInt(f.de_card_test.value) > 0 ){
+ pg_msg = "토스페이먼츠";
+ }
+ } else if ( f.de_pg_service.value == "inicis" ) {
+ if( f.de_inicis_mid.value && f.de_inicis_sign_key.value && parseInt(f.de_card_test.value) > 0 ){
+ pg_msg = "KG이니시스";
+ }
+ }
- if( pg_msg ){
- msg += "(주의!) "+pg_msg+" 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.\n쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.\n실결제로 변경하려면 결제설정 탭 -> 결제 테스트에서 실결제를 선택해 주세요.\n정말로 테스트결제로 설정하시겠습니까?";
- }
+ if( pg_msg ){
+ msg += "(주의!) "+pg_msg+" 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.\n쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.\n실결제로 변경하려면 결제설정 탭 -> 결제 테스트에서 실결제를 선택해 주세요.\n정말로 테스트결제로 설정하시겠습니까?";
+ }
- if( msg ){
- if (confirm(msg)){
- return true;
- } else {
- return false;
- }
- } else {
- return true;
- }
+ if( msg ){
+ if (confirm(msg)){
+ return true;
+ } else {
+ return false;
+ }
+ } else {
+ return true;
+ }
}
$(function() {
- $(document).ready(function () {
+ $(document).ready(function () {
+
+ $("#de_global_nhnkcp_naverpay").on("click", function(e){
+ if ( $(this).prop('checked') ) {
+ $("#de_easy_nhnkcp_naverpay").prop('checked', true);
+ }
+ });
- function hash_goto_scroll(hash=""){
- var $elem = hash ? $("#"+hash) : $('#' + window.location.hash.replace('#', ''));
- if($elem.length) {
+ function hash_goto_scroll(hash=""){
+ var $elem = hash ? $("#"+hash) : $('#' + window.location.hash.replace('#', ''));
+ if($elem.length) {
- var admin_head_height = $("#hd_top").height() + $("#container_title").height() + 30;
+ var admin_head_height = $("#hd_top").height() + $("#container_title").height() + 30;
- $('html, body').animate({
- scrollTop: ($elem.offset().top - admin_head_height) + 'px'
- }, 500, 'swing');
- }
- }
+ $('html, body').animate({
+ scrollTop: ($elem.offset().top - admin_head_height) + 'px'
+ }, 500, 'swing');
+ }
+ }
- hash_goto_scroll();
-
- $(document).on("click", ".pg_test_conf_link", function(e){
- e.preventDefault();
+ hash_goto_scroll();
+
+ $(document).on("click", ".pg_test_conf_link", function(e){
+ e.preventDefault();
- var str_hash = this.href.split("#")[1];
+ var str_hash = this.href.split("#")[1];
- if( str_hash ){
- hash_goto_scroll(str_hash);
- }
- });
- });
+ if( str_hash ){
+ hash_goto_scroll(str_hash);
+ }
+ });
+ });
//$(".pg_info_fld").hide();
$(".pg_vbank_url").hide();
@@ -1853,19 +1882,19 @@ $(function() {
});
});
- $(document).on("change", "#de_taxsave_use", function(e){
- var $val = $(this).val();
-
- if( parseInt($val) > 0 ){
- $("#de_taxsave_types").show();
- } else {
- $("#de_taxsave_types").hide();
- }
- });
-
- // 현금영수증 발급수단 중 무통장입금은 무조건 체크처리
- document.getElementById("de_taxsave_types_account").checked = true;
- document.getElementById("de_taxsave_types_account").disabled = true;
+ $(document).on("change", "#de_taxsave_use", function(e){
+ var $val = $(this).val();
+
+ if( parseInt($val) > 0 ){
+ $("#de_taxsave_types").show();
+ } else {
+ $("#de_taxsave_types").hide();
+ }
+ });
+
+ // 현금영수증 발급수단 중 무통장입금은 무조건 체크처리
+ document.getElementById("de_taxsave_types_account").checked = true;
+ document.getElementById("de_taxsave_types_account").disabled = true;
});
diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php
index 86cc93a42..e271a247d 100644
--- a/adm/shop_admin/configformupdate.php
+++ b/adm/shop_admin/configformupdate.php
@@ -82,6 +82,16 @@ if(isset($_POST['de_taxsave_types_transfer']) && $_POST['de_taxsave_types_transf
$de_taxsave_types .= ',transfer';
}
+// NHN_KCP 간편결제 체크
+$de_easy_pay_services = '';
+if(isset($_POST['de_easy_pays'])){
+ $tmps = array();
+ foreach( (array) $_POST['de_easy_pays'] as $v ){
+ $tmps[] = preg_replace('/[^0-9a-z_\-]/i', '', $v);
+ }
+ $de_easy_pay_services = implode(",", $tmps);
+}
+
//KVE-2019-0689, KVE-2019-0691, KVE-2019-0694
$check_sanitize_keys = array(
'de_admin_company_name', //회사명
@@ -356,6 +366,7 @@ $sql = " update {$g5['g5_shop_default_table']}
de_card_test = '{$de_card_test}',
de_card_use = '{$de_card_use}',
de_easy_pay_use = '{$de_easy_pay_use}',
+ de_easy_pay_services = '{$de_easy_pay_services}',
de_samsung_pay_use = '{$de_samsung_pay_use}',
de_inicis_lpay_use = '{$de_inicis_lpay_use}',
de_inicis_kakaopay_use = '{$de_inicis_kakaopay_use}',
diff --git a/adm/shop_admin/couponzoneformupdate.php b/adm/shop_admin/couponzoneformupdate.php
index 864bccf96..eafbe1d23 100644
--- a/adm/shop_admin/couponzoneformupdate.php
+++ b/adm/shop_admin/couponzoneformupdate.php
@@ -121,7 +121,7 @@ if($w == '') {
$cp = sql_fetch($sql);
if(!$cp['cz_id'])
- alert('쿠폰정보가 존해하지 않습니다.', './couponzonelist.php');
+ alert('쿠폰정보가 존재하지 않습니다.', './couponzonelist.php');
if ($_POST['cp_img_del'] && $cp['cz_file']) {
@unlink(G5_DATA_PATH."/coupon/{$cp['cz_file']}");
diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php
index dd8ba58a4..0cd784a29 100644
--- a/adm/shop_admin/itemformupdate.php
+++ b/adm/shop_admin/itemformupdate.php
@@ -22,6 +22,15 @@ $ca_id = isset($ca_id) ? preg_replace('/[^0-9a-z]/i', '', $ca_id) : '';
$ca_id2 = isset($ca_id2) ? preg_replace('/[^0-9a-z]/i', '', $ca_id2) : '';
$ca_id3 = isset($ca_id3) ? preg_replace('/[^0-9a-z]/i', '', $ca_id3) : '';
+if ($is_admin != 'super') { // 최고관리자가 아니면 체크
+ $sql = "select b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$it_id'";
+ $checks = sql_fetch($sql);
+
+ if( ! $checks['ca_mb_id'] || $checks['ca_mb_id'] !== $member['mb_id'] ){
+ alert("해당 분류의 관리회원이 아닙니다.");
+ }
+}
+
// 파일정보
if($w == "u") {
$sql = " select it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
diff --git a/adm/shop_admin/itemlistupdate.php b/adm/shop_admin/itemlistupdate.php
index 83a6fc6f4..303e3a899 100644
--- a/adm/shop_admin/itemlistupdate.php
+++ b/adm/shop_admin/itemlistupdate.php
@@ -35,6 +35,16 @@ if ($_POST['act_button'] == "선택수정") {
$p_it_use = is_array($_POST['it_use']) ? strip_tags($_POST['it_use'][$k]) : '';
$p_it_soldout = is_array($_POST['it_soldout']) ? strip_tags($_POST['it_soldout'][$k]) : '';
$p_it_order = is_array($_POST['it_order']) ? strip_tags($_POST['it_order'][$k]) : '';
+ $p_it_id = preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k]);
+
+ if ($is_admin != 'super') { // 최고관리자가 아니면 체크
+ $sql = "select a.it_id, b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$p_it_id'";
+ $checks = sql_fetch($sql);
+
+ if( ! $checks['ca_mb_id'] || $checks['ca_mb_id'] !== $member['mb_id'] ){
+ continue;
+ }
+ }
$sql = "update {$g5['g5_shop_item_table']}
set ca_id = '".sql_real_escape_string($p_ca_id)."',
@@ -50,11 +60,11 @@ if ($_POST['act_button'] == "선택수정") {
it_soldout = '".sql_real_escape_string($p_it_soldout)."',
it_order = '".sql_real_escape_string($p_it_order)."',
it_update_time = '".G5_TIME_YMDHIS."'
- where it_id = '".preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k])."' ";
+ where it_id = '".$p_it_id."' ";
sql_query($sql);
- if( function_exists('shop_seo_title_update') ) shop_seo_title_update(preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k]), true);
+ if( function_exists('shop_seo_title_update') ) shop_seo_title_update($p_it_id, true);
}
} else if ($_POST['act_button'] == "선택삭제") {
diff --git a/adm/shop_admin/orderform.php b/adm/shop_admin/orderform.php
index 20ad39935..ec2a598e3 100644
--- a/adm/shop_admin/orderform.php
+++ b/adm/shop_admin/orderform.php
@@ -312,23 +312,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
// 결제방법
$s_receipt_way = check_pay_name_replace($od['od_settle_case'], $od);
- if($od['od_settle_case'] == '간편결제') {
- switch($od['od_pg']) {
- case 'lg':
- $s_receipt_way = 'PAYNOW';
- break;
- case 'inicis':
- $s_receipt_way = 'KPAY';
- break;
- case 'kcp':
- $s_receipt_way = 'PAYCO';
- break;
- default:
- $s_receipt_way = check_pay_name_replace($row['od_settle_case'], $od);
- break;
- }
- }
-
if ($od['od_receipt_point'] > 0)
$s_receipt_way .= "+포인트";
?>
diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php
index 5b5ad44e4..d1f179860 100644
--- a/adm/shop_admin/orderlist.php
+++ b/adm/shop_admin/orderlist.php
@@ -221,7 +221,7 @@ if( function_exists('pg_setting_check') ){
>
신용카드
>
- PG간편결제
+ PG간편결제
>
KAKAOPAY
@@ -305,24 +305,6 @@ if( function_exists('pg_setting_check') ){
{
$s_receipt_way = check_pay_name_replace($row['od_settle_case'], $row);
$s_br = ' ';
-
- // 간편결제
- if($row['od_settle_case'] == '간편결제') {
- switch($row['od_pg']) {
- case 'lg':
- $s_receipt_way = 'PAYNOW';
- break;
- case 'inicis':
- $s_receipt_way = 'KPAY';
- break;
- case 'kcp':
- $s_receipt_way = 'PAYCO';
- break;
- default:
- $s_receipt_way = check_pay_name_replace($row['od_settle_case'], $row);
- break;
- }
- }
}
else
{
@@ -544,12 +526,14 @@ $(function(){
});
// 상품리스트 닫기
- $(".orderitemlist-x").on("click", function() {
+ $("#sodr_list").on("click", "#orderitemlist-x", function(e) {
$("#orderitemlist").remove();
});
- $("body").on("click", function() {
- $("#orderitemlist").remove();
+ $("body").on("click", function(e) {
+ if ($(e.target).closest("#orderitemlist").length === 0){
+ $("#orderitemlist").remove();
+ }
});
// 엑셀배송처리창
diff --git a/adm/shop_admin/sale1date.php b/adm/shop_admin/sale1date.php
index 765bcd288..7acd44ab2 100644
--- a/adm/shop_admin/sale1date.php
+++ b/adm/shop_admin/sale1date.php
@@ -27,6 +27,7 @@ function print_line($save)
+
@@ -65,6 +66,7 @@ $result = sql_query($sql);
가상계좌
계좌이체
카드입금
+ 간편결제
휴대폰
포인트입금
주문취소
@@ -119,10 +121,15 @@ $result = sql_query($sql);
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint'] += $row['od_receipt_point'];
$tot['misu'] += $row['od_misu'];
+
+ if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
+ $save['receipteasy'] += $row['od_receipt_price'];
+ $tot['receipteasy'] += $row['od_receipt_price'];
+ }
}
if ($i == 0) {
- echo '자료가 없습니다. ';
+ echo '자료가 없습니다. ';
} else {
print_line($save);
}
@@ -138,6 +145,7 @@ $result = sql_query($sql);
+
diff --git a/adm/shop_admin/sale1month.php b/adm/shop_admin/sale1month.php
index b7adb8fad..b3eddc508 100644
--- a/adm/shop_admin/sale1month.php
+++ b/adm/shop_admin/sale1month.php
@@ -27,6 +27,7 @@ function print_line($save)
+
@@ -66,6 +67,7 @@ $result = sql_query($sql);
가상계좌
계좌이체
카드입금
+ 간편결제
휴대폰
포인트입금
주문취소
@@ -120,6 +122,11 @@ $result = sql_query($sql);
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint'] += $row['od_receipt_point'];
$tot['misu'] += $row['od_misu'];
+
+ if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
+ $save['receipteasy'] += $row['od_receipt_price'];
+ $tot['receipteasy'] += $row['od_receipt_price'];
+ }
}
if ($i == 0) {
@@ -139,6 +146,7 @@ $result = sql_query($sql);
+
diff --git a/adm/shop_admin/sale1today.php b/adm/shop_admin/sale1today.php
index 73726ef6a..1af2b4b31 100644
--- a/adm/shop_admin/sale1today.php
+++ b/adm/shop_admin/sale1today.php
@@ -41,6 +41,7 @@ $result = sql_query($sql);
가상계좌
계좌이체
카드입금
+ 간편결제
휴대폰
포인트입금
주문취소
@@ -58,7 +59,7 @@ $result = sql_query($sql);
$href = '';
}
- $receipt_bank = $receipt_card = $receipt_vbank = $receipt_iche = $receipt_hp = 0;
+ $receipt_bank = $receipt_card = $receipt_vbank = $receipt_iche = $receipt_easy = $receipt_hp = 0;
if($row['od_settle_case'] == '무통장')
$receipt_bank = $row['od_receipt_price'];
if($row['od_settle_case'] == '가상계좌')
@@ -69,7 +70,9 @@ $result = sql_query($sql);
$receipt_hp = $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$receipt_card = $row['od_receipt_price'];
-
+ if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
+ $receipt_easy = $row['od_receipt_price'];
+ }
?>
@@ -80,6 +83,7 @@ $result = sql_query($sql);
+
@@ -93,13 +97,14 @@ $result = sql_query($sql);
$tot['receipt_vbank'] += $receipt_vbank;
$tot['receipt_iche'] += $receipt_iche;
$tot['receipt_card'] += $receipt_card;
+ $tot['receipt_easy'] += $receipt_easy;
$tot['receipt_hp'] += $receipt_hp;
$tot['receipt_point'] += $row['od_receipt_point'];
$tot['misu'] += $row['od_misu'];
}
if ($i == 0) {
- echo ' 자료가 없습니다 ';
+ echo '자료가 없습니다 ';
}
?>
@@ -112,6 +117,7 @@ $result = sql_query($sql);
+
diff --git a/adm/shop_admin/sale1year.php b/adm/shop_admin/sale1year.php
index 549754d6b..8e749c035 100644
--- a/adm/shop_admin/sale1year.php
+++ b/adm/shop_admin/sale1year.php
@@ -22,6 +22,7 @@ function print_line($save)
+
@@ -60,6 +61,7 @@ $result = sql_query($sql);
가상계좌
계좌이체
카드입금
+ 간편결제
휴대폰
포인트입금
주문취소
@@ -114,6 +116,11 @@ $result = sql_query($sql);
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint'] += $row['od_receipt_point'];
$tot['misu'] += $row['od_misu'];
+
+ if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
+ $save['receipteasy'] += $row['od_receipt_price'];
+ $tot['receipteasy'] += $row['od_receipt_price'];
+ }
}
if ($i == 0) {
@@ -133,6 +140,7 @@ $result = sql_query($sql);
+
diff --git a/adm/sms_admin/num_book.php b/adm/sms_admin/num_book.php
index f4338c307..d6a658567 100644
--- a/adm/sms_admin/num_book.php
+++ b/adm/sms_admin/num_book.php
@@ -13,12 +13,12 @@ $g5['title'] = "휴대폰번호 관리";
if ($page < 1) $page = 1;
-$bg_no = isset($bg_no) ? (int) $bg_no : 0;
+$bg_no = isset($bg_no) ? preg_replace('/[^0-9]/i', '', $bg_no) : '';
$st = isset($st) ? preg_replace('/[^a-z0-9]/i', '', $st) : '';
$sql_korean = $sql_group = $sql_search = $sql_no_hp = '';
-if (is_numeric($bg_no))
+if (is_numeric($bg_no) && $bg_no)
$sql_group = " and bg_no='$bg_no' ";
else
$sql_group = "";
diff --git a/bbs/download.php b/bbs/download.php
index 2b2aa1f2b..60e0a7dc2 100644
--- a/bbs/download.php
+++ b/bbs/download.php
@@ -100,7 +100,8 @@ if(preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $file['bf_source'])){
}
*/
-$original = urlencode($file['bf_source']);
+//$original = urlencode($file['bf_source']);
+$original = rawurlencode($file['bf_source']);
@include_once($board_skin_path.'/download.tail.skin.php');
@@ -114,7 +115,8 @@ if(preg_match("/msie/i", $_SERVER['HTTP_USER_AGENT']) && preg_match("/5\.5/", $_
} else if (preg_match("/Firefox/i", $_SERVER['HTTP_USER_AGENT'])){
header("content-type: file/unknown");
header("content-length: ".filesize($filepath));
- header("content-disposition: attachment; filename=\"".basename($file['bf_source'])."\"");
+ //header("content-disposition: attachment; filename=\"".basename($file['bf_source'])."\"");
+ header("content-disposition: attachment; filename=\"".$original."\"");
header("content-description: php generated data");
} else {
header("content-type: file/unknown");
diff --git a/bbs/memo_form_update.php b/bbs/memo_form_update.php
index c0244eee0..f95526e76 100644
--- a/bbs/memo_form_update.php
+++ b/bbs/memo_form_update.php
@@ -20,7 +20,7 @@ run_event('memo_form_update_before', $recv_list);
for ($i=0; $i ';
+ $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?fn='.urlencode('/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i]), '/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i], '', '', '', '');
+ $view['img_file'][] = ' ';
$view['img_count']++;
continue;
}
diff --git a/bbs/rss.php b/bbs/rss.php
index 6042fc6dd..9d6def1d0 100644
--- a/bbs/rss.php
+++ b/bbs/rss.php
@@ -70,7 +70,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
-
-
+
]]>
set('Filter.Custom', array(new HTMLPurifier_Filter_Iframevideo()));
$purifier = new HTMLPurifier($config);
- return $purifier->purify($html);
+ return run_replace('html_purifier_result', $purifier->purify($html), $purifier, $html);
}
@@ -773,7 +773,8 @@ function get_member($mb_id, $fields='*', $is_cache=false)
{
global $g5;
- $mb_id = preg_replace("/[^0-9a-z_]+/i", "", $mb_id);
+ if (preg_match("/[^0-9a-z_]+/i", $mb_id))
+ return array();
static $cache = array();
@@ -1402,7 +1403,8 @@ function view_file_link($file, $width, $height, $content='')
$attr = '';
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) {
- $img = '';
+ $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($file), $file, $board['bo_table'], $width, $height, $content);
+ $img = ' ';
$img .= ' ';
$img .= ' ';
@@ -2317,6 +2319,8 @@ function delete_editor_thumbnail($contents)
{
if(!$contents)
return;
+
+ run_event('delete_editor_thumbnail_before', $contents);
// $contents 중 img 태그 추출
$matchs = get_editor_image($contents);
@@ -2337,6 +2341,8 @@ function delete_editor_thumbnail($contents)
unlink($filename);
}
}
+
+ run_event('delete_editor_thumbnail_after', $contents, $matchs);
}
// 1:1문의 첨부파일 썸네일 삭제
diff --git a/lib/icode.sms.lib.php b/lib/icode.sms.lib.php
index 6201f0081..a2a79a449 100644
--- a/lib/icode.sms.lib.php
+++ b/lib/icode.sms.lib.php
@@ -237,6 +237,7 @@ class SMS {
fclose($fp);
}
$this->Data=array();
+ return true;
}
}
?>
\ No newline at end of file
diff --git a/lib/register.lib.php b/lib/register.lib.php
index 49afda6fa..254f08779 100644
--- a/lib/register.lib.php
+++ b/lib/register.lib.php
@@ -86,7 +86,7 @@ function exist_mb_nick($reg_mb_nick, $reg_mb_id)
function reserve_mb_nick($reg_mb_nick)
{
global $config;
- if (preg_match("/[\,]?{$reg_mb_nick}/i", $config['cf_prohibit_id']))
+ if (preg_match("/[\,]?".preg_quote($reg_mb_nick)."/i", $config['cf_prohibit_id']))
return "이미 예약된 단어로 사용할 수 없는 닉네임 입니다.";
else
return "";
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index 66ac31c6f..32cb08716 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -2287,6 +2287,20 @@ function get_shop_order_data($od_id, $type='item')
return $row;
}
+function is_use_easypay($payname=''){
+ global $default;
+
+ $de_easy_pay_service_array = (isset($default['de_easy_pay_services']) && $default['de_easy_pay_services']) ? explode(',', $default['de_easy_pay_services']) : array();
+
+ if($payname === 'global_nhnkcp' && $de_easy_pay_service_array && ('kcp' !== $default['de_pg_service'])){ // NHN_KCP 외 타PG 사용시
+ if( in_array('global_nhnkcp_naverpay', $de_easy_pay_service_array) && ($default['de_card_test'] || (!$default['de_card_test'] && $default['de_kcp_mid'] && $default['de_kcp_site_key']) ) ){
+ return true;
+ }
+ }
+
+ return false;
+}
+
function exists_inicis_shop_order($oid, $pp=array(), $od_time='', $od_ip='')
{
@@ -2613,7 +2627,7 @@ function get_item_images_info($it, $size=array(), $image_width, $image_height){
}
//결제방식 이름을 체크하여 치환 대상인 문자열은 따로 리턴합니다.
-function check_pay_name_replace($payname, $od=array()){
+function check_pay_name_replace($payname, $od=array(), $is_client=0){
if( $payname === 'lpay' ){
return 'L.pay';
@@ -2623,6 +2637,23 @@ function check_pay_name_replace($payname, $od=array()){
if(isset($od['od_bank_account']) && $od['od_bank_account'] === '카카오머니'){
return $payname.'(카카오페이)';
}
+ } else if($payname === '간편결제'){
+
+ $add_str = $is_client ? '('.$payname.')' : '';
+
+ if( isset($od['od_pg']) && $od['od_pg'] === 'lg' ){
+ return 'PAYNOW';
+ } else if( isset($od['od_pg']) && $od['od_pg'] === 'inicis' ){
+ return 'KPAY';
+ } else if( isset($od['od_pg']) && $od['od_pg'] === 'kcp' ){
+ if( isset($od['od_other_pay_type']) && $od['od_other_pay_type'] === 'OT16' ){
+ return '네이버페이_NHNKCP'.$add_str;
+ } else if( isset($od['od_other_pay_type']) && ($od['od_other_pay_type'] === 'OT13' || $od['od_other_pay_type'] === 'NHNKCP_KAKAOMONEY') ){
+ return '카카오페이_NHNKCP'.$add_str;
+ }
+
+ return 'PAYCO'.$add_str;
+ }
}
return $payname;
diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php
index 47e296801..5d190f507 100644
--- a/lib/thumbnail.lib.php
+++ b/lib/thumbnail.lib.php
@@ -110,6 +110,8 @@ function get_view_thumbnail($contents, $thumb_width=0)
for($i=0; $i\'\"]+[^>\'\"]+)/i", $img, $m);
$src = $m[1];
preg_match("/style=[\"\']?([^\"\'>]+)/i", $img, $m);
@@ -161,16 +163,22 @@ function get_view_thumbnail($contents, $thumb_width=0)
}
}
- // 원본 width가 thumb_width보다 작다면
- if($size[0] <= $thumb_width)
- continue;
-
// Animated GIF 체크
$is_animated = false;
if($size[2] == 1) {
$is_animated = is_animated_gif($srcfile);
+
+ if($replace_content = run_replace('thumbnail_is_animated_gif_content', '', $contents, $srcfile, $is_animated, $img_tag, $data_path, $size)){
+
+ $contents = $replace_content;
+ continue;
+ }
}
+ // 원본 width가 thumb_width보다 작다면
+ if($size[0] <= $thumb_width)
+ continue;
+
// 썸네일 높이
$thumb_height = round(($thumb_width * $size[1]) / $size[0]);
$filename = basename($srcfile);
@@ -190,12 +198,12 @@ function get_view_thumbnail($contents, $thumb_width=0)
} else {
$thumb_tag = ' ';
}
-
+
// $img_tag에 editor 경로가 있으면 원본보기 링크 추가
- $img_tag = $matches[0][$i];
if(strpos($img_tag, G5_DATA_DIR.'/'.G5_EDITOR_DIR) && preg_match("/\.({$config['cf_image_extension']})$/i", $filename)) {
$imgurl = str_replace(G5_URL, "", $src);
- $thumb_tag = ''.$thumb_tag.' ';
+ $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?fn='.urlencode($imgurl), $filename, '', $width, $height, $alt);
+ $thumb_tag = ''.$thumb_tag.' ';
}
$contents = str_replace($img_tag, $thumb_tag, $contents);
@@ -687,8 +695,19 @@ and the roundoff errors in the Gaussian blur process, are welcome.
}
function is_animated_gif($filename) {
- if(!($fh = @fopen($filename, 'rb')))
+
+ static $cache = array();
+ $key = md5($filename);
+
+ if( isset($cache[$key]) ){
+ return $cache[$key];
+ }
+
+ if(!($fh = @fopen($filename, 'rb'))){
+ $cache[$key] = false;
return false;
+ }
+
$count = 0;
// 출처 : http://www.php.net/manual/en/function.imagecreatefromgif.php#104473
// an animated gif contains multiple "frames", with each frame having a
@@ -705,6 +724,11 @@ function is_animated_gif($filename) {
}
fclose($fh);
- return $count > 1;
+
+ $cache[$key] = ($count > 1) ? true : false;
+
+ run_event('is_animated_gif_after', $filename, $cache[$key]);
+
+ return $cache[$key];
}
?>
\ No newline at end of file
diff --git a/mobile/shop/kcp/easypay_form.1.php b/mobile/shop/kcp/easypay_form.1.php
new file mode 100644
index 000000000..27d013d95
--- /dev/null
+++ b/mobile/shop/kcp/easypay_form.1.php
@@ -0,0 +1,100 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/kcp/easypay_form.2.php b/mobile/shop/kcp/easypay_form.2.php
new file mode 100644
index 000000000..62bae811c
--- /dev/null
+++ b/mobile/shop/kcp/easypay_form.2.php
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/kcp/global_m_nhn_kcp.php b/mobile/shop/kcp/global_m_nhn_kcp.php
new file mode 100644
index 000000000..0c258a89a
--- /dev/null
+++ b/mobile/shop/kcp/global_m_nhn_kcp.php
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/mobile/shop/kcp/m_order.script.php b/mobile/shop/kcp/m_order.script.php
new file mode 100644
index 000000000..bfa82f97e
--- /dev/null
+++ b/mobile/shop/kcp/m_order.script.php
@@ -0,0 +1,83 @@
+
+
\ No newline at end of file
diff --git a/mobile/shop/kcp/order_approval_form.php b/mobile/shop/kcp/order_approval_form.php
index 2dbe2e67e..cee60fafc 100644
--- a/mobile/shop/kcp/order_approval_form.php
+++ b/mobile/shop/kcp/order_approval_form.php
@@ -1,5 +1,10 @@
';
?>
+
+
+
+
+
+
+
+
@@ -278,7 +300,7 @@ if($enc_data != '' && $enc_info != '' && $tran_cd != '') {
-
+
diff --git a/mobile/shop/kcp/orderform.1.php b/mobile/shop/kcp/orderform.1.php
index 77457e6c1..d1eecd557 100644
--- a/mobile/shop/kcp/orderform.1.php
+++ b/mobile/shop/kcp/orderform.1.php
@@ -18,8 +18,12 @@ if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'
+
+
+
+
diff --git a/mobile/shop/kcp/pp_ax_hub.php b/mobile/shop/kcp/pp_ax_hub.php
index 84fa2507d..9ae59ed55 100644
--- a/mobile/shop/kcp/pp_ax_hub.php
+++ b/mobile/shop/kcp/pp_ax_hub.php
@@ -30,10 +30,10 @@
/* = 01. 지불 요청 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
- $tran_cd = $_POST[ "tran_cd" ]; // 처리 종류
+ $tran_cd = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "tran_cd" ]); // 처리 종류
/* = -------------------------------------------------------------------------- = */
$cust_ip = getenv( "REMOTE_ADDR" ); // 요청 IP
- $ordr_idxx = $_POST[ "ordr_idxx" ]; // 쇼핑몰 주문번호
+ $ordr_idxx = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "ordr_idxx" ]); // 쇼핑몰 주문번호
$good_name = addslashes($_POST[ "good_name" ]); // 상품명
$good_mny = $_POST[ "good_mny" ]; // 결제 총금액
/* = -------------------------------------------------------------------------- = */
@@ -201,6 +201,16 @@
$app_no = $c_PayPlus->mf_get_res_data( "app_no" ); // 승인 번호
$noinf = $c_PayPlus->mf_get_res_data( "noinf" ); // 무이자 여부 ( 'Y' : 무이자 )
$quota = $c_PayPlus->mf_get_res_data( "quota" ); // 할부 개월 수
+ $od_other_pay_type = $c_PayPlus->mf_get_res_data( "card_other_pay_type" ); // 간편결제유형
+
+ $kcp_pay_method = $c_PayPlus->mf_get_res_data( "pay_method" ); // 카카오페이 결제수단
+ // 카드 코드는 PACA, 카카오머니 코드는 PAKM
+
+ if( $kcp_pay_method == "PAKM" ){ // 카카오머니
+ $card_mny = $kakaomny_mny = $c_PayPlus->mf_get_res_data( "kakaomny_mny" );
+ $app_time = $app_kakaomny_time = $c_PayPlus->mf_get_res_data( "app_kakaomny_time" );
+ $od_other_pay_type = 'NHNKCP_KAKAOMONEY';
+ }
}
/* = -------------------------------------------------------------------------- = */
diff --git a/mobile/shop/lg/xpay_approval.php b/mobile/shop/lg/xpay_approval.php
index 028219f30..1e5bbe9d8 100644
--- a/mobile/shop/lg/xpay_approval.php
+++ b/mobile/shop/lg/xpay_approval.php
@@ -131,7 +131,7 @@ $payReqMap['LGD_PAYKEY'] = "";
$_SESSION['PAYREQ_MAP'] = $payReqMap;
-$g5['title'] = 'LG 유플러스 eCredit서비스 결제';
+$g5['title'] = '토스페이먼츠 eCredit서비스 결제';
$g5['body_script'] = ' onload="launchCrossPlatform();"';
include_once(G5_PATH.'/head.sub.php');
?>
diff --git a/mobile/shop/orderform.sub.php b/mobile/shop/orderform.sub.php
index d4168dc1a..b5159ea96 100644
--- a/mobile/shop/orderform.sub.php
+++ b/mobile/shop/orderform.sub.php
@@ -8,6 +8,10 @@ if( is_inicis_simple_pay() ){ //이니시스 삼성페이 또는 Lpay 사용
require_once(G5_MSHOP_PATH.'/samsungpay/incSamsungpayCommon.php');
}
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_MSHOP_PATH.'/kcp/global_m_nhn_kcp.php');
+}
+
$tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정(갤럭시탭,아이패드 - 1.85, 스마트폰 - 1.0)
// 개인결제번호제거
@@ -252,6 +256,10 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
if( is_inicis_simple_pay() ){ //이니시스 삼성페이 또는 lpay 사용시
require_once(G5_MSHOP_PATH.'/samsungpay/orderform.1.php');
}
+
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_MSHOP_PATH.'/kcp/easypay_form.1.php');
+}
?>
@@ -586,6 +594,8 @@ if($is_kakaopay_use) {
echo ' 신용카드 '.PHP_EOL;
$checked = '';
}
+
+ $easypay_prints = array();
// PG 간편결제
if($default['de_easy_pay_use']) {
@@ -602,8 +612,30 @@ if($is_kakaopay_use) {
}
$multi_settle++;
- echo ' '.$pg_easy_pay_name.' '.PHP_EOL;
- $checked = '';
+
+ if($default['de_pg_service'] === 'kcp' && isset($default['de_easy_pay_services']) && $default['de_easy_pay_services']){
+ $de_easy_pay_service_array = explode(',', $default['de_easy_pay_services']);
+ if( in_array('nhnkcp_payco', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_payco'] = ' PAYCO ';
+ }
+ if( in_array('nhnkcp_naverpay', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_naverpay'] = ' 네이버페이 ';
+ }
+ if( in_array('nhnkcp_kakaopay', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_kakaopay'] = ' 카카오페이 ';
+ }
+ } else {
+ $easypay_prints[strtolower($pg_easy_pay_name)] = ' '.$pg_easy_pay_name.' ';
+ }
+ }
+
+ if( ! isset($easypay_prints['nhnkcp_naverpay']) && function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') ){
+ $easypay_prints['nhnkcp_naverpay'] = ' 네이버페이 ';
+ }
+
+ if($easypay_prints) {
+ $multi_settle++;
+ echo run_replace('shop_orderform_easypay_buttons', implode(PHP_EOL, $easypay_prints), $easypay_prints, $multi_settle);
}
//이니시스 삼성페이
@@ -696,6 +728,10 @@ if($is_kakaopay_use) {
require_once(G5_MSHOP_PATH.'/samsungpay/orderform.2.php');
}
+ if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_MSHOP_PATH.'/kcp/easypay_form.2.php');
+ }
+
if($is_kakaopay_use) {
require_once(G5_SHOP_PATH.'/kakaopay/orderform.2.php');
}
@@ -730,6 +766,10 @@ if($is_kakaopay_use) {
if( is_inicis_simple_pay() ){ //삼성페이 사용시
require_once(G5_MSHOP_PATH.'/samsungpay/order.script.php');
}
+
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_MSHOP_PATH.'/kcp/m_order.script.php');
+}
?>
+
+
+
+
+
\ No newline at end of file
diff --git a/shop/kcp/global_nhn_kcp_order.script.php b/shop/kcp/global_nhn_kcp_order.script.php
new file mode 100644
index 000000000..9d72cb5b8
--- /dev/null
+++ b/shop/kcp/global_nhn_kcp_order.script.php
@@ -0,0 +1,81 @@
+
+
\ No newline at end of file
diff --git a/shop/kcp/orderform.2.php b/shop/kcp/orderform.2.php
index f9c0fa4f9..d526997ae 100644
--- a/shop/kcp/orderform.2.php
+++ b/shop/kcp/orderform.2.php
@@ -13,6 +13,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+
+
+
diff --git a/shop/kcp/pp_ax_hub.php b/shop/kcp/pp_ax_hub.php
index 246156cac..5cd5ebef5 100644
--- a/shop/kcp/pp_ax_hub.php
+++ b/shop/kcp/pp_ax_hub.php
@@ -40,10 +40,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/* = 01. 지불 요청 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
- $tran_cd = $_POST[ "tran_cd" ]; // 처리 종류
+ $tran_cd = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "tran_cd" ]); // 처리 종류
/* = -------------------------------------------------------------------------- = */
$cust_ip = getenv( "REMOTE_ADDR" ); // 요청 IP
- $ordr_idxx = $_POST[ "ordr_idxx" ]; // 쇼핑몰 주문번호
+ $ordr_idxx = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "ordr_idxx" ]); // 쇼핑몰 주문번호
$good_name = addslashes($_POST[ "good_name"]); // 상품명
$good_mny = $_POST[ "good_mny" ]; // 결제 총금액
/* = -------------------------------------------------------------------------- = */
@@ -269,6 +269,16 @@ if ( $req_tx == "pay" )
$card_bin_type_01 = $c_PayPlus->mf_get_res_data( "card_bin_type_01" ); // 카드구분1
$card_bin_type_02 = $c_PayPlus->mf_get_res_data( "card_bin_type_02" ); // 카드구분2
$card_mny = $c_PayPlus->mf_get_res_data( "card_mny" ); // 카드결제금액
+ $od_other_pay_type = $c_PayPlus->mf_get_res_data( "card_other_pay_type" ); // 간편결제유형
+
+ $kcp_pay_method = $c_PayPlus->mf_get_res_data( "pay_method" ); // 카카오페이 결제수단
+ // 카드 코드는 PACA, 카카오머니 코드는 PAKM
+
+ if( $kcp_pay_method == "PAKM" ){ // 카카오머니
+ $card_mny = $kakaomny_mny = $c_PayPlus->mf_get_res_data( "kakaomny_mny" );
+ $app_time = $app_kakaomny_time = $c_PayPlus->mf_get_res_data( "app_kakaomny_time" );
+ $od_other_pay_type = 'NHNKCP_KAKAOMONEY';
+ }
/* = -------------------------------------------------------------- = */
/* = 05-1.1. 복합결제(포인트+신용카드) 승인 결과 처리 = */
diff --git a/shop/kcp/pp_cli_hub.php b/shop/kcp/pp_cli_hub.php
index b185360c5..e73fcb5d6 100644
--- a/shop/kcp/pp_cli_hub.php
+++ b/shop/kcp/pp_cli_hub.php
@@ -62,7 +62,7 @@ setlocale(LC_CTYPE, 'ko_KR.euc-kr');
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
$trad_time = $_POST[ "trad_time" ]; // 원거래 시각
/* = -------------------------------------------------------------------------- = */
- $ordr_idxx = $_POST[ "ordr_idxx" ]; // 주문 번호
+ $ordr_idxx = preg_replace('/[^0-9A-Za-z_\-\.]/i', '', $_POST[ "ordr_idxx" ]); // 주문 번호
$buyr_name = $_POST[ "buyr_name" ]; // 주문자 이름
$buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호
$buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 E-Mail
@@ -95,6 +95,7 @@ setlocale(LC_CTYPE, 'ko_KR.euc-kr');
$buyr_name = iconv("utf-8", "cp949", $buyr_name);
$good_name = iconv("utf-8", "cp949", $good_name);
+ $tx_cd = '';
/* ============================================================================== */
/* = 02. 인스턴스 생성 및 초기화 = */
diff --git a/shop/lg/taxsave_result.php b/shop/lg/taxsave_result.php
index bbf78d07d..b92033a40 100644
--- a/shop/lg/taxsave_result.php
+++ b/shop/lg/taxsave_result.php
@@ -208,7 +208,7 @@ switch($LGD_PAYTYPE) {
?>
-
현금영수증 - LG유플러스 eCredit
+
현금영수증 - 토스페이먼츠 eCredit
diff --git a/shop/naverpay/naverpay_item.php b/shop/naverpay/naverpay_item.php
index dfde296fe..f63a4890f 100644
--- a/shop/naverpay/naverpay_item.php
+++ b/shop/naverpay/naverpay_item.php
@@ -56,7 +56,7 @@ foreach($itemIds as $it_id) {
?>
-
-
]]>
+]]>
]]>
diff --git a/shop/naverpay/naverpay_order.php b/shop/naverpay/naverpay_order.php
index d96b31cb8..63789889d 100644
--- a/shop/naverpay/naverpay_order.php
+++ b/shop/naverpay/naverpay_order.php
@@ -87,11 +87,11 @@ $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')
- $back_uri = '/cart.php';
+ $back_uri = G5_SHOP_URL.'/cart.php';
else
$back_uri = '';
-define('NAVERPAY_BACK_URL', G5_SHOP_URL.$back_uri);
+define('NAVERPAY_BACK_URL', $back_uri);
for($i=0; $i<$count; $i++) {
$it_id = preg_replace($pattern, '', $_POST['it_id'][$i]);
diff --git a/shop/orderform.sub.php b/shop/orderform.sub.php
index e5f472bc5..e2c70a106 100644
--- a/shop/orderform.sub.php
+++ b/shop/orderform.sub.php
@@ -8,6 +8,10 @@ if( $default['de_inicis_lpay_use'] || $default['de_inicis_kakaopay_use'] ){ //
require_once(G5_SHOP_PATH.'/inicis/lpay_common.php');
}
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_SHOP_PATH.'/kcp/global_nhn_kcp.php');
+}
+
// 결제대행사별 코드 include (스크립트 등)
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
@@ -15,6 +19,10 @@ if( $default['de_inicis_lpay_use'] || $default['de_inicis_kakaopay_use'] ){ //
require_once(G5_SHOP_PATH.'/inicis/lpay_form.1.php');
}
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_SHOP_PATH.'/kcp/global_nhn_kcp_form.1.php');
+}
+
if($is_kakaopay_use) {
require_once(G5_SHOP_PATH.'/kakaopay/orderform.1.php');
}
@@ -605,6 +613,8 @@ if($is_kakaopay_use) {
echo ' 신용카드 '.PHP_EOL;
$checked = '';
}
+
+ $easypay_prints = array();
// PG 간편결제
if($default['de_easy_pay_use']) {
@@ -621,8 +631,31 @@ if($is_kakaopay_use) {
}
$multi_settle++;
- echo ' '.$pg_easy_pay_name.' '.PHP_EOL;
- $checked = '';
+
+ if($default['de_pg_service'] === 'kcp' && isset($default['de_easy_pay_services']) && $default['de_easy_pay_services']){
+ $de_easy_pay_service_array = explode(',', $default['de_easy_pay_services']);
+ if( in_array('nhnkcp_payco', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_payco'] = ' PAYCO ';
+ }
+ if( in_array('nhnkcp_naverpay', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_naverpay'] = ' 네이버페이 ';
+ }
+ if( in_array('nhnkcp_kakaopay', $de_easy_pay_service_array) ){
+ $easypay_prints['nhnkcp_kakaopay'] = ' 카카오페이 ';
+ }
+ } else {
+ $easypay_prints[strtolower($pg_easy_pay_name)] = ' '.$pg_easy_pay_name.' ';
+ }
+
+ }
+
+ if( ! isset($easypay_prints['nhnkcp_naverpay']) && function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') ){
+ $easypay_prints['nhnkcp_naverpay'] = ' 네이버페이 ';
+ }
+
+ if($easypay_prints) {
+ $multi_settle++;
+ echo run_replace('shop_orderform_easypay_buttons', implode(PHP_EOL, $easypay_prints), $easypay_prints, $multi_settle);
}
//이니시스 Lpay
@@ -734,6 +767,9 @@ if($is_kakaopay_use) {
if( $default['de_inicis_lpay_use'] || $default['de_inicis_kakaopay_use'] ){ //이니시스 L.pay 또는 이니시스 카카오페이 사용시
require_once(G5_SHOP_PATH.'/inicis/lpay_order.script.php');
}
+if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 타 PG 사용시 NHN KCP 네이버페이 사용이 설정되어 있다면
+ require_once(G5_SHOP_PATH.'/kcp/global_nhn_kcp_order.script.php');
+}
?>