From d454fc6423e187c5a00f8d212324da62db77dbd6 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 6 Dec 2011 03:00:59 +1100 Subject: [PATCH] syslog() mod actions --- inc/mod.php | 3 +++ post.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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