비표준 그누보드4 첫커밋
This commit is contained in:
20
skin/member/basic/ajax_mb_email_check.php
Normal file
20
skin/member/basic/ajax_mb_email_check.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
|
||||
if (trim($reg_mb_email)=='') {
|
||||
echo "110"; // 입력이 없습니다.
|
||||
} else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $reg_mb_email)) {
|
||||
echo "120"; // E-mail 주소 형식에 맞지 않음
|
||||
} else {
|
||||
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id <> '$reg_mb_id' and mb_email = '$reg_mb_email' ");
|
||||
if ($row[cnt]) {
|
||||
echo "130"; // 이미 존재하는 회원아이디
|
||||
} else {
|
||||
//if (preg_match("/[\,]?{$reg_mb_email}\,/i", $config[cf_prohibit_id].","))
|
||||
if (preg_match("/[\,]?{$reg_mb_email}/i", $config[cf_prohibit_id]))
|
||||
echo "140"; // 예약어로 금지된 회원아이디
|
||||
else
|
||||
echo "000"; // 정상
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user