From 208fff513e56ae4fc5cf3f3ffde0ec12a103aa89 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 21 Jan 2013 11:00:15 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=BC=EB=A9=94=EC=9D=BC=EC=97=90=20?= =?UTF-8?q?=EC=BA=A1=EC=B0=A8=EC=BD=94=EB=93=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/formmail_send.php | 35 +++++++++++++++---------------- skin/member/neo/formmail.skin.php | 13 +++++------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/bbs/formmail_send.php b/bbs/formmail_send.php index 6f9289e6d..1a2c2ce9a 100644 --- a/bbs/formmail_send.php +++ b/bbs/formmail_send.php @@ -1,11 +1,12 @@ 1) alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.'); -$key = get_session('captcha_keystring'); -if (!($key && $key == $_POST[wr_key])) { - session_unregister('captcha_keystring'); - alert('정상적인 접근이 아닌것 같습니다.'); +if ($is_guest && !chk_captcha()) { + alert('스팸방지에 입력한 숫자가 틀렸습니다.'); } -for ($i=1; $i<=$attach; $i++) +for ($i=1; $i<=$attach; $i++) { - if ($_FILES['file'.$i][name]) - $file[] = attach_file($_FILES['file'.$i][name], $_FILES['file'.$i][tmp_name]); + if ($_FILES['file'.$i]['name']) + $file[] = attach_file($_FILES['file'.$i]['name'], $_FILES['file'.$i]['tmp_name']); } $content = stripslashes($content); -if ($type == 2) +if ($type == 2) { $type = 1; $content = preg_replace("/\n/", "
", $content); -} +} // html 이면 -if ($type) +if ($type) { - $current_url = $g4[url]; - $mail_content = '메일보내기'.$content.''; -} -else + $current_url = $g4['url']; + $mail_content = '메일보내기'.$content.''; +} +else $mail_content = $content; mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file); diff --git a/skin/member/neo/formmail.skin.php b/skin/member/neo/formmail.skin.php index 933886d1d..978803523 100644 --- a/skin/member/neo/formmail.skin.php +++ b/skin/member/neo/formmail.skin.php @@ -1,17 +1,17 @@

님께 메일보내기

-
+ - - + + @@ -77,9 +77,7 @@ with (document.fformmail) { function fformmail_submit(f) { - if (!check_kcaptcha(f.wr_key)) { - return false; - } + if (f.file1.value || f.file2.value) { // 4.00.11 @@ -89,7 +87,6 @@ function fformmail_submit(f) document.getElementById('btn_submit').disabled = true; - f.action = "./formmail_send.php"; return true; }
메일쓰기