voteInPoll((int)$_POST['pollid'], $voted_options, $_POST['polltoken']);
} catch (\Exception $e) {
$header = get_page_header('Voting error');
$str = $header
. 'Sorry, something went wrong while voting! "'
. $e->getMessage()
. '"
Please yell at @hutattedonmyarm
'
. 'Go back to the poll';
quit($str);
}
redirect('view_poll.php?id='.$_POST['pollid'].'&success=1');