From 85ee0fe91b4eaf79a3e5953a43982f17511e6711 Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Mon, 19 Feb 2024 10:15:09 +0100 Subject: [PATCH] start page --- index.php | 7 ++++++- liste.php | 2 +- start.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 start.php diff --git a/index.php b/index.php index b5bb70f..c5d0412 100644 --- a/index.php +++ b/index.php @@ -14,7 +14,12 @@ } */ - $strDistrict = (isset($_GET['d'])) ? $_GET['d'] : "hamm"; + if (isset($_GET['d'])) { + $strDistrict=$_GET['d']; + } else { + header("Location: start.php"); + } + require("config.db.php"); require("config.php"); diff --git a/liste.php b/liste.php index c4d7cba..6e6e60d 100644 --- a/liste.php +++ b/liste.php @@ -96,7 +96,7 @@

 

-

Liste der Einträge für

+

Liste der Einträge für

diff --git a/start.php b/start.php new file mode 100644 index 0000000..0741b1f --- /dev/null +++ b/start.php @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + <?=$strTitle?> + + + + + + + + + +

+
+
+
+ + +
+

+

Kreise und kreisfreie Städte

+
+ $strTitle):?> + ">
+ +
+ +
+ + + \ No newline at end of file