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