mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 13:13:03 -04:00
28 lines
470 B
PHP
28 lines
470 B
PHP
<?php
|
|
|
|
if (!check_perms('users_warn')) {
|
|
error(403);
|
|
}
|
|
$postId = (int)$_POST['postid'];
|
|
if (!$postId) {
|
|
error(404);
|
|
}
|
|
|
|
[$body, $userId] = $DB->row("
|
|
SELECT Body, AuthorID FROM comments WHERE ID = ?
|
|
", $postId
|
|
);
|
|
if (is_null($body)) {
|
|
error(404);
|
|
}
|
|
|
|
View::show_header('Warn User');
|
|
|
|
echo G::$Twig->render('comment/warn.twig', [
|
|
'body' => $body,
|
|
'post_id' => $postId,
|
|
'user' => new Gazelle\User($userId),
|
|
]);
|
|
|
|
View::show_footer();
|