휴대폰인증 체크 및 인증시간 처리 코드 추가

This commit is contained in:
chicpro
2013-02-26 15:49:51 +09:00
parent 7eefb4eb63
commit cf049e386d
3 changed files with 29 additions and 1 deletions

View File

@ -169,7 +169,6 @@ if ($w == '') {
mb_sms = '{$mb_sms}',
mb_open = '{$mb_open}',
mb_open_date = '".G4_TIME_YMD."',
mb_hp_certify = '{$_POST['cert_time']}',
mb_1 = '{$mb_1}',
mb_2 = '{$mb_2}',
mb_3 = '{$mb_3}',

View File

@ -0,0 +1,16 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if($w == '') {
// 본인인증체크
$kcpcert_no = trim($_POST['kcpcert_no']);
if(!$kcpcert_no)
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', "", true, true);
// 본인인증 hash 체크
$reg_hp = preg_replace("/[^0-9]/", "", $mb_hp);
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
if(get_session('ss_kcpcert_hash') != $reg_hash)
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
}
?>

View File

@ -0,0 +1,13 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
if($w == '') {
// 휴대폰인증 시간기록
$sql = " update {$g4['member_table']}
set mb_hp_certify = '{$_POST['kcpcert_time']}'
where mb_id = '$mb_id' ";
sql_query($sql);
}
?>