Update Join.php
This commit is contained in:
parent
9d02c0583a
commit
67d0f723b8
|
|
@ -52,18 +52,19 @@ if ($anothermomentoftruth == 1 && $anotheranothermomentoftruth == 1) {
|
||||||
$ok = $getusername->fetch(PDO::FETCH_BOTH);
|
$ok = $getusername->fetch(PDO::FETCH_BOTH);
|
||||||
$username = $ok['username'];
|
$username = $ok['username'];
|
||||||
$china = $getstuff->fetch(PDO::FETCH_BOTH);
|
$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->bindParam(':jobid', $jobid);
|
||||||
$jobstuff->execute();
|
$jobstuff->execute();
|
||||||
$actualthing = $jobstuff->fetch(PDO::FETCH_BOTH);
|
$actualthing = $jobstuff->fetch(PDO::FETCH_BOTH);
|
||||||
$jobid = $actualthing['jobid'];
|
$jobid = $actualthing['jobid'];
|
||||||
$placeid = $actualthing['placeid'];
|
$placeid = $actualthing['placeid'];
|
||||||
$port = $actualthing['port'];
|
$port = $actualthing['port'];
|
||||||
|
$ip = $actualthing['ip'];
|
||||||
// still need to add charapp and membership
|
// still need to add charapp and membership
|
||||||
$authticket = authticket($id, $username, "", $jobid, $gameSettings["privatekey"]);
|
$authticket = authticket($id, $username, "", $jobid, $gameSettings["privatekey"]);
|
||||||
$joinscript = [
|
$joinscript = [
|
||||||
"ClientPort" => 0,
|
"ClientPort" => 0,
|
||||||
"MachineAddress" => $AvailableGameservers["1"],
|
"MachineAddress" => $ip,
|
||||||
"ServerPort" => $port,
|
"ServerPort" => $port,
|
||||||
"PingUrl" => "",
|
"PingUrl" => "",
|
||||||
"PingInterval" => 20,
|
"PingInterval" => 20,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue