|
@ -117,7 +117,6 @@ if (isset($_POST['delete'])) { |
|
|
|
|
|
|
|
|
$thread = $query->fetchColumn(); |
|
|
$thread = $query->fetchColumn(); |
|
|
|
|
|
|
|
|
if ($thread) { |
|
|
|
|
|
if ($config['syslog']) |
|
|
if ($config['syslog']) |
|
|
_syslog(LOG_INFO, 'Reported post: ' . |
|
|
_syslog(LOG_INFO, 'Reported post: ' . |
|
|
'/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $thread ? $thread : $id) . ($thread ? '#' . $id : '') . |
|
|
'/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $thread ? $thread : $id) . ($thread ? '#' . $id : '') . |
|
@ -131,7 +130,6 @@ if (isset($_POST['delete'])) { |
|
|
$query->bindValue(':reason', $reason, PDO::PARAM_STR); |
|
|
$query->bindValue(':reason', $reason, PDO::PARAM_STR); |
|
|
$query->execute() or error(db_error($query)); |
|
|
$query->execute() or error(db_error($query)); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$is_mod = isset($_POST['mod']) && $_POST['mod']; |
|
|
$is_mod = isset($_POST['mod']) && $_POST['mod']; |
|
|
$root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; |
|
|
$root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; |
|
|