Auto-Commit: 2026-07-05 12:51:17
This commit is contained in:
1 parent
c322107dd1
commit
903f4cd1e9
1 file changed
+5
@@ -6,6 +6,11 @@ $dataDir = __DIR__ . '/data/';
|
||||
$dataFile = $dataDir . 'feedback.json';
|
||||
|
||||
function getAdminPassword() {
|
||||
$envVar = getenv('ADMIN_PASSWORD');
|
||||
if ($envVar !== false && $envVar !== '') {
|
||||
return $envVar;
|
||||
}
|
||||
|
||||
$envFile = __DIR__ . '/.env';
|
||||
if (file_exists($envFile)) {
|
||||
$lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||
|
||||
Reference in new issue
Block a user