Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("_system.php");
- $account = new Account();
- if(empty($_POST['username'])){
- header("Location: login.php");
- } else {
- $username = strip_tags($_POST['username']);
- $password = strip_tags($_POST['password']);
- if($account->isCorrectUser($username,$password)){
- $_SESSION['user'] = $account->userInfo($username);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement