authenticate($_GET['code']); if ($success) { redirect('index.php'); } else { quit(get_page_header().'Echo error authenticating'); } } else { quit(get_page_header().'Echo error authenticating: '. $_GET['error_message']); }