Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session_start();
- include_once("../../../libraries/sdfsdfsdf/login_classes.php");
- $auth = new Auth;
- $action = $_REQUEST['action'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($action == 'login' && !$auth->emailExists($username)) {
- Header('Location: index.php?action=unknownuser');
- } else if ($action == 'login' && !$auth->isAccountActive($username)) {
- Header('Location: index.php?action=inactive');
- } else if ($action == 'login' && $auth->userAuth($username, $password)) {
- Header('Location: index.php');
- } else if ($_SESSION['loggedin']) {
- Header('Location: services.php');
- }
Add Comment
Please, Sign In to add comment