From 3d04a88dfeffb4c37bd2df03cef10f0bd5987557 Mon Sep 17 00:00:00 2001 From: HotPizzaYT <57576298+HotPizzaYT@users.noreply.github.com> Date: Wed, 27 Apr 2022 07:55:12 -0500 Subject: [PATCH] More changes for byethost --- 3ds/chat/index.php | 2 +- 3ds/chat/{innerchat.php => innerch.php} | 0 3ds/forums/index.php | 3 ++- 3ds/forums/pa.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) rename 3ds/chat/{innerchat.php => innerch.php} (100%) diff --git a/3ds/chat/index.php b/3ds/chat/index.php index 7761a10..4495d4a 100644 --- a/3ds/chat/index.php +++ b/3ds/chat/index.php @@ -55,7 +55,7 @@ if(isset($_GET["room"])){ document.getElementById("chatscreen").innerHTML = (xhr.responseText); } }; - xhr.open('GET', 'innerchat.php?room=', true); + xhr.open('GET', 'innerch.php?room=', true); xhr.send(null); } function chatload(){ diff --git a/3ds/chat/innerchat.php b/3ds/chat/innerch.php similarity index 100% rename from 3ds/chat/innerchat.php rename to 3ds/chat/innerch.php diff --git a/3ds/forums/index.php b/3ds/forums/index.php index debe560..44fe7e2 100644 --- a/3ds/forums/index.php +++ b/3ds/forums/index.php @@ -62,7 +62,8 @@ session_start(); $jsonD = json_decode($jsonF, true); $name = "".$jsonD["name"].""; $desc = $jsonD["description"]; - $latestPost = "Latest post by: ".$jsonD["posts"][0]["from"].", \"".htmlspecialchars($jsonD["posts"][0]["title"])."\""; + $latest = count($jsonD["posts"]) - 1; + $latestPost = "Latest post by: ".$jsonD["posts"][$latest]["from"].", \"".htmlspecialchars($jsonD["posts"][$latest]["title"])."\""; echo "