Fix HTTP 500 on live after login, unify database config in config.php, sanitize env example, and harden pentest security

This commit is contained in:
2026-09-09 17:52:11 +02:00
parent 919dbe4aed
commit 5bdaa5fa6e
14 changed files with 403 additions and 220 deletions
+5
View File
@@ -3,6 +3,11 @@
* Authenticatie & Autorisatie Guard voor Fociz
*/
if (basename($_SERVER['SCRIPT_FILENAME'] ?? '') === 'auth.php') {
http_response_code(403);
exit('Toegang geweigerd.');
}
require_once __DIR__ . '/../config/database.php';
require_once __DIR__ . '/totp.php';
+3
View File
@@ -0,0 +1,3 @@
<?php
http_response_code(403);
exit('Toegang geweigerd.');