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

$success = false;
if($access->ResetPassword()){
  $success=true;
}

?>
<!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>Reset Password</title>
      <link rel="STYLESHEET" type="text/css" href="/site/css/access.css" />
      <script type='text/javascript' src='/site/js/access.js'></script>
</head>
<body>
<div id='access_content'>
<?php
if($success){
?>
<h2>Password is Reset Successfully</h2>
Your new password is sent to your email address.
<?php
}else{
?>
<h2>Error</h2>
<span class='error'><?php echo $access->GetErrorMessage(); ?></span>
<?php
}
?>
</div>

</body>
</html>