summaryrefslogtreecommitdiff
path: root/src/partials.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/partials.php')
-rw-r--r--src/partials.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/partials.php b/src/partials.php
index 38e63bb..274e3ee 100644
--- a/src/partials.php
+++ b/src/partials.php
@@ -11,8 +11,15 @@ function html_navigation_bar()
</a>
<div class="links">
<a href="/emotes" class="button">Emotes</a>
- <a href="/emotesets.php" class="button">Emotesets</a>
- <a href="/users.php" class="button">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" class="button">Upload</a>';
} ?>