diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 03:00:59 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 03:00:59 +1100 |
| commit | d454fc6423e187c5a00f8d212324da62db77dbd6 (patch) | |
| tree | 243b7a151aa3db513ba4453274ba4da04bee9512 | |
| parent | fd0eaa672f2659b77be59d1d561396f71dd8f5f8 (diff) | |
syslog() mod actions
| -rw-r--r-- | inc/mod.php | 3 | ||||
| -rw-r--r-- | post.php | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/inc/mod.php b/inc/mod.php index d7920a78..9e55be86 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -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 @@ -598,7 +598,8 @@ } - _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP?'#'.$id:'')); + 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'); header('Location: ' . $redirect, true, $config['redirect_http']); |
