summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-10-26 04:10:21 +0500
committerilotterytea <iltsu@alright.party>2025-10-26 04:10:21 +0500
commit70da8f231232dbc3bccdb4976d65ba49050a8634 (patch)
tree4c64a2625ae2029c6c04176bb44014575a7db899 /lib
parent6a848158b079af271363392c36921c6e623046a3 (diff)
feat: display uploaded sounds
Diffstat (limited to 'lib')
-rw-r--r--lib/config.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/config.php b/lib/config.php
index 73c2efb..bdc399b 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -11,5 +11,6 @@ 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('SOUND_DIRECTORY_PREFIX', $c['sound']['directory_prefix'] ?? "/static/userdata/sounds");
define('IS_JSON_REQUEST', isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'application/json')); \ No newline at end of file