From 5dc5c1ec33bcf2fb9e1618918d6cca5edc56e8a8 Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Wed, 11 Oct 2023 10:50:58 +0200 Subject: [PATCH] cache --- .gitignore | 8 +------- config.sample.php | 1 + statistics/gemeinden_c.php | 28 ++++++++++++++++++++++++++++ statistics/index.php | 10 +++++++++- 4 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 statistics/gemeinden_c.php diff --git a/.gitignore b/.gitignore index 94ec750..b093789 100644 --- a/.gitignore +++ b/.gitignore @@ -8,11 +8,5 @@ config.php -./config.php ./database - - - - - - +statistics/gemeinden.html diff --git a/config.sample.php b/config.sample.php index cc96119..c208905 100644 --- a/config.sample.php +++ b/config.sample.php @@ -9,6 +9,7 @@ $db_user = "root"; $db_passwd = "geheim"; $db = "unfallstatistik"; +$cachetime = 0; try { $db = new PDO('mysql:host='.$db_server.';dbname='.$db.';charset=utf8mb4', $db_user, $db_passwd); diff --git a/statistics/gemeinden_c.php b/statistics/gemeinden_c.php new file mode 100644 index 0000000..47d55ba --- /dev/null +++ b/statistics/gemeinden_c.php @@ -0,0 +1,28 @@ +0) { + $gemeinde_page ="gemeinden_c.php"; + } else { + $gemeinde_page ="gemeinden.php"; + } +?> @@ -49,7 +57,7 @@

Weitere Auswertungen zu Fahrradunfällen