summaryrefslogtreecommitdiff
path: root/templates/php/account.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/php/account.php')
-rw-r--r--templates/php/account.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/php/account.php b/templates/php/account.php
new file mode 100644
index 0000000..c57455e
--- /dev/null
+++ b/templates/php/account.php
@@ -0,0 +1,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> \ No newline at end of file