|
|
|
14년 전
|
조회 1,978
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 1,348
|
|
|
|
14년 전
|
조회 1,146
|
|
|
|
14년 전
|
조회 1,235
|
|
|
|
14년 전
|
조회 1,180
|
|
|
|
14년 전
|
조회 1,130
|
|
|
|
14년 전
|
조회 1,189
|
|
|
|
14년 전
|
조회 1,363
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 1,220
|
|
|
|
14년 전
|
조회 1,359
|
|
|
|
14년 전
|
조회 1,596
|
|
|
|
14년 전
|
조회 1,216
|
|
|
|
14년 전
|
조회 1,160
|
|
|
|
14년 전
|
조회 1,609
|
|
|
|
14년 전
|
조회 1,501
|
|
|
|
14년 전
|
조회 1,146
|
|
|
관리자
|
14년 전
|
조회 1,565
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 1,309
|
|
|
|
14년 전
|
조회 1,292
|
|
|
|
14년 전
|
조회 1,226
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 1,411
|
|
|
|
14년 전
|
조회 1,824
|
|
|
|
14년 전
|
조회 1,267
|
댓글 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++;
}
}
이렇게 들어가 있습니다.