Files
ops-Gazelle/sections/forums/get_post.php
T

12 lines
244 B
PHP

<?php
$postId = (int)$_GET['post'];
$forum = (new Gazelle\Manager\Forum)->findByPostId($postId);
if (is_null($forum)) {
error(404);
}
if (!$Viewer->readAccess($forum)) {
error(403);
}
echo trim(display_str($forum->postBody($postId)));