Make it so the version has to be whitelisted to work

This commit is contained in:
2025-08-28 12:03:20 -07:00
parent bb3b4a1923
commit c49028ba94
4 changed files with 17 additions and 10 deletions

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();