Make 1.5.0/1.5.1 decrypting data work

This commit is contained in:
Lncvrt committed 2025-12-31 19:25:44 -07:00
1 parent f511da6f21
commit 1cee054cd7
2 files changed
+2 -5

No files matched your search

@@ -1,11 +1,8 @@
<?php
if (getClientVersion() == "1.5.2") {
if (getClientVersion() == "1.5.0" || getClientVersion() == "1.5.1" || getClientVersion() == "1.5.2") {
$post = getPostData();
$token = $post['gameSession'] ?? '';
$username = $post['userName'] ?? '';
} else if (getClientVersion() == "1.5.0" || getClientVersion() == "1.5.1") {
$token = decrypt($_POST['gameSession'] ?? '');
$username = decrypt($_POST['userName'] ?? '');
} else {
$token = $_POST['gameSession'] ?? '';
$username = $_POST['userName'] ?? '';