break; case $mods->getError(4): $mods->showDialog('prompt', 'System Error', 'Voter has already voted.'); break; case $mods->getError(5): $mods->showDialog('prompt', 'System Error', 'The system failed to record your vote. Please login to continue.'); break; case $mods->getError(7): $mods->showDialog('prompt', 'Login Status', 'Voters are not allowed to access the system\'s dashboard.'); break; default: break; } } else { if (isset($_POST['output'])) { $output = $_POST['output']; switch ($output) { case '20c1e9da750353cf0cba49283c17f8a7': $mods->showDialog('prompt', 'Voting Status', 'Your vote has been successfully recorded. Thank you for voting!', 'precinct.php'); break; default: break; } } else { $mods->logout(); } } ?> </div> </body> </html>