mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-07 10:13:02 -04:00
13 lines
320 B
PHP
13 lines
320 B
PHP
<?php
|
|
|
|
$postId = (int)$_GET['post'];
|
|
try {
|
|
$forum = (new Gazelle\Manager\Forum)->findByPostId($postId);
|
|
} catch (Gazelle\Exception\ResourceNotFoundException $e) {
|
|
error(404);
|
|
}
|
|
if (!(new Gazelle\User($LoggedUser['ID']))->readAccess($forum)) {
|
|
error(403);
|
|
}
|
|
echo trim(display_str($forum->postBody($postId)));
|