휴대폰 본인확인 사용, 미사용, 테스트 적용
This commit is contained in:
@ -90,7 +90,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<? if ($config['cf_use_hp']) { ?>
|
||||
<tr>
|
||||
<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><input type="text" name="mb_hp" value="<?=$member[mb_hp]?>" id="reg_mb_hp" <?=$config['cf_req_hp']?"required":"";?> class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
@ -169,7 +169,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
|
||||
<td>
|
||||
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
|
||||
핸드폰 문자메세지를 받겠습니다.
|
||||
휴대폰 문자메세지를 받겠습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -88,12 +88,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<? } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_hp">핸드폰번호<strong class="sound_only">필수</strong></label></th>
|
||||
<th scope="row"><label for="reg_mb_hp">휴대폰번호<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<input type="hidden" name="kcpcert_no" value="">
|
||||
<input type="hidden" name="kcpcert_time" value="<?=$member['mb_hp_certify']?>">
|
||||
<input type="hidden" name="old_mb_hp" value="<?=$member['mb_hp']?>">
|
||||
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input required" maxlength="20" required value="<?=$member['mb_hp']?>">
|
||||
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input required" maxlength="20" required readonly value="<?=$member['mb_hp']?>">
|
||||
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰인증</button>
|
||||
<noscript>휴대폰인증을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
|
||||
</td>
|
||||
@ -173,7 +173,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
|
||||
<td>
|
||||
<input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
|
||||
핸드폰 문자메세지를 받겠습니다.
|
||||
휴대폰 문자메세지를 받겠습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -22,17 +22,17 @@ if($w == '') {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = trim($_POST['kcpcert_no']);
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', "", true, true);
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
|
||||
alert('이름 또는 휴대폰번호가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
|
||||
// 성인인증을 사용한다면
|
||||
if($config['cf_adult_check']) {
|
||||
if(get_session('ss_adult_check') != 'Y')
|
||||
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', "", true, true);
|
||||
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', '', true, true);
|
||||
}
|
||||
} else if($w == 'u') {
|
||||
// 휴대폰번호 변경체크
|
||||
@ -42,12 +42,12 @@ if($w == '') {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = trim($_POST['kcpcert_no']);
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', "", true, true);
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
}
|
||||
}
|
||||
/* ======================================================================================================= */
|
||||
|
||||
Reference in New Issue
Block a user