gbmove.php 를 조금 수정할려고 합니다. 정보
그누보드 gbmove.php 를 조금 수정할려고 합니다.본문
현재 저는 레벨 9를 그룹관리자로 하고 있습니다.
글을 이동할때 가 그룹, 나 그룹, 다 그룹이 있다면
가 그룹의 게시물은 나 그룹의 게시물로 이동을 할 수가 없습니다.
가 그룹내에서만 게시물을 이동할 수 있습니다.
gbmove.php를 보니 아래 내용을 수정하하면 될거 같습니다.
$table_short_name = preg_replace("/$cfg[write_table_prefix]/", "", $write_table);
$sql = " select *
from $cfg[table_board] a,
$cfg[table_group] b
where a.gr_id = b.gr_id
and bo_table <> '$table_short_name' ";
if ($is_admin == 'group') {
$sql .= " and a.gr_id = '$group[gr_id]' ";
}
$sql .= " order by a.gr_id, a.bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$list[$i]->gr_subject = $row[gr_subject];
$list[$i]->bo_table = $row[bo_table];
$list[$i]->bo_subject = $row[bo_subject];
}
mysql_free
글을 이동할때 가 그룹, 나 그룹, 다 그룹이 있다면
가 그룹의 게시물은 나 그룹의 게시물로 이동을 할 수가 없습니다.
가 그룹내에서만 게시물을 이동할 수 있습니다.
gbmove.php를 보니 아래 내용을 수정하하면 될거 같습니다.
$table_short_name = preg_replace("/$cfg[write_table_prefix]/", "", $write_table);
$sql = " select *
from $cfg[table_board] a,
$cfg[table_group] b
where a.gr_id = b.gr_id
and bo_table <> '$table_short_name' ";
if ($is_admin == 'group') {
$sql .= " and a.gr_id = '$group[gr_id]' ";
}
$sql .= " order by a.gr_id, a.bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$list[$i]->gr_subject = $row[gr_subject];
$list[$i]->bo_table = $row[bo_table];
$list[$i]->bo_subject = $row[bo_subject];
}
mysql_free
댓글 전체