add eventhandler into document create/update

This commit is contained in:
Amberstone 2024-09-29 04:22:03 +09:00
parent 8cc9db9e0f
commit 693e34e34c
Signed by: amber
GPG key ID: 094B0E55F98D8BF1

View file

@ -315,6 +315,8 @@ if ($w == '' || $w == 'r') {
// 답변 포인트가 많은 경우 코멘트 대신 답변을 하는 경우가 많음
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id} 글답변", $bo_table, $wr_id, '쓰기');
}
EventHandler::triggerEvent("gnuboard.bbs.write_update_document_create", $board, $wr_id, $w, $qstr, $redirect_url);
} else if ($w == 'u') {
if (get_session('ss_bo_table') != $_POST['bo_table'] || get_session('ss_wr_id') != $_POST['wr_id']) {
//alert('올바른 방법으로 수정하여 주십시오.', G5_BBS_URL.'/board.php?bo_table='.$bo_table);
@ -445,6 +447,8 @@ if ($w == '' || $w == 'r') {
$bo_notice = board_notice($board['bo_notice'], $wr_id, $notice);
sql_query(" update {$g5['board_table']} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' ");
EventHandler::triggerEvent("gnuboard.bbs.write_update_document_update", $board, $wr_id, $w, $qstr, $redirect_url);
}
// 게시판그룹접근사용을 하지 않아야 하고 비회원 글읽기가 가능해야 하며 비밀글이 아니어야 합니다.