diff --git a/bbs/email_certify.php b/bbs/email_certify.php index 80b4bf0b8..2fc735b32 100644 --- a/bbs/email_certify.php +++ b/bbs/email_certify.php @@ -4,11 +4,15 @@ include_once('./_common.php'); $mb_id = trim($_GET['mb_id']); $mb_md5 = trim($_GET['mb_md5']); -$sql = " select mb_id, mb_email_certify2 from {$g5['member_table']} where mb_id = '{$mb_id}' "; +$sql = " select mb_id, mb_email_certify2, mb_leave_date, mb_intercept_date from {$g5['member_table']} where mb_id = '{$mb_id}' "; $row = sql_fetch($sql); if (!$row['mb_id']) alert('존재하는 회원이 아닙니다.', G5_URL); +if ( $row['mb_leave_date'] || $row['mb_intercept_date'] ){ + alert('탈퇴 또는 차단된 회원입니다.', G5_URL); +} + // 인증 링크는 한번만 처리가 되게 한다. sql_query(" update {$g5['member_table']} set mb_email_certify2 = '' where mb_id = '$mb_id' ");