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