Create PlaceLauncher.php
This commit is contained in:
parent
2b8317fb86
commit
4b1ea0e254
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
$allstatus = [
|
||||||
|
1 => "Wait",
|
||||||
|
2 => "Working",
|
||||||
|
3 => "Disabled",
|
||||||
|
4 => "Failed to start",
|
||||||
|
5 => "Game ended",
|
||||||
|
6 => "Full"
|
||||||
|
];
|
||||||
|
$status = 2;
|
||||||
|
$ip = "127.0.0.1";
|
||||||
|
$port = 53640;
|
||||||
|
$job = 69;
|
||||||
|
$response = [
|
||||||
|
"jobId" => $job,
|
||||||
|
"status" => $status,
|
||||||
|
"joinScriptUrl" => $site["url"]."/game/join?ip=$ip&port=$port&gameid=1818&jobid=$job",
|
||||||
|
"authenticationUrl" => $site["url"]."/Login/Negotiate.ashx",
|
||||||
|
"authenticationTicket" => "1",
|
||||||
|
"message" => $allstatus[$status]
|
||||||
|
];
|
||||||
|
echo json_encode($response);
|
||||||
Loading…
Reference in New Issue