토큰 체크코드 삭제 및 구조 복사시 공지사항은 복사되지 않도록 수정

This commit is contained in:
gnuboard
2013-04-09 11:56:21 +09:00
parent fc7dca905f
commit c26d5814a5

View File

@ -15,8 +15,6 @@ $row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_tab
if ($row['cnt'])
alert($target_table.'은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.');
check_token();
// 게시판 테이블 생성
$sql = get_table_define($g4['write_prefix'] . $bo_table);
$sql = str_replace($g4['write_prefix'] . $bo_table, $g4['write_prefix'] . $target_table, $sql);
@ -24,6 +22,11 @@ sql_query($sql);
$file_copy = array();
// 구조만 복사시에는 공지사항 번호는 복사하지 않는다.
if ($copy_case == 'schema_only') {
$board['bo_notice'] = '';
}
// 게시판 정보
$sql = " insert into {$g4['board_table']}
set bo_table = '$target_table',