} else { // Let's move on normally header("Location: beacon.php"); } // Try again if (!$auth->login($username, md5($password))) { // Something is horribly wrong echo '<h3>Bad login spree! Contact administrator. <a href="index.php">Go Back.</a></h3>'; @session_destroy(); } else { // Let's move on normally header("Location: beacon.php"); } } else { echo '<h3>Login Error. $output <a href="index.php">Try Again.</a></h3>'; @session_destroy(); }*/ /* END: Code for external auth */ /* BEGIN: MySQL Login */ if (!$auth->login($username, md5($password))) { echo '<h3>Incorrect Login. <a href="index.php">Go Back.</a></h3>'; @session_destroy(); } else { header("Location: beacon.php"); } /* END: MySQL Login */ } } else { header("Location: beacon.php"); }