diff --git a/adm/board_copy_update.php b/adm/board_copy_update.php index ef53e30d1..cdaa69398 100644 --- a/adm/board_copy_update.php +++ b/adm/board_copy_update.php @@ -14,6 +14,8 @@ $target_subject = isset($_POST['target_subject']) ? trim($_POST['target_subject' $target_subject = strip_tags(clean_xss_attributes($target_subject)); +$file_copy = array(); + if (empty($bo_table)) { alert("원본 테이블 정보가 없습니다."); } @@ -37,8 +39,6 @@ $sql = get_table_define($g5['write_prefix'] . $bo_table); $sql = str_replace($g5['write_prefix'] . $bo_table, $g5['write_prefix'] . $target_table, $sql); sql_query($sql, false); -$file_copy = array(); - // 구조만 복사시에는 공지사항 번호는 복사하지 않는다. if ($copy_case == 'schema_only') { $board['bo_notice'] = ''; diff --git a/adm/board_delete.inc.php b/adm/board_delete.inc.php index 4e1490520..c4a0b5c35 100644 --- a/adm/board_delete.inc.php +++ b/adm/board_delete.inc.php @@ -1,11 +1,18 @@ '', ); -for($i=0;$i<=10;$i++){ +for ($i = 0; $i <= 10; $i++) { $board_default['bo_'.$i.'_subj'] = ''; $board_default['bo_'.$i] = ''; } @@ -142,7 +143,6 @@ $readonly = ""; $sound_only = ""; $required_valid = ""; if ($w == '') { - $html_title .= ' 생성'; $required = 'required'; @@ -179,21 +179,20 @@ if ($w == '') { $board['bo_use_secret'] = 0; $board['bo_include_head'] = '_head.php'; $board['bo_include_tail'] = '_tail.php'; - -} else if ($w == 'u') { - +} elseif ($w == 'u') { $html_title .= ' 수정'; - if (!$board['bo_table']) + if (!$board['bo_table']) { alert('존재하지 않은 게시판 입니다.'); + } if ($is_admin == 'group') { - if ($member['mb_id'] != $group['gr_admin']) + if ($member['mb_id'] != $group['gr_admin']) { alert('그룹이 틀립니다.'); + } } $readonly = 'readonly'; - } if ($is_admin != 'super') { @@ -202,7 +201,7 @@ if ($is_admin != 'super') { } $g5['title'] = $html_title; -include_once ('./admin.head.php'); +include_once('./admin.head.php'); $pg_anchor = '