diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-27 21:12:02 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-27 21:12:02 +0500 |
| commit | 9f1906c4cbb9878c5888723b7923fa8e4bebb51f (patch) | |
| tree | 25f838ee0bb91f2a14d061906dde96967dd72a95 /public/index.php | |
| parent | 00ab9aeaf0eac4c82e6480faee70add916db514f (diff) | |
feat: roles
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 2a6311f..8f1d7dd 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,8 @@ <?php include_once "../src/config.php"; +include_once "../src/accounts.php"; +authorize_user(); + ?> <html> @@ -17,7 +20,9 @@ include_once "../src/config.php"; <a href="/emotes">Emotes</a> <a href="/emotesets.php">Emotesets</a> <a href="/users.php">Users</a> - <a href="/emotes/upload.php">Upload</a> + <?php if (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"])) { + echo '<a href="/emotes/upload.php">Upload</a>'; + } ?> <a href="/account">Account</a> <a href="/software">Chat clients</a> </div> |
