Added municipality slug as environment variable #9

Merged
lukas.uptmoor merged 4 commits from dev/lukas into main 2026-04-23 10:14:00 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit c52dbf618e - Show all commits

View File

@@ -43,7 +43,7 @@ if ($page === 'logout') {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
$pdo = get_db(); $pdo = get_db();
$stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug");
$stmt->execute([':slug' => 'lohne']); $stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var
$municipality = $stmt->fetch(); $municipality = $stmt->fetch();
// Shows Login Page if not authenticated // Shows Login Page if not authenticated

View File

@@ -14,7 +14,7 @@ require_once __DIR__ . '/api/db.php';
// ----------------------------------------------------------------- // -----------------------------------------------------------------
$pdo = get_db(); $pdo = get_db();
$stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug");
$stmt->execute([':slug' => 'lohne']); $stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var
$municipality = $stmt->fetch(); $municipality = $stmt->fetch();
if (!$municipality) { if (!$municipality) {