2013-03-27 11:55:00 - 본인 요청으로 인한 삭제 (냉무) ☆ 정보
2013-03-27 11:55:00 - 본인 요청으로 인한 삭제 (냉무) ☆
본문
추천
0
0
댓글 10개

리자님 소환!

리자님이 정리를 하셔야 할 부분입니다.
전 처리했지만 ... ㅎㅎㅎ
전 처리했지만 ... ㅎㅎㅎ

아...
이제 가물가물합니다.
저게..머더라???
이제 가물가물합니다.
저게..머더라???

이제 정상동작 하네요 ... ㅋㅋㅋ
왜? 빠뜨렸을까요 ?
왜? 빠뜨렸을까요 ?

그걸 왜 저한테 물어보세요...
요오오오오~~ㅇ 요오오오오오...~옹
요오오오오~~ㅇ 요오오오오오...~옹

리쟈님하고 제일 친하신 분이니까요 ? ㅎㅎㅎ

별로 좋아하지 않습니다.
단! 호! 하! 게...흠~~
단! 호! 하! 게...흠~~

참고로 DTD 초창기 버젼이라 ... 제가 못챙겼을 수도 있고요 ... 최신버젼 체크 후에 돌아 오겠습니다.
역시 안보이네요 ?
어디로 숨었지요 ?
역시 안보이네요 ?
어디로 숨었지요 ?

bbs/delete.php 에
$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++;
}
}
이렇게 들어가 있습니다.
$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++;
}
}
이렇게 들어가 있습니다.

미안합니다. DTD 라고 말씀을 안 드렸네요 .......