diff --git a/adm/board_form.php b/adm/board_form.php index 2591cbec6..b34d22937 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -1,12 +1,11 @@ $sub_menu = "300100"; include_once('./_common.php'); -include_once ($g4['path'].'/lib/cheditor4.lib.php'); + +if (isset($editor->lib)) include_once($editor->lib); auth_check($auth[$sub_menu], 'w'); -$token = get_token(); - function b_draw($pos, $color='red') { return "border-{$pos}-width:1px; border-{$pos}-color:{$color}; border-{$pos}-style:solid; "; } @@ -17,24 +16,19 @@ if (!$row['cnt']) alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php'); $html_title = '게시판'; + if ($w == '') { + $html_title .= ' 생성'; $bo_table_attr = 'class="required alnum_"'; $board['bo_count_delete'] = 1; $board['bo_count_modify'] = 1; -<<<<<<< HEAD - $board['bo_read_point'] = $config[cf_read_point]; - $board['bo_write_point'] = $config[cf_write_point]; - $board['bo_comment_point'] = $config[cf_comment_point]; - $board['bo_download_point'] = $config[cf_download_point]; -======= $board['bo_read_point'] = $config['cf_read_point']; $board['bo_write_point'] = $config['cf_write_point']; $board['bo_comment_point'] = $config['cf_comment_point']; $board['bo_download_point'] = $config['cf_download_point']; ->>>>>>> 2b5c471bdb62542fc9cb8b6740a934c34e5de04b $board['bo_gallery_cols'] = 4; $board['bo_table_width'] = 97; @@ -49,9 +43,10 @@ if ($w == '') { $board['bo_use_search'] = 1; $board['bo_skin'] = 'basic'; $board['gr_id'] = $gr_id; - $board['bo_disable_tags'] = 'script|iframe'; $board['bo_use_secret'] = 0; + } else if ($w == 'u') { + $html_title .= ' 수정'; if (!$board['bo_table']) @@ -63,6 +58,7 @@ if ($w == '') { } $bo_table_attr = 'readonly'; + } if ($is_admin != 'super') { @@ -74,10 +70,6 @@ $g4['title'] = $html_title; include_once ('./admin.head.php'); ?> - -=cheditor1('bo_content_head', '100%', '200');?> -=cheditor1('bo_content_tail', '100%', '200');?> -
| - | - - - if ($board['bo_image_head']) - echo ''; - ?> - | -|
|---|---|---|
| - | - - - if ($board['bo_image_tail']) - echo ''; - ?> - | -|
| @@ -588,7 +559,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) { | ||
| - =cheditor2('bo_content_head', $board['bo_content_head']);?> + =editor_textarea("bo_content_head", $board['bo_content_head']);?> | @@ -598,7 +569,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) { | |
| - =cheditor2('bo_content_tail', $board['bo_content_tail']);?> + =editor_textarea("bo_content_tail", $board['bo_content_tail']);?> | @@ -739,15 +710,6 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) { | |