통합인증 : 이니시스 통합인증 관련 수정
This commit is contained in:
@ -110,7 +110,7 @@ if ($w == '' || $w == 'u') {
|
||||
if ($msg = prohibit_mb_email($mb_email))alert($msg, "", true, true);
|
||||
|
||||
// 휴대폰 필수입력일 경우 휴대폰번호 유효성 체크
|
||||
if (($config['cf_use_hp'] || $config['cf_cert_hp']) && $config['cf_req_hp']) {
|
||||
if ($config['cf_use_hp'] || ($config['cf_cert_hp'] || $config['cf_cert_sa']) && $config['cf_req_hp']) {
|
||||
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
|
||||
}
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<td colspan="2">이용자 식별 및 본인여부 확인</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>아이디, 이름, 비밀번호</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -52,10 +52,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
if($config['cf_cert_use']) {
|
||||
// #TODO 조건 추가 필요
|
||||
if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_toss_cert" class="btn_frmline">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_pass_cert" class="btn_frmline">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_payco_cert" class="btn_frmline">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_kftc_cert" class="btn_frmline">금융인증서</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="TOSS">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PASS">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PAYCO">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="KFTC">금융인증서</button>'.PHP_EOL;
|
||||
}
|
||||
if($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_frmline btn">휴대폰 본인확인</button>'.PHP_EOL;
|
||||
@ -129,12 +129,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($config['cf_use_hp'] || $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_use_hp'] || ($config["cf_cert_use"] && ($config['cf_cert_hp'] || $config['cf_cert_sa']))) { ?>
|
||||
<li>
|
||||
<label for="reg_mb_hp" class="sound_only">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong>필수</strong><?php } ?></label>
|
||||
|
||||
<input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input full_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20" placeholder="휴대폰번호">
|
||||
<?php if ($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_cert_use'] && ($config['cf_cert_hp'] || $config['cf_cert_sa'])) { ?>
|
||||
<input type="hidden" name="old_mb_hp" value="<?php echo get_text($member['mb_hp']) ?>">
|
||||
<?php } ?>
|
||||
|
||||
@ -289,62 +289,65 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<script>
|
||||
$(function() {
|
||||
$("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_sa']) { ?>
|
||||
// TOSS 통합인증
|
||||
$("#win_sa_toss_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
var url = "<?php echo G5_KGCERT_URL; ?>/kg_request.php";
|
||||
var type = "";
|
||||
var params = "";
|
||||
var request_url = "";
|
||||
|
||||
call_sa("TOSS", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// PASS 통합인증
|
||||
$("#win_sa_pass_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("PASS", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// PAYCO 통합인증
|
||||
$("#win_sa_payco_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("PAYCO", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// KFTC 통합인증
|
||||
$("#win_sa_kftc_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("KFTC", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
$(".win_sa_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch(type) {
|
||||
case "TOSS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PASS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PAYCO" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "KFTC" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
default :
|
||||
return;
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
|
||||
// 아이핀인증
|
||||
$("#win_ipin_cert").click(function(e) {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php";
|
||||
certify_win_open('kcb-ipin', url, e);
|
||||
var params = "";
|
||||
$("#win_ipin_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php"+params;
|
||||
certify_win_open('kcb-ipin', url);
|
||||
return;
|
||||
});
|
||||
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
// 휴대폰인증
|
||||
$("#win_hp_cert").click(function(e) {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
<?php
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
@ -361,9 +364,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>", e);
|
||||
?>
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>"+params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
@ -40,7 +40,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>아이디, 이름, 비밀번호</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -56,11 +56,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<li>
|
||||
<?php
|
||||
if($config['cf_cert_use']) {
|
||||
if($config['cf_cert_sa'])
|
||||
echo '<button type="button" id="win_sa_toss_cert" class="btn_frmline">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_pass_cert" class="btn_frmline">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_payco_cert" class="btn_frmline">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_kftc_cert" class="btn_frmline">금융인증서</button>'.PHP_EOL;
|
||||
if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="TOSS">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PASS">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PAYCO">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="KFTC">금융인증서</button>'.PHP_EOL;
|
||||
}
|
||||
if($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_frmline">휴대폰 본인확인</button>'.PHP_EOL;
|
||||
if($config['cf_cert_ipin'])
|
||||
@ -137,11 +138,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<?php } ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php if ($config['cf_use_hp'] || $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_use_hp'] || ($config["cf_cert_use"] && ($config['cf_cert_hp'] || $config['cf_cert_sa']))) { ?>
|
||||
<label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label>
|
||||
|
||||
<input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input full_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20" placeholder="휴대폰번호">
|
||||
<?php if ($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_cert_use'] && ($config['cf_cert_hp'] || $config['cf_cert_sa'])) { ?>
|
||||
<input type="hidden" name="old_mb_hp" value="<?php echo get_text($member['mb_hp']) ?>">
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
@ -296,56 +297,55 @@ gif, jpg, png파일만 가능하며 용량 <?php echo number_format($config['cf_
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_sa']) { ?>
|
||||
<form name="saForm">
|
||||
<input type="hidden" name="directAgency" value="">
|
||||
</form>
|
||||
<?php } ?>
|
||||
<script>
|
||||
$(function() {
|
||||
$("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_sa']) { ?>
|
||||
// TOSS 통합인증
|
||||
$("#win_sa_toss_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("TOSS", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// PASS 통합인증
|
||||
$("#win_sa_pass_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("PASS", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// PAYCO 통합인증
|
||||
$("#win_sa_payco_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("PAYCO", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
// KFTC 통합인증
|
||||
$("#win_sa_kftc_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
call_sa("KFTC", "<?php echo G5_KGCERT_URL; ?>/kg_request.php");
|
||||
return;
|
||||
});
|
||||
var url = "<?php echo G5_KGCERT_URL; ?>/kg_request.php";
|
||||
var type = "";
|
||||
var params = "";
|
||||
var request_url = "";
|
||||
|
||||
|
||||
$(".win_sa_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch(type) {
|
||||
case "TOSS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PASS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PAYCO" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "KFTC" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
default :
|
||||
return;
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
|
||||
// 아이핀인증
|
||||
var params = "";
|
||||
$("#win_ipin_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php";
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php"+params;
|
||||
certify_win_open('kcb-ipin', url);
|
||||
return;
|
||||
});
|
||||
@ -353,13 +353,13 @@ $(function() {
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
<?php
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
@ -377,8 +377,8 @@ $(function() {
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>");
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>"+params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
@ -49,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<td colspan="2">이용자 식별 및 본인여부 확인</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>아이디, 이름, 비밀번호</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -7,7 +7,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
<div class="register">
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script>
|
||||
<?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
|
||||
<?php if($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/certify.js?v=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
@ -51,12 +51,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<?php
|
||||
if($config['cf_cert_use']) {
|
||||
// #TODO 조건 추가 필요
|
||||
// if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_toss" class="btn_frmline">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_pass" class="btn_frmline">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_payco" class="btn_frmline">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline">금융인증서</button>'.PHP_EOL;
|
||||
// }
|
||||
if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="TOSS">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PASS">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PAYCO">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="KFTC">금융인증서</button>'.PHP_EOL;
|
||||
}
|
||||
if($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_frmline btn">휴대폰 본인확인</button>'.PHP_EOL;
|
||||
if($config['cf_cert_ipin'])
|
||||
@ -67,10 +67,17 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
?>
|
||||
<?php
|
||||
if ($config['cf_cert_use'] && $member['mb_certify']) {
|
||||
if($member['mb_certify'] == 'ipin')
|
||||
$mb_cert = '아이핀';
|
||||
else
|
||||
$mb_cert = '휴대폰';
|
||||
switch ($member['mb_certify']) {
|
||||
case "sa":
|
||||
$mb_cert = "통합인증";
|
||||
break;
|
||||
case "ipin":
|
||||
$mb_cert = "아이핀";
|
||||
break;
|
||||
case "hp":
|
||||
$mb_cert = "휴대폰";
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<div id="msg_certify">
|
||||
<strong><?php echo $mb_cert; ?> 본인확인</strong><?php if ($member['mb_adult']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
|
||||
@ -121,12 +128,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($config['cf_use_hp'] || $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_use_hp'] || ($config["cf_cert_use"] && ($config['cf_cert_hp'] || $config['cf_cert_sa']))) { ?>
|
||||
<li>
|
||||
<label for="reg_mb_hp" class="sound_only">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong>필수</strong><?php } ?></label>
|
||||
|
||||
<input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input full_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20" placeholder="휴대폰번호">
|
||||
<?php if ($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_cert_use'] && ($config['cf_cert_hp'] || $config['cf_cert_sa'])) { ?>
|
||||
<input type="hidden" name="old_mb_hp" value="<?php echo get_text($member['mb_hp']) ?>">
|
||||
<?php } ?>
|
||||
|
||||
@ -281,28 +288,66 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<script>
|
||||
$(function() {
|
||||
$("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_sa']) { ?>
|
||||
// TOSS 통합인증
|
||||
var url = "<?php echo G5_KGCERT_URL; ?>/kg_request.php";
|
||||
var type = "";
|
||||
var params = "";
|
||||
var request_url = "";
|
||||
|
||||
|
||||
$(".win_sa_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch(type) {
|
||||
case "TOSS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PASS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PAYCO" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "KFTC" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
default :
|
||||
return;
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
|
||||
// 아이핀인증
|
||||
$("#win_ipin_cert").click(function(e) {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php";
|
||||
certify_win_open('kcb-ipin', url, e);
|
||||
var params = "";
|
||||
$("#win_ipin_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php"+params;
|
||||
certify_win_open('kcb-ipin', url);
|
||||
return;
|
||||
});
|
||||
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
// 휴대폰인증
|
||||
$("#win_hp_cert").click(function(e) {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
<?php
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
@ -319,9 +364,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>", e);
|
||||
?>
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>"+params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
@ -334,6 +378,9 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
var type;
|
||||
|
||||
switch(val) {
|
||||
case "sa":
|
||||
type = "통합인증";
|
||||
break;
|
||||
case "ipin":
|
||||
type = "아이핀";
|
||||
break;
|
||||
|
||||
@ -40,7 +40,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>아이디, 이름, 비밀번호</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -9,7 +9,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
<div class="register">
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script>
|
||||
<?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
|
||||
<?php if($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
|
||||
<script src="<?php echo G5_JS_URL ?>/certify.js?v=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
@ -56,13 +56,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<li>
|
||||
<?php
|
||||
if($config['cf_cert_use']) {
|
||||
// #TODO 조건 추가 필요
|
||||
// if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_toss" class="btn_frmline">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_pass" class="btn_frmline">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_payco" class="btn_frmline">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline">금융인증서</button>'.PHP_EOL;
|
||||
// }
|
||||
if($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="TOSS">토스 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PASS">PASS 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="PAYCO">페이코 인증</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_frmline win_sa_cert" data-type="KFTC">금융인증서</button>'.PHP_EOL;
|
||||
}
|
||||
if($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_frmline">휴대폰 본인확인</button>'.PHP_EOL;
|
||||
if($config['cf_cert_ipin'])
|
||||
@ -73,10 +72,17 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
?>
|
||||
<?php
|
||||
if ($config['cf_cert_use'] && $member['mb_certify']) {
|
||||
if($member['mb_certify'] == 'ipin')
|
||||
$mb_cert = '아이핀';
|
||||
else
|
||||
$mb_cert = '휴대폰';
|
||||
switch ($member['mb_certify']) {
|
||||
case "sa":
|
||||
$mb_cert = "통합인증";
|
||||
break;
|
||||
case "ipin":
|
||||
$mb_cert = "아이핀";
|
||||
break;
|
||||
case "hp":
|
||||
$mb_cert = "휴대폰";
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<div id="msg_certify">
|
||||
<strong><?php echo $mb_cert; ?> 본인확인</strong><?php if ($member['mb_adult']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
|
||||
@ -110,11 +116,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<?php if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
|
||||
<?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</label>
|
||||
|
||||
<input type="hidden" name="old_email" value="<?php echo $member['mb_email'] ?>">
|
||||
<input type="text" name="mb_email" value="<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" required class="frm_input email full_input required" size="70" maxlength="100" placeholder="E-mail">
|
||||
|
||||
</li>
|
||||
|
||||
<?php if ($config['cf_use_homepage']) { ?>
|
||||
@ -132,11 +138,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<?php } ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php if ($config['cf_use_hp'] || $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_use_hp'] || ($config["cf_cert_use"] && ($config['cf_cert_hp'] || $config['cf_cert_sa']))) { ?>
|
||||
<label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label>
|
||||
|
||||
<input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input full_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20" placeholder="휴대폰번호">
|
||||
<?php if ($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
<?php if ($config['cf_cert_use'] && ($config['cf_cert_hp'] || $config['cf_cert_sa'])) { ?>
|
||||
<input type="hidden" name="old_mb_hp" value="<?php echo get_text($member['mb_hp']) ?>">
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
@ -294,14 +300,52 @@ gif, jpg, png파일만 가능하며 용량 <?php echo number_format($config['cf_
|
||||
<script>
|
||||
$(function() {
|
||||
$("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_sa']) { ?>
|
||||
// TOSS 통합인증
|
||||
var url = "<?php echo G5_KGCERT_URL; ?>/kg_request.php";
|
||||
var type = "";
|
||||
var params = "";
|
||||
var request_url = "";
|
||||
|
||||
|
||||
$(".win_sa_cert").click(function() {
|
||||
if(!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch(type) {
|
||||
case "TOSS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PASS" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "PAYCO" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
case "KFTC" :
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
call_sa(request_url);
|
||||
break;
|
||||
default :
|
||||
return;
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
|
||||
// 아이핀인증
|
||||
var params = "";
|
||||
$("#win_ipin_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php";
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php"+params;
|
||||
certify_win_open('kcb-ipin', url);
|
||||
return;
|
||||
});
|
||||
@ -309,13 +353,13 @@ $(function() {
|
||||
<?php } ?>
|
||||
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if(!cert_confirm())
|
||||
return false;
|
||||
|
||||
<?php
|
||||
if(!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
@ -333,8 +377,8 @@ $(function() {
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>");
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>"+params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user