Make it so the version has to be whitelisted to work

This commit is contained in:
Lncvrt committed 2025-08-28 12:03:20 -07:00
1 parent bb3b4a1923
commit c49028ba94
4 files changed
+17 -10

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@ $latestVersion = "1.6.3";
$latestBetaVersion = $latestVersion;
$latestLauncherVersion = "1.0.0";
$allowedVersions = [$latestVersion, $latestBetaVersion, "1.6.2", "1.6.1", "1.6"];
$allowedDatabaseVersions = [$latestVersion, $latestBetaVersion, "1.6.2", "1.6.1", "1.6"];
$allowedDatabaseVersions = [$latestVersion, $latestBetaVersion, "1.6.2", "1.6.1", "1.6", "1.2-beta2"];
+6 -3
View File
@@ -1,9 +1,12 @@
<?php
require __DIR__ . '/../incl/util.php';
require __DIR__ . '/../incl/general.php';
setPlainHeader();
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/loginAccount.php';
exit;
if (isAllowedDatabaseVersion(getClientVersion())) {
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/loginAccount.php';
exit;
}
}
checkClientDatabaseVersion();
$conn = newConnection();
+5 -3
View File
@@ -1,9 +1,11 @@
<?php
require __DIR__ . '/../incl/util.php';
setPlainHeader();
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/registerAccount.php';
exit;
if (isAllowedDatabaseVersion(getClientVersion())) {
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/registerAccount.php';
exit;
}
}
checkClientDatabaseVersion();
$conn = newConnection();
+5 -3
View File
@@ -1,9 +1,11 @@
<?php
require __DIR__ . '/../incl/util.php';
setPlainHeader();
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/syncAccount.php';
exit;
if (isAllowedDatabaseVersion(getClientVersion())) {
if (getClientVersion() == "1.2-beta2") {
require __DIR__ . '/backported/1.2-beta2/syncAccount.php';
exit;
}
}
checkClientDatabaseVersion();