summaryrefslogtreecommitdiff
path: root/lib/config.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-10-26 04:09:50 +0500
committerilotterytea <iltsu@alright.party>2025-10-26 04:09:50 +0500
commit6a848158b079af271363392c36921c6e623046a3 (patch)
treed5e6345d7d5c929583c7a522a9635b174671c373 /lib/config.php
parentafcc61d3e035e9343a16abf58eb8bcfc5b563925 (diff)
feat: design (it doesn't look the same as tinyemotes)
Diffstat (limited to 'lib/config.php')
-rw-r--r--lib/config.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/config.php b/lib/config.php
index 8705999..73c2efb 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -8,6 +8,8 @@ define('DB_URL', "{$c['database']['driver']}:dbname={$c['database']['name']};hos
define('DB_USER', $c['database']['user'] ?? null);
define('DB_PASS', $c['database']['pass'] ?? null);
+define('INSTANCE_NAME', $c['instance']['name'] ?? $_SERVER['HTTP_HOST']);
+
define('SOUND_DIRECTORY', $c['sound']['directory'] ?? "{$_SERVER['DOCUMENT_ROOT']}/static/userdata/sounds");
define('IS_JSON_REQUEST', isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'application/json')); \ No newline at end of file