add event
This commit is contained in:
parent
583a79da4a
commit
c7b138f631
1 changed files with 12 additions and 1 deletions
|
|
@ -239,6 +239,11 @@ if ($w == '' || $w == 'r') {
|
|||
$wr_reply = '';
|
||||
}
|
||||
|
||||
EventHandler::triggerEvent(
|
||||
"amber.bbs.document_create_before_insert",
|
||||
$member
|
||||
);
|
||||
|
||||
$sql = "INSERT INTO $write_table
|
||||
set wr_num = '$wr_num',
|
||||
wr_reply = '$wr_reply',
|
||||
|
|
@ -383,6 +388,11 @@ if ($w == '' || $w == 'r') {
|
|||
if (!$is_admin)
|
||||
$sql_ip = " , wr_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
|
||||
EventHandler::triggerEvent(
|
||||
"amber.bbs.document_update_before_insert",
|
||||
$member
|
||||
);
|
||||
|
||||
/**
|
||||
* @var string $wr_3
|
||||
* @var string $wr_4
|
||||
|
|
@ -430,6 +440,7 @@ if ($w == '' || $w == 'r') {
|
|||
{$sql_ip}
|
||||
{$sql_password}
|
||||
WHERE wr_id = '{$wr['wr_id']}' ";
|
||||
|
||||
sql_query($sql);
|
||||
|
||||
// 분류가 수정되는 경우 해당되는 코멘트의 분류명도 모두 수정함
|
||||
|
|
|
|||
Loading…
Reference in a new issue