g4를 g5로 변경
This commit is contained in:
@ -8,29 +8,29 @@ if (!defined('_BOARD_DELETE_')) exit; // 개별 페이지 접근 불가
|
||||
if (!$tmp_bo_table) { return; }
|
||||
|
||||
// 게시판 1개는 삭제 불가 (게시판 복사를 위해서)
|
||||
//$row = sql_fetch(" select count(*) as cnt from $g4['board_table'] ");
|
||||
//$row = sql_fetch(" select count(*) as cnt from $g5['board_table'] ");
|
||||
//if ($row['cnt'] <= 1) { return; }
|
||||
|
||||
// 게시판 설정 삭제
|
||||
sql_query(" delete from {$g4['board_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
sql_query(" delete from {$g5['board_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
// 최신글 삭제
|
||||
sql_query(" delete from {$g4['board_new_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
sql_query(" delete from {$g5['board_new_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
// 스크랩 삭제
|
||||
sql_query(" delete from {$g4['scrap_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
sql_query(" delete from {$g5['scrap_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
// 파일 삭제
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
// 게시판 테이블 DROP
|
||||
sql_query(" drop table {$g4['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||
sql_query(" drop table {$g5['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||
|
||||
delete_cache_latest($tmp_bo_table);
|
||||
|
||||
// 게시판 폴더 전체 삭제
|
||||
rm_rf(G4_DATA_PATH.'/file/'.$tmp_bo_table);
|
||||
rm_rf(G5_DATA_PATH.'/file/'.$tmp_bo_table);
|
||||
|
||||
// syndication ping
|
||||
include G4_SYNDI_PATH.'/include/include.adm.board_delete.inc.php';
|
||||
include G5_SYNDI_PATH.'/include/include.adm.board_delete.inc.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user