php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$co['co_id'])
|
||||
if (! (isset($co['co_id']) && $co['co_id']))
|
||||
alert('등록된 내용이 없습니다.');
|
||||
|
||||
$g5['title'] = $co['co_subject'];
|
||||
@ -11,35 +11,35 @@ $co_content = $co['co_mobile_content'] ? $co['co_mobile_content'] : $co['co_cont
|
||||
$str = conv_content($co_content, $co['co_html'], $co['co_tag_filter_use']);
|
||||
|
||||
// $src 를 $dst 로 변환
|
||||
unset($src);
|
||||
unset($dst);
|
||||
$src = $dst = array();
|
||||
$src[] = "/{{쇼핑몰명}}|{{홈페이지제목}}/";
|
||||
$dst[] = $config['cf_title'];
|
||||
$src[] = "/{{회사명}}|{{상호}}/";
|
||||
$dst[] = $default['de_admin_company_name'];
|
||||
$src[] = "/{{대표자명}}/";
|
||||
$dst[] = $default['de_admin_company_owner'];
|
||||
$src[] = "/{{사업자등록번호}}/";
|
||||
$dst[] = $default['de_admin_company_saupja_no'];
|
||||
$src[] = "/{{대표전화번호}}/";
|
||||
$dst[] = $default['de_admin_company_tel'];
|
||||
$src[] = "/{{팩스번호}}/";
|
||||
$dst[] = $default['de_admin_company_fax'];
|
||||
$src[] = "/{{통신판매업신고번호}}/";
|
||||
$dst[] = $default['de_admin_company_tongsin_no'];
|
||||
$src[] = "/{{사업장우편번호}}/";
|
||||
$dst[] = $default['de_admin_company_zip'];
|
||||
$src[] = "/{{사업장주소}}/";
|
||||
$dst[] = $default['de_admin_company_addr'];
|
||||
$src[] = "/{{운영자명}}|{{관리자명}}/";
|
||||
$dst[] = $default['de_admin_name'];
|
||||
$src[] = "/{{운영자e-mail}}|{{관리자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_email'];
|
||||
$src[] = "/{{정보관리책임자명}}/";
|
||||
$dst[] = $default['de_admin_info_name'];
|
||||
$src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_info_email'];
|
||||
|
||||
if(isset($default) && isset($default['de_admin_company_name'])){
|
||||
$src[] = "/{{회사명}}|{{상호}}/";
|
||||
$dst[] = $default['de_admin_company_name'];
|
||||
$src[] = "/{{대표자명}}/";
|
||||
$dst[] = $default['de_admin_company_owner'];
|
||||
$src[] = "/{{사업자등록번호}}/";
|
||||
$dst[] = $default['de_admin_company_saupja_no'];
|
||||
$src[] = "/{{대표전화번호}}/";
|
||||
$dst[] = $default['de_admin_company_tel'];
|
||||
$src[] = "/{{팩스번호}}/";
|
||||
$dst[] = $default['de_admin_company_fax'];
|
||||
$src[] = "/{{통신판매업신고번호}}/";
|
||||
$dst[] = $default['de_admin_company_tongsin_no'];
|
||||
$src[] = "/{{사업장우편번호}}/";
|
||||
$dst[] = $default['de_admin_company_zip'];
|
||||
$src[] = "/{{사업장주소}}/";
|
||||
$dst[] = $default['de_admin_company_addr'];
|
||||
$src[] = "/{{운영자명}}|{{관리자명}}/";
|
||||
$dst[] = $default['de_admin_name'];
|
||||
$src[] = "/{{운영자e-mail}}|{{관리자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_email'];
|
||||
$src[] = "/{{정보관리책임자명}}/";
|
||||
$dst[] = $default['de_admin_info_name'];
|
||||
$src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_info_email'];
|
||||
}
|
||||
$str = preg_replace($src, $dst, $str);
|
||||
|
||||
// 스킨경로
|
||||
@ -56,5 +56,4 @@ if(is_file($skin_file)) {
|
||||
echo '<p>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</p>';
|
||||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
include_once('./_tail.php');
|
||||
@ -31,5 +31,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MOBILE_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/_tail.php');
|
||||
@ -186,4 +186,4 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>">
|
||||
<a href="javascript:history.back();"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로가기</span></a> <?php echo get_head_title($g5['title']); ?>
|
||||
</h2>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -32,5 +32,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
@ -16,5 +16,4 @@ if (isset($_REQUEST['sortodr'])) {
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -1,4 +1,3 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_MSHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/shop.head.php');
|
||||
@ -1,4 +1,3 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_MSHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/shop.tail.php');
|
||||
@ -272,5 +272,4 @@ function form_check(act) {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -145,7 +145,7 @@ jQuery(function ($){
|
||||
var $this = $(this);
|
||||
$sub_ul = $(this).closest("li").children("ul.sub_cate");
|
||||
|
||||
if($sub_ul.size() > 0) {
|
||||
if($sub_ul.length > 0) {
|
||||
var txt = $this.text();
|
||||
|
||||
if($sub_ul.is(":visible")) {
|
||||
|
||||
@ -78,5 +78,4 @@ $result = sql_query($sql);
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$ev_id = (int) $ev_id;
|
||||
$ev_id = isset($_GET['ev_id']) ? (int) $_GET['ev_id'] : 0;
|
||||
|
||||
$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'];
|
||||
@ -91,5 +91,4 @@ echo '<div id="sev_thtml">'.conv_content($ev['ev_tail_html'], 1).'</div>';
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -116,5 +116,4 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
</section>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -3,5 +3,4 @@ include_once('../../../common.php');
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가;
|
||||
@ -7,8 +7,11 @@ set_session('P_TID', '');
|
||||
set_session('P_AMT', '');
|
||||
set_session('P_HASH', '');
|
||||
|
||||
$oid = trim($_REQUEST['P_NOTI']);
|
||||
$p_req_url = trim($_REQUEST['P_REQ_URL']);
|
||||
$oid = isset($_REQUEST['P_NOTI']) ? trim($_REQUEST['P_NOTI']) : '';
|
||||
$p_req_url = isset($_REQUEST['P_REQ_URL']) ? trim($_REQUEST['P_REQ_URL']) : '';
|
||||
$p_status = isset($_REQUEST['P_STATUS']) ? trim($_REQUEST['P_STATUS']) : '';
|
||||
$p_tid = isset($_REQUEST['P_TID']) ? trim($_REQUEST['P_TID']) : '';
|
||||
$p_rmesg1 = isset($_REQUEST['P_RMESG1']) ? trim($_REQUEST['P_RMESG1']) : '';
|
||||
|
||||
if( ! $p_req_url || !preg_match('/^https\:\/\//i', $p_req_url)){
|
||||
alert("잘못된 요청 URL 입니다.");
|
||||
@ -25,7 +28,7 @@ if(isset($data['pp_id']) && $data['pp_id']) {
|
||||
} else {
|
||||
$order_action_url = G5_HTTPS_MSHOP_URL.'/orderformupdate.php';
|
||||
$page_return_url = G5_SHOP_URL.'/orderform.php';
|
||||
if($_SESSION['ss_direct'])
|
||||
if(get_session('ss_direct'))
|
||||
$page_return_url .= '?sw_direct=1';
|
||||
|
||||
// 장바구니가 비어있는가?
|
||||
@ -72,17 +75,17 @@ if(isset($data['pp_id']) && $data['pp_id']) {
|
||||
}
|
||||
}
|
||||
|
||||
if($_REQUEST['P_STATUS'] != '00') {
|
||||
alert('오류 : '.iconv_utf8($_REQUEST['P_RMESG1']).' 코드 : '.$_REQUEST['P_STATUS'], $page_return_url);
|
||||
if($p_status !== '00') {
|
||||
alert('오류 : '.iconv_utf8($p_rmesg1).' 코드 : '.$p_status, $page_return_url);
|
||||
} else {
|
||||
$post_data = array(
|
||||
'P_MID' => $default['de_inicis_mid'],
|
||||
'P_TID' => $_REQUEST['P_TID']
|
||||
'P_TID' => $p_tid
|
||||
);
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_PORT, 443);
|
||||
curl_setopt($ch, CURLOPT_URL, $_REQUEST['P_REQ_URL']);
|
||||
curl_setopt($ch, CURLOPT_URL, $p_req_url);
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
@ -128,27 +131,26 @@ if(isset($data['pp_id']) && !empty($data['pp_id'])) {
|
||||
}
|
||||
}
|
||||
|
||||
$good_mny = $PAY['P_AMT'];
|
||||
$good_mny = isset($PAY['P_AMT']) ? $PAY['P_AMT'] : 0;
|
||||
$pp_name = clean_xss_tags($data['pp_name']);
|
||||
$pp_email = clean_xss_tags($data['pp_email']);
|
||||
$pp_hp = clean_xss_tags($data['pp_hp']);
|
||||
$pp_settle_case = clean_xss_tags($data['pp_settle_case']);
|
||||
|
||||
$_POST['P_HASH'] = $hash;
|
||||
$_POST['P_AUTH_NO'] = $PAY['P_AUTH_NO'];
|
||||
$_POST['pp_id'] = $PAY['P_OID'];
|
||||
$_POST['good_mny'] = $PAY['P_AMT'];
|
||||
$_POST['P_AUTH_NO'] = isset($PAY['P_AUTH_NO']) ? $PAY['P_AUTH_NO'] : '';
|
||||
$_POST['pp_id'] = isset($PAY['P_OID']) ? $PAY['P_OID'] : '';
|
||||
$_POST['good_mny'] = isset($PAY['P_AMT']) ? $PAY['P_AMT'] : 0;
|
||||
|
||||
$_POST['P_TYPE'] = $PAY['P_TYPE'];
|
||||
$_POST['P_AUTH_DT'] = $PAY['P_AUTH_DT'];
|
||||
$_POST['P_AUTH_NO'] = $PAY['P_AUTH_NO'];
|
||||
$_POST['P_HPP_CORP'] = $PAY['P_HPP_CORP'];
|
||||
$_POST['P_APPL_NUM'] = $PAY['P_APPL_NUM'];
|
||||
$_POST['P_VACT_NUM'] = $PAY['P_VACT_NUM'];
|
||||
$_POST['P_VACT_NAME'] = iconv_utf8($PAY['P_VACT_NAME']);
|
||||
$_POST['P_VACT_BANK'] = $BANK_CODE[$PAY['P_VACT_BANK_CODE']];
|
||||
$_POST['P_CARD_ISSUER'] = $CARD_CODE[$PAY['P_CARD_ISSUER_CODE']];
|
||||
$_POST['P_UNAME'] = iconv_utf8($PAY['P_UNAME']);
|
||||
$_POST['P_TYPE'] = isset($PAY['P_TYPE']) ? $PAY['P_TYPE'] : '';
|
||||
$_POST['P_AUTH_DT'] = isset($PAY['P_AUTH_DT']) ? $PAY['P_AUTH_DT'] : '';
|
||||
$_POST['P_HPP_CORP'] = isset($PAY['P_HPP_CORP']) ? $PAY['P_HPP_CORP'] : '';
|
||||
$_POST['P_APPL_NUM'] = isset($PAY['P_APPL_NUM']) ? $PAY['P_APPL_NUM'] : '';
|
||||
$_POST['P_VACT_NUM'] = isset($PAY['P_VACT_NUM']) ? $PAY['P_VACT_NUM'] : '';
|
||||
$_POST['P_VACT_NAME'] = isset($PAY['P_VACT_NAME']) ? iconv_utf8($PAY['P_VACT_NAME']) : '';
|
||||
$_POST['P_VACT_BANK'] = (isset($PAY['P_VACT_BANK_CODE']) && isset($BANK_CODE[$PAY['P_VACT_BANK_CODE']])) ? $BANK_CODE[$PAY['P_VACT_BANK_CODE']] : '';
|
||||
$_POST['P_CARD_ISSUER'] = isset($CARD_CODE[$PAY['P_CARD_ISSUER_CODE']]) ? $CARD_CODE[$PAY['P_CARD_ISSUER_CODE']] : '';
|
||||
$_POST['P_UNAME'] = isset($PAY['P_UNAME']) ? iconv_utf8($PAY['P_UNAME']) : '';
|
||||
|
||||
include_once( G5_MSHOP_PATH.'/personalpayformupdate.php' );
|
||||
}
|
||||
@ -170,18 +172,18 @@ if(isset($data['pp_id']) && !empty($data['pp_id'])) {
|
||||
}
|
||||
}
|
||||
|
||||
$res_cd = $_POST['res_cd'] = $PAY['P_STATUS'];
|
||||
$res_cd = $_POST['res_cd'] = isset($PAY['P_STATUS']) ? $PAY['P_STATUS'] : '';
|
||||
$P_HASH = $_POST['P_HASH'] = $hash;
|
||||
$P_TYPE = $_POST['P_TYPE'] = $PAY['P_TYPE'];
|
||||
$P_AUTH_DT = $_POST['P_AUTH_DT'] = $PAY['P_AUTH_DT'];
|
||||
$P_AUTH_NO = $_POST['P_AUTH_NO'] = $PAY['P_AUTH_NO'];
|
||||
$P_HPP_CORP = $_POST['P_HPP_CORP'] = $PAY['P_HPP_CORP'];
|
||||
$P_APPL_NUM = $_POST['P_APPL_NUM'] = $PAY['P_APPL_NUM'];
|
||||
$P_VACT_NUM = $_POST['P_VACT_NUM'] = $PAY['P_VACT_NUM'];
|
||||
$P_VACT_NAME = $_POST['P_VACT_NAME'] = iconv_utf8($PAY['P_VACT_NAME']);
|
||||
$P_VACT_BANK = $_POST['P_VACT_BANK'] = $BANK_CODE[$PAY['P_VACT_BANK_CODE']];
|
||||
$P_CARD_ISSUER = $_POST['P_CARD_ISSUER'] = $CARD_CODE[$PAY['P_CARD_ISSUER_CODE']];
|
||||
$P_UNAME = $_POST['P_UNAME'] = iconv_utf8($PAY['P_UNAME']);
|
||||
$P_TYPE = $_POST['P_TYPE'] = isset($PAY['P_TYPE']) ? $PAY['P_TYPE'] : '';
|
||||
$P_AUTH_DT = $_POST['P_AUTH_DT'] = isset($PAY['P_AUTH_DT']) ? $PAY['P_AUTH_DT'] : '';
|
||||
$P_AUTH_NO = $_POST['P_AUTH_NO'] = isset($PAY['P_AUTH_NO']) ? $PAY['P_AUTH_NO'] : '';
|
||||
$P_HPP_CORP = $_POST['P_HPP_CORP'] = isset($PAY['P_HPP_CORP']) ? $PAY['P_HPP_CORP'] : '';
|
||||
$P_APPL_NUM = $_POST['P_APPL_NUM'] = isset($PAY['P_APPL_NUM']) ? $PAY['P_APPL_NUM'] : '';
|
||||
$P_VACT_NUM = $_POST['P_VACT_NUM'] = isset($PAY['P_VACT_NUM']) ? $PAY['P_VACT_NUM'] : '';
|
||||
$P_VACT_NAME = $_POST['P_VACT_NAME'] = isset($PAY['P_VACT_NAME']) ? iconv_utf8($PAY['P_VACT_NAME']) : '';
|
||||
$P_VACT_BANK = $_POST['P_VACT_BANK'] = (isset($PAY['P_VACT_BANK_CODE']) && isset($BANK_CODE[$PAY['P_VACT_BANK_CODE']])) ? $BANK_CODE[$PAY['P_VACT_BANK_CODE']] : '';
|
||||
$P_CARD_ISSUER = $_POST['P_CARD_ISSUER'] = isset($CARD_CODE[$PAY['P_CARD_ISSUER_CODE']]) ? $CARD_CODE[$PAY['P_CARD_ISSUER_CODE']] : '';
|
||||
$P_UNAME = $_POST['P_UNAME'] = isset($PAY['P_UNAME']) ? iconv_utf8($PAY['P_UNAME']) : '';
|
||||
|
||||
$check_keys = array('od_name', 'od_tel', 'od_pwd', 'od_hp', 'od_zip', 'od_addr1', 'od_addr2', 'od_addr3', 'od_addr_jibeon', 'od_email', 'ad_default', 'ad_subject', 'od_hope_date', 'od_b_name', 'od_b_tel', 'od_b_hp', 'od_b_zip', 'od_b_addr1', 'od_b_addr2', 'od_b_addr3', 'od_b_addr_jibeon', 'od_memo', 'od_settle_case', 'max_temp_point', 'od_temp_point', 'od_send_cost', 'od_send_cost2', 'od_bank_account', 'od_deposit_name', 'od_test', 'od_ip');
|
||||
|
||||
@ -191,5 +193,4 @@ if(isset($data['pp_id']) && !empty($data['pp_id'])) {
|
||||
|
||||
include_once( G5_MSHOP_PATH.'/orderformupdate.php' );
|
||||
}
|
||||
exit;
|
||||
?>
|
||||
exit;
|
||||
@ -3,32 +3,42 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/settle_inicis.inc.php');
|
||||
|
||||
$post_p_hash = isset($_POST['P_HASH']) ? $_POST['P_HASH'] : '';
|
||||
|
||||
// 세션비교
|
||||
$hash = md5(get_session('P_TID').$default['de_inicis_mid'].get_session('P_AMT'));
|
||||
if($hash != $_POST['P_HASH'])
|
||||
|
||||
if($hash !== $post_p_hash)
|
||||
alert('결제 정보가 일치하지 않습니다. 올바른 방법으로 이용해 주십시오.');
|
||||
|
||||
//최종결제요청 결과 성공 DB처리
|
||||
$tno = get_session('P_TID');
|
||||
$amount = get_session('P_AMT');
|
||||
$app_time = $_POST['P_AUTH_DT'];
|
||||
$pay_method = $_POST['P_TYPE'];
|
||||
$pay_type = $PAY_METHOD[$pay_method];
|
||||
$depositor = $_POST['P_UNAME'];
|
||||
$commid = $_POST['P_HPP_CORP'];
|
||||
$mobile_no = $_POST['P_APPL_NUM'];
|
||||
$app_no = $_POST['P_AUTH_NO'];
|
||||
$card_name = $_POST['P_CARD_ISSUER'];
|
||||
if ($default['de_escrow_use'] == 1)
|
||||
$app_time = isset($_POST['P_AUTH_DT']) ? $_POST['P_AUTH_DT'] : '';
|
||||
$pay_method = isset($_POST['P_TYPE']) ? $_POST['P_TYPE'] : '';
|
||||
$pay_type = isset($PAY_METHOD[$pay_method]) ? $PAY_METHOD[$pay_method] : '';
|
||||
$depositor = isset($_POST['P_UNAME']) ? $_POST['P_UNAME'] : '';
|
||||
$commid = isset($_POST['P_HPP_CORP']) ? $_POST['P_HPP_CORP'] : '';
|
||||
$mobile_no = isset($_POST['P_APPL_NUM']) ? $_POST['P_APPL_NUM'] : '';
|
||||
$app_no = isset($_POST['P_AUTH_NO']) ? $_POST['P_AUTH_NO'] : '';
|
||||
$card_name = isset($_POST['P_CARD_ISSUER']) ? $_POST['P_CARD_ISSUER'] : '';
|
||||
|
||||
if ($default['de_escrow_use'] == 1) {
|
||||
$escw_yn = 'Y';
|
||||
}
|
||||
|
||||
$post_p_vact_bank = isset($_POST['P_VACT_BANK']) ? $_POST['P_VACT_BANK'] : '';
|
||||
$post_p_vact_num = isset($_POST['P_VACT_NUM']) ? $_POST['P_VACT_NUM'] : '';
|
||||
$post_p_vact_name = isset($_POST['P_VACT_NAME']) ? $_POST['P_VACT_NAME'] : '';
|
||||
|
||||
switch($pay_type) {
|
||||
case '계좌이체':
|
||||
$bank_name = $_POST['P_VACT_BANK'];
|
||||
$bank_name = $post_p_vact_bank;
|
||||
break;
|
||||
case '가상계좌':
|
||||
$bankname = $_POST['P_VACT_BANK'];
|
||||
$account = $_POST['P_VACT_NUM'].' '.$_POST['P_VACT_NAME'];
|
||||
$app_no = $_POST['P_VACT_NUM'];
|
||||
$bankname = $post_p_vact_bank;
|
||||
$account = $post_p_vact_num.' '.$post_p_vact_name;
|
||||
$app_no = $post_p_vact_num;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -37,5 +47,4 @@ switch($pay_type) {
|
||||
// 세션 초기화
|
||||
set_session('P_TID', '');
|
||||
set_session('P_AMT', '');
|
||||
set_session('P_HASH', '');
|
||||
?>
|
||||
set_session('P_HASH', '');
|
||||
@ -7,7 +7,7 @@ set_session('P_TID', '');
|
||||
set_session('P_AMT', '');
|
||||
set_session('P_HASH', '');
|
||||
|
||||
$oid = preg_replace('/[^0-9a-z_-]/i', '', $oid);
|
||||
$oid = isset($_REQUEST['oid']) ? preg_replace('/[^0-9a-z_\-]/i', '', $_REQUEST['oid']) : '';
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_order_data_table']} where od_id = '$oid' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -41,7 +41,7 @@ if(isset($data['pp_id']) && $data['pp_id']) {
|
||||
$sql = " select * from {$g5['g5_shop_inicis_log_table']} where oid = '$oid' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if(!$row['oid'])
|
||||
if(! (isset($row['oid']) && $row['oid']))
|
||||
alert('결제 정보가 존재하지 않습니다.\\n\\n올바른 방법으로 이용해 주십시오.', $page_return_url);
|
||||
|
||||
if($row['P_STATUS'] != '00')
|
||||
@ -92,5 +92,4 @@ function setPAYResult() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -37,22 +37,22 @@ if($PGIP == "211.219.96.165" || $PGIP == "118.129.210.25" || $PGIP == "183.109.7
|
||||
$P_SRC_CODE; // 앱연동 결제구분
|
||||
|
||||
|
||||
$P_TID = $_POST['P_TID'];
|
||||
$P_MID = $_POST['P_MID'];
|
||||
$P_AUTH_DT = $_POST['P_AUTH_DT'];
|
||||
$P_STATUS = $_POST['P_STATUS'];
|
||||
$P_TYPE = $_POST['P_TYPE'];
|
||||
$P_OID = preg_replace("/[ #\&\+%@=\/\\\:;,\.'\"\^`~|\!\?\*$#<>()\[\]\{\}]/i", "", $_POST['P_OID']);
|
||||
$P_FN_CD1 = $_POST['P_FN_CD1'];
|
||||
$P_FN_CD2 = $_POST['P_FN_CD2'];
|
||||
$P_FN_NM = $_POST['P_FN_NM'];
|
||||
$P_AMT = $_POST['P_AMT'];
|
||||
$P_UNAME = $_POST['P_UNAME'];
|
||||
$P_RMESG1 = $_POST['P_RMESG1'];
|
||||
$P_RMESG2 = $_POST['P_RMESG2'];
|
||||
$P_NOTI = $_POST['P_NOTI'];
|
||||
$P_AUTH_NO = $_POST['P_AUTH_NO'];
|
||||
$P_SRC_CODE = $_POST['P_SRC_CODE'];
|
||||
$P_TID = isset($_POST['P_TID']) ? $_POST['P_TID'] : '';
|
||||
$P_MID = isset($_POST['P_MID']) ? $_POST['P_MID'] : '';
|
||||
$P_AUTH_DT = isset($_POST['P_AUTH_DT']) ? $_POST['P_AUTH_DT'] : '';
|
||||
$P_STATUS = isset($_POST['P_STATUS']) ? $_POST['P_STATUS'] : '';
|
||||
$P_TYPE = isset($_POST['P_TYPE']) ? $_POST['P_TYPE'] : '';
|
||||
$P_OID = isset($_POST['P_OID']) ? preg_replace("/[ #\&\+%@=\/\\\:;,\.'\"\^`~|\!\?\*$#<>()\[\]\{\}]/i", "", $_POST['P_OID']) : '';
|
||||
$P_FN_CD1 = isset($_POST['P_FN_CD1']) ? $_POST['P_FN_CD1'] : '';
|
||||
$P_FN_CD2 = isset($_POST['P_FN_CD2']) ? $_POST['P_FN_CD2'] : '';
|
||||
$P_FN_NM = isset($_POST['P_FN_NM']) ? $_POST['P_FN_NM'] : '';
|
||||
$P_AMT = isset($_POST['P_AMT']) ? $_POST['P_AMT'] : '';
|
||||
$P_UNAME = isset($_POST['P_UNAME']) ? $_POST['P_UNAME'] : '';
|
||||
$P_RMESG1 = isset($_POST['P_RMESG1']) ? $_POST['P_RMESG1'] : '';
|
||||
$P_RMESG2 = isset($_POST['P_RMESG2']) ? $_POST['P_RMESG2'] : '';
|
||||
$P_NOTI = isset($_POST['P_NOTI']) ? $_POST['P_NOTI'] : '';
|
||||
$P_AUTH_NO = isset($_POST['P_AUTH_NO']) ? $_POST['P_AUTH_NO'] : '';
|
||||
$P_SRC_CODE = isset($_POST['P_SRC_CODE']) ? $_POST['P_SRC_CODE'] : '';
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/settle_inicis.inc.php');
|
||||
|
||||
@ -388,5 +388,4 @@ function writeLog($msg)
|
||||
}
|
||||
fclose($fp);
|
||||
return 1;
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -2,18 +2,20 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
$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);
|
||||
$it_id = $it['it_id'];
|
||||
|
||||
if (! (isset($it['it_id']) && $it['it_id'])) {
|
||||
alert('자료가 없습니다.');
|
||||
}
|
||||
|
||||
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('판매가능한 상품이 아닙니다.');
|
||||
@ -66,7 +68,7 @@ $sql = " select it_id, it_name from {$g5['g5_shop_item_table']}
|
||||
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>'.$row['it_name'].'</span>';
|
||||
$prev_href = '<a href="'.shop_item_url($row['it_id']).'" id="siblings_prev">';
|
||||
$prev_href2 = '</a>';
|
||||
@ -84,7 +86,7 @@ $sql = " select it_id, it_name from {$g5['g5_shop_item_table']}
|
||||
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>'.$row['it_name'].'</span>';
|
||||
$next_href = '<a href="'.shop_item_url($row['it_id']).'" id="siblings_next">';
|
||||
$next_href2 = '</a>';
|
||||
@ -189,6 +191,7 @@ if($ca_dir_check) {
|
||||
define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
|
||||
|
||||
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||
$naverpay_button_js = '';
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
|
||||
@ -221,5 +224,4 @@ else
|
||||
// 하단 HTML
|
||||
echo conv_content($it['it_mobile_tail_html'], 1);
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$it_id = get_search_string(trim($_GET['it_id']));
|
||||
$info = preg_replace('/[^0-9a-z]/i', '', $_GET['info']);
|
||||
$it_id = isset($_GET['it_id']) ? get_search_string(trim($_GET['it_id'])) : '';
|
||||
$info = isset($_GET['info']) ? preg_replace('/[^0-9a-z]/i', '', $_GET['info']) : '';
|
||||
|
||||
// 분류사용, 상품사용하는 상품의 정보를 얻음
|
||||
$sql = " select a.*,
|
||||
@ -83,5 +83,4 @@ switch($info) {
|
||||
<div class="close_btn"><button type="button" id="iteminfo_close" onclick="self.close();">창닫기</button></div>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -2,6 +2,8 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
|
||||
$itemqa_list = G5_SHOP_URL."/itemqalist.php";
|
||||
$itemqa_form = G5_SHOP_URL."/itemqaform.php?it_id=".$it_id;
|
||||
$itemqa_formupdate = G5_SHOP_URL."/itemqaformupdate.php?it_id=".$it_id;
|
||||
@ -27,5 +29,4 @@ if(!file_exists($itemqa_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemqa_skin);
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -6,13 +6,13 @@ 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']));
|
||||
$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;
|
||||
|
||||
// 상품정보체크
|
||||
$row = get_shop_item($it_id, true);
|
||||
if(!$row['it_id'])
|
||||
if(! (isset($row['it_id']) && $row['it_id']))
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
$chk_secret = '';
|
||||
@ -59,5 +59,4 @@ if(!file_exists($itemqaform_skin)) {
|
||||
include_once($itemqaform_skin);
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
//$sfl = trim($_REQUEST['sfl']);
|
||||
//$stx = trim($_REQUEST['stx']);
|
||||
|
||||
$g5['title'] = '상품문의';
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
@ -63,5 +60,4 @@ if(!file_exists($itemqalist_skin)) {
|
||||
include_once($itemqalist_skin);
|
||||
}
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
|
||||
if (!$is_member)
|
||||
alert_close('회원만 메일을 발송할 수 있습니다.');
|
||||
|
||||
@ -9,7 +11,7 @@ $token = md5(uniqid(rand(), true));
|
||||
set_session("ss_token", $token);
|
||||
|
||||
$it = get_shop_item($it_id, true);
|
||||
if (!$it['it_name'])
|
||||
if (! (isset($it['it_name']) && $it['it_name']))
|
||||
alert_close("등록된 상품이 아닙니다.");
|
||||
|
||||
$g5['title'] = $it['it_name'].' - 추천하기';
|
||||
@ -57,5 +59,4 @@ function fitemrecommend_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -2,11 +2,13 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
|
||||
$itemuse_list = G5_SHOP_URL."/itemuselist.php";
|
||||
$itemuse_form = G5_SHOP_URL."/itemuseform.php?it_id=".$it_id;
|
||||
$itemuse_formupdate = G5_SHOP_URL."/itemuseformupdate.php?it_id=".$it_id;
|
||||
|
||||
$sql_common = " from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$sql_common = " from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
@ -27,5 +29,4 @@ if(!file_exists($itemuse_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemuse_skin);
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -6,13 +6,13 @@ 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']));
|
||||
$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 = $_REQUEST['is_id'] ? preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id'])) : 0;
|
||||
|
||||
// 상품정보체크
|
||||
$row = get_shop_item($it_id, true);
|
||||
if(!$row['it_id'])
|
||||
if(! (isset($row['it_id']) && $row['it_id']))
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
if ($w == "") {
|
||||
@ -54,5 +54,4 @@ if(!file_exists($itemuseform_skin)) {
|
||||
include_once($itemuseform_skin);
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
//$sfl = trim($_REQUEST['sfl']);
|
||||
//$stx = trim($_REQUEST['stx']);
|
||||
|
||||
$g5['title'] = '상품후기';
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
@ -63,5 +60,4 @@ if(!file_exists($itemuselist_skin)) {
|
||||
include_once($itemuselist_skin);
|
||||
}
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -189,5 +189,4 @@ class PayService extends SoapClient
|
||||
|
||||
return $this->approveResponse->return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -3,5 +3,4 @@ include_once('../../../common.php');
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -5,6 +5,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if( !(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')) ){
|
||||
return;
|
||||
}
|
||||
|
||||
$param_opt_1 = isset($_REQUEST['param_opt_1']) ? clean_xss_tags($_REQUEST['param_opt_1'], 1, 1) : '';
|
||||
$param_opt_2 = isset($_REQUEST['param_opt_2']) ? clean_xss_tags($_REQUEST['param_opt_2'], 1, 1) : '';
|
||||
$param_opt_3 = isset($_REQUEST['param_opt_3']) ? clean_xss_tags($_REQUEST['param_opt_3'], 1, 1) : '';
|
||||
?>
|
||||
|
||||
<!-- 거래등록 하는 kcp 서버와 통신을 위한 스크립트-->
|
||||
@ -49,9 +53,9 @@ if( !(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')) ){
|
||||
<!-- 배송소요기간 -->
|
||||
<input type="hidden" name="deli_term" value="03">
|
||||
<!-- 기타 파라메터 추가 부분 - Start - -->
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo $param_opt_1; ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo $param_opt_2; ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo $param_opt_3; ?>"/>
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo get_text($param_opt_1); ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo get_text($param_opt_2); ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo get_text($param_opt_3); ?>"/>
|
||||
<input type="hidden" name="disp_tax_yn" value="N">
|
||||
<!-- 기타 파라메터 추가 부분 - End - -->
|
||||
<!-- 화면 크기조정 부분 - Start - -->
|
||||
|
||||
@ -32,4 +32,4 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<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; ?>"> <!-- 비과세 금액 -->
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -6,5 +6,4 @@ if( !(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')) ){
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/settle_kcp.inc.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/settle_kcp.inc.php');
|
||||
@ -50,5 +50,4 @@
|
||||
catch (SoapFault $ex )
|
||||
{
|
||||
printf( "%s,%s,%s,%s", "95XX", "", "", "연동 오류 (PHP SOAP 모듈 설치 필요)" );
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once('./_common.php');
|
||||
|
||||
@header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
|
||||
@header('Pragma: no-cache'); // HTTP 1.0.
|
||||
@ -17,8 +17,7 @@
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
/* = Copyright (c) 2010.05 KCP Inc. All Rights Reserved. = */
|
||||
/* ============================================================================== */
|
||||
?>
|
||||
<?php
|
||||
|
||||
/* ============================================================================== */
|
||||
/* = 환경 설정 파일 Include = */
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
@ -27,56 +26,54 @@
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/settle_kcp.inc.php'); // 환경설정 파일 include
|
||||
?>
|
||||
<?php
|
||||
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
/* = 환경 설정 파일 Include END = */
|
||||
/* ============================================================================== */
|
||||
?>
|
||||
<?php
|
||||
|
||||
/* kcp와 통신후 kcp 서버에서 전송되는 결제 요청 정보*/
|
||||
$req_tx = $_POST[ "req_tx" ]; // 요청 종류
|
||||
$res_cd = $_POST[ "res_cd" ]; // 응답 코드
|
||||
$tran_cd = $_POST[ "tran_cd" ]; // 트랜잭션 코드
|
||||
$ordr_idxx = $_POST[ "ordr_idxx" ]; // 쇼핑몰 주문번호
|
||||
$good_name = $_POST[ "good_name" ]; // 상품명
|
||||
$good_mny = $_POST[ "good_mny" ]; // 결제 총금액
|
||||
$buyr_name = $_POST[ "buyr_name" ]; // 주문자명
|
||||
$buyr_tel1 = $_POST[ "buyr_tel1" ]; // 주문자 전화번호
|
||||
$buyr_tel2 = $_POST[ "buyr_tel2" ]; // 주문자 핸드폰 번호
|
||||
$buyr_mail = $_POST[ "buyr_mail" ]; // 주문자 E-mail 주소
|
||||
$use_pay_method = $_POST[ "use_pay_method" ]; // 결제 방법
|
||||
$enc_info = $_POST[ "enc_info" ]; // 암호화 정보
|
||||
$enc_data = $_POST[ "enc_data" ]; // 암호화 데이터
|
||||
$rcvr_name = $_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 = $_POST[ "rcvr_add1" ]; // 수취인 주소
|
||||
$rcvr_add2 = $_POST[ "rcvr_add2" ]; // 수취인 상세주소
|
||||
$req_tx = isset($_POST["req_tx"]) ? $_POST["req_tx"] : ''; // 요청 종류
|
||||
$res_cd = isset($_POST["res_cd"]) ? $_POST["res_cd"] : ''; // 응답 코드
|
||||
$tran_cd = isset($_POST["tran_cd"]) ? $_POST["tran_cd"] : ''; // 트랜잭션 코드
|
||||
$ordr_idxx = isset($_POST["ordr_idxx"]) ? $_POST["ordr_idxx"] : ''; // 쇼핑몰 주문번호
|
||||
$good_name = isset($_POST["good_name"]) ? $_POST["good_name"] : ''; // 상품명
|
||||
$good_mny = isset($_POST["good_mny"]) ? $_POST["good_mny"] : ''; // 결제 총금액
|
||||
$buyr_name = isset($_POST["buyr_name"]) ? $_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 주소
|
||||
$use_pay_method = isset($_POST["use_pay_method"]) ? $_POST["use_pay_method"] : ''; // 결제 방법
|
||||
$enc_info = isset($_POST["enc_info"]) ? $_POST["enc_info"] : ''; // 암호화 정보
|
||||
$enc_data = isset($_POST["enc_data"]) ? $_POST["enc_data"] : ''; // 암호화 데이터
|
||||
$rcvr_name = isset($_POST["rcvr_name"]) ? $_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"]) ? $_POST["rcvr_add1"] : ''; // 수취인 주소
|
||||
$rcvr_add2 = isset($_POST["rcvr_add2"]) ? $_POST["rcvr_add2"] : ''; // 수취인 상세주소
|
||||
|
||||
/* 주문폼에서 전송되는 정보 */
|
||||
$ipgm_date = isset($_POST['ipgm_date']) ? $_POST['ipgm_date'] : ''; // 입금마감일
|
||||
$settle_method = $_POST[ "settle_method" ]; // 결제방법
|
||||
$good_info = $_POST[ "good_info" ]; // 에스크로 상품정보
|
||||
$bask_cntx = $_POST[ "bask_cntx" ]; // 장바구니 상품수
|
||||
$tablet_size = $_POST[ "tablet_size" ]; // 모바일기기 화면비율
|
||||
$settle_method = isset($_POST["settle_method"]) ? $_POST["settle_method"] : ''; // 결제방법
|
||||
$good_info = isset($_POST["good_info"]) ? $_POST["good_info"] : ''; // 에스크로 상품정보
|
||||
$bask_cntx = isset($_POST["bask_cntx"]) ? $_POST["bask_cntx"] : ''; // 장바구니 상품수
|
||||
$tablet_size = isset($_POST["tablet_size"]) ? $_POST["tablet_size"] : ''; // 모바일기기 화면비율
|
||||
|
||||
$comm_tax_mny = $_POST[ "comm_tax_mny" ]; // 과세금액
|
||||
$comm_vat_mny = $_POST[ "comm_vat_mny" ]; // 부가세
|
||||
$comm_free_mny = $_POST["comm_free_mny" ]; // 비과세금액
|
||||
$comm_tax_mny = isset($_POST["comm_tax_mny"]) ? $_POST["comm_tax_mny"] : ''; // 과세금액
|
||||
$comm_vat_mny = isset($_POST["comm_vat_mny"]) ? $_POST["comm_vat_mny"] : ''; // 부가세
|
||||
$comm_free_mny = isset($_POST["comm_free_mny"]) ? $_POST["comm_free_mny"] : ''; // 비과세금액
|
||||
|
||||
$payco_direct = $_POST["payco_direct" ]; // PAYCO 결제창 호출
|
||||
$naverpay_direct = $_POST["naverpay_direct"]; // NAVERPAY 결제창 호출
|
||||
$kakaopay_direct = $_POST["kakaopay_direct"]; // KAKAOPAY 결제창 호출
|
||||
$payco_direct = isset($_POST["payco_direct"]) ? $_POST["payco_direct"] : ''; // PAYCO 결제창 호출
|
||||
$naverpay_direct = isset($_POST["naverpay_direct"]) ? $_POST["naverpay_direct"] : ''; // NAVERPAY 결제창 호출
|
||||
$kakaopay_direct = isset($_POST["kakaopay_direct"]) ? $_POST["kakaopay_direct"] : ''; // KAKAOPAY 결제창 호출
|
||||
|
||||
/*
|
||||
* 기타 파라메터 추가 부분 - Start -
|
||||
*/
|
||||
$param_opt_1 = $_POST[ "param_opt_1" ]; // 기타 파라메터 추가 부분
|
||||
$param_opt_2 = $_POST[ "param_opt_2" ]; // 기타 파라메터 추가 부분
|
||||
$param_opt_3 = $_POST[ "param_opt_3" ]; // 기타 파라메터 추가 부분
|
||||
$param_opt_1 = isset($_POST["param_opt_1"]) ? $_POST["param_opt_1"] : ''; // 기타 파라메터 추가 부분
|
||||
$param_opt_2 = isset($_POST["param_opt_2"]) ? $_POST["param_opt_2"] : ''; // 기타 파라메터 추가 부분
|
||||
$param_opt_3 = isset($_POST["param_opt_3"]) ? $_POST["param_opt_3"] : ''; // 기타 파라메터 추가 부분
|
||||
/*
|
||||
* 기타 파라메터 추가 부분 - End -
|
||||
*/
|
||||
@ -327,9 +324,9 @@ if($enc_data != '' && $enc_info != '' && $tran_cd != '') {
|
||||
<!-- 배송소요기간 -->
|
||||
<input type="hidden" name="deli_term" value="03">
|
||||
<!-- 기타 파라메터 추가 부분 - Start - -->
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo $param_opt_1; ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo $param_opt_2; ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo $param_opt_3; ?>"/>
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo get_text($param_opt_1); ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo get_text($param_opt_2); ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo get_text($param_opt_3); ?>"/>
|
||||
<input type="hidden" name="disp_tax_yn" value="N">
|
||||
<!-- 기타 파라메터 추가 부분 - End - -->
|
||||
<!-- 화면 크기조정 부분 - Start - -->
|
||||
|
||||
@ -4,6 +4,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
// 무통장 입금만 사용할 때는 아래 코드 실행되지 않음 ( 카카오페이 또는 삼성페이도 사용 안하면 )
|
||||
if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use'] || $default['de_samsung_pay_use'] || $is_kakaopay_use ))
|
||||
return;
|
||||
|
||||
$param_opt_1 = isset($_REQUEST['param_opt_1']) ? clean_xss_tags($_REQUEST['param_opt_1'], 1, 1) : '';
|
||||
$param_opt_2 = isset($_REQUEST['param_opt_2']) ? clean_xss_tags($_REQUEST['param_opt_2'], 1, 1) : '';
|
||||
$param_opt_3 = isset($_REQUEST['param_opt_3']) ? clean_xss_tags($_REQUEST['param_opt_3'], 1, 1) : '';
|
||||
?>
|
||||
|
||||
<!-- 거래등록 하는 kcp 서버와 통신을 위한 스크립트-->
|
||||
@ -47,9 +51,9 @@ if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'
|
||||
<!-- 배송소요기간 -->
|
||||
<input type="hidden" name="deli_term" value="03">
|
||||
<!-- 기타 파라메터 추가 부분 - Start - -->
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo $param_opt_1; ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo $param_opt_2; ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo $param_opt_3; ?>"/>
|
||||
<input type="hidden" name="param_opt_1" value="<?php echo get_text($param_opt_1); ?>"/>
|
||||
<input type="hidden" name="param_opt_2" value="<?php echo get_text($param_opt_2); ?>"/>
|
||||
<input type="hidden" name="param_opt_3" value="<?php echo get_text($param_opt_3); ?>"/>
|
||||
<input type="hidden" name="disp_tax_yn" value="N">
|
||||
<!-- 기타 파라메터 추가 부분 - End - -->
|
||||
<!-- 화면 크기조정 부분 - Start - -->
|
||||
|
||||
@ -47,4 +47,4 @@ if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'
|
||||
document.getElementById("show_req_btn").style.display = "none";
|
||||
document.getElementById("show_pay_btn").style.display = "";
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -23,33 +23,31 @@
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
/* = 환경 설정 파일 Include END = */
|
||||
/* ============================================================================== */
|
||||
?>
|
||||
|
||||
<?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"]) ? $_POST["good_mny"] : ''; // 결제 총금액
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
$res_cd = ""; // 응답코드
|
||||
$res_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 = ""; // 승인시간 (모든 결제 수단 공통)
|
||||
@ -84,10 +82,10 @@
|
||||
$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"] : ''; // 현금 영수증 등록 번호
|
||||
/* ============================================================================== */
|
||||
|
||||
/* ============================================================================== */
|
||||
@ -112,7 +110,10 @@
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
if ( $req_tx == "pay" )
|
||||
{
|
||||
$c_PayPlus->mf_set_encx_data( $_POST[ "enc_data" ], $_POST[ "enc_info" ] );
|
||||
$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 );
|
||||
}
|
||||
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
@ -282,5 +283,4 @@
|
||||
}
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
/* = 05. 승인 결과 처리 END = */
|
||||
/* ============================================================================== */
|
||||
?>
|
||||
/* ============================================================================== */;
|
||||
@ -50,5 +50,4 @@ if ( $req_tx == "pay" )
|
||||
/* ============================================================================== */
|
||||
|
||||
// locale 설정 초기화
|
||||
setlocale(LC_CTYPE, '');
|
||||
?>
|
||||
setlocale(LC_CTYPE, '');
|
||||
@ -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($arg as $i)
|
||||
{
|
||||
$exec_cmd .= " " . escapeshellarg( $i );
|
||||
}
|
||||
@ -292,5 +293,4 @@
|
||||
|
||||
return $rt;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$it_id = get_search_string(trim($_GET['it_id']));
|
||||
$no = preg_replace('/[^0-9a-z]/i', '', $_GET['no']);
|
||||
$it_id = isset($_GET['it_id']) ? get_search_string(trim($_GET['it_id'])) : '';
|
||||
$no = isset($_GET['no']) ? preg_replace('/[^0-9a-z]/i', '', $_GET['no']) : '';
|
||||
|
||||
$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];
|
||||
@ -23,5 +23,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');
|
||||
@ -3,5 +3,4 @@ include_once('../../../common.php');
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -16,7 +16,4 @@ echo "LGD_OID = ".$LGD_OID;
|
||||
// ex) window.location.href = smartxpay://TID=1234567890&OID=0987654321
|
||||
//
|
||||
// window.location.href = "고객사 앱명://" 로 호출하시면 됩니다.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
?>
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////;
|
||||
@ -149,5 +149,4 @@ if ($LGD_HASHDATA2 == $LGD_HASHDATA) { //해쉬값 검증이 성공하면
|
||||
$resultMSG = "결제결과 상점 DB처리(NOTE_URL) 해쉬값 검증이 실패하였습니다.";
|
||||
}
|
||||
|
||||
echo $resultMSG;
|
||||
?>
|
||||
echo $resultMSG;
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가;
|
||||
@ -76,5 +76,4 @@ function setLGDResult() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -171,5 +171,4 @@ function getFormObject() {
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -189,5 +189,4 @@ var g5_shop_url = "<?php echo G5_SHOP_URL; ?>";
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
|
||||
echo "\n<!-- {$ca['ca_mobile_skin']} -->\n";
|
||||
?>
|
||||
echo "\n<!-- {$ca['ca_mobile_skin']} -->\n";
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$type = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']);
|
||||
$type = isset($_REQUEST['type']) ? preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']) : '';
|
||||
if ($type == 1) $g5['title'] = '히트상품';
|
||||
else if ($type == 2) $g5['title'] = '추천상품';
|
||||
else if ($type == 3) $g5['title'] = '최신상품';
|
||||
@ -75,5 +75,4 @@ echo get_paging($config['cf_mobile_pages'], $page, $total_page, "{$_SERVER['SCRI
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -136,5 +136,4 @@ function member_leave()
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -118,5 +118,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -114,10 +114,10 @@ ob_start();
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
|
||||
|
||||
$cp_button = '';
|
||||
// 쿠폰
|
||||
if($is_member) {
|
||||
$cp_button = '';
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
@ -288,7 +288,7 @@ if($is_kakaopay_use) {
|
||||
<ul>
|
||||
<li>
|
||||
<label for="od_name">이름<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_name" value="<?php echo get_text($member['mb_name']); ?>" id="od_name" required class="frm_input required" maxlength="20">
|
||||
<input type="text" name="od_name" value="<?php echo isset($member['mb_name']) ? get_text($member['mb_name']) : ''; ?>" id="od_name" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
|
||||
<?php if (!$is_member) { // 비회원이면 ?>
|
||||
@ -355,9 +355,9 @@ if($is_kakaopay_use) {
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
<?php
|
||||
$addr_list = '';
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
|
||||
// 주문자와 동일
|
||||
@ -370,7 +370,7 @@ if($is_kakaopay_use) {
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
if(isset($row['ad_id']) && $row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
@ -848,7 +848,7 @@ $(function() {
|
||||
calculate_total_price();
|
||||
$("#cp_frm").remove();
|
||||
$cp_btn_el.text("변경").addClass("cp_mod").focus();
|
||||
if(!$cp_row_el.find(".cp_cancel").size())
|
||||
if(!$cp_row_el.find(".cp_cancel").length)
|
||||
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel\">취소</button>");
|
||||
});
|
||||
|
||||
@ -915,7 +915,7 @@ $(function() {
|
||||
calculate_order_price();
|
||||
$("#od_coupon_frm").remove();
|
||||
$("#od_coupon_btn").text("변경").focus();
|
||||
if(!$("#od_coupon_cancel").size())
|
||||
if(!$("#od_coupon_cancel").length)
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
@ -974,7 +974,7 @@ $(function() {
|
||||
calculate_order_price();
|
||||
$("#sc_coupon_frm").remove();
|
||||
$("#sc_coupon_btn").text("변경").focus();
|
||||
if(!$("#sc_coupon_cancel").size())
|
||||
if(!$("#sc_coupon_cancel").length)
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
@ -1102,7 +1102,7 @@ function calculate_total_price()
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
$("input[name=od_cp_id]").val("");
|
||||
$("#od_cp_price").text(0);
|
||||
if($("#od_coupon_cancel").size()) {
|
||||
if($("#od_coupon_cancel").length) {
|
||||
$("#od_coupon_btn").text("쿠폰적용");
|
||||
$("#od_coupon_cancel").remove();
|
||||
}
|
||||
@ -1110,7 +1110,7 @@ function calculate_total_price()
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
$("input[name=sc_cp_id]").val("");
|
||||
$("#sc_cp_price").text(0);
|
||||
if($("#sc_coupon_cancel").size()) {
|
||||
if($("#sc_coupon_cancel").length) {
|
||||
$("#sc_coupon_btn").text("쿠폰적용");
|
||||
$("#sc_coupon_cancel").remove();
|
||||
}
|
||||
@ -1199,7 +1199,7 @@ function calculate_tax()
|
||||
}
|
||||
});
|
||||
|
||||
if($("input[name=od_temp_point]").size())
|
||||
if($("input[name=od_temp_point]").length)
|
||||
temp_point = parseInt($("input[name=od_temp_point]").val()) || 0;
|
||||
|
||||
tot_mny += (send_cost + send_cost2 - od_coupon - send_coupon - temp_point);
|
||||
|
||||
@ -2,13 +2,19 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$post_p_hash = isset($_POST['P_HASH']) ? $_POST['P_HASH'] : '';
|
||||
$post_enc_data = isset($_POST['enc_data']) ? $_POST['enc_data'] : '';
|
||||
$post_enc_info = isset($_POST['enc_info']) ? $_POST['enc_info'] : '';
|
||||
$post_tran_cd = isset($_POST['tran_cd']) ? $_POST['tran_cd'] : '';
|
||||
$post_lgd_paykey = isset($_POST['LGD_PAYKEY']) ? $_POST['LGD_PAYKEY'] : '';
|
||||
|
||||
//삼성페이 또는 lpay 또는 이니시스 카카오페이 요청으로 왔다면 현재 삼성페이 또는 lpay 또는 이니시스 카카오페이는 이니시스 밖에 없으므로 $default['de_pg_service'] 값을 이니시스로 변경한다.
|
||||
if( is_inicis_order_pay($od_settle_case) && !empty($_POST['P_HASH']) ){
|
||||
$default['de_pg_service'] = 'inicis';
|
||||
}
|
||||
|
||||
// 타 PG 사용시 NHN KCP 네이버페이로 결제 요청이 왔다면 $default['de_pg_service'] 값을 kcp 로 변경합니다.
|
||||
if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') && isset($_POST['enc_data']) && $_POST['enc_data'] && isset($_POST['site_cd']) && isset($_POST['nhnkcp_pay_case']) && $_POST['nhnkcp_pay_case'] === "naverpay"){
|
||||
if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') && $post_enc_data && isset($_POST['site_cd']) && isset($_POST['nhnkcp_pay_case']) && $_POST['nhnkcp_pay_case'] === "naverpay"){
|
||||
$default['de_pg_service'] = 'kcp';
|
||||
}
|
||||
|
||||
@ -29,13 +35,13 @@ if(get_session('ss_direct'))
|
||||
|
||||
// 결제등록 완료 체크
|
||||
if($od_settle_case != '무통장' && $od_settle_case != 'KAKAOPAY') {
|
||||
if($default['de_pg_service'] == 'kcp' && ($_POST['tran_cd'] == '' || $_POST['enc_info'] == '' || $_POST['enc_data'] == ''))
|
||||
if($default['de_pg_service'] == 'kcp' && ($post_tran_cd === '' || $post_enc_info === '' || $post_enc_data === ''))
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
|
||||
if($default['de_pg_service'] == 'lg' && !$_POST['LGD_PAYKEY'])
|
||||
if($default['de_pg_service'] == 'lg' && ! $post_lgd_paykey)
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
|
||||
if($default['de_pg_service'] == 'inicis' && !$_POST['P_HASH'])
|
||||
if($default['de_pg_service'] == 'inicis' && ! $post_p_hash)
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
}
|
||||
|
||||
@ -62,6 +68,10 @@ if(!isset($check_tmp['od_other_pay_type'])){
|
||||
// 변수 초기화
|
||||
$od_other_pay_type = '';
|
||||
|
||||
$od_temp_point = isset($_POST['od_temp_point']) ? (int) $_POST['od_temp_point'] : 0;
|
||||
$od_hope_date = isset($_POST['od_hope_date']) ? clean_xss_tags($_POST['od_hope_date'], 1, 1) : '';
|
||||
$ad_default = isset($_POST['ad_default']) ? (int) $_POST['ad_default'] : 0;
|
||||
|
||||
$error = "";
|
||||
// 장바구니 상품 재고 검사
|
||||
$sql = " select it_id,
|
||||
@ -99,11 +109,11 @@ if ($error != "")
|
||||
alert($error, $page_return_url);
|
||||
}
|
||||
|
||||
$i_price = (int)$_POST['od_price'];
|
||||
$i_send_cost = (int)$_POST['od_send_cost'];
|
||||
$i_send_cost2 = (int)$_POST['od_send_cost2'];
|
||||
$i_send_coupon = abs((int)$_POST['od_send_coupon']);
|
||||
$i_temp_point = (int)$_POST['od_temp_point'];
|
||||
$i_price = isset($_POST['od_price']) ? (int) $_POST['od_price'] : 0;
|
||||
$i_send_cost = isset($_POST['od_send_cost']) ? (int) $_POST['od_send_cost'] : 0;
|
||||
$i_send_cost2 = isset($_POST['od_send_cost2']) ? (int) $_POST['od_send_cost2'] : 0;
|
||||
$i_send_coupon = isset($_POST['od_send_coupon']) ? abs((int) $_POST['od_send_coupon']) : 0;
|
||||
$i_temp_point = isset($_POST['od_temp_point']) ? (int) $_POST['od_temp_point'] : 0;
|
||||
|
||||
|
||||
// 주문금액이 상이함
|
||||
@ -116,15 +126,14 @@ $cart_count = $row['cart_count'];
|
||||
$tot_od_price = $tot_ct_price;
|
||||
|
||||
// 쿠폰금액계산
|
||||
$tot_cp_price = 0;
|
||||
$tot_cp_price = $tot_it_cp_price = $tot_od_cp_price = 0;
|
||||
if($is_member) {
|
||||
// 상품쿠폰
|
||||
$tot_it_cp_price = $tot_od_cp_price = 0;
|
||||
$it_cp_cnt = count($_POST['cp_id']);
|
||||
$it_cp_cnt = (isset($_POST['cp_id']) && is_array($_POST['cp_id'])) ? count($_POST['cp_id']) : 0;
|
||||
$arr_it_cp_prc = array();
|
||||
for($i=0; $i<$it_cp_cnt; $i++) {
|
||||
$cid = $_POST['cp_id'][$i];
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$cid = isset($_POST['cp_id'][$i]) ? $_POST['cp_id'][$i] : '';
|
||||
$it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
|
||||
$sql = " select cp_id, cp_method, cp_target, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where cp_id = '$cid'
|
||||
@ -133,7 +142,7 @@ if($is_member) {
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_method IN ( 0, 1 ) ";
|
||||
$cp = sql_fetch($sql);
|
||||
if(!$cp['cp_id'])
|
||||
if(! (isset($cp['cp_id']) && $cp['cp_id']))
|
||||
continue;
|
||||
|
||||
// 사용한 쿠폰인지
|
||||
@ -189,7 +198,7 @@ if($is_member) {
|
||||
$tot_od_price -= $tot_it_cp_price;
|
||||
|
||||
// 주문쿠폰
|
||||
if($_POST['od_cp_id']) {
|
||||
if(isset($_POST['od_cp_id']) && $_POST['od_cp_id']) {
|
||||
$sql = " select cp_id, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where cp_id = '{$_POST['od_cp_id']}'
|
||||
@ -235,7 +244,7 @@ $send_cost = get_sendcost($tmp_cart_id);
|
||||
$tot_sc_cp_price = 0;
|
||||
if($is_member && $send_cost > 0) {
|
||||
// 배송쿠폰
|
||||
if($_POST['sc_cp_id']) {
|
||||
if(isset($_POST['sc_cp_id']) && $_POST['sc_cp_id']) {
|
||||
$sql = " select cp_id, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where cp_id = '{$_POST['sc_cp_id']}'
|
||||
@ -279,7 +288,7 @@ $od_b_zip2 = substr($od_b_zip, 3);
|
||||
$zipcode = $od_b_zip1 . $od_b_zip2;
|
||||
$sql = " select sc_id, sc_price from {$g5['g5_shop_sendcost_table']} where sc_zip1 <= '$zipcode' and sc_zip2 >= '$zipcode' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if(!$tmp['sc_id'])
|
||||
if(! (isset($tmp['sc_id']) && $tmp['sc_id']))
|
||||
$send_cost2 = 0;
|
||||
else
|
||||
$send_cost2 = (int)$tmp['sc_price'];
|
||||
@ -531,10 +540,12 @@ if($tno) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($is_member)
|
||||
if ($is_member) {
|
||||
$od_pwd = $member['mb_password'];
|
||||
else
|
||||
} else {
|
||||
$post_od_pwd = isset($_POST['od_pwd']) ? $_POST['od_pwd'] : sha1(rand());
|
||||
$od_pwd = get_encrypt_string($_POST['od_pwd']);
|
||||
}
|
||||
|
||||
// 주문번호를 얻는다.
|
||||
$od_id = get_session('ss_order_id');
|
||||
@ -545,7 +556,7 @@ if( !$od_id ){
|
||||
}
|
||||
|
||||
$od_escrow = 0;
|
||||
if($escw_yn == 'Y')
|
||||
if(isset($escw_yn) && $escw_yn == 'Y')
|
||||
$od_escrow = 1;
|
||||
|
||||
// 복합과세 금액
|
||||
@ -553,9 +564,9 @@ $od_tax_mny = round($i_price / 1.1);
|
||||
$od_vat_mny = $i_price - $od_tax_mny;
|
||||
$od_free_mny = 0;
|
||||
if($default['de_tax_flag_use']) {
|
||||
$od_tax_mny = (int)$_POST['comm_tax_mny'];
|
||||
$od_vat_mny = (int)$_POST['comm_vat_mny'];
|
||||
$od_free_mny = (int)$_POST['comm_free_mny'];
|
||||
$od_tax_mny = isset($_POST['comm_tax_mny']) ? (int) $_POST['comm_tax_mny'] : 0;
|
||||
$od_vat_mny = isset($_POST['comm_vat_mny']) ? (int) $_POST['comm_vat_mny'] : 0;
|
||||
$od_free_mny = isset($_POST['comm_free_mny']) ? (int) $_POST['comm_free_mny'] : 0;
|
||||
}
|
||||
|
||||
$od_email = get_email_address($od_email);
|
||||
@ -731,11 +742,11 @@ $od_memo = nl2br(htmlspecialchars2(stripslashes($od_memo))) . " ";
|
||||
|
||||
// 쿠폰사용내역기록
|
||||
if($is_member) {
|
||||
$it_cp_cnt = count($_POST['cp_id']);
|
||||
$it_cp_cnt = (isset($_POST['cp_id']) && is_array($_POST['cp_id'])) ? count($_POST['cp_id']) : 0;
|
||||
for($i=0; $i<$it_cp_cnt; $i++) {
|
||||
$cid = $_POST['cp_id'][$i];
|
||||
$cp_it_id = $_POST['it_id'][$i];
|
||||
$cp_prc = (int)$arr_it_cp_prc[$cp_it_id];
|
||||
$cid = isset($_POST['cp_id'][$i]) ? $_POST['cp_id'][$i] : '';
|
||||
$cp_it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
|
||||
$cp_prc = isset($arr_it_cp_prc[$cp_it_id]) ? (int) $arr_it_cp_prc[$cp_it_id] : 0;
|
||||
|
||||
if(trim($cid)) {
|
||||
$sql = " insert into {$g5['g5_shop_coupon_log_table']}
|
||||
@ -748,7 +759,6 @@ if($is_member) {
|
||||
}
|
||||
|
||||
// 쿠폰사용금액 cart에 기록
|
||||
$cp_prc = (int)$arr_it_cp_prc[$cp_it_id];
|
||||
$sql = " update {$g5['g5_shop_cart_table']}
|
||||
set cp_price = '$cp_prc'
|
||||
where od_id = '$od_id'
|
||||
@ -759,7 +769,7 @@ if($is_member) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
if($_POST['od_cp_id']) {
|
||||
if(isset($_POST['od_cp_id']) && $_POST['od_cp_id']) {
|
||||
$sql = " insert into {$g5['g5_shop_coupon_log_table']}
|
||||
set cp_id = '{$_POST['od_cp_id']}',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
@ -769,7 +779,7 @@ if($is_member) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
if($_POST['sc_cp_id']) {
|
||||
if(isset($_POST['sc_cp_id']) && $_POST['sc_cp_id']) {
|
||||
$sql = " insert into {$g5['g5_shop_coupon_log_table']}
|
||||
set cp_id = '{$_POST['sc_cp_id']}',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
@ -960,5 +970,4 @@ if( $is_noti_pay ){
|
||||
return;
|
||||
}
|
||||
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&uid='.$uid);
|
||||
?>
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&uid='.$uid);
|
||||
@ -4,8 +4,9 @@ include_once('./_common.php');
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$order_info = array();
|
||||
$request_pwd = $od_pwd;
|
||||
$od_pwd = get_encrypt_string($od_pwd);
|
||||
$request_pwd = isset($_POST['od_pwd']) ? $_POST['od_pwd'] : '';
|
||||
$od_pwd = get_encrypt_string($request_pwd);
|
||||
$od_id = isset($_POST['od_id']) ? safe_replace_regex($_POST['od_id'], 'od_id') : '';
|
||||
|
||||
// 회원인 경우
|
||||
if ($is_member)
|
||||
@ -89,5 +90,4 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -710,5 +710,4 @@ function fcancel_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -55,5 +55,4 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<!-- } 상품 목록 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -4,27 +4,38 @@ include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$page_return_url = G5_SHOP_URL.'/personalpayform.php?pp_id='.get_session('ss_personalpay_id');
|
||||
|
||||
$post_tran_cd = isset($_POST['tran_cd']) ? $_POST['tran_cd'] : '';
|
||||
$post_enc_info = isset($_POST['enc_info']) ? $_POST['enc_info'] : '';
|
||||
$post_enc_data = isset($_POST['enc_data']) ? $_POST['enc_data'] : '';
|
||||
|
||||
$post_lgd_paykey = isset($_POST['LGD_PAYKEY']) ? $_POST['LGD_PAYKEY'] : '';
|
||||
|
||||
$post_p_hash = isset($_POST['P_HASH']) ? $_POST['P_HASH'] : '';
|
||||
|
||||
$pp_id = isset($_POST['pp_id']) ? preg_replace('/[^0-9]/', '', $_POST['pp_id']) : 0;
|
||||
$good_mny = isset($_POST['good_mny']) ? preg_replace('/[^0-9]/', '', $_POST['good_mny']) : 0;
|
||||
|
||||
// 결제등록 완료 체크
|
||||
if($default['de_pg_service'] == 'kcp' && ($_POST['tran_cd'] == '' || $_POST['enc_info'] == '' || $_POST['enc_data'] == ''))
|
||||
if($default['de_pg_service'] == 'kcp' && ($post_tran_cd === '' || $post_enc_info === '' || $post_enc_data === ''))
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
|
||||
if($default['de_pg_service'] == 'lg' && !$_POST['LGD_PAYKEY'])
|
||||
if($default['de_pg_service'] == 'lg' && ! $post_lgd_paykey)
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
|
||||
if($default['de_pg_service'] == 'inicis' && !$_POST['P_HASH'])
|
||||
if($default['de_pg_service'] == 'inicis' && ! $post_p_hash)
|
||||
alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
|
||||
|
||||
// 개인결제 정보
|
||||
$pp_check = false;
|
||||
$sql = " select * from {$g5['g5_shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' and pp_use = '1' ";
|
||||
$sql = " select * from {$g5['g5_shop_personalpay_table']} where pp_id = '{$pp_id}' and pp_use = '1' ";
|
||||
$pp = sql_fetch($sql);
|
||||
if(!$pp['pp_id'])
|
||||
if(! (isset($pp['pp_id']) && $pp['pp_id']))
|
||||
alert('개인결제 정보가 존재하지 않습니다.', G5_SHOP_URL.'/personalpay.php');
|
||||
|
||||
$hash_data = md5($_POST['pp_id'].$_POST['good_mny'].$pp['pp_time']);
|
||||
$hash_data = md5($pp_id.$good_mny.$pp['pp_time']);
|
||||
|
||||
if($pp['pp_tno']){
|
||||
if( $default['de_pg_service'] == 'inicis' && ($_POST['pp_id'] === get_session('ss_personalpay_id') && $hash_data === get_session('ss_personalpay_hash')) ){
|
||||
if( $default['de_pg_service'] == 'inicis' && ($pp_id === get_session('ss_personalpay_id') && $hash_data === get_session('ss_personalpay_hash')) ){
|
||||
$uid = md5($pp['pp_id'].$pp['pp_time'].$_SERVER['REMOTE_ADDR']);
|
||||
set_session('ss_personalpay_uid', $uid);
|
||||
|
||||
@ -34,7 +45,7 @@ if($pp['pp_tno']){
|
||||
}
|
||||
}
|
||||
|
||||
if($_POST['pp_id'] != get_session('ss_personalpay_id') || $hash_data != get_session('ss_personalpay_hash'))
|
||||
if($pp_id !== get_session('ss_personalpay_id') || $hash_data !== get_session('ss_personalpay_hash'))
|
||||
die('개인결제 정보가 올바르지 않습니다.');
|
||||
|
||||
if ($pp_settle_case == "계좌이체")
|
||||
@ -253,5 +264,4 @@ if( $is_noti_pay ){
|
||||
return;
|
||||
}
|
||||
|
||||
goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&uid='.$uid);
|
||||
?>
|
||||
goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&uid='.$uid);
|
||||
@ -313,5 +313,4 @@ if($pp['pp_pg'] == 'lg') {
|
||||
<!-- } 개인결제상세내역 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
include_once('../../common.php');
|
||||
@ -6,5 +6,4 @@ if( ! is_inicis_simple_pay() || ('inicis' == $default['de_pg_service']) ){ //
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/settle_inicis.inc.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/settle_inicis.inc.php');
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가;
|
||||
@ -143,5 +143,4 @@ if(!file_exists($search_skin)) {
|
||||
include_once($search_skin);
|
||||
}
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -8,6 +8,8 @@ if (!function_exists('curl_init')) {
|
||||
alert('cURL 모듈이 설치되어 있지 않습니다.\\n상점관리자에게 문의해 주십시오.');
|
||||
}
|
||||
|
||||
$useescrow = '';
|
||||
|
||||
if ($default['de_card_test']) {
|
||||
if ($default['de_escrow_use'] == 1) {
|
||||
// 에스크로결제 테스트
|
||||
@ -106,5 +108,4 @@ $inicis_cardpoint = $default['de_inicis_cartpoint_use'] ? '&cp_yn=Y' : '';
|
||||
|
||||
$noti_url = G5_MSHOP_URL.'/inicis/settle_common.php';
|
||||
$next_url = G5_MSHOP_URL.'/inicis/pay_approval.php';
|
||||
$return_url = G5_MSHOP_URL.'/inicis/pay_return.php?oid=';
|
||||
?>
|
||||
$return_url = G5_MSHOP_URL.'/inicis/pay_return.php?oid=';
|
||||
@ -46,8 +46,10 @@ else {
|
||||
$g_conf_site_cd = $default['de_kcp_mid'];
|
||||
$g_conf_site_key = $default['de_kcp_site_key'];
|
||||
|
||||
$post_settle_method = isset($_POST['settle_method']) ? $_POST['settle_method'] : '';
|
||||
|
||||
// 테스트 결제 때 PAYCO site_cd, site_key 재설정
|
||||
if($default['de_card_test'] && (($_POST['settle_method'] == '간편결제' || $_POST['od_settle_case'] == '간편결제') && (isset($_POST['payco_direct']) && $_POST['payco_direct'] === 'Y') )) {
|
||||
if($default['de_card_test'] && (($post_settle_method == '간편결제' || $post_settle_method == '간편결제') && (isset($_POST['payco_direct']) && $_POST['payco_direct'] === 'Y') )) {
|
||||
$g_conf_site_cd = 'S6729';
|
||||
$g_conf_site_key = '';
|
||||
}
|
||||
@ -62,5 +64,4 @@ if(!(preg_match("/^T000/", $g_conf_site_cd) || $default['de_card_test'])) {
|
||||
if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use']) {
|
||||
if(trim($default['de_kcp_site_key']) == '')
|
||||
alert('KCP SITE KEY를 입력해 주십시오.');
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -31,5 +31,4 @@ $configPath = G5_LGXPAY_PATH.'/lgdacom';
|
||||
/*
|
||||
* 가상계좌(무통장) 결제 연동을 하시는 경우 아래 LGD_CASNOTEURL 을 설정하여 주시기 바랍니다.
|
||||
*/
|
||||
$LGD_CASNOTEURL = G5_SHOP_URL.'/settle_lg_common.php';
|
||||
?>
|
||||
$LGD_CASNOTEURL = G5_SHOP_URL.'/settle_lg_common.php';
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';
|
||||
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
@ -120,4 +122,4 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
}
|
||||
?>
|
||||
<div id="container" class="<?php echo implode(' ', $container_class); ?>">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><h1 id="container_title"><a href="javascript:history.back()" class="btn_back"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로</span></a> <?php echo $g5['title'] ?></h1><?php } ?>
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><h1 id="container_title"><a href="javascript:history.back()" class="btn_back"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로</span></a> <?php echo $g5['title'] ?></h1><?php }
|
||||
@ -60,5 +60,4 @@ if ($config['cf_analytics']) {
|
||||
<script src="<?php echo G5_JS_URL; ?>/sns.js"></script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -33,7 +33,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if($tmp['cnt'])
|
||||
if(isset($tmp['cnt']) && $tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
|
||||
$it_price = get_price($row);
|
||||
@ -132,5 +132,4 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
@ -83,8 +83,8 @@ jQuery(function($){
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
@ -124,8 +124,8 @@ jQuery(function($){
|
||||
</section>
|
||||
|
||||
<?php
|
||||
$cnt = 0;
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
|
||||
$cnt++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -85,8 +85,8 @@ jQuery(function($){
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
@ -126,8 +126,8 @@ jQuery(function($){
|
||||
</section>
|
||||
|
||||
<?php
|
||||
$cnt = 0;
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
|
||||
$cnt++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -5,4 +5,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
<?php echo $row['total_cnt'] ?>
|
||||
<?php echo $row['total_cnt'];
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
@ -56,5 +56,4 @@ if ($w == "" && $default['de_sms_use1'] && $receive_number)
|
||||
}
|
||||
//----------------------------------------------------------
|
||||
// SMS 문자전송 끝
|
||||
//----------------------------------------------------------
|
||||
?>
|
||||
//----------------------------------------------------------;
|
||||
@ -177,7 +177,7 @@
|
||||
#mb_login_notmb {background:#fff;border-bottom:1px solid #ccc;padding:20px}
|
||||
#mb_login_notmb h2 {font-size:1.25em;padding:10px;background:#f3f3f3}
|
||||
#mb_login_notmb p {border:0;padding:0;margin:10px;color:#}
|
||||
#guest_privacy p {border:1px solid #ddd;background:#fff;color:#666;min-height:20px;height:200px;padding:10px;text-align:left;overflow-y:auto;margin:10px 0}
|
||||
#guest_privacy {border:1px solid #ccc;text-align:left;line-height:1.6em;color:#666;background:#fafafa;padding:10px;height:200px;margin:10px 0;overflow-y:auto}
|
||||
#mb_login_notmb .btn_submit {width:100%;display:block;height:40px;line-height:40px}
|
||||
|
||||
#mb_login_od_wr {background:#fff;border-bottom:1px solid #ccc;padding:20px}
|
||||
|
||||
@ -259,6 +259,7 @@
|
||||
#bo_v_ans #ans_msg {padding:40px 0;background:#f2f5f9;text-align:center}
|
||||
#bo_v_ans .btn_submit {width:100%;height:40px;border-radius:5px}
|
||||
#bo_v_ans .btn_confirm {margin:0 10px}
|
||||
#bo_v_ans form{padding:1em}
|
||||
|
||||
#bo_v_rel {}
|
||||
#bo_v_rel h2 {margin:0 10px 10px;font-size:1.2em}
|
||||
|
||||
@ -15,15 +15,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<?php } ?>
|
||||
<li>
|
||||
<button type="button" class="btn_more_opt btn_b03 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
|
||||
<?php ob_start(); ?>
|
||||
<ul class="more_opt">
|
||||
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 수정</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
<script>
|
||||
@ -44,8 +39,6 @@ $(".btn_more_opt").on("click", function() {
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성일</span><strong><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
|
||||
<span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?></strong>
|
||||
<span class="sound_only">댓글</span><strong><i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?></strong>
|
||||
</div>
|
||||
<?php if($view['email'] || $view['hp']) { ?>
|
||||
<div id="bo_v_contact">
|
||||
@ -115,8 +108,8 @@ $(".btn_more_opt").on("click", function() {
|
||||
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li class="bo_v_prev"><a href="<?php echo $prev_href ?>"><i class="fa fa-chevron-up" aria-hidden="true"></i><span class="sound_only">이전글</span> <?php echo $prev_wr_subject;?></a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li class="bo_v_next"><a href="<?php echo $next_href ?>"><i class="fa fa-chevron-down" aria-hidden="true"></i><span class="sound_only">다음글</span> <?php echo $next_wr_subject;?></a></li><?php } ?>
|
||||
<?php if ($prev_href) { ?><li class="bo_v_prev"><a href="<?php echo $prev_href ?>"><i class="fa fa-chevron-up" aria-hidden="true"></i><span class="sound_only">이전글</span> <?php echo $prev_qa_subject;?></a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li class="bo_v_next"><a href="<?php echo $next_href ?>"><i class="fa fa-chevron-down" aria-hidden="true"></i><span class="sound_only">다음글</span> <?php echo $next_qa_subject;?></a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</article>
|
||||
|
||||
@ -31,11 +31,11 @@ if ($stx) {
|
||||
|
||||
<label for="sfl" class="sound_only">검색조건</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($sfl, "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($sfl, "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($sfl, "wr_name") ?>>이름</option>
|
||||
</select>
|
||||
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
|
||||
@ -491,8 +491,11 @@ $(function(){
|
||||
$('#slide-counter .current-index').text(newIndex + 1);
|
||||
}
|
||||
});
|
||||
|
||||
$('#slide-counter').append('<span class="total-slides">'+slider.getSlideCount()+'</span>');
|
||||
|
||||
try {
|
||||
$('#slide-counter').append('<span class="total-slides">'+slider.getSlideCount()+'</span>');
|
||||
} catch (error) {
|
||||
}
|
||||
|
||||
$('a.pager-prev').click(function () {
|
||||
var current = slider.getCurrentSlide();
|
||||
@ -555,7 +558,7 @@ function fsubmit_check(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
@ -627,7 +630,7 @@ function fitem_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_qa');
|
||||
?>
|
||||
goto_url(shop_item_url($it_id).'#sit_qa');
|
||||
@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_use');
|
||||
?>
|
||||
goto_url(shop_item_url($it_id).'#sit_use');
|
||||
@ -30,7 +30,6 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
|
||||
$is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : '';
|
||||
$is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : '';
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ function fit_width()
|
||||
var sw = $(window).width();
|
||||
var $img = $("#sit_pvi_nwbig span img");
|
||||
|
||||
if($img.size() < 1)
|
||||
if($img.length < 1)
|
||||
return;
|
||||
|
||||
$img.each(function() {
|
||||
|
||||
@ -186,4 +186,4 @@ jQuery(function($){
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -115,7 +115,7 @@ if($this->total_count > 0) {
|
||||
var $btns = this.find(""+cfg.buttons+"");
|
||||
|
||||
var idx = cfg.startSlide;
|
||||
var count = $slides.size();
|
||||
var count = $slides.length;
|
||||
var width, outerW;
|
||||
|
||||
if(count < 1)
|
||||
@ -179,5 +179,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -33,4 +33,4 @@ if ($exists) {
|
||||
</aside>
|
||||
<!-- } 상품분류 1 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -77,6 +77,4 @@ $('.sev_slide').bxSlider({
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
}
|
||||
@ -114,5 +114,4 @@ jQuery(function($){
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -98,5 +98,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH."/tail.sub.php");
|
||||
?>
|
||||
include_once(G5_PATH."/tail.sub.php");
|
||||
Reference in New Issue
Block a user