Files
ops-Gazelle/sections/forums/catchup.php
T
2023-02-03 11:13:53 +01:00

18 lines
340 B
PHP

<?php
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->id());
header('Location: ' . $forum->location());