기존 본인확인 여부 체크 코드 수정
This commit is contained in:
@ -57,9 +57,15 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>'.PHP_EOL;
|
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php if ($config['cf_cert_use'] && $member['mb_certify']) { ?>
|
<?php
|
||||||
|
if ($config['cf_cert_use'] && $member['mb_certify']) {
|
||||||
|
if($member['mb_certify'] == 'ipin')
|
||||||
|
$mb_cert = '아이핀';
|
||||||
|
else
|
||||||
|
$mb_cert = '휴대폰';
|
||||||
|
?>
|
||||||
<div id="msg_certify">
|
<div id="msg_certify">
|
||||||
<strong>본인확인</strong><?php if ($member['mb_adult']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
|
<strong><?php echo $mb_cert; ?> 본인확인</strong><?php if ($member['mb_adult']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
@ -257,16 +263,14 @@ if ($config['cf_cert_use']) {
|
|||||||
$(function() {
|
$(function() {
|
||||||
$("#reg_zip_find").css("display", "inline-block");
|
$("#reg_zip_find").css("display", "inline-block");
|
||||||
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
|
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
|
||||||
|
|
||||||
<?php if($config['cf_cert_use']) { ?>
|
<?php if($config['cf_cert_use']) { ?>
|
||||||
|
|
||||||
<?php if($config['cf_cert_ipin'] == 'kcb') { ?>
|
<?php if($config['cf_cert_ipin'] == 'kcb') { ?>
|
||||||
// KCB 아이핀인증
|
// KCB 아이핀인증
|
||||||
$("#win_ipin_cert").click(function() {
|
$("#win_ipin_cert").click(function() {
|
||||||
if($("input[name=cert_type]").val() == "hp") {
|
if(!cert_confirm())
|
||||||
if(confirm("이미 휴대폰 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
|
return false;
|
||||||
$("input[name=cert_type]").val("");
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = "<?php echo G4_OKNAME_URL; ?>/ipin1.php";
|
var url = "<?php echo G4_OKNAME_URL; ?>/ipin1.php";
|
||||||
var popupWindow = window.open( url, "kcbPop", "left=200, top=100, status=0, width=450, height=550" );
|
var popupWindow = window.open( url, "kcbPop", "left=200, top=100, status=0, width=450, height=550" );
|
||||||
@ -278,12 +282,8 @@ $(function() {
|
|||||||
<?php if($config['cf_cert_hp'] == 'kcb') { ?>
|
<?php if($config['cf_cert_hp'] == 'kcb') { ?>
|
||||||
// KCB 휴대폰인증
|
// KCB 휴대폰인증
|
||||||
$("#win_hp_cert").click(function() {
|
$("#win_hp_cert").click(function() {
|
||||||
if($("input[name=cert_type]").val() == "ipin") {
|
if(!cert_confirm())
|
||||||
if(confirm("이미 아이핀 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
|
return false;
|
||||||
$("input[name=cert_type]").val("");
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = "<?php echo G4_OKNAME_URL; ?>/hpcert1.php";
|
var url = "<?php echo G4_OKNAME_URL; ?>/hpcert1.php";
|
||||||
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=430, height=590, scrollbar=yes" );
|
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=430, height=590, scrollbar=yes" );
|
||||||
@ -295,20 +295,40 @@ $(function() {
|
|||||||
<?php if($config['cf_cert_hp'] == 'kcp') { ?>
|
<?php if($config['cf_cert_hp'] == 'kcp') { ?>
|
||||||
// KCP 휴대폰인증
|
// KCP 휴대폰인증
|
||||||
$("#win_hp_cert").click(function() {
|
$("#win_hp_cert").click(function() {
|
||||||
if($("input[name=cert_type]").val() == "ipin") {
|
if(!cert_confirm())
|
||||||
if(confirm("이미 아이핀 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
|
return false;
|
||||||
$("input[name=cert_type]").val("");
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
auth_type_check($("#reg_mb_name").val());
|
auth_type_check($("#reg_mb_name").val());
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 인증체크
|
||||||
|
function cert_confirm()
|
||||||
|
{
|
||||||
|
var val = document.fregisterform.cert_type.value;
|
||||||
|
var type;
|
||||||
|
|
||||||
|
switch(val) {
|
||||||
|
case "ipin":
|
||||||
|
type = "아이핀";
|
||||||
|
break;
|
||||||
|
case "hp":
|
||||||
|
type = "휴대폰";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(confirm("이미 "+type+" 본인확인을 완료하셨습니다.\n\n이전 인증을 취소하고 다시 인증하시겠습니까?"))
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// submit 최종 폼체크
|
// submit 최종 폼체크
|
||||||
function fregisterform_submit(f)
|
function fregisterform_submit(f)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user