From bfc21d8fb6b378119bf006b36c7d21e30330e87d Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Sun, 19 Apr 2026 12:32:08 +0200 Subject: [PATCH] modified connection settings in init.php --- api/init.php | 2 +- public/index.php | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/api/init.php b/api/init.php index 28f8775..a1ba406 100644 --- a/api/init.php +++ b/api/init.php @@ -17,7 +17,7 @@ if (file_exists($envFile)) { // Defines Environment Variables $host = getenv('POSTGRES_HOSTNAME'); -$port = 5432; +$port = getenv('POSTGRES_PORT'); $db = getenv('POSTGRES_DB'); $user = getenv('POSTGRES_USER'); $pass = getenv('POSTGRES_PASSWORD'); diff --git a/public/index.php b/public/index.php index 30d32fd..597d1dc 100644 --- a/public/index.php +++ b/public/index.php @@ -31,9 +31,11 @@ if (!$municipality) { Bürgerbeteiligungsportal <?= htmlspecialchars($municipality['name']) ?> - + + + - + @@ -64,16 +66,12 @@ if (!$municipality) { - +