|
|
|
14년 전
|
조회 1,973
|
|
|
|
14년 전
|
조회 1,314
|
|
|
|
14년 전
|
조회 1,225
|
|
|
|
14년 전
|
조회 1,345
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 1,176
|
|
|
|
14년 전
|
조회 1,126
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 1,359
|
|
|
|
14년 전
|
조회 1,317
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,594
|
|
|
|
14년 전
|
조회 1,210
|
|
|
|
14년 전
|
조회 1,156
|
|
|
|
14년 전
|
조회 1,605
|
|
|
|
14년 전
|
조회 1,498
|
|
|
|
14년 전
|
조회 1,143
|
|
|
관리자
|
14년 전
|
조회 1,559
|
|
|
|
14년 전
|
조회 1,188
|
|
|
|
14년 전
|
조회 1,182
|
|
|
|
14년 전
|
조회 1,305
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 1,222
|
|
|
|
14년 전
|
조회 1,236
|
|
|
|
14년 전
|
조회 1,363
|
|
|
|
14년 전
|
조회 1,409
|
|
|
|
14년 전
|
조회 1,819
|
|
|
|
14년 전
|
조회 1,263
|
댓글 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++;
}
}
이렇게 들어가 있습니다.