From 835f632da6edd13328e8393c8e960afe6c43953b Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 18 Jan 2013 15:46:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=A0=EC=88=98=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EB=A9=94=EC=9D=BC=EB=8F=84=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=EC=9E=91=EB=8F=99=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/register_form_update.php | 2 ++ lib/register.lib.php | 13 +++++++++++++ skin/member/neo/ajax_mb_email_check.php | 1 + test.php | 19 ++++++++++++++++--- 4 files changed, 32 insertions(+), 3 deletions(-) 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