parent
9d18a6e69a
commit
a58ea30f8c
|
|
@ -24,6 +24,12 @@ class API {
|
|||
exit(API::PrettyJSONEncode(["error"=>"$message", "incidentID"=>$incident]));
|
||||
}
|
||||
|
||||
function RespondJSON($array)
|
||||
{
|
||||
header("Content-Type: application/json");
|
||||
exit(API::PrettyJSONEncode($array));
|
||||
}
|
||||
|
||||
function PrettyJSONEncode($array){
|
||||
return json_encode($array, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
ErrorDocument 404 /index.php
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
RewriteEngine on
|
||||
RewriteRule ^GetAllowedMD5Hashes/?$ /allowedmd5hash.php [NC,L]
|
||||
RewriteRule ^GetAllowedSecurityVersions/?$ /allowedsecver.php [NC,L]
|
||||
ErrorDocument 404 /index.php
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
ErrorDocument 404 /index.php
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
|
||||
Platinus Api
|
||||
|
||||
*/
|
||||
|
||||
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
|
||||
|
||||
$page = new Platinus\API();
|
||||
|
||||
$page->InvokeError(403, "Unauthorized");
|
||||
|
||||
//EOF
|
||||
|
|
@ -11,4 +11,5 @@ require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
|
|||
$page = new Platinus\API();
|
||||
|
||||
$page->InvokeError(403, "Unauthorized");
|
||||
?>
|
||||
|
||||
//EOF
|
||||
|
|
@ -0,0 +1 @@
|
|||
ErrorDocument 404 /index.php
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
|
||||
Platinus Data Api
|
||||
|
||||
*/
|
||||
|
||||
require $_SERVER["DOCUMENT_ROOT"] . "/../../WebAssemblies/loader.php";
|
||||
|
||||
$page = new Platinus\API();
|
||||
|
||||
$page->InvokeError(403, "Unauthorized");
|
||||
|
||||
//EOF
|
||||
|
|
@ -0,0 +1 @@
|
|||
ErrorDocument 404 /index.php
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
version-test
|
||||
Loading…
Reference in New Issue