휴대폰인증 처리 폼 삭제
This commit is contained in:
@ -1,18 +1,13 @@
|
|||||||
<?
|
<?
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// kcp 휴대폰인증파일
|
|
||||||
include_once(G4_BBS_PATH.'/kcp/kcpcert_config.php');
|
|
||||||
if(!$ordr_idxx = get_session('ss_uniqid'))
|
|
||||||
$ordr_idxx = get_uniqid();
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?=G4_JS_URL?>/jquery.register_form.js"></script>
|
<script src="<?=G4_JS_URL?>/jquery.register_form.js"></script>
|
||||||
|
|
||||||
<form id="fregisterform" name="fregisterform" method="post" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
|
<form id="fregisterform" name="fregisterform" method="post" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
|
||||||
<input type="hidden" name="w" value="<?=$w?>">
|
<input type="hidden" name="w" value="<?=$w?>">
|
||||||
<input type="hidden" name="cert_no" value="">
|
<input type="hidden" name="kcpcert_no" value="">
|
||||||
<input type="hidden" name="cert_time" value="">
|
<input type="hidden" name="kcpcert_time" value="">
|
||||||
<input type="hidden" name="url" value="<?=$urlencode?>">
|
<input type="hidden" name="url" value="<?=$urlencode?>">
|
||||||
<input type="hidden" name="agree" value="<?=$agree?>">
|
<input type="hidden" name="agree" value="<?=$agree?>">
|
||||||
<input type="hidden" name="agree2" value="<?=$agree2?>">
|
<input type="hidden" name="agree2" value="<?=$agree2?>">
|
||||||
@ -99,7 +94,7 @@ if(!$ordr_idxx = get_session('ss_uniqid'))
|
|||||||
<th scope="row"><label for="reg_mb_hp">핸드폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
|
<th scope="row"><label for="reg_mb_hp">핸드폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20" <?=$config['cf_req_hp']?"required":"";?> value="<?=$member[mb_hp]?>">
|
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20" <?=$config['cf_req_hp']?"required":"";?> value="<?=$member[mb_hp]?>">
|
||||||
<a href="#" class="btn_frmline win_person_auth" target="_blank">휴대폰인증</a>
|
<button type="button" id="win_kcpcert">휴대폰인증</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
@ -219,43 +214,9 @@ if(!$ordr_idxx = get_session('ss_uniqid'))
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form name="form_auth" method="post" target="auth_popup" action="<?=$cert_url?>">
|
<? // 휴대폰인증 form
|
||||||
<!-- 유저네임 -->
|
include_once(G4_BBS_PATH.'/kcp/kcpcert_form.php');
|
||||||
<input type="hidden" name="user_name" value="" />
|
?>
|
||||||
<!-- 주문번호 -->
|
|
||||||
<input type="hidden" name="ordr_idxx" value="<?=$ordr_idxx?>">
|
|
||||||
<!-- 요청종류 -->
|
|
||||||
<input type="hidden" name="req_tx" value="cert"/>
|
|
||||||
<!-- 인증종류 -->
|
|
||||||
<input type="hidden" name="cert_type" value="01"/>
|
|
||||||
<!-- 웹사이트아이디 -->
|
|
||||||
<input type="hidden" name="web_siteid" value=""/>
|
|
||||||
<!-- 노출 통신사 default 처리시 아래의 주석을 해제하고 사용하십시요
|
|
||||||
SKT : SKT , KT : KTF , LGU+ : LGT
|
|
||||||
<input type="hidden" name="fix_commid" value="KTF"/>
|
|
||||||
-->
|
|
||||||
<!-- 사이트코드 -->
|
|
||||||
<input type="hidden" name="site_cd" value="<?= $site_cd ?>" />
|
|
||||||
<!-- Ret_URL : 인증결과 리턴 페이지 ( 가맹점 URL 로 설정해 주셔야 합니다. ) -->
|
|
||||||
<input type="hidden" name="Ret_URL" value="<?=G4_BBS_URL?>/kcp/kcpcert_result.php" />
|
|
||||||
<!-- cert_otp_use 필수 ( 메뉴얼 참고)
|
|
||||||
Y : 실명 확인 + OTP 점유 확인 , N : 실명 확인 only
|
|
||||||
-->
|
|
||||||
<input type="hidden" name="cert_otp_use" value="Y"/>
|
|
||||||
<!-- cert_enc_use 필수 (고정값 : 메뉴얼 참고) -->
|
|
||||||
<input type="hidden" name="cert_enc_use" value="Y"/>
|
|
||||||
|
|
||||||
<input type="hidden" name="res_cd" value=""/>
|
|
||||||
<input type="hidden" name="res_msg" value=""/>
|
|
||||||
|
|
||||||
<!-- up_hash 검증 을 위한 필드 -->
|
|
||||||
<input type="hidden" name="veri_up_hash" value=""/>
|
|
||||||
|
|
||||||
<!-- 가맹점 사용 필드 (인증완료시 리턴)-->
|
|
||||||
<input type="hidden" name="param_opt_1" value="opt1"/>
|
|
||||||
<input type="hidden" name="param_opt_2" value="opt2"/>
|
|
||||||
<input type="hidden" name="param_opt_3" value="opt3"/>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
@ -263,45 +224,13 @@ $(function() {
|
|||||||
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
|
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
|
||||||
|
|
||||||
// 휴대폰인증
|
// 휴대폰인증
|
||||||
$('.win_person_auth').click(function() {
|
$('#win_kcpcert').click(function() {
|
||||||
auth_type_check();
|
var name = document.fregisterform.mb_name.value;
|
||||||
|
auth_type_check(name);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// 인증창 호출 함수
|
|
||||||
function auth_type_check()
|
|
||||||
{
|
|
||||||
var auth_form = document.form_auth;
|
|
||||||
auth_form.user_name.value = encodeURIComponent(document.fregisterform.mb_name.value);
|
|
||||||
|
|
||||||
if( auth_form.ordr_idxx.value == "" )
|
|
||||||
{
|
|
||||||
alert( "주문번호는 필수 입니다." );
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) == false ) // 스마트폰이 아닌경우
|
|
||||||
{
|
|
||||||
var return_gubun;
|
|
||||||
var width = 410;
|
|
||||||
var height = 500;
|
|
||||||
|
|
||||||
var leftpos = screen.width / 2 - ( width / 2 );
|
|
||||||
var toppos = screen.height / 2 - ( height / 2 );
|
|
||||||
|
|
||||||
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
|
|
||||||
var position = ",left=" + leftpos + ", top=" + toppos;
|
|
||||||
var AUTH_POP = window.open('','auth_popup', winopts + position);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
auth_form.submit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// submit 최종 폼체크
|
// submit 최종 폼체크
|
||||||
function fregisterform_submit(f)
|
function fregisterform_submit(f)
|
||||||
{
|
{
|
||||||
@ -373,6 +302,14 @@ function fregisterform_submit(f)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 휴대폰인증 검사
|
||||||
|
if(f.w.value == "") {
|
||||||
|
if(f.cert_no.value == "" || f.cert_time.value == "") {
|
||||||
|
alert("휴대폰인증을 해주세요.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof f.mb_icon != 'undefined') {
|
if (typeof f.mb_icon != 'undefined') {
|
||||||
if (f.mb_icon.value) {
|
if (f.mb_icon.value) {
|
||||||
if (!f.mb_icon.value.toLowerCase().match(/.(gif)$/i)) {
|
if (!f.mb_icon.value.toLowerCase().match(/.(gif)$/i)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user