egg
This commit is contained in:
XlXi 2021-01-03 22:07:17 -05:00
parent 9d18a6e69a
commit a58ea30f8c
18 changed files with 1459 additions and 1 deletions

View File

@ -24,6 +24,12 @@ class API {
exit(API::PrettyJSONEncode(["error"=>"$message", "incidentID"=>$incident])); exit(API::PrettyJSONEncode(["error"=>"$message", "incidentID"=>$incident]));
} }
function RespondJSON($array)
{
header("Content-Type: application/json");
exit(API::PrettyJSONEncode($array));
}
function PrettyJSONEncode($array){ function PrettyJSONEncode($array){
return json_encode($array, JSON_PRETTY_PRINT); return json_encode($array, JSON_PRETTY_PRINT);
} }

View File

@ -0,0 +1,3 @@
RewriteEngine on
RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L]
ErrorDocument 404 /index.php

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Client Settings Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

View File

@ -0,0 +1 @@
ErrorDocument 404 /index.php

View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Ephemeral Counters Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

View File

@ -0,0 +1,4 @@
RewriteEngine on
RewriteRule ^GetAllowedMD5Hashes/?$ /allowedmd5hash.php [NC,L]
RewriteRule ^GetAllowedSecurityVersions/?$ /allowedsecver.php [NC,L]
ErrorDocument 404 /index.php

View File

@ -0,0 +1,18 @@
<?php
/*
Allowed MD5 hash list
*/
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"=>["9509c1c066d97a320a0d778c6781105a"]));
}else{
$page->InvokeError(403, "Unauthorized");
}
//EOF

View File

@ -0,0 +1,19 @@
<?php
/*
Allowed MD5 hash list
*/
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"=>["0.235.0pcplayer"]));
}else{
$page->InvokeError(403, "Unauthorized");
}
//EOF

View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Version Compatibility Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

1
public/api/www/.htaccess Normal file
View File

@ -0,0 +1 @@
ErrorDocument 404 /index.php

15
public/api/www/index.php Normal file
View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

View File

@ -11,4 +11,5 @@ require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API(); $page = new Platinus\API();
$page->InvokeError(403, "Unauthorized"); $page->InvokeError(403, "Unauthorized");
?>
//EOF

1
public/data/.htaccess Normal file
View File

@ -0,0 +1 @@
ErrorDocument 404 /index.php

15
public/data/index.php Normal file
View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Data Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

View File

@ -0,0 +1 @@
ErrorDocument 404 /index.php

View File

@ -0,0 +1,15 @@
<?php
/*
Platinus Game Persistence Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../WebAssemblies/loader.php";
$page = new Platinus\API();
$page->InvokeError(403, "Unauthorized");
//EOF

1
public/setup/version.txt Normal file
View File

@ -0,0 +1 @@
version-test