From 57472eab3c7b035392c6a5aa240593ecaa7d1ccf Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 8 Dec 2025 21:53:36 +0500 Subject: upd: moved all /public/ files to the root folder --- inbox.php | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 inbox.php (limited to 'inbox.php') diff --git a/inbox.php b/inbox.php new file mode 100644 index 0000000..f7742d1 --- /dev/null +++ b/inbox.php @@ -0,0 +1,77 @@ +prepare("SELECT * FROM inbox_messages WHERE recipient_id = ? ORDER BY sent_at DESC"); +$stmt->execute([$_SESSION["user_id"]]); + +$messages = $stmt->fetchAll(PDO::FETCH_ASSOC); + +$stmt = $db->prepare("UPDATE inbox_messages SET has_read = true WHERE recipient_id = ?"); +$stmt->execute([$_SESSION["user_id"]]); + +?> + + + + + Inbox - <?php echo INSTANCE_NAME ?> + + + + + +
+
+ +
+
+ +
+ + + + + + + '; + + echo ''; + echo ''; + + echo ''; + + echo ''; + } + ?> +
Contents
' . $message["contents"]; + echo ' (' . format_timestamp(time() - strtotime($message["sent_at"])) . ' ago)'; + echo ''; + if ($message["link"]) { + echo '[ View ]'; + } + echo '
+
+
+
+
+
+ + + \ No newline at end of file -- cgit v1.2.3