<?PHP
require_once($_SERVER['DOCUMENT_ROOT'] . '/sys/access.php');

if(isset($_POST['submitted'])){
  if($access->Login()){
    $access->RedirectToURL("login-home.php");
    
  }
}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
      <title>Home page</title>
      <link rel="STYLESHEET" type="text/css" href="/site/css.access.css">
</head>
<body>
<div id='access_content'>
<h2>Home Page</h2>
Welcome back <?= $access->UserFullName(); ?>!

<p><a href='login/change-pwd.php'>Change password</a></p>

<p><a href='login/access-controlled.php'>A sample 'members-only' page</a></p>
<br><br><br>
<p><a href='login/logout.php'>Logout</a></p>
</div>
</body>
</html>
