Browse Source

syslog() mod actions

pull/40/head
Savetheinternet 13 years ago
parent
commit
d454fc6423
  1. 3
      inc/mod.php
  2. 3
      post.php

3
inc/mod.php

@ -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

3
post.php

@ -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'); rebuildThemes('post');
header('Location: ' . $redirect, true, $config['redirect_http']); header('Location: ' . $redirect, true, $config['redirect_http']);

Loading…
Cancel
Save