Files
2026-10-31 11:38:54 +01:00

24 lines
424 B
PHP

<?php
/** @phpstan-var \Gazelle\User $Viewer */
declare(strict_types=1);
namespace Gazelle;
authorize();
if (($_GET['forumid'] ?? '') == 'all') {
$Viewer->updateCatchup();
header('Location: forums.php');
return;
}
$forum = new Manager\Forum()->findById((int)($_GET['forumid'] ?? 0));
if (is_null($forum)) {
Error404::error();
}
$forum->userCatchup($Viewer);
header('Location: ' . $forum->location());