asdf
This commit is contained in:
XlXi 2021-01-10 19:23:18 -05:00
parent a521113085
commit 53feb0c2c1
7 changed files with 53 additions and 5 deletions

View File

@ -11,7 +11,7 @@ require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
if(isset($_GET["apiKey"]) && $_GET["apiKey"]=="2b4ba7fc-5843-44cf-b107-ba22d3319dcd"){
$page->RespondJSON(array("data"=>["d4ade5b9e36fd63c3b27a2a747cc8d51", "e905f3e5c564421557ab77d93576f135"]));
$page->RespondJSON(array("data"=>["61638c49f710802c55b1f24ebd28ea3c"]));
}else{
$page->InvokeError(403, "Unauthorized");
}

View File

@ -1,3 +1,3 @@
RewriteEngine on
RewriteRule ^Login/Negotiate.ashx?$ /negotiatecookie.php [NC,L]
RewriteRule ^Login/Negotiate.ashx$ /negotiatecookie.php [NC,L]
ErrorDocument 404 /index.php

View File

@ -1,4 +1,5 @@
RewriteEngine on
RewriteRule ^Game/PlaceLauncher.ashx?$ /requestplacelauncher.php [NC,L]
RewriteRule ^Game/Join.ashx?$ /joingame.php [NC,L]
RewriteRule ^Game/PlaceLauncher.ashx$ /requestplacelauncher.php [NC,L]
RewriteRule ^Game/Join.ashx$ /joingame.php [NC,L]
RewriteRule ^Asset/?$ /asset.php [NC,L]
ErrorDocument 404 /index.php

View File

@ -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

View File

@ -28,7 +28,7 @@ ob_start();
$page->RespondJSON(array(
"ClientPort"=>0,
"MachineAddress"=>"192.168.0.22",
"MachineAddress"=>"192.168.0.3",
"ServerPort"=>53640,
"PingUrl"=>"",
"PingInterval"=>120,

3
public/www/.htaccess Normal file
View File

@ -0,0 +1,3 @@
RewriteEngine on
RewriteRule ^Asset/?$ /asset.php [NC,L]
ErrorDocument 404 /index.php

11
public/www/asset.php Normal file
View File

@ -0,0 +1,11 @@
<?php
/*
Platinus Assets
*/
require($_SERVER["DOCUMENT_ROOT"] . "/../assetgame/asset.php");
//EOF