From 144eba85c2ce760a3584599cfa9865882aca7897 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 5 Oct 2025 07:44:41 -0700 Subject: [PATCH] Make 1.4.x loadable --- config/general.php | 4 ++-- database/canLoadClient.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/general.php b/config/general.php index 32322c3..78870d8 100644 --- a/config/general.php +++ b/config/general.php @@ -2,5 +2,5 @@ $latestVersion = "1.8.1"; $latestBetaVersion = $latestVersion; $latestLauncherVersion = "1.1.0"; -$allowedVersions = [$latestVersion, $latestBetaVersion, "1.8", "1.7.1", "1.7", "1.6.3", "1.6.2", "1.6.1", "1.6", "1.5.2", "1.5.1", "1.5.0"]; -$allowedDatabaseVersions = [$latestVersion, $latestBetaVersion, "1.8", "1.7.1", "1.7", "1.6.3", "1.6.2", "1.6.1", "1.6", "1.5.2", "1.5.1", "1.5.0", "1.3-beta2", "1.3-beta1", "1.21", "1.2", "1.2-beta2"]; \ No newline at end of file +$allowedVersions = [$latestVersion, $latestBetaVersion, "1.8", "1.7.1", "1.7", "1.6.3", "1.6.2", "1.6.1", "1.6", "1.5.2", "1.5.1", "1.5.0", "1.4.1", "1.4.0"]; +$allowedDatabaseVersions = [$latestVersion, $latestBetaVersion, "1.8", "1.7.1", "1.7", "1.6.3", "1.6.2", "1.6.1", "1.6", "1.5.2", "1.5.1", "1.5.0", "1.4.1", "1.4.0", "1.3-beta2", "1.3-beta1", "1.21", "1.2", "1.2-beta2"]; \ No newline at end of file diff --git a/database/canLoadClient.php b/database/canLoadClient.php index 6c704c5..af5cce1 100644 --- a/database/canLoadClient.php +++ b/database/canLoadClient.php @@ -4,7 +4,7 @@ require __DIR__ . '/../incl/util.php'; setPlainHeader(); $clientVersion = $_SERVER['HTTP_CLIENTVERSION'] ?? "0"; -if (($_SERVER['HTTP_REQUESTER'] ?? "0") != "BerryDashClient") { +if (($_SERVER['HTTP_REQUESTER'] ?? "0") != "BerryDashClient" && ($_SERVER['HTTP_USER_AGENT'] ?? "0") != "BerryDashClient" && ($clientVersion == "1.4.1" || $clientVersion == "1.4.0")) { exitWithMessage("-1", false); } if (isLatestVersion($clientVersion)) {