Advertisement
Guest User

Untitled

a guest
Apr 11th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. require_once("_system.php");
  4.  
  5. $account = new Account();
  6.  
  7. if(empty($_POST['username'])){
  8. header("Location: login.php");
  9. } else {
  10. $username = strip_tags($_POST['username']);
  11. $password = strip_tags($_POST['password']);
  12. if($account->isCorrectUser($username,$password)){
  13. $_SESSION['user'] = $account->userInfo($username);
  14. }
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement