mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-01 10:12:59 -04:00
17 lines
389 B
PHP
17 lines
389 B
PHP
<?php
|
|
authorize();
|
|
|
|
if (!check_perms('forums_polls_moderate')) {
|
|
error(403,true);
|
|
}
|
|
|
|
$threadId = (int)$_POST['topicid'];
|
|
if ($threadId < 1) {
|
|
error(0,true);
|
|
}
|
|
|
|
$forum = new \Gazelle\Forum();
|
|
$forum->moderatePoll($threadId, isset($_POST['feature']), isset($_POST['close']));
|
|
|
|
header("Location: " . ($_SERVER['HTTP_REFERER'] ?? "forums.php?action=viewthread&threadid={$threadId}"));
|