This commit is contained in:
XlXi 2021-01-10 04:03:18 -05:00
parent f8bcb95460
commit 1749dba61d
5 changed files with 23 additions and 3 deletions

View File

@ -1,4 +1,5 @@
RewriteEngine on
RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L]
RewriteRule ^Setting/QuietGet/ClientSharedSettings/?$ /cshared.php [NC,L]
RewriteRule ^Setting/QuietGet/PCCServiceXfzJ9PaGxRfapBn7PZ5u/?$ /pccservice.php [NC,L]
ErrorDocument 404 /index.php

View File

@ -0,0 +1,18 @@
<?php
/*
Platinus CDN Api
*/
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
$page = new Platinus\API();
header("Content-Type: application/json");
?>
{
}

View File

@ -9,8 +9,9 @@ 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"=>["b34accf35cbb12309230201c4c3572d3"]));
$page->RespondJSON(array("data"=>["d4ade5b9e36fd63c3b27a2a747cc8d51"]));
}else{
$page->InvokeError(403, "Unauthorized");
}

View File

@ -2,7 +2,7 @@
/*
Allowed MD5 hash list
Allowed security versions
*/

View File

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