Make it so the version has to be whitelisted to work
This commit is contained in:
@@ -3,4 +3,4 @@ $latestVersion = "1.6.3";
|
|||||||
$latestBetaVersion = $latestVersion;
|
$latestBetaVersion = $latestVersion;
|
||||||
$latestLauncherVersion = "1.0.0";
|
$latestLauncherVersion = "1.0.0";
|
||||||
$allowedVersions = [$latestVersion, $latestBetaVersion, "1.6.2", "1.6.1", "1.6"];
|
$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"];
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
require __DIR__ . '/../incl/util.php';
|
require __DIR__ . '/../incl/util.php';
|
||||||
|
require __DIR__ . '/../incl/general.php';
|
||||||
setPlainHeader();
|
setPlainHeader();
|
||||||
if (getClientVersion() == "1.2-beta2") {
|
if (isAllowedDatabaseVersion(getClientVersion())) {
|
||||||
require __DIR__ . '/backported/1.2-beta2/loginAccount.php';
|
if (getClientVersion() == "1.2-beta2") {
|
||||||
exit;
|
require __DIR__ . '/backported/1.2-beta2/loginAccount.php';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
checkClientDatabaseVersion();
|
checkClientDatabaseVersion();
|
||||||
$conn = newConnection();
|
$conn = newConnection();
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
require __DIR__ . '/../incl/util.php';
|
require __DIR__ . '/../incl/util.php';
|
||||||
setPlainHeader();
|
setPlainHeader();
|
||||||
if (getClientVersion() == "1.2-beta2") {
|
if (isAllowedDatabaseVersion(getClientVersion())) {
|
||||||
require __DIR__ . '/backported/1.2-beta2/registerAccount.php';
|
if (getClientVersion() == "1.2-beta2") {
|
||||||
exit;
|
require __DIR__ . '/backported/1.2-beta2/registerAccount.php';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
checkClientDatabaseVersion();
|
checkClientDatabaseVersion();
|
||||||
$conn = newConnection();
|
$conn = newConnection();
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
require __DIR__ . '/../incl/util.php';
|
require __DIR__ . '/../incl/util.php';
|
||||||
setPlainHeader();
|
setPlainHeader();
|
||||||
if (getClientVersion() == "1.2-beta2") {
|
if (isAllowedDatabaseVersion(getClientVersion())) {
|
||||||
require __DIR__ . '/backported/1.2-beta2/syncAccount.php';
|
if (getClientVersion() == "1.2-beta2") {
|
||||||
exit;
|
require __DIR__ . '/backported/1.2-beta2/syncAccount.php';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
checkClientDatabaseVersion();
|
checkClientDatabaseVersion();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user