diff --git a/WebAssemblies/API.php b/WebAssemblies/API.php index 8734f52..8d026da 100644 --- a/WebAssemblies/API.php +++ b/WebAssemblies/API.php @@ -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"); } diff --git a/public/api/clientsettings/.htaccess b/public/api/clientsettings/.htaccess index d064725..8625f59 100644 --- a/public/api/clientsettings/.htaccess +++ b/public/api/clientsettings/.htaccess @@ -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 \ No newline at end of file diff --git a/public/api/clientsettings/cshared.php b/public/api/clientsettings/cshared.php new file mode 100644 index 0000000..a2981cc --- /dev/null +++ b/public/api/clientsettings/cshared.php @@ -0,0 +1,18 @@ + +{ + +} \ No newline at end of file