diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.sample.php | 4 | ||||
| -rw-r--r-- | src/partials.php | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/config.sample.php b/src/config.sample.php index 3181956..7478be6 100644 --- a/src/config.sample.php +++ b/src/config.sample.php @@ -29,6 +29,9 @@ define("EMOTE_VISIBILITY_DEFAULT", 2); // Default visibility for emotes. 0 - unl define("EMOTE_MAX_SIZE", [128, 128]); // Max size of emote. define("EMOTE_NAME_REGEX", "/^[A-Za-z0-9_]+$/"); // RegEx filter for emote names. +// EMOTESETS +define("EMOTESET_PUBLIC_LIST", true); // Show emotesets public. + // MODERATION define("MOD_SYSTEM_DASHBOARD", true); // Enable system dashboard for moderators (/system). define("MOD_EMOTES_APPROVE", true); // Enable manual emote approval (/system/emotes). @@ -45,6 +48,7 @@ define("ACCOUNT_PASSWORD_MIN_LENGTH", 10); // Minimal length for passwords. define("ACCOUNT_SECRET_KEY_LENGTH", 32); // The length for secret keys. define("ACCOUNT_PFP_MAX_SIZE", [128, 128]); // Max dimensions for account pictures. define("ACCOUNT_BANNER_MAX_SIZE", [1920, 1080]); // Max dimensions for account banners. +define("ACCOUNT_PUBLIC_LIST", true); // The public list of accounts. // TWITCH define("TWITCH_REGISTRATION_ENABLE", false); // Enable account registration via Twitch. 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>'; } ?> |
