From 4ca027de06014b2d95d10d0d5e7626686ceacc9b Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 2 Oct 2014 11:31:13 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=BC=EB=A9=94=EC=9D=BC=20=EB=B0=9C?= =?UTF-8?q?=EC=86=A1=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20=EB=B0=8F?= =?UTF-8?q?=20=EC=9E=84=EC=8B=9C=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/formmail_send.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bbs/formmail_send.php b/bbs/formmail_send.php index 472b1e5d2..c97575a30 100644 --- a/bbs/formmail_send.php +++ b/bbs/formmail_send.php @@ -20,6 +20,7 @@ if (!chk_captcha()) { } +$file = array(); for ($i=1; $i<=$attach; $i++) { if ($_FILES['file'.$i]['name']) $file[] = attach_file($_FILES['file'.$i]['name'], $_FILES['file'.$i]['tmp_name']); @@ -41,6 +42,13 @@ else mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file); +// 임시 첨부파일 삭제 +if(!empty($file)) { + foreach($file as $f) { + @unlink($f['path']); + } +} + //$html_title = $tmp_to . "님께 메일발송"; $html_title = '메일 발송중'; include_once(G5_PATH.'/head.sub.php');