<?phpinclude("dbconnect.php");require_once 'auth.php';// If post, check userif (!empty($_POST['userlogin']) && !empty($_POST['pass'])) {// Verify user and passwordif (isValidUser($_POST['userlogin'], $_POST['pass'])) {// Log in$_SESSION['userlogin'] = $_POST['userlogin'];header('Location: index.php');exit();}else{$_SESSION['userlogin'] = FALSE;}}// The user login pageinclude 'templates/header.php';?><!--login modal-->User authentication