summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php11
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>';
} ?>