$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 ($w == '') { $html_title .= ' 생성'; $bo_table_attr = 'class="required 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_table_width'] = 97; $board['bo_page_rows'] = $config['cf_page_rows']; $board['bo_subject_len'] = 60; $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['gr_id'] = $gr_id; $board['bo_use_secret'] = 0; } else if ($w == 'u') { $html_title .= ' 수정'; if (!$board['bo_table']) alert('존재하지 않은 게시판 입니다.'); if ($is_admin == 'group') { if ($member['mb_id'] != $group['gr_admin']) alert('그룹이 틀립니다.'); } $bo_table_attr = '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'); ?>