Advertisement
Guest User

Untitled

a guest
Dec 30th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Book Now - Demo</title>
  8.  
  9. <!-- Bootstrap -->
  10. <link href="css/bootstrap.min.css" rel="stylesheet">
  11. <link href="css/style.css" rel="stylesheet">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <div class="info">
  16. <h2 class="bg-primary">Demo - Login to Continue</h2>
  17. <div class="bg-info">
  18. <div class="col-md-6 col-md-offset-3">
  19. <h4></span>Log in with your credentials</h4><br/>
  20. <h4>Admin Login - Username: admin Password: demo<br>
  21. Customer Login - Username: customer Password: demo</h4><br>
  22. </br>
  23. <div class="block-margin-top">
  24. <?php
  25.  
  26. $errors = array(
  27. 1=>"Invalid user name or password, Try again",
  28. 2=>"Please login to access this area"
  29. );
  30.  
  31. $error_id = isset($_GET['err']) ? (int)$_GET['err'] : 0;
  32.  
  33. if ($error_id == 1) {
  34. echo '<p class="text-danger">'.$errors[$error_id].'</p>';
  35. }elseif ($error_id == 2) {
  36. echo '<p class="text-danger">'.$errors[$error_id].'</p>';
  37. }
  38. ?>
  39.  
  40. <form action="authenticate.php" method="POST" class="form-signin col-md-8 col-md-offset-2" role="form">
  41. <input type="text" name="username" class="form-control" placeholder="Username" required autofocus><br/>
  42. <input type="password" name="password" class="form-control" placeholder="Password" required><br/>
  43. <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement