그누보드view.php 에 $write_table가 어디서정의되는지알고싶습니다.
답변 1개
채택된 답변
+20 포인트
8년 전
/common.php 에서 조합됩니다.
Copy
...// 395 line~$write = array();$write_table = "";if ($bo_table) { $board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' "); if ($board['bo_table']) { set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1); $gr_id = $board['gr_id']; $write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름 //$comment_table = $g5['write_prefix'] . $bo_table . $g5['comment_suffix']; // 코멘트 테이블 전체이름 if (isset($wr_id) && $wr_id) $write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' "); }}//407 line
일반적으로
그누보드의 구조상
write_table 의 헤더를 제외한 영역이
$bo_table
값 입니다.
게시판의 구조가 /bbs/board.php?bo_table=table1
이런식으로 접근을 한다면
그누보드 설치시 기본값을 사용한 테이블인경우
g5_write_table1
이 됩니다.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인