수고하십니다.
검색사용 체크를 풀어도 관리자는 검색되는 방법이 있을까요?
새글 확인이나 검색을 하게 될때요.
감사합니다.
|
답변 2개 / 댓글 2개
마르스컴퍼니
3년 전
if ($is_admin)
$sql = " select gr_id, bo_table, bo_read_level from {$g5['board_table']} where bo_list_level <= '{$member['mb_level']}' ";
else
$sql = " select gr_id, bo_table, bo_read_level from {$g5['board_table']} where bo_use_search = 1 and bo_list_level <= '{$member['mb_level']}' ";
eyekiss
3년 전
bbs\search.php 파일에서
$sql = " select gr_id, bo_table, bo_read_level from {$g5['board_table']} where bo_use_search = 1 and bo_list_level <= '{$member['mb_level']}' ";
이 부분 수정
Copy
if($is_admin) {
$sql_commond = "";
} else {
$sql_commond = " and bo_use_search = 1 ";
}
$sql = " select gr_id, bo_table, bo_read_level from {$g5['board_table']} where bo_list_level <= '{$member['mb_level']}' {$sql_commond} ";
답변에 대한 댓글 2개
답변을 작성하려면 로그인이 필요합니다.