Files
ops-Gazelle/sections/forums/poll_mod.php
T

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}"));