[제나플러스] 회원탈퇴나 삭제시 회원이 작성한 글 모두 삭제하기
본문
admin.lib_super.php
****************
// 아이콘 삭제
@unlink("$g4[path]/data/member/".substr($mb_id,0,2)."/$mb_id.gif");
$cnt = 0;
$query = sql_query("select bo_table from `$g4[board_table]`");
while($row = sql_fetch_array($query)) {
$cnt += mysql_num_rows(sql_query("select mb_id from `$g4[write_prefix]$row[bo_table]` where mb_id='$mb_id'"));
sql_query("delete from `$g4[write_prefix]$row[bo_table]` where mb_id='$mb_id'");
}
****************
// 아이콘 삭제
@unlink("$g4[path]/data/member/".substr($mb_id,0,2)."/$mb_id.gif");
$cnt = 0;
$query = sql_query("select bo_table from `$g4[board_table]`");
while($row = sql_fetch_array($query)) {
$cnt += mysql_num_rows(sql_query("select mb_id from `$g4[write_prefix]$row[bo_table]` where mb_id='$mb_id'"));
sql_query("delete from `$g4[write_prefix]$row[bo_table]` where mb_id='$mb_id'");
}
추천0
댓글목록 0
등록된 댓글이 없습니다.