Advertisement
Guest User

Untitled

a guest
Nov 10th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. require_once 'includes/parabola.inc.php';
  3.  
  4. if ($user->loggedin() != "")
  5. {
  6.     redirect("dashboard.php");
  7. }
  8.  
  9. if (isset($_POST['login']))
  10. {
  11.     $username = $_POST['txt_username'];
  12.     $password = $_POST['txt_password'];
  13.  
  14.     if ($user->login($username, $password))
  15.     {
  16.         redirect("dashboard.php");
  17.     }
  18.     else
  19.     {
  20.         $error = "Invalid Username and/or Password!";
  21.     }
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement