diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-09 18:00:11 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-09 18:00:11 +0500 |
| commit | 84458ca14672d25514970a7ab596cb2e4ff269d6 (patch) | |
| tree | d3c768f5379c806e6655543a15b820819f4843f1 /public/index.php | |
| parent | 655a39a31859f7d414a0eb055ee0771f09f25bc5 (diff) | |
feat: options to hide public lists of emotesets and users
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/public/index.php b/public/index.php index c86dd46..e0746c7 100644 --- a/public/index.php +++ b/public/index.php @@ -21,8 +21,15 @@ authorize_user(); <div class="items row" style="gap:32px;"> <a href="/emotes">Emotes</a> - <a href="/emotesets.php">Emotesets</a> - <a href="/users.php">Users</a> + + <?php if (EMOTESET_PUBLIC_LIST): ?> + <a href="/emotesets.php">Emotesets</a> + <?php endif; ?> + + <?php if (ACCOUNT_PUBLIC_LIST): ?> + <a href="/users.php">Users</a> + <?php endif; ?> + <?php if (EMOTE_UPLOAD && (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"]))) { echo '<a href="/emotes/upload.php">Upload</a>'; } ?> |
