summaryrefslogtreecommitdiff
path: root/inbox.php
diff options
context:
space:
mode:
Diffstat (limited to 'inbox.php')
-rw-r--r--inbox.php4
1 files changed, 2 insertions, 2 deletions
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"]]);
<html>
<head>
- <title>Inbox - <?php echo INSTANCE_NAME ?></title>
+ <title>Inbox - <?php echo CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>