Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
whitedot
2013-02-27 13:30:34 +09:00
3 changed files with 19 additions and 4 deletions

View File

@ -134,6 +134,11 @@ if( $cert_enc_use == "Y" )
$md5_cert_no = md5($cert_no);
$hash_data = md5($phone_no.$user_name.$md5_cert_no);
set_session('ss_kcpcert_hash', $hash_data);
// 성인인증결과
$adult_day = date("Ymd", strtotime("-19 years", G4_SERVER_TIME));
if((int)$birth_day <= (int)$adult_day)
set_session('ss_adult_check', 'Y');
}
else if( $res_cd != "0000" )
{

View File

@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
/* ======================================================================================================= */
/* = 휴대폰인증 = */
/* = 휴대폰인증 및 성인인증 = */
/* ======================================================================================================= */
if($w == '') {
// 본인인증체크
@ -17,6 +17,12 @@ if($w == '') {
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
if(get_session('ss_kcpcert_hash') != $reg_hash)
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
// 성인인증을 사용한다면
if($config['cf_adult_check']) {
if(get_session('ss_adult_check') != 'Y')
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', "", true, true);
}
} else if($w == 'u') {
// 휴대폰번호 변경체크
$patt = "/[^0-9]/";

View File

@ -4,12 +4,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
/* =========================================================================== */
/* = 휴대폰인증 = */
/* = 휴대폰인증 및 성인인증 = */
/* =========================================================================== */
if($_POST['kcpcert_no']) {
// 휴대폰인증 시간기록
$mb_adult = 'N';
if(get_session('ss_adult_check') == 'Y')
$mb_adult = 'Y';
$sql = " update {$g4['member_table']}
set mb_hp_certify = '{$_POST['kcpcert_time']}'
set mb_hp_certify = '{$_POST['kcpcert_time']}',
mb_adult = '$mb_adult'
where mb_id = '$mb_id' ";
sql_query($sql);
}