$sub_menu = "300200"; include_once('./_common.php'); auth_check($auth[$sub_menu], 'r'); if (!isset($group['gr_use'])) { // 게시판 그룹 사용 필드 추가 // both : pc, mobile 둘다 사용 // pc : pc 전용 사용 // mobile : mobile 전용 사용 // none : 사용 안함 sql_query(" ALTER TABLE `{$g4['board_group_table']}` ADD `gr_use` ENUM( 'both', 'pc', 'mobile', 'none' ) NOT NULL DEFAULT 'both' AFTER `gr_subject` ", false); } $sql_common = " from {$g4['group_table']} "; $sql_search = " where (1) "; if ($is_admin != 'super') $sql_search .= " and (gr_admin = '{$member['mb_id']}') "; if ($stx) { $sql_search .= " and ( "; switch ($sfl) { case "gr_id" : case "gr_admin" : $sql_search .= " ({$sfl} = '{$stx}') "; break; default : $sql_search .= " ({$sfl} like '%{$stx}%') "; break; } $sql_search .= " ) "; } if ($sst) $sql_order = " order by {$sst} {$sod} "; else $sql_order = " order by gr_id asc "; $sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} "; $row = sql_fetch($sql); $total_count = $row['cnt']; $rows = $config['cf_page_rows']; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 $sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); $listall = ''; if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $listall = '처음'; $g4['title'] = '게시판그룹설정'; include_once('./admin.head.php'); $colspan = 8; ?>
}?>
접근사용 옵션을 설정하시면 관리자가 지정한 회원만 해당 그룹에 접근할 수 있습니다.
접근사용 옵션은 해당 그룹에 속한 모든 게시판에 적용됩니다.