diff --git a/index.php b/index.php index c5d0412..de18e05 100644 --- a/index.php +++ b/index.php @@ -13,15 +13,18 @@ header("Location: setup.php"); } */ +// Starte die Session + session_start(); + if (isset($_GET['d'])) { + $strDistrict=$_GET['d']; + $_SESSION['district'] = $_GET['d']; + } else if (isset($_SESSION['district'])) { + $strDistrict=$_SESSION['district']; + } + else { + header("Location: start.php"); + } - if (isset($_GET['d'])) { - $strDistrict=$_GET['d']; - } else { - header("Location: start.php"); - } - - - require("config.db.php"); require("config.php"); require_once("lib/functions.php"); @@ -103,10 +106,10 @@