1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

syslog() mod actions

This commit is contained in:
Savetheinternet 2011-12-06 03:00:59 +11:00
parent fd0eaa672f
commit d454fc6423
2 changed files with 5 additions and 1 deletions

View File

@ -116,6 +116,9 @@
else
$query->bindValue(':board', null, PDO::PARAM_NULL);
$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

View File

@ -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:''));
rebuildThemes('post');