summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-03 01:39:13 +0500
committerilotterytea <iltsu@alright.party>2025-05-03 01:39:13 +0500
commit64f0533dc1779e7cca5f2678f7ae560df8d922bb (patch)
treebe319637f1a6ae6839b3685d6348a528025a7248 /public/index.php
parent0c25e3dd54225b126ad8e48e10f4fbde8ce26ec5 (diff)
feat: config sample and more config options
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/index.php b/public/index.php
index 8f1d7dd..1b1c33b 100644
--- a/public/index.php
+++ b/public/index.php
@@ -7,20 +7,20 @@ authorize_user();
<html>
<head>
- <title>alright.party</title>
+ <title><?php echo INSTANCE_NAME ?></title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<div class="wrapper center big-gap">
- <h1><img src="/static/img/brand/big.webp" alt="<?php echo $_SERVER['HTTP_HOST']; ?>"></h1>
+ <h1><img src="/static/img/brand/big.webp" alt="<?php echo INSTANCE_NAME; ?>"></h1>
<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 (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"])) {
+ <?php if (EMOTE_UPLOAD && (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"]))) {
echo '<a href="/emotes/upload.php">Upload</a>';
} ?>
<a href="/account">Account</a>