forked from GithubBackups/vichan
report event
This commit is contained in:
parent
90f27d8c2e
commit
d85cb47647
6
post.php
6
post.php
@ -318,6 +318,12 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
$post = $query->fetch(PDO::FETCH_ASSOC);
|
$post = $query->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
$error = event('report', array('ip' => $_SERVER['REMOTE_ADDR'], 'board' => $board['uri'], 'post' => $post, 'reason' => $reason));
|
||||||
|
|
||||||
|
if ($error) {
|
||||||
|
error($error);
|
||||||
|
}
|
||||||
|
|
||||||
if ($config['syslog'])
|
if ($config['syslog'])
|
||||||
_syslog(LOG_INFO, 'Reported post: ' .
|
_syslog(LOG_INFO, 'Reported post: ' .
|
||||||
'/' . $board['dir'] . $config['dir']['res'] . link_for($post) . ($post['thread'] ? '#' . $id : '') .
|
'/' . $board['dir'] . $config['dir']['res'] . link_for($post) . ($post['thread'] ? '#' . $id : '') .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user