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; }
메일쓰기