diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index 838edac33..03b77cbc1 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -67,6 +67,8 @@ if ($w == '' || $w == 'u') { if ($msg = reserve_mb_nick($mb_nick)) alert($msg); if ($msg = valid_mb_name($mb_name)) alert($msg); if ($msg = valid_mb_nick($mb_nick)) alert($msg); + if ($msg = valid_mb_email($mb_email)) alert($msg); + if ($msg = prohibit_mb_email($mb_email))alert($msg); if ($w=='') { if ($msg = exist_mb_id($mb_id)) alert($msg); diff --git a/lib/register.lib.php b/lib/register.lib.php index fb236c897..1b39a9398 100644 --- a/lib/register.lib.php +++ b/lib/register.lib.php @@ -104,6 +104,19 @@ function valid_mb_email($reg_mb_email) return ""; } +// 금지 메일 도메인 검사 +function prohibit_mb_email($reg_mb_email) +{ + global $config; + list($id, $domain) = explode("@", $reg_mb_email); + $email_domains = explode("\n", trim($config['cf_prohibit_email'])); + for ($i=0; $i \ No newline at end of file diff --git a/test.php b/test.php index 07a8925a1..50b8372dc 100644 --- a/test.php +++ b/test.php @@ -1,6 +1,19 @@ \ No newline at end of file