24 lines
516 B
PHP
24 lines
516 B
PHP
<?php
|
|
namespace Misuzu;
|
|
|
|
require_once '../../../misuzu.php';
|
|
|
|
if(!perms_check_user(MSZ_PERMS_GENERAL, user_session_current('user_id'), MSZ_PERM_FORUM_MANAGE_FORUMS)) {
|
|
echo render_error(403);
|
|
return;
|
|
}
|
|
|
|
$getForum = DB::prepare('
|
|
SELECT *
|
|
FROM `msz_forum_categories`
|
|
WHERE `forum_id` = :forum_id
|
|
');
|
|
$getForum->bind('forum_id', (int)($_GET['f'] ?? 0));
|
|
$forum = $getForum->fetch();
|
|
|
|
if(!$forum) {
|
|
echo render_error(404);
|
|
return;
|
|
}
|
|
|
|
echo tpl_render('manage.forum.forum', compact('forum'));
|