통합인증 : 인증 갱신 관련 추가 작업
This commit is contained in:
@ -60,22 +60,25 @@ if ((isset($wr_id) && $wr_id) || (isset($wr_seo_title) && $wr_seo_title)) {
|
||||
if ($board['bo_use_cert'] != '' && $is_guest) {
|
||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||
}
|
||||
if ($board['bo_use_cert'] && strlen($member['mb_dupinfo']) == 64 && $member['mb_certify']) { // 본인 인증 된 계정 중에서 di로 저장 되었을 경우에만
|
||||
goto_url(G5_BBS_URL."/member_cert_refresh.php");
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
||||
if ($board['bo_use_cert'] && !$member['mb_certify']) {
|
||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
|
||||
if ($board['bo_use_cert'] && !$member['mb_adult']) {
|
||||
alert('이 게시판은 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
// if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') {
|
||||
// alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
// }
|
||||
|
||||
if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
// if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) {
|
||||
// alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
// }
|
||||
}
|
||||
|
||||
// 자신의 글이거나 관리자라면 통과
|
||||
@ -154,21 +157,25 @@ if ((isset($wr_id) && $wr_id) || (isset($wr_seo_title) && $wr_seo_title)) {
|
||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
||||
if ($board['bo_use_cert'] && strlen($member['mb_dupinfo']) == 64 && $member['mb_certify']) { // 본인 인증 된 계정 중에서 di로 저장 되었을 경우에만
|
||||
goto_url(G5_BBS_URL."/member_cert_refresh.php");
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] && !$member['mb_certify']) {
|
||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
|
||||
if ($board['bo_use_cert'] && !$member['mb_adult']) {
|
||||
alert('이 게시판은 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') {
|
||||
alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
// if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') {
|
||||
// alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G5_URL);
|
||||
// }
|
||||
|
||||
if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
}
|
||||
// if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) {
|
||||
// alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G5_URL);
|
||||
// }
|
||||
}
|
||||
|
||||
if (!isset($page) || (isset($page) && $page == 0)) $page = 1;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('./_common.php');
|
||||
|
||||
if(function_exists('social_provider_logout')){
|
||||
|
||||
15
bbs/member_cert_refresh.php
Normal file
15
bbs/member_cert_refresh.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('./_common.php');
|
||||
|
||||
if(!$is_member) { alert("잘못된 접근입니다."); goto_url(G5_URL); }
|
||||
|
||||
if($config['cf_cert_use'] == 0) alert("본인인증을 이용 할 수 없습니다. 관리자에게 문의 하십시오.");
|
||||
|
||||
$g5['title'] = '본인인증을 다시 해주세요.';
|
||||
include_once(G5_PATH.'/_head.php');
|
||||
|
||||
$action_url = G5_HTTPS_BBS_URL."/member_cert_refresh_update.php";
|
||||
include_once($member_skin_path.'/register_cert_reset.skin.php');
|
||||
|
||||
include_once(G5_PATH.'/_tail.php');
|
||||
68
bbs/member_cert_refresh_update.php
Normal file
68
bbs/member_cert_refresh_update.php
Normal file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('./_common.php');
|
||||
global $g5;
|
||||
|
||||
if (!($w == '' || $w == 'u')) {
|
||||
alert('w 값이 제대로 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
if($w == '')
|
||||
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
|
||||
else
|
||||
alert('잘못된 접근입니다', G5_URL);
|
||||
|
||||
if(!$mb_id)
|
||||
alert('회원아이디 값이 없습니다. 올바른 방법으로 이용해 주십시오.');
|
||||
|
||||
//===============================================================
|
||||
// 본인확인
|
||||
//---------------------------------------------------------------
|
||||
$mb_hp = hyphen_hp_number($mb_hp);
|
||||
if($config['cf_cert_use'] && get_session('ss_cert_type') && get_session('ss_cert_dupinfo')) {
|
||||
// 중복체크
|
||||
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '".get_session('ss_cert_dupinfo')."' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['mb_id']) {
|
||||
alert("입력하신 본인확인 정보로 가입된 내역이 존재합니다.");
|
||||
}
|
||||
}
|
||||
|
||||
$sql = '';
|
||||
$sql_certify = '';
|
||||
$md5_cert_no = get_session('ss_cert_no');
|
||||
$cert_type = get_session('ss_cert_type');
|
||||
if ($config['cf_cert_use'] && $cert_type && $md5_cert_no) {
|
||||
// 해시값이 같은 경우에만 본인확인 값을 저장한다.
|
||||
if (get_session('ss_cert_hash') == md5($mb_name.$cert_type.get_session('ss_cert_birth').$md5_cert_no)) {
|
||||
$sql_certify .= " mb_hp = '{$mb_hp}' ";
|
||||
$sql_certify .= " , mb_certify = '{$cert_type}' ";
|
||||
$sql_certify .= " , mb_adult = '".get_session('ss_cert_adult')."' ";
|
||||
$sql_certify .= " , mb_birth = '".get_session('ss_cert_birth')."' ";
|
||||
$sql_certify .= " , mb_sex = '".get_session('ss_cert_sex')."' ";
|
||||
$sql_certify .= " , mb_dupinfo = '".get_session('ss_cert_dupinfo')."' ";
|
||||
if($w == 'u')
|
||||
$sql_certify .= " , mb_name = '{$mb_name}' ";
|
||||
} else {
|
||||
$sql_certify .= " mb_hp = '{$mb_hp}' ";
|
||||
$sql_certify .= " , mb_certify = '' ";
|
||||
$sql_certify .= " , mb_adult = 0 ";
|
||||
$sql_certify .= " , mb_birth = '' ";
|
||||
$sql_certify .= " , mb_sex = '' ";
|
||||
}
|
||||
} else {
|
||||
if (get_session("ss_reg_mb_name") != $mb_name || get_session("ss_reg_mb_hp") != $mb_hp) {
|
||||
$sql_certify .= " mb_hp = '{$mb_hp}' ";
|
||||
$sql_certify .= " , mb_certify = '' ";
|
||||
$sql_certify .= " , mb_adult = 0 ";
|
||||
$sql_certify .= " , mb_birth = '' ";
|
||||
$sql_certify .= " , mb_sex = '' ";
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "update {$g5['member_table']} set {$sql_certify} where mb_id = '{$mb_id}'";
|
||||
sql_query($sql);
|
||||
|
||||
//===============================================================
|
||||
|
||||
goto_url(G5_URL);
|
||||
@ -792,6 +792,12 @@ if(!empty($extend_file) && is_array($extend_file)) {
|
||||
}
|
||||
unset($extend_file);
|
||||
|
||||
if(!$is_admin && $is_member && !G5_CERT_IN_PROG && $config['cf_cert_use'] <> 0 && $config['cf_cert_req']) { // 본인인증이 필수일때
|
||||
if ((empty($member['mb_certify']) || (!empty($member['mb_certify']) && strlen($member['mb_dupinfo']) == 64))) { // di로 인증되어 있거나 본인인증이 안된 계정일때
|
||||
goto_url(G5_BBS_URL."/member_cert_refresh.php");
|
||||
}
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
|
||||
|
||||
@ -135,6 +135,7 @@ define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH.'/'.G5_PHPMAILER_DIR);
|
||||
//------------------------------------------------------------------------------
|
||||
define('G5_SET_DEVICE', 'both');
|
||||
|
||||
define('G5_CERT_IN_PROG', false); // 재인증페이지 리디렉션 사용여부
|
||||
define('G5_USE_MOBILE', true); // 모바일 홈페이지를 사용하지 않을 경우 false 로 설정
|
||||
define('G5_USE_CACHE', true); // 최신글등에 cache 기능 사용 여부
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<td colspan="2">이용자 식별 및 본인여부 확인</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -4,10 +4,19 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?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 } ?>
|
||||
<!-- 기존 회원 본인인증 시작 { -->
|
||||
<div class="register_cert_reset">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $register_action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id']; ?>">
|
||||
<input type="hidden" name="mb_hp" value="<?php echo $member['mb_hp']; ?>">
|
||||
<input type="hidden" name="mb_name" value="<?php echo $member['mb_name']; ?>">
|
||||
<input type="hidden" name="cert_no" value="">
|
||||
<section id="register_cert_reset_private">
|
||||
<h2>추가 개인정보처리방침 안내</h2>
|
||||
<div>
|
||||
@ -24,7 +33,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>생년월일, 암호화된 개인식별부호(CI)</td>
|
||||
<td>생년월일<?php echo ($config['mb'])? ", 휴대폰 번호(아이핀 제외)" : ""; ?>, 암호화된 개인식별부호(CI)</td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -40,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
<h3>본인인증으로 찾기</h3>
|
||||
<div class="cert_btn">
|
||||
<!-- <div class="cert_btn">
|
||||
<button type="submit" class="btn_close">토스 인증</button>
|
||||
<button type="submit" class="btn_close">PASS 인증</button>
|
||||
<button type="submit" class="btn_close">페이코 인증</button>
|
||||
@ -49,14 +58,134 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">휴대폰 본인확인</button>
|
||||
<button type="submit" class="btn_submit">아이핀 본인확인</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<?php
|
||||
if ($config['cf_cert_use']) {
|
||||
echo '<div class="cert_btn">';
|
||||
if ($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="TOSS">토스 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PASS">PASS 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PAYCO">페이코 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="KFTC">금융인증서</button>' . PHP_EOL;
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div class="win_btn">';
|
||||
if ($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_submit">휴대폰 본인확인</button>' . PHP_EOL;
|
||||
if ($config['cf_cert_ipin'])
|
||||
echo '<button type="button" id="win_ipin_cert" class="btn_submit">아이핀 본인확인</button>' . PHP_EOL;
|
||||
echo '</div>';
|
||||
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>' . PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 모두선택
|
||||
// $("input[name=chk_all]").click(function() {
|
||||
// if ($(this).prop('checked')) {
|
||||
// $("input[name^=agree]").prop('checked', true);
|
||||
// } else {
|
||||
// $("input[name^=agree]").prop("checked", false);
|
||||
// }
|
||||
// });
|
||||
|
||||
// $("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
var f = document.register_cert_reset;
|
||||
|
||||
<?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 (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch (type) {
|
||||
case "TOSS":
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
console.log(request_url);
|
||||
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 (!register_cert_reset_submit(f)) return false;
|
||||
//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']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch ($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
case 'kcp':
|
||||
$cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';
|
||||
$cert_type = 'kcp-hp';
|
||||
break;
|
||||
case 'lg':
|
||||
$cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';
|
||||
$cert_type = 'lg-hp';
|
||||
break;
|
||||
default:
|
||||
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>" + params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
//tooltip
|
||||
});
|
||||
function register_cert_reset_submit(f) {
|
||||
if (!f.agree2.checked) {
|
||||
alert("개인정보 수집 및 이용의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
|
||||
alert("개인정보 수집 및 이용의 내용에 인증을 진행 하실 수 있습니다.");
|
||||
f.agree2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ if ($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin']
|
||||
<td colspan="2">이용자 식별 및 본인여부 확인</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use']) ? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use']) ? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('../../common.php');
|
||||
@ -1,2 +1,3 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('../../common.php');
|
||||
@ -1,2 +1,3 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('../../common.php');
|
||||
@ -1,2 +1,3 @@
|
||||
<?php
|
||||
define('G5_CERT_IN_PROG', true);
|
||||
include_once('../../common.php');
|
||||
@ -40,7 +40,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -4,10 +4,19 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?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 } ?>
|
||||
<!-- 기존 회원 본인인증 시작 { -->
|
||||
<div class="register_cert_reset">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $register_action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id']; ?>">
|
||||
<input type="hidden" name="mb_hp" value="<?php echo $member['mb_hp']; ?>">
|
||||
<input type="hidden" name="mb_name" value="<?php echo $member['mb_name']; ?>">
|
||||
<input type="hidden" name="cert_no" value="">
|
||||
<section id="register_cert_reset_private">
|
||||
<h2>추가 개인정보처리방침 안내</h2>
|
||||
<div>
|
||||
@ -24,7 +33,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>생년월일, 암호화된 개인식별부호(CI)</td>
|
||||
<td>생년월일<?php echo ($config['mb'])? ", 휴대폰 번호(아이핀 제외)" : ""; ?>, 암호화된 개인식별부호(CI)</td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -40,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
<h3>본인인증으로 찾기</h3>
|
||||
<div class="cert_btn">
|
||||
<!-- <div class="cert_btn">
|
||||
<button type="submit" class="btn_close">토스 인증</button>
|
||||
<button type="submit" class="btn_close">PASS 인증</button>
|
||||
<button type="submit" class="btn_close">페이코 인증</button>
|
||||
@ -49,14 +58,134 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">휴대폰 본인확인</button>
|
||||
<button type="submit" class="btn_submit">아이핀 본인확인</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<?php
|
||||
if ($config['cf_cert_use']) {
|
||||
echo '<div class="cert_btn">';
|
||||
if ($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="TOSS">토스 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PASS">PASS 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PAYCO">페이코 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="KFTC">금융인증서</button>' . PHP_EOL;
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div class="win_btn">';
|
||||
if ($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_submit">휴대폰 본인확인</button>' . PHP_EOL;
|
||||
if ($config['cf_cert_ipin'])
|
||||
echo '<button type="button" id="win_ipin_cert" class="btn_submit">아이핀 본인확인</button>' . PHP_EOL;
|
||||
echo '</div>';
|
||||
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>' . PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 모두선택
|
||||
// $("input[name=chk_all]").click(function() {
|
||||
// if ($(this).prop('checked')) {
|
||||
// $("input[name^=agree]").prop('checked', true);
|
||||
// } else {
|
||||
// $("input[name^=agree]").prop("checked", false);
|
||||
// }
|
||||
// });
|
||||
|
||||
// $("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
var f = document.register_cert_reset;
|
||||
|
||||
<?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 (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch (type) {
|
||||
case "TOSS":
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
console.log(request_url);
|
||||
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 (!register_cert_reset_submit(f)) return false;
|
||||
//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']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch ($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
case 'kcp':
|
||||
$cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';
|
||||
$cert_type = 'kcp-hp';
|
||||
break;
|
||||
case 'lg':
|
||||
$cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';
|
||||
$cert_type = 'lg-hp';
|
||||
break;
|
||||
default:
|
||||
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>" + params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
//tooltip
|
||||
});
|
||||
function register_cert_reset_submit(f) {
|
||||
if (!f.agree2.checked) {
|
||||
alert("개인정보 수집 및 이용의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
|
||||
alert("개인정보 수집 및 이용의 내용에 인증을 진행 하실 수 있습니다.");
|
||||
f.agree2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ if ($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin']
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use']) ? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use']) ? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -49,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<td colspan="2">이용자 식별 및 본인여부 확인</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -4,10 +4,19 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?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 } ?>
|
||||
<!-- 기존 회원 본인인증 시작 { -->
|
||||
<div class="register_cert_reset">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $register_action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id']; ?>">
|
||||
<input type="hidden" name="mb_hp" value="<?php echo $member['mb_hp']; ?>">
|
||||
<input type="hidden" name="mb_name" value="<?php echo $member['mb_name']; ?>">
|
||||
<input type="hidden" name="cert_no" value="">
|
||||
<section id="register_cert_reset_private">
|
||||
<h2>추가 개인정보처리방침 안내</h2>
|
||||
<div>
|
||||
@ -24,7 +33,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>생년월일, 암호화된 개인식별부호(CI)</td>
|
||||
<td>생년월일<?php echo ($config['mb'])? ", 휴대폰 번호(아이핀 제외)" : ""; ?>, 암호화된 개인식별부호(CI)</td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -40,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
<h3>본인인증으로 찾기</h3>
|
||||
<div class="cert_btn">
|
||||
<!-- <div class="cert_btn">
|
||||
<button type="submit" class="btn_close">토스 인증</button>
|
||||
<button type="submit" class="btn_close">PASS 인증</button>
|
||||
<button type="submit" class="btn_close">페이코 인증</button>
|
||||
@ -49,14 +58,134 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">휴대폰 본인확인</button>
|
||||
<button type="submit" class="btn_submit">아이핀 본인확인</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<?php
|
||||
if ($config['cf_cert_use']) {
|
||||
echo '<div class="cert_btn">';
|
||||
if ($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="TOSS">토스 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PASS">PASS 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PAYCO">페이코 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="KFTC">금융인증서</button>' . PHP_EOL;
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div class="win_btn">';
|
||||
if ($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_submit">휴대폰 본인확인</button>' . PHP_EOL;
|
||||
if ($config['cf_cert_ipin'])
|
||||
echo '<button type="button" id="win_ipin_cert" class="btn_submit">아이핀 본인확인</button>' . PHP_EOL;
|
||||
echo '</div>';
|
||||
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>' . PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 모두선택
|
||||
// $("input[name=chk_all]").click(function() {
|
||||
// if ($(this).prop('checked')) {
|
||||
// $("input[name^=agree]").prop('checked', true);
|
||||
// } else {
|
||||
// $("input[name^=agree]").prop("checked", false);
|
||||
// }
|
||||
// });
|
||||
|
||||
// $("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
var f = document.register_cert_reset;
|
||||
|
||||
<?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 (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch (type) {
|
||||
case "TOSS":
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
console.log(request_url);
|
||||
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 (!register_cert_reset_submit(f)) return false;
|
||||
//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']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch ($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
case 'kcp':
|
||||
$cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';
|
||||
$cert_type = 'kcp-hp';
|
||||
break;
|
||||
case 'lg':
|
||||
$cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';
|
||||
$cert_type = 'lg-hp';
|
||||
break;
|
||||
default:
|
||||
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>" + params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
//tooltip
|
||||
});
|
||||
function register_cert_reset_submit(f) {
|
||||
if (!f.agree2.checked) {
|
||||
alert("개인정보 수집 및 이용의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
|
||||
alert("개인정보 수집 및 이용의 내용에 인증을 진행 하실 수 있습니다.");
|
||||
f.agree2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 휴대전화번호, 생년월일, 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>아이디, 이름, 비밀번호<?php echo ($config['cf_cert_use'])? ", 생년월일, 휴대폰 번호(본인인증 할 때만, 아이핀 제외), 암호화된 개인식별부호(CI)" : ""; ?></td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -4,10 +4,19 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?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 } ?>
|
||||
<!-- 기존 회원 본인인증 시작 { -->
|
||||
<div class="register_cert_reset">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $register_action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<form name="register_cert_reset" id="register_cert_reset" action="<?php echo $action_url ?>" onsubmit="return register_cert_reset_submit(this);" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id']; ?>">
|
||||
<input type="hidden" name="mb_hp" value="<?php echo $member['mb_hp']; ?>">
|
||||
<input type="hidden" name="mb_name" value="<?php echo $member['mb_name']; ?>">
|
||||
<input type="hidden" name="cert_no" value="">
|
||||
<section id="register_cert_reset_private">
|
||||
<h2>추가 개인정보처리방침 안내</h2>
|
||||
<div>
|
||||
@ -24,7 +33,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>이용자 식별 및 본인여부 확인</td>
|
||||
<td>생년월일, 암호화된 개인식별부호(CI)</td>
|
||||
<td>생년월일<?php echo ($config['mb'])? ", 휴대폰 번호(아이핀 제외)" : ""; ?>, 암호화된 개인식별부호(CI)</td>
|
||||
<td>회원 탈퇴 시까지</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -40,7 +49,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
<h3>본인인증으로 찾기</h3>
|
||||
<div class="cert_btn">
|
||||
<!-- <div class="cert_btn">
|
||||
<button type="submit" class="btn_close">토스 인증</button>
|
||||
<button type="submit" class="btn_close">PASS 인증</button>
|
||||
<button type="submit" class="btn_close">페이코 인증</button>
|
||||
@ -49,14 +58,134 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">휴대폰 본인확인</button>
|
||||
<button type="submit" class="btn_submit">아이핀 본인확인</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<?php
|
||||
if ($config['cf_cert_use']) {
|
||||
echo '<div class="cert_btn">';
|
||||
if ($config['cf_cert_sa']) {
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="TOSS">토스 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PASS">PASS 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="PAYCO">페이코 인증</button>' . PHP_EOL;
|
||||
echo '<button type="button" id="win_sa_cert" class="btn_close win_sa_cert" data-type="KFTC">금융인증서</button>' . PHP_EOL;
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div class="win_btn">';
|
||||
if ($config['cf_cert_hp'])
|
||||
echo '<button type="button" id="win_hp_cert" class="btn_submit">휴대폰 본인확인</button>' . PHP_EOL;
|
||||
if ($config['cf_cert_ipin'])
|
||||
echo '<button type="button" id="win_ipin_cert" class="btn_submit">아이핀 본인확인</button>' . PHP_EOL;
|
||||
echo '</div>';
|
||||
echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>' . PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 모두선택
|
||||
// $("input[name=chk_all]").click(function() {
|
||||
// if ($(this).prop('checked')) {
|
||||
// $("input[name^=agree]").prop('checked', true);
|
||||
// } else {
|
||||
// $("input[name^=agree]").prop("checked", false);
|
||||
// }
|
||||
// });
|
||||
|
||||
// $("#reg_zip_find").css("display", "inline-block");
|
||||
var pageTypeParam = "pageType=register";
|
||||
var f = document.register_cert_reset;
|
||||
|
||||
<?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 (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
type = $(this).data("type");
|
||||
switch (type) {
|
||||
case "TOSS":
|
||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||
request_url = url + params;
|
||||
console.log(request_url);
|
||||
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 (!register_cert_reset_submit(f)) return false;
|
||||
//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']) { ?>
|
||||
// 휴대폰인증
|
||||
var params = "";
|
||||
$("#win_hp_cert").click(function() {
|
||||
if (!register_cert_reset_submit(f)) return false;
|
||||
//if (!cert_confirm()) return false;
|
||||
params = "?" + pageTypeParam;
|
||||
<?php
|
||||
switch ($config['cf_cert_hp']) {
|
||||
case 'kcb':
|
||||
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
|
||||
$cert_type = 'kcb-hp';
|
||||
break;
|
||||
case 'kcp':
|
||||
$cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';
|
||||
$cert_type = 'kcp-hp';
|
||||
break;
|
||||
case 'lg':
|
||||
$cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';
|
||||
$cert_type = 'lg-hp';
|
||||
break;
|
||||
default:
|
||||
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>" + params);
|
||||
return;
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
//tooltip
|
||||
});
|
||||
function register_cert_reset_submit(f) {
|
||||
if (!f.agree2.checked) {
|
||||
alert("개인정보 수집 및 이용의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
|
||||
alert("개인정보 수집 및 이용의 내용에 인증을 진행 하실 수 있습니다.");
|
||||
f.agree2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user