mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-09-30 07:13:20 -04:00
16 lines
428 B
PHP
16 lines
428 B
PHP
<?php
|
|
authorize();
|
|
|
|
if (!check_perms('forums_polls_moderate')) {
|
|
error(403, true);
|
|
}
|
|
|
|
$threadId = (int)$_POST['threadid'];
|
|
$forum = (new \Gazelle\Manager\Forum)->findByThreadId($threadId);
|
|
if (is_null($forum)) {
|
|
error(0, true);
|
|
}
|
|
$forum->moderatePoll($threadId, isset($_POST['feature']), isset($_POST['close']));
|
|
|
|
header("Location: " . ($_SERVER['HTTP_REFERER'] ?? "forums.php?action=viewthread&threadid={$threadId}"));
|