휴대폰 본인확인시 번호 사이에 -를 넣어서 저장

This commit is contained in:
gnuboard
2013-05-08 14:45:39 +09:00
parent f6c65f9b9c
commit c40741ced5
5 changed files with 13 additions and 17 deletions

View File

@ -151,13 +151,10 @@ $colspan = 15;
if ($row2['cnt'])
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
if ($is_admin == 'group')
{
if ($is_admin == 'group') {
$s_mod = '';
$s_del = '';
}
else
{
} else {
$s_mod = '<a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
//$s_del = '<a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');">삭제</a>';
}
@ -197,10 +194,8 @@ $colspan = 15;
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
</td>
<td class="td_name"><?php echo $mb_id ?></td>
<td class="td_mbname">
<?php echo $row['mb_name'] ?>
</td>
<td><?php echo hyphen_hp_number($row['mb_hp']); ?></td>
<td class="td_mbname"><?php echo $row['mb_name']; ?></td>
<td><?php echo $row['mb_hp']; ?></td>
<td colspan="6" class="td_addr"><?php echo $address; ?></td>
<td><?php echo substr($row['mb_today_login'],2,8); ?></td>
<td class="td_bignum"><a href="point_list.php?sfl=mb_id&amp;stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>

View File

@ -86,7 +86,7 @@ if ($w == "") {
$member['mb_password_a'] = get_text($member['mb_password_a']);
$member['mb_birth'] = get_text($member['mb_birth']);
$member['mb_tel'] = get_text($member['mb_tel']);
$member['mb_hp'] = hyphen_hp_number($member['mb_hp']);
$member['mb_hp'] = get_text($member['mb_hp']);
$member['mb_addr1'] = get_text($member['mb_addr1']);
$member['mb_addr2'] = get_text($member['mb_addr2']);
$member['mb_signature'] = get_text($member['mb_signature']);

View File

@ -269,9 +269,8 @@ if ($w == '') {
/////////////////////////////////////////////////////////////////
$sql_hp_certify = "";
$md5_cert_no = get_session("ss_kcpcert_no");
$hidden_hp = preg_replace("/[^0-9]/", "", $mb_hp);
if ($config['cf_kcpcert_use'] && $md5_cert_no) {
$hash_data = md5($hidden_hp.$mb_name.$md5_cert_no);
$hash_data = md5($mb_hp.$mb_name.$md5_cert_no);
// 해시값이 틀린 경우에는 휴대폰 인증 값을 무효화 한다.
if (get_session("ss_kcpcert_hash") != $hash_data) {
$sql_hp_certify .= " , mb_hp = '' ";
@ -280,7 +279,7 @@ if ($w == '') {
}
} else {
if (get_session("ss_reg_mb_name") != $mb_name ||
get_session("ss_reg_mb_hp") != $hidden_hp) {
get_session("ss_reg_mb_hp") != $mb_hp) {
$sql_hp_certify .= " , mb_hp = '{$mb_hp}' ";
$sql_hp_certify .= " , mb_hp_certify = 0 ";
$sql_hp_certify .= " , mb_adult = 0 ";

View File

@ -132,6 +132,8 @@ if( $cert_enc_use == "Y" )
if(!$phone_no)
alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요.");
$phone_no = hyphen_hp_number($phone_no);
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$row = sql_fetch($sql);
if ($row['cnt']) {
@ -174,7 +176,7 @@ $(function() {
// 인증정보
$opener.$("input[name=mb_name]").val("<?php echo $user_name; ?>");
$opener.$("input[name=mb_hp]").val("<?php echo hyphen_hp_number($phone_no); ?>").attr("readonly", true);
$opener.$("input[name=mb_hp]").val("<?php echo $phone_no; ?>").attr("readonly", true);
alert("본인의 휴대폰번호로 확인 되었습니다.");
window.close();
});

View File

@ -47,11 +47,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
<noscript>휴대폰 본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
<?php } ?>
<div id="msg_hp_certify">
<?php if ($member['mb_hp_certify']) { ?>
<div id="msg_hp_certify">
휴대폰 <strong>본인확인</strong><?php if ($member['mb_hp_certify']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
<?php } ?>
</div>
<?php } ?>
</td>
</tr>
<?php if ($req_nick) { ?>
@ -100,7 +100,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
<td><input type="text" name="mb_hp" value="<?php echo $member['mb_hp'] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
</tr>
<?php } ?>