From 29477e67ede12347b153e2255325327374e1b073 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 9 Dec 2025 01:43:12 +0500 Subject: feat: new configuration --- inbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inbox.php') diff --git a/inbox.php b/inbox.php index b7d2213..5cac695 100644 --- a/inbox.php +++ b/inbox.php @@ -8,7 +8,7 @@ if (!authorize_user(true)) { exit; } -$db = new PDO(DB_URL, DB_USER, DB_PASS); +$db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']); $stmt = $db->prepare("SELECT * FROM inbox_messages WHERE recipient_id = ? ORDER BY sent_at DESC"); $stmt->execute([$_SESSION["user_id"]]); @@ -23,7 +23,7 @@ $stmt->execute([$_SESSION["user_id"]]); - Inbox - <?php echo INSTANCE_NAME ?> + Inbox - <?php echo CONFIG['instance']['name'] ?> -- cgit v1.2.3