summaryrefslogtreecommitdiff
path: root/templates/php/account.php
blob: c57455e65d44a45b7c28751bbf84f94de54dcab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
    $paths = [
        'AccountPassword' => $_SERVER['AUTH_PATH_ACCOUNT_PASSWORD'] ?? '/account/password',
        'Logout' => $_SERVER['AUTH_PATH_LOGOUT'] ?? '/logout',
        'Assets' => $_SERVER['AUTH_ASSETS_PATH'] ?? '/assets',
    ];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Account</title>
    <link rel="stylesheet" href="<?php echo htmlspecialchars($paths['Assets']); ?>/css/style.css">
    <link rel="stylesheet" href="<?php echo htmlspecialchars($paths['Assets']); ?>/css/account.css">
</head>
<body>
    <div class="container content-container">
        <h2>My Account</h2>
        <p>Welcome, <?php echo htmlspecialchars($_SERVER['HTTP_X_USERNAME']); ?>!</p>
        <ul>
            <li><a href="<?php echo htmlspecialchars($paths['AccountPassword']); ?>">Change Password</a></li>
        </ul>
        <div class="logout-link">
            <a href="<?php echo htmlspecialchars($paths['Logout']); ?>">Logout</a>
        </div>
    </div>
</body>
</html>