From fdf5e7b23b8a9f22ded20b8196e5d74fdfe50e33 Mon Sep 17 00:00:00 2001 From: Mario <100047175+Mariopizza1@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:54:25 +0200 Subject: [PATCH] OHHHH SHITTTT --- game/PlaceLauncher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/PlaceLauncher.php b/game/PlaceLauncher.php index 9f45626..09f8fe6 100644 --- a/game/PlaceLauncher.php +++ b/game/PlaceLauncher.php @@ -59,7 +59,7 @@ if ($momentoftruth == 1) { ]; echo json_encode($response); } else if ($okcheck == 0) { - $hahatroll = $con->prepare('UPDATE tokens SET passedplacelauncher = 0 WHERE token=:token'); + $hahatroll = $con->prepare('UPDATE tokens SET passedplacelauncher = 1 WHERE token=:token'); $hahatroll->bindParam(':token', $token); $hahatroll->execute(); function generateRandomJobId() { @@ -79,7 +79,7 @@ if ($momentoftruth == 1) { $jobid = generateRandomJobId(); $port = rand(5000,5999); $checkport = $con->prepare('SELECT COUNT(*) FROM tokens WHERE token=:token AND passedplacelauncher=:passed'); - $chechport->bindParam(':token', $token); + $checkport->bindParam(':token', $token); $checkport->bindParam(':passed', $okbruh); $checkport->execute(); $okbrahh = $checkport->fetchColumn();