Update Join.php

This commit is contained in:
Mario 2023-02-13 21:19:19 +02:00 committed by GitHub
parent 9d02c0583a
commit 67d0f723b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -52,18 +52,19 @@ if ($anothermomentoftruth == 1 && $anotheranothermomentoftruth == 1) {
$ok = $getusername->fetch(PDO::FETCH_BOTH);
$username = $ok['username'];
$china = $getstuff->fetch(PDO::FETCH_BOTH);
$jobstuff = $con->prepare('SELECT jobid,placeid,port FROM jobs WHERE jobid=:jobid');
$jobstuff = $con->prepare('SELECT jobid,placeid,port,ip FROM jobs WHERE jobid=:jobid');
$jobstuff->bindParam(':jobid', $jobid);
$jobstuff->execute();
$actualthing = $jobstuff->fetch(PDO::FETCH_BOTH);
$jobid = $actualthing['jobid'];
$placeid = $actualthing['placeid'];
$port = $actualthing['port'];
$ip = $actualthing['ip'];
// still need to add charapp and membership
$authticket = authticket($id, $username, "", $jobid, $gameSettings["privatekey"]);
$joinscript = [
"ClientPort" => 0,
"MachineAddress" => $AvailableGameservers["1"],
"MachineAddress" => $ip,
"ServerPort" => $port,
"PingUrl" => "",
"PingInterval" => 20,