mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-09-29 04:13:19 -04:00
19 lines
378 B
PHP
19 lines
378 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
|
|
authorize();
|
|
|
|
if (($_GET['forumid'] ?? '') == 'all') {
|
|
$Viewer->updateCatchup();
|
|
header('Location: forums.php');
|
|
exit;
|
|
}
|
|
|
|
$forum = (new Gazelle\Manager\Forum())->findById((int)($_GET['forumid'] ?? 0));
|
|
if (is_null($forum)) {
|
|
error(404);
|
|
}
|
|
|
|
$forum->userCatchup($Viewer);
|
|
header('Location: ' . $forum->location());
|