more shit

This commit is contained in:
XlXi 2021-01-05 23:01:05 -05:00
parent f45878173f
commit cce3982854
3 changed files with 22 additions and 0 deletions

View File

@ -10,6 +10,9 @@ namespace Platinus;
class API {
function __construct() {
if(isset($_SERVER["REQUEST_URI"]) && strpos($_SERVER["REQUEST_URI"],".php")){
API::InvokeError(403, "Unauthorized");
}
if(http_response_code() == 404){
API::InvokeError(403, "Unauthorized");
}

View File

@ -1,3 +1,4 @@
RewriteEngine on
RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L]
RewriteRule ^Setting/QuietGet/ClientSharedSettings/?$ ../cshared.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");
?>
{
}