휴대폰 번호 만들기를 hyphen_hp_number 함수로 처리
This commit is contained in:
@ -5,13 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
|
||||
if ($msg = exist_mb_hp($mb_hp, $mb_id)) alert($msg, "", true, true);
|
||||
|
||||
$reg_hp = preg_replace("/[^0-9]/", "", $mb_hp);
|
||||
$hp_len = strlen($reg_hp);
|
||||
|
||||
if($hp_len == 10)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp);
|
||||
else if($hp_len == 11)
|
||||
$reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp);
|
||||
$reg_hp = hyphen_hp_number($mb_hp);
|
||||
|
||||
/* ======================================================================================================= */
|
||||
/* = 휴대폰인증 및 성인인증 = */
|
||||
|
||||
@ -163,13 +163,7 @@ else if( $cert_enc_use != "Y" )
|
||||
$ct_cert->mf_clear();
|
||||
|
||||
// 휴대폰번호 포맷변경
|
||||
$phone_no = preg_replace("/[^0-9]/", "", $phone_no);
|
||||
$hp_len = strlen($phone_no);
|
||||
|
||||
if($hp_len == 10)
|
||||
$phone_no = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||
else if($hp_len == 11)
|
||||
$phone_no = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||
$phone_no = hyphen_hp_number($phone_no);
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user