동글이

게시판 관리자 여러명 만들기 에러

아래와 같은 파일을 만들어서 extend 폴더에 넣었습니다.

// 게시판관리자
if ($bo_table == '게시판아이디')
{
if ($member[mb_id] == '회원아이디1') $is_admin = 'board';
if ($member[mb_id] == '회원아이디2') $is_admin = 'board';
if ($member[mb_id] == '회원아이디3') $is_admin = 'board';

if ($is_admin == 'board') $board[bo_admin] = $member[mb_id];
}


그랬더니... 아래와 같은 에러가 발생하네요. 뭐가 문제인지 알려주세요..
그누보드 버전은 4.33.09입니다.

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /web/home/sonedu/html/extend/control.php:19) in /web/home/sonedu/html/head.sub.php on line 38
|

댓글 6개

저렇게만 넣으시면 안될텐데요.
1. 게시판 아이디에 게시판이름을 넣으셔야하고
2. 회원아이디1에 회원분 홈페이지 계정명을 넣으셔야 합니다.
3. 회원아이디2,3도 마찬가지입니다. (없으시면 각주처리 혹은 삭제)
게시판이름이 g4_write_test이고 회원 아이디가 test1, test2, test3일 경우(3명)
아래와 같이 하면 안되나요??

// 게시판관리자
if ($bo_table == 'g4_write_test')
{
if ($member[mb_id] == 'test1') $is_admin = 'board';
if ($member[mb_id] == 'test2') $is_admin = 'board';
if ($member[mb_id] == 'test3') $is_admin = 'board';

if ($is_admin == 'board') $board[bo_admin] = $member[mb_id];
}

이렇게 게시판명과 회원아이디만 넣으면 안되나요??
아담S님이 말씀하신 회원아이디1에 회원분 홈페이지 계정명을 넣어야 한다는건 무슨말씀이신지 모르겠어요... 조금만 더 알려주세요.
계정명이요. 운영자라면 admin이겠죠.
그 회원분의 계정명이요 아이디!
그런데 게시판이름이 g4_write_test 이거일수가 있나요?
뭐 만들면 문제는 없겠지만 보통 tb01 이런게 게시판이름일텐데..
네...
아담s님이 말씀하신데로 작업을 했었습니다. 그런데 위와 같은 에러가 나서..질문하는 거예요.
지금 똑같이 작업을 해서 테스트 중인데, 이번엔 위와 같은 에러메세지는 뜨지 않는데
게시판 관리자 권한을 갖지 못하네요.. ....
컴퓨터 환경에 따라 달라 지는가 봐요.... 똑같은 윈도우를 사용하고 있는데..ㅠㅠ
이런 실수를 아담s님 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 2,154
14년 전 조회 2,844
14년 전 조회 982
14년 전 조회 885
14년 전 조회 789
14년 전 조회 948
14년 전 조회 1,586
14년 전 조회 1,172
14년 전 조회 953
14년 전 조회 1,463
14년 전 조회 779
14년 전 조회 1,002
14년 전 조회 1,542
14년 전 조회 1,530
14년 전 조회 1,613
14년 전 조회 1,465
14년 전 조회 1,622
14년 전 조회 1,418
14년 전 조회 1,544
14년 전 조회 1,679
🐛 버그신고