답변 3개
채택된 답변
+20 포인트
bbs/delete.php 같을 파일을 보시면
// 원글 포인트 삭제
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '쓰기'))
이런 코드가 있어서
흔적없이 포인트가 줄 수 있습니다.
이를 막으려면
lib/common.lib.php에
// 포인트 삭제
function delete_point($mb_id, $rel_table, $rel_id, $rel_action)
에서
$result = sql_query(" delete from {$g5['point_table']}
where mb_id = '$mb_id'
and po_rel_table = '$rel_table'
and po_rel_id = '$rel_id'
and po_rel_action = '$rel_action' ", false);
delete대신 insert( -point)로 처리해 보세요.
답변을 작성하려면 로그인이 필요합니다.