Merge branch 'g5'
This commit is contained in:
@ -20,6 +20,7 @@ if (!chk_captcha()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$file = array();
|
||||||
for ($i=1; $i<=$attach; $i++) {
|
for ($i=1; $i<=$attach; $i++) {
|
||||||
if ($_FILES['file'.$i]['name'])
|
if ($_FILES['file'.$i]['name'])
|
||||||
$file[] = attach_file($_FILES['file'.$i]['name'], $_FILES['file'.$i]['tmp_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);
|
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 = $tmp_to . "님께 메일발송";
|
||||||
$html_title = '메일 발송중';
|
$html_title = '메일 발송중';
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user