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