|
/**
* User has already logged in, so display relavent links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
echo "Logged In";
echo "Welcome $session->username, you are logged in.
";
echo "View open bid items
";
echo "[Logout]";
}
else{
?>
/**
* User not logged in, display the login form.
* If user has already tried to login, but errors were
* found, display the total number of errors.
* If errors occurred, they will be displayed.
*/
if($form->num_errors > 0){
echo "".$form->num_errors." error(s) found";
}
?>
}
?>
|
|
|
 |
|
Roy Hauliers Limited
Online Spare Parts Bidding System |
|
|