syslog() mod actions
This commit is contained in:
parent
fd0eaa672f
commit
d454fc6423
@ -116,6 +116,9 @@
|
|||||||
else
|
else
|
||||||
$query->bindValue(':board', null, PDO::PARAM_NULL);
|
$query->bindValue(':board', null, PDO::PARAM_NULL);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
|
|
||||||
|
if($config['syslog'])
|
||||||
|
_syslog(LOG_INFO, '[mod/' . $mod['username'] . ']: ' . $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generates a <ul> element with a list of linked
|
// Generates a <ul> element with a list of linked
|
||||||
|
1
post.php
1
post.php
@ -598,6 +598,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($config['syslog'])
|
||||||
_syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP?'#'.$id:''));
|
_syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP?'#'.$id:''));
|
||||||
|
|
||||||
rebuildThemes('post');
|
rebuildThemes('post');
|
||||||
|
Loading…
Reference in New Issue
Block a user