Compare commits
7 Commits
0092cc17ef
...
cc5d4a027f
| Author | SHA1 | Date | |
|---|---|---|---|
| cc5d4a027f | |||
| b3dfbf4406 | |||
| 939e0518df | |||
| 61043cd61c | |||
| 4f7db2ec83 | |||
| 795e41561c | |||
| 411fa79d7e |
+6
-3
@@ -25,10 +25,11 @@ if (!headers_sent()) {
|
|||||||
}
|
}
|
||||||
@ini_set('expose_php', 'off');
|
@ini_set('expose_php', 'off');
|
||||||
|
|
||||||
// 1. Optionele .env inlezing uit de hoofdmap (uitsluitend .env, GEEN .env.example fallback)
|
// 1. .env inlezing (controleert zowel config/.env als hoofdmap .env)
|
||||||
$envVars = [];
|
$envVars = [];
|
||||||
$envFile = __DIR__ . '/../.env';
|
$envLocations = [__DIR__ . '/.env', __DIR__ . '/../.env'];
|
||||||
if (file_exists($envFile)) {
|
foreach ($envLocations as $envFile) {
|
||||||
|
if (file_exists($envFile)) {
|
||||||
$lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
$lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||||
if ($lines !== false) {
|
if ($lines !== false) {
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
@@ -47,6 +48,8 @@ if (file_exists($envFile)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break; // Eerste gevonden .env bestand is leidend
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user