관리자와 회원의 로그인후 이동페이지를 다르게 하려고
bbs/login_check.php 의 맨 아래줄을
if ($is_admin) {
goto_url(G5_THEME_URL.'/index_admin.php');
} else if (!$is_admin) {
goto_url(G5_BBS_URL.'/board.php?bo_table=test');
}
이렇게 고쳤습니다.
근데 관리자도 test 게시판으로 이동하네요...
아무리 애써도 안되는데
어디가 잘못된걸까요?
답변 2개 / 댓글 10개
채택된 답변
+20 포인트
if (is_admin($mb['mb_id'])) {
goto_url(G5_THEME_URL.'/index_admin.php');
} else {
goto_url(G5_BBS_URL.'/board.php?bo_table=test');
}
Copy
if ($is_admin) {
goto_url(G5_THEME_URL.'/index_admin.php');
} else {
goto_url(G5_BBS_URL.'/board.php?bo_table=test');
}
답변에 대한 댓글 9개
답변을 작성하려면 로그인이 필요합니다.
잘 됩니다.
근데 위에 것은 왜 안되는지 모르겠네요...