parent
a521113085
commit
53feb0c2c1
|
|
@ -11,7 +11,7 @@ require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
|
||||||
$page = new Platinus\API();
|
$page = new Platinus\API();
|
||||||
|
|
||||||
if(isset($_GET["apiKey"]) && $_GET["apiKey"]=="2b4ba7fc-5843-44cf-b107-ba22d3319dcd"){
|
if(isset($_GET["apiKey"]) && $_GET["apiKey"]=="2b4ba7fc-5843-44cf-b107-ba22d3319dcd"){
|
||||||
$page->RespondJSON(array("data"=>["d4ade5b9e36fd63c3b27a2a747cc8d51", "e905f3e5c564421557ab77d93576f135"]));
|
$page->RespondJSON(array("data"=>["61638c49f710802c55b1f24ebd28ea3c"]));
|
||||||
}else{
|
}else{
|
||||||
$page->InvokeError(403, "Unauthorized");
|
$page->InvokeError(403, "Unauthorized");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^Login/Negotiate.ashx?$ /negotiatecookie.php [NC,L]
|
RewriteRule ^Login/Negotiate.ashx$ /negotiatecookie.php [NC,L]
|
||||||
ErrorDocument 404 /index.php
|
ErrorDocument 404 /index.php
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^Game/PlaceLauncher.ashx?$ /requestplacelauncher.php [NC,L]
|
RewriteRule ^Game/PlaceLauncher.ashx$ /requestplacelauncher.php [NC,L]
|
||||||
RewriteRule ^Game/Join.ashx?$ /joingame.php [NC,L]
|
RewriteRule ^Game/Join.ashx$ /joingame.php [NC,L]
|
||||||
|
RewriteRule ^Asset/?$ /asset.php [NC,L]
|
||||||
ErrorDocument 404 /index.php
|
ErrorDocument 404 /index.php
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
Platinus Asset
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
require $_SERVER["DOCUMENT_ROOT"] . "/../../WebAssemblies/loader.php";
|
||||||
|
|
||||||
|
$page = new Platinus\API();
|
||||||
|
|
||||||
|
function isGetSet($needle)
|
||||||
|
{
|
||||||
|
return isset($_GET[$needle]) && $_GET[$needle] == (int)$_GET[$needle];
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isGetSet("id"))
|
||||||
|
{
|
||||||
|
$url = "https://assetdelivery.roblox.com/v1/asset/?id=" . $_GET["id"];
|
||||||
|
if(isGetSet("version"))
|
||||||
|
{
|
||||||
|
$url = $url . "&version=" . $_GET["version"];
|
||||||
|
}
|
||||||
|
header("location: $url");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$page->InvokeError(403, "Unauthorized");
|
||||||
|
}
|
||||||
|
|
||||||
|
//EOF
|
||||||
|
|
@ -28,7 +28,7 @@ ob_start();
|
||||||
|
|
||||||
$page->RespondJSON(array(
|
$page->RespondJSON(array(
|
||||||
"ClientPort"=>0,
|
"ClientPort"=>0,
|
||||||
"MachineAddress"=>"192.168.0.22",
|
"MachineAddress"=>"192.168.0.3",
|
||||||
"ServerPort"=>53640,
|
"ServerPort"=>53640,
|
||||||
"PingUrl"=>"",
|
"PingUrl"=>"",
|
||||||
"PingInterval"=>120,
|
"PingInterval"=>120,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule ^Asset/?$ /asset.php [NC,L]
|
||||||
|
ErrorDocument 404 /index.php
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
Platinus Assets
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
require($_SERVER["DOCUMENT_ROOT"] . "/../assetgame/asset.php");
|
||||||
|
|
||||||
|
//EOF
|
||||||
Loading…
Reference in New Issue