그누보드 5.0.19 수정사항 적용

This commit is contained in:
chicpro
2014-10-13 15:13:08 +09:00
parent 3fa9aec9f2
commit 1355c7ef57
13 changed files with 107 additions and 29 deletions

View File

@ -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');

View File

@ -72,6 +72,10 @@ if ($stx) {
if (trim($s[$i]) == '') continue;
$search_str = $s[$i];
// 인기검색어
insert_popular($field, $search_str);
$str .= $op1;
$str .= "(";
@ -100,10 +104,6 @@ if ($stx) {
$str .= ")";
$op1 = " {$sop} ";
// 인기검색어
$sql = " insert into {$g5['popular_table']} set pp_word = '{$search_str}', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql, FALSE);
}
$str .= ")";