사용자: neo -> basic
This commit is contained in:
@ -1,20 +1,12 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
include_once(G4_LIB_PATH.'/register.lib.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"; // 정상
|
||||
}
|
||||
}
|
||||
$mb_email = escape_trim($_POST['reg_mb_email']);
|
||||
$mb_id = escape_trim($_POST['reg_mb_id']);
|
||||
|
||||
if ($msg = empty_mb_email($mb_email)) die($msg);
|
||||
if ($msg = valid_mb_email($mb_email)) die($msg);
|
||||
if ($msg = prohibit_mb_email($mb_email)) die($msg);
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
|
||||
?>
|
||||
Reference in New Issue
Block a user