|
|
|
11-11-04
|
조회 1,491
|
|
|
|
11-11-04
|
조회 1,395
|
|
|
|
11-11-04
|
조회 1,537
|
|
|
|
11-11-04
|
조회 1,763
|
|
|
|
11-11-04
|
조회 1,403
|
|
|
|
11-11-04
|
조회 1,323
|
|
|
|
11-11-04
|
조회 1,808
|
|
|
|
11-11-04
|
조회 1,673
|
|
|
해피아이
|
11-11-04
|
조회 1,298
|
|
|
관리자
|
11-11-04
|
조회 1,755
|
|
|
|
11-11-04
|
조회 1,353
|
|
|
|
11-11-04
|
조회 1,354
|
|
|
|
11-11-04
|
조회 1,474
|
|
|
|
11-11-04
|
조회 1,463
|
|
|
|
11-11-04
|
조회 1,394
|
|
|
|
11-11-04
|
조회 1,405
|
|
|
|
11-11-04
|
조회 1,534
|
|
|
|
11-11-04
|
조회 1,596
|
|
|
|
11-11-04
|
조회 2,024
|
|
|
|
11-11-04
|
조회 1,441
|
댓글 10개
전 처리했지만 ... ㅎㅎㅎ
이제 가물가물합니다.
저게..머더라???
왜? 빠뜨렸을까요 ?
요오오오오~~ㅇ 요오오오오오...~옹
단! 호! 하! 게...흠~~
역시 안보이네요 ?
어디로 숨었지요 ?
$sql = " select wr_id, mb_id, wr_is_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id ";
$result = sql_query($sql);
while ($row = sql_fetch_array($result))
{
// 원글이라면
if (!$row[wr_is_comment])
{
// 원글 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
// 업로드된 파일이 있다면 파일삭제
$sql2 = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ";
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
// 파일테이블 행 삭제
sql_query(" delete from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ");
$count_write++;
}
else
{
// 코멘트 포인트 삭제
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
$count_comment++;
}
}
이렇게 들어가 있습니다.