그누보드5 버전 수정

This commit is contained in:
thisgun
2017-10-10 11:53:54 +09:00
15 changed files with 124 additions and 51 deletions

View File

@ -7,7 +7,7 @@ if ($is_guest)
$g5['title'] = '내 쪽지함';
include_once(G5_PATH.'/head.sub.php');
if (!$kind) $kind = 'recv';
$kind = $kind ? clean_xss_tags(strip_tags($kind)) : 'recv';
if ($kind == 'recv')
$unkind = 'send';

View File

@ -115,7 +115,9 @@ while ($row = sql_fetch_array($result))
if ($row3['bf_file'])
{
// 원본파일을 복사하고 퍼미션을 변경
@copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$row3['bf_file']);
// 제이프로님 코드제안 적용
$copy_file_name = ($bo_table !== $move_bo_table) ? $row3['bf_file'] : $row2['wr_id'].'_copy_'.$insert_id.'_'.$row3['bf_file'];
@copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$copy_file_name);
@chmod($dst_dir/$row3['bf_file'], G5_FILE_PERMISSION);
}
@ -124,7 +126,7 @@ while ($row = sql_fetch_array($result))
wr_id = '$insert_id',
bf_no = '{$row3['bf_no']}',
bf_source = '".addslashes($row3['bf_source'])."',
bf_file = '{$row3['bf_file']}',
bf_file = '$copy_file_name',
bf_download = '{$row3['bf_download']}',
bf_content = '".addslashes($row3['bf_content'])."',
bf_filesize = '{$row3['bf_filesize']}',

View File

@ -69,7 +69,7 @@ for($i=0;$i<count($_POST['chk_bn_id']);$i++)
if ($pressed == '선택내용삭제') {
// 게시글 내용만 삭제
sql_query(" update $write_table set wr_subject = '{$g5['time_ymdhis']} - 본인 요청으로 인한 삭제 (냉무) ☆', wr_content = '', wr_name='본인요청삭제☆' where wr_id = '{$write['wr_id']}' ");
sql_query(" update $write_table set wr_subject = '".G5_TIME_YMDHIS." - 본인 요청으로 인한 삭제 (냉무) ☆', wr_content = '', wr_name='본인요청삭제☆' where wr_id = '{$write['wr_id']}' ");
} else {
// 게시글 삭제
sql_query(" delete from $write_table where wr_parent = '{$write['wr_id']}' ");