From 1fec7c7710f317d9c18a4cd5e0ec2af47dab1190 Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Wed, 21 Feb 2024 11:35:21 +0100 Subject: [PATCH] session --- config.php | 5 ++++- impressum.php | 2 -- index.php | 10 +++------- start.php | 8 +------- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/config.php b/config.php index c52513f..7f2bef6 100644 --- a/config.php +++ b/config.php @@ -74,7 +74,10 @@ $result= $db->prepare("SELECT count(*) FROM district WHERE district=:district"); $result->bindParam(":district",$strDistrict); $result->execute(); if ($row=$result->fetch(PDO::FETCH_NUM)) { - if ($row[0]==0) $strDistrict=""; //default setzten + if ($row[0]==0) { + $strDistrict=""; //default setzten + $strDistrictTitle="Unbekannt"; + } } // Spezifische Konfiguration für Districtt diff --git a/impressum.php b/impressum.php index 6d67af6..c71a956 100644 --- a/impressum.php +++ b/impressum.php @@ -1,6 +1,5 @@ diff --git a/index.php b/index.php index 88f88c8..c049973 100644 --- a/index.php +++ b/index.php @@ -8,11 +8,6 @@ * Datum: 16.02.2024 ******************************** */ -/* - if (!file_exists("db/locations.db")) { - header("Location: setup.php"); - } -*/ // Starte die Session session_start(); if (isset($_GET['d'])) { @@ -24,7 +19,7 @@ else { header("Location: start.php"); } - + session_write_close(); require("config.php"); require_once("lib/functions.php"); @@ -134,7 +129,7 @@ Datenschutzerklärung @@ -148,6 +143,7 @@