g4를 g5로 변경
This commit is contained in:
@ -88,11 +88,11 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
insert_point($row['mb_id'], $board['bo_write_point'] * (-1), "{$board['bo_subject']} {$row['wr_id']} 글 삭제");
|
||||
|
||||
// 업로드된 파일이 있다면
|
||||
$sql2 = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ";
|
||||
$sql2 = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2)) {
|
||||
// 파일삭제
|
||||
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
@unlink(G5_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
|
||||
// 썸네일삭제
|
||||
if(preg_match("/\.({$config['cf_image_extension']})$/i", $row2['bf_file'])) {
|
||||
@ -104,10 +104,10 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
delete_editor_thumbnail($row['wr_content']);
|
||||
|
||||
// 파일테이블 행 삭제
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
// syndication ping
|
||||
include G4_SYNDI_PATH.'/include/include.bbs.delete_all.php';
|
||||
include G5_SYNDI_PATH.'/include/include.bbs.delete_all.php';
|
||||
|
||||
$count_write++;
|
||||
}
|
||||
@ -125,10 +125,10 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
sql_query(" delete from $write_table where wr_parent = '{$write['wr_id']}' ");
|
||||
|
||||
// 최근게시물 삭제
|
||||
sql_query(" delete from {$g4['board_new_table']} where bo_table = '$bo_table' and wr_parent = '{$write['wr_id']}' ");
|
||||
sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_parent = '{$write['wr_id']}' ");
|
||||
|
||||
// 스크랩 삭제
|
||||
sql_query(" delete from {$g4['scrap_table']} where bo_table = '$bo_table' and wr_id = '{$write['wr_id']}' ");
|
||||
sql_query(" delete from {$g5['scrap_table']} where bo_table = '$bo_table' and wr_id = '{$write['wr_id']}' ");
|
||||
|
||||
/*
|
||||
// 공지사항 삭제
|
||||
@ -140,13 +140,13 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
$bo_notice = trim($bo_notice);
|
||||
*/
|
||||
$bo_notice = board_notice($board['bo_notice'], $write['wr_id']);
|
||||
sql_query(" update {$g4['board_table']} set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
|
||||
sql_query(" update {$g5['board_table']} set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
|
||||
$board['bo_notice'] = $bo_notice;
|
||||
}
|
||||
|
||||
// 글숫자 감소
|
||||
if ($count_write > 0 || $count_comment > 0)
|
||||
sql_query(" update {$g4['board_table']} set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
|
||||
sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
|
||||
|
||||
// 4.11
|
||||
@include_once($board_skin_path.'/delete_all.tail.skin.php');
|
||||
|
||||
Reference in New Issue
Block a user