include 'auction.go.inc.php'; if($_REQUEST['loginSubmitted']) { if($contactId = auctionCheckLogin($_REQUEST['username'], $_REQUEST['password'])) { auctionLogInUser($contactId); $loginSuccessful = true; } else { $errorMessage = "Your login information was incorrect."; } } if($_REQUEST['action']=='logout') { auctionLogOutUser(); } ?>
|
|||||||||||||||||||||||
if($loginSuccessful == true) { if($_SESSION['auction']['returnToBidForm']) { $_SESSION['auction']['returnToBidForm'] = false; $link = "bidForm.html"; } else { $link = "catalogue.html"; } ?> You have been logged in. Click here to proceed. } elseif($_SESSION['auction']['user']) { ?> You are already logged in. Click here to proceed. } elseif($_REQUEST['retrievePassword']) { if($_REQUEST['emailAddress']) { if(auctionEmailAccountInfoToUser($_REQUEST['emailAddress'])) { ?> Your account information has been emailed to you. } else { ?> The email address you provided did not match any existing accounts. } // no form submitted yet, so show form } else { ?> } } else { if($_REQUEST['action']=='logout') { ?> You have been logged out. } ?> Please Log-in to place your bids If you haven't registered yet, please register now. if($errorMessage) { ?> =$errorMessage?> } ?> Forgot your username or password? Click Here. |
|||||||||||||||||||||||