Show board in modlog on report dismissing
This commit is contained in:
parent
38e99d16aa
commit
44aeb4d97d
@ -73,14 +73,16 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function modLog($action) {
|
function modLog($action, $_board=null) {
|
||||||
global $mod, $board;
|
global $mod, $board;
|
||||||
$query = prepare("INSERT INTO `modlogs` VALUES (:id, :ip, :board, :time, :text)");
|
$query = prepare("INSERT INTO `modlogs` VALUES (:id, :ip, :board, :time, :text)");
|
||||||
$query->bindValue(':id', $mod['id'], PDO::PARAM_INT);
|
$query->bindValue(':id', $mod['id'], PDO::PARAM_INT);
|
||||||
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR']);
|
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR']);
|
||||||
$query->bindValue(':time', time(), PDO::PARAM_INT);
|
$query->bindValue(':time', time(), PDO::PARAM_INT);
|
||||||
$query->bindValue(':text', $action);
|
$query->bindValue(':text', $action);
|
||||||
if(isset($board))
|
if(isset($_board))
|
||||||
|
$query->bindValue(':board', $_board);
|
||||||
|
elseif(isset($board))
|
||||||
$query->bindValue(':board', $board['id']);
|
$query->bindValue(':board', $board['id']);
|
||||||
else
|
else
|
||||||
$query->bindValue(':board', null, PDO::PARAM_NULL);
|
$query->bindValue(':board', null, PDO::PARAM_NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user