>>>>>> 6040266aed7f782fddaf6f63366be5b06bdfa780 bo_category_list = '{$board['bo_category_list']}', bo_disable_tags = '{$board['bo_disable_tags']}', <<<<<<< HEAD bo_use_secret = '{$board['bo_use_secret']}', bo_use_dhtml_editor = '{$board['bo_use_dhtml_editor']}', bo_use_sideview = '{$board['bo_use_sideview']}', bo_use_comment = '{$board['bo_use_comment']}', bo_use_good = '{$board['bo_use_good']}', bo_use_nogood = '{$board['bo_use_nogood']}', bo_use_signature = '{$board['bo_use_signature']}', bo_use_ip_view = '{$board['bo_use_ip_view']}', bo_use_trackback = '{$board['bo_use_trackback']}', ======= bo_use_secret = '{$board[bo_use_secret]}', bo_use_dhtml_editor = '{$board[bo_use_dhtml_editor]}', bo_use_sideview = '{$board[bo_use_sideview]}', bo_use_good = '{$board[bo_use_good]}', bo_use_nogood = '{$board[bo_use_nogood]}', bo_use_signature = '{$board[bo_use_signature]}', bo_use_ip_view = '{$board[bo_use_ip_view]}', <<<<<<< HEAD bo_use_trackback = '{$board[bo_use_trackback]}', >>>>>>> 35e2a0e57216e9ff77b98266f30f5e8f87800654 ======= >>>>>>> 6040266aed7f782fddaf6f63366be5b06bdfa780 bo_use_list_view = '{$board['o_use_list_view']}', bo_use_list_content = '{$board['bo_use_list_content']}', bo_table_width = '{$board['bo_table_width']}', bo_subject_len = '{$board['bo_subject_len']}', bo_page_rows = '{$board['bo_page_rows']}', bo_new = '{$board['bo_new']}', bo_hot = '{$board['bo_hot']}', bo_image_width = '{$board['bo_image_width']}', bo_skin = '{$board['bo_skin']}', bo_include_head = '{$board['bo_include_head']}', bo_include_tail = '{$board['bo_include_tail']}', bo_content_head = '".addslashes($board['bo_content_head'])."', bo_content_tail = '".addslashes($board['bo_content_tail'])."', bo_insert_content = '".addslashes($board['bo_insert_content'])."', bo_gallery_cols = '{$board['bo_gallery_cols']}', bo_upload_size = '{$board['bo_upload_size']}', bo_reply_order = '{$board['bo_reply_order']}', bo_use_search = '{$board['bo_use_search']}', bo_order_search = '{$board['bo_order_search']}', bo_notice = '{$board['bo_notice']}', bo_upload_count = '{$board['bo_upload_count']}', bo_use_email = '{$board['bo_use_email']}', bo_sort_field = '{$board['bo_sort_field']}', bo_1_subj = '{$board['bo_1_subj']}', bo_2_subj = '{$board['bo_2_subj']}', bo_3_subj = '{$board['bo_3_subj']}', bo_4_subj = '{$board['bo_4_subj']}', bo_5_subj = '{$board['bo_5_subj']}', bo_6_subj = '{$board['bo_6_subj']}', bo_7_subj = '{$board['bo_7_subj']}', bo_8_subj = '{$board['bo_8_subj']}', bo_9_subj = '{$board['bo_9_subj']}', bo_10_subj = '{$board['bo_10_subj']}', bo_1 = '{$board['bo_1']}', bo_2 = '{$board['bo_2']}', bo_3 = '{$board['bo_3']}', bo_4 = '{$board['bo_4']}', bo_5 = '{$board['bo_5']}', bo_6 = '{$board['bo_6']}', bo_7 = '{$board['bo_7']}', bo_8 = '{$board['bo_8']}', bo_9 = '{$board['bo_9']}', bo_10 = '{$board['bo_10']}' "; sql_query($sql); // 게시판 폴더 생성 @mkdir($g4['path'].'/data/file/'.$target_table, 0707); @chmod($g4['path'].'/data/file/'.$target_table, 0707); // 디렉토리에 있는 파일의 목록을 보이지 않게 한다. $board_path = $g4['path'].'/data/file/'.$target_table; $file = $board_path . '/index.php'; $f = @fopen($file, 'w'); @fwrite($f, ''); @fclose($f); @chmod($file, 0606); $copy_file = 0; if ($copy_case == 'schema_data_both') { $d = dir($g4['path'].'/data/file/'.$bo_table); while ($entry = $d->read()) { if ($entry == '.' || $entry == '..') continue; /* @copy('$g4['path']/data/file/$bo_table/$entry', '$g4['path']/data/file/$target_table/$entry'); @chmod('$g4['path']/data/file/$target_table/$entry', 0707); $copy_file++; */ // 김선용 201007 : if(is_dir($g4['path'].'/data/file/'.$bo_table.'/'.$entry)){ $dd = dir($g4['path'].'/data/file/'.$bo_table.'/'.$entry); @mkdir($g4['path'].'/data/file/'.$target_table.'/'.$entry, 0707); @chmod($g4['path'].'/data/file/'.$target_table.'/'.$entry, 0707); while ($entry2 = $dd->read()) { if ($entry2 == '.' || $entry2 == '..') continue; @copy($g4['path'].'/data/file/'.$bo_table.'/'.$entry.'/'.$entry2, $g4['path'].'/data/file/'.$target_table.'/'.$entry.'/'.$entry2); @chmod($g4['path'].'/data/file/'.$target_table.'/'.$entry.'/'.$entry2, 0707); $copy_file++; } $dd->close(); } else { @copy($g4['path'].'/data/file/'.$bo_table.'/'.$entry, $g4['path'].'/data/file/'.$target_table.'/'.$entry); @chmod($g4['path'].'/data/file/'.$target_table.'/'.$entry, 0707); $copy_file++; } } $d->close(); // 글복사 $sql = " insert into {$g4['write_prefix']}$target_table select * from {$g4['write_prefix']}$bo_table "; sql_query($sql); // 게시글수 저장 $sql = " select bo_count_write, bo_count_comment from {$g4['board_table']} where bo_table = '$bo_table' "; $row = sql_fetch($sql); $sql = " update {$g4['board_table']} set bo_count_write = '{$row['bo_count_write']}', bo_count_comment = '{$row['bo_count_comment]}' where bo_table = '$target_table' "; sql_query($sql); // 05.05.24 // 파일테이블 복사 //$sql = ' insert into $g4['board_file_table'] select "$target_table", wr_id, bf_no, bf_source, bf_file, bf_download, bf_content from $g4['board_file_table'] where bo_table = "$bo_table" '; //sql_query($sql); // 4.00.01 // 위의 코드는 같은 테이블명을 사용하였다는 오류가 발생함. (희한하네 ㅡㅡ;) $sql = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) $file_copy[$i] = $row; } if (count($file_copy)) { for ($i=0; $i