htaccess + permissions

This commit is contained in:
Roman Hergenreder 2020-06-18 15:39:10 +02:00
parent b7d3e569d3
commit 98296b888e
3 changed files with 4 additions and 1 deletions

1
.idea/.htaccess Normal file

@ -0,0 +1 @@
DENY FROM ALL;

@ -10,7 +10,8 @@ include_once 'core/datetime.php';
include_once 'core/constants.php'; include_once 'core/constants.php';
if (!is_readable(getClassPath(Configuration::class))) { if (!is_readable(getClassPath(Configuration::class))) {
die("Configuration directory is not readable, please check permissions before proceeding"); header("Content-Type", "application/json");
die(json_encode(array( "success" => false, "msg" => "Configuration directory is not readable, check permissions before proceeding." )));
} }
spl_autoload_extensions(".php"); spl_autoload_extensions(".php");

1
src/src/.htaccess Normal file

@ -0,0 +1 @@
DENY FROM ALL;