Make 1.4.x loadable

This commit is contained in:
2025-10-05 07:44:41 -07:00
parent d72877d896
commit 144eba85c2
2 changed files with 3 additions and 3 deletions

View File

@@ -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)) {