diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
| commit | 070a27baa8f93c3bf191459b88d24d7430a78899 (patch) | |
| tree | 8c96b12d16e1d219ef410ad0e45b2d886368bc5e /php/header.php | |
| parent | 83cd353b01660f34d6fd894d15a27fb1b3aeab4c (diff) | |
Some fixes and updates
Diffstat (limited to 'php/header.php')
| -rwxr-xr-x | php/header.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/php/header.php b/php/header.php index 0fd46df..18a043a 100755 --- a/php/header.php +++ b/php/header.php @@ -19,15 +19,19 @@ require_once ROOT . '/php/replace.php'; require_once ROOT . '/php/session.php'; +require_once ROOT . '/php/user.php'; $username = get_username(); if ($username === null) { $account = import(ROOT . '/html/guest.html'); } else { + $admin = is_admin() ? import(ROOT . '/html/admin-link.html') : ''; + $account = replace(ROOT . '/html/account.html', [ '{{username}}' => htmlspecialchars($username, ENT_QUOTES, 'UTF-8'), - '{{profile}}' => rawurlencode($username) + '{{profile}}' => rawurlencode($username), + '{{admin}}' => $admin ]); } |
