mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 13:13:03 -04:00
15 lines
347 B
PHP
15 lines
347 B
PHP
<?php
|
|
|
|
if (!$Viewer->permitted('forums_polls_moderate')) {
|
|
error(403, true);
|
|
}
|
|
authorize();
|
|
|
|
$poll = (new Gazelle\Manager\ForumPoll)->findById((int)($_POST['threadid'] ?? 0));
|
|
if (is_null($poll)) {
|
|
error(0, true);
|
|
}
|
|
$poll->moderate(isset($_POST['feature']), isset($_POST['close']));
|
|
|
|
header('Location: ' . redirectUrl($poll->location()));
|