mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 04:13:09 -04:00
18 lines
340 B
PHP
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());
|