관리자 admin 버튼 노출 문의
<?php if ($is_admin == 'super' || $is_auth) { ?>
<div class="am_list">
<a onclick="list_del();">글삭제</a>
<a onclick="list_update();">글수정</a>
<a href="<?php echo G5_URL ?>/bbs/write.php?bo_table=history">글작성</a>
<!--a href="<?php echo G5_URL ?>/bbs/board.php?bo_table=history">글목록</a-->
</div>
<?php } ?>
답변 2개
lib/common.lib.php에
// 관리자인가?
function is_admin($mb_id)
{
global $config, $group, $board;
if (!$mb_id) return '';
$is_authority = '';
if ($config['cf_admin'] == $mb_id){
$is_authority = 'super';
} else if (isset($group['gr_admin']) && ($group['gr_admin'] == $mb_id)){
$is_authority = 'group';
} else if (isset($board['bo_admin']) && ($board['bo_admin'] == $mb_id)){
$is_authority = 'board';
}
return run_replace('is_admin', $is_authority, $mb_id);
}
를 보면
mb_level하고는 상관이 없습니다.
게시판 관리자는 게시판 설정"에서 지정하도록 되어 있습니다.
댓글을 작성하려면 로그인이 필요합니다.
<?php if ($is_admin == 'super' || $is_auth || $member['mb_level'] > 8) { ?>
이렇게 고치면 될거 같네요
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인