From 53feb0c2c1ec8a30269fcc535dc10e9bd80d27ea Mon Sep 17 00:00:00 2001 From: XlXi Date: Sun, 10 Jan 2021 19:23:18 -0500 Subject: [PATCH] assets asdf --- .../versioncompatibility/allowedmd5hash.php | 2 +- public/api/www/.htaccess | 2 +- public/assetgame/.htaccess | 5 +-- public/assetgame/asset.php | 33 +++++++++++++++++++ public/assetgame/joingame.php | 2 +- public/www/.htaccess | 3 ++ public/www/asset.php | 11 +++++++ 7 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 public/assetgame/asset.php create mode 100644 public/www/.htaccess create mode 100644 public/www/asset.php diff --git a/public/api/versioncompatibility/allowedmd5hash.php b/public/api/versioncompatibility/allowedmd5hash.php index b0128c0..f6d4bc9 100644 --- a/public/api/versioncompatibility/allowedmd5hash.php +++ b/public/api/versioncompatibility/allowedmd5hash.php @@ -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"); } diff --git a/public/api/www/.htaccess b/public/api/www/.htaccess index 2fad91e..f77218d 100644 --- a/public/api/www/.htaccess +++ b/public/api/www/.htaccess @@ -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 \ No newline at end of file diff --git a/public/assetgame/.htaccess b/public/assetgame/.htaccess index a34268a..fe0327a 100644 --- a/public/assetgame/.htaccess +++ b/public/assetgame/.htaccess @@ -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 \ No newline at end of file diff --git a/public/assetgame/asset.php b/public/assetgame/asset.php new file mode 100644 index 0000000..b02ded3 --- /dev/null +++ b/public/assetgame/asset.php @@ -0,0 +1,33 @@ +InvokeError(403, "Unauthorized"); +} + +//EOF \ No newline at end of file diff --git a/public/assetgame/joingame.php b/public/assetgame/joingame.php index 8cceec3..98d2275 100644 --- a/public/assetgame/joingame.php +++ b/public/assetgame/joingame.php @@ -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, diff --git a/public/www/.htaccess b/public/www/.htaccess new file mode 100644 index 0000000..9cde5a6 --- /dev/null +++ b/public/www/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine on +RewriteRule ^Asset/?$ /asset.php [NC,L] +ErrorDocument 404 /index.php \ No newline at end of file diff --git a/public/www/asset.php b/public/www/asset.php new file mode 100644 index 0000000..f9fe788 --- /dev/null +++ b/public/www/asset.php @@ -0,0 +1,11 @@ +