more shit
This commit is contained in:
parent
f45878173f
commit
cce3982854
|
|
@ -10,6 +10,9 @@ namespace Platinus;
|
||||||
|
|
||||||
class API {
|
class API {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
if(isset($_SERVER["REQUEST_URI"]) && strpos($_SERVER["REQUEST_URI"],".php")){
|
||||||
|
API::InvokeError(403, "Unauthorized");
|
||||||
|
}
|
||||||
if(http_response_code() == 404){
|
if(http_response_code() == 404){
|
||||||
API::InvokeError(403, "Unauthorized");
|
API::InvokeError(403, "Unauthorized");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L]
|
RewriteRule ^Setting/QuietGet/ClientAppSettings/?$ /cappsettings.php [NC,L]
|
||||||
|
RewriteRule ^Setting/QuietGet/ClientSharedSettings/?$ ../cshared.php [NC,L]
|
||||||
ErrorDocument 404 /index.php
|
ErrorDocument 404 /index.php
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
Platinus CDN Api
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
require $_SERVER["DOCUMENT_ROOT"] . "/../../../WebAssemblies/loader.php";
|
||||||
|
|
||||||
|
$page = new Platinus\API();
|
||||||
|
|
||||||
|
header("Content-Type: application/json");
|
||||||
|
|
||||||
|
?>
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue