From 51e63370a4535a6b9aab9f7c7a69f2a7311600d9 Mon Sep 17 00:00:00 2001 From: "Evan G." Date: Thu, 30 May 2024 12:10:00 -0500 Subject: [PATCH] Fix Guestbook RSS Feed --- index.xml | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/index.xml b/index.xml index 9c671f7..3279db1 100644 --- a/index.xml +++ b/index.xml @@ -1,18 +1,26 @@ - - - - - Fbi's Epic Guestbook RSS Feed - https://www.w3schools.com - A cool Guestbook made by fbievan - - - - <?php echo $post["name"];?> - - - - - + + + + Fbi's Epic Guestbook RSS Feed + https://www.w3schools.com + A cool Guestbook made by fbievan"; + $data = json_decode(file_get_contents('test.json'), true); + $id = 0; + foreach($data as $post) { + $id = $id + 1; + $description = htmlspecialchars($post["message"]); + $title = $post["name"]; + $link = "http://testing.fbievan.live/guestbook?link=$id"; + echo " + + $title + $description + $link + "; + }; + echo " + + "; + ?>