<?php
include 'utils_login.php';
if (!abandon()) {
    if (!validuser()) {
        exit();
    }
}
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Password Protected Page</title>
        <link href="//yorktown.cbe.wwu.edu/sandvig/mis314/assignments/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div class="pageContainer centerText">
            <h2>Password Protected Page</h2><hr>
            <h2>Welcome <?php echo $_SESSION['username']; ?></h2>
            <img src="//yorktown.cbe.wwu.edu/sandvig/mis314/assignments/images/vault.jpg" style="width:400px;height:auto;" />
            <br>
            Your session will timeout after 24 minutes of inactivity.<br><br>
            <form method="post" class="formLayout">
                <div class="formGroup">
                    <input type="hidden" name="abandon" value="true">
                    <label> </label>
                    <button type="submit">Logout</button>
                </div>
            </form>
        </div>
    </body>
</html>
