글,댓글 쓰기시 캐시파일 삭제

This commit is contained in:
gnuboard
2013-02-19 13:03:56 +09:00
parent 57f617b2bd
commit 06f2c72d84
6 changed files with 28 additions and 15 deletions

View File

@ -92,7 +92,7 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
// 파일삭제
@unlink(G4_PATH.'/data/file/'.$bo_table.'/'.$row2['bf_file']);
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
// 파일테이블 행 삭제
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
@ -136,5 +136,7 @@ if ($count_write > 0 || $count_comment > 0)
// 4.11
@include_once($board_skin_path.'/delete_all.tail.skin.php');
delete_cache_latest($bo_table);
goto_url('./board.php?bo_table='.$bo_table.'&page='.$page.$qstr);
?>