$sub_menu = "300100"; include_once('./_common.php'); include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php'); auth_check($auth[$sub_menu], 'w'); $sql = " select count(*) as cnt from {$g4['group_table']} "; $row = sql_fetch($sql); if (!$row['cnt']) alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php'); $html_title = '게시판'; if (!isset($board['bo_device'])) { // 게시판 사용 필드 추가 // both : pc, mobile 둘다 사용 // pc : pc 전용 사용 // mobile : mobile 전용 사용 // none : 사용 안함 sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_device` ENUM( 'both', 'pc', 'mobile' ) NOT NULL DEFAULT 'both' AFTER `bo_subject` ", false); } if (!isset($board['bo_show_menu'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_show_menu` TINYINT NOT NULL DEFAULT '0' AFTER `bo_order_search`, ADD `bo_order` INT NOT NULL DEFAULT '0' AFTER `bo_show_menu` ", false); } if (!isset($board['bo_mobile_skin'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_skin` ", false); } if (!isset($board['bo_gallery_width'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_gallery_width` INT NOT NULL AFTER `bo_gallery_cols`, ADD `bo_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_width`, ADD `bo_mobile_gallery_cols` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_height`, ADD `bo_mobile_gallery_width` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_cols`, ADD `bo_mobile_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_width` ", false); } if (!isset($board['bo_mobile_subject_len'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_subject_len` INT(11) NOT NULL DEFAULT '0' AFTER `bo_subject_len` ", false); } if (!isset($board['bo_mobile_page_rows'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_page_rows` INT(11) NOT NULL DEFAULT '0' AFTER `bo_page_rows` ", false); } if (!isset($board['bo_mobile_content_head'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_content_head` TEXT NOT NULL AFTER `bo_content_head`, ADD `bo_mobile_content_tail` TEXT NOT NULL AFTER `bo_content_tail`", false); } $required = ""; $readonly = ""; if ($w == '') { $html_title .= ' 생성'; $required = 'required'; $required_valid = 'alnum_'; $sound_only = '필수'; $board['bo_count_delete'] = 1; $board['bo_count_modify'] = 1; $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_gallery_cols'] = 4; $board['bo_gallery_width'] = 174; $board['bo_gallery_height'] = 124; $board['bo_mobile_gallery_cols'] = 3; $board['bo_mobile_gallery_width'] = 125; $board['bo_mobile_gallery_height'] = 100; $board['bo_table_width'] = 100; $board['bo_page_rows'] = $config['cf_page_rows']; $board['bo_mobile_page_rows'] = $config['cf_page_rows']; $board['bo_subject_len'] = 60; $board['bo_mobile_subject_len'] = 30; $board['bo_new'] = 24; $board['bo_hot'] = 100; $board['bo_image_width'] = 600; $board['bo_upload_count'] = 2; $board['bo_upload_size'] = 1048576; $board['bo_reply_order'] = 1; $board['bo_use_search'] = 1; $board['bo_skin'] = 'basic'; $board['bo_mobile_skin'] = 'basic'; $board['gr_id'] = $gr_id; $board['bo_use_secret'] = 0; $board['bo_include_head'] = '_head.php'; $board['bo_include_tail'] = '_tail.php'; $board['bo_show_menu'] = true; } else if ($w == 'u') { $html_title .= ' 수정'; if (!$board['bo_table']) alert('존재하지 않은 게시판 입니다.'); if ($is_admin == 'group') { if ($member['mb_id'] != $group['gr_admin']) alert('그룹이 틀립니다.'); } $readonly = 'readonly'; } if ($is_admin != 'super') { $group = get_group($board['gr_id']); $is_admin = is_admin($member['mb_id']); } $g4['title'] = $html_title; include_once ('./admin.head.php'); $pg_anchor = "
"; ?> include_once ('./admin.tail.php'); ?>