From 71d2786a9701256be5fd7e58ba5892b47cda5139 Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Sun, 18 Feb 2024 18:04:28 +0100 Subject: [PATCH] active districts --- admin/configuration.php | 36 ---------------------------------- admin/configuration_chk.php | 39 +++++++++++++------------------------ admin/index.php | 2 +- admin/login.php | 2 +- config.php | 10 ++++------ 5 files changed, 19 insertions(+), 70 deletions(-) diff --git a/admin/configuration.php b/admin/configuration.php index decd428..f424002 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -72,18 +72,6 @@
-
-
-

Dateneingabe aktivieren

-
-
- > -
-
-
-
- -
@@ -108,30 +96,6 @@
-
-
-

Karteninfo

-
-
-

Stadt oder Kreis

- - -

Kartenzentrum

-
Hier liegt das Zentrum der Karte und es erscheint der Info-Marker.
-
-
-
Zoom-Faktor beim Start der Karte.
- - - -

GeoJson

-

Die Datei kann man von folgender Adresse laden und ins Vezeichnis /geojson kopieren: - public.opendatasoft.com -

- -
-
-

Anbieterinformation

diff --git a/admin/configuration_chk.php b/admin/configuration_chk.php index 0fb6eda..0ac9a10 100644 --- a/admin/configuration_chk.php +++ b/admin/configuration_chk.php @@ -11,7 +11,6 @@ if($_POST['csrf'] !== $_SESSION['csrf_token']) { die("Ungültiger Token"); } - $boolActive = (isset($_POST['active'])) ? "1" : "0"; $boolRating = (isset($_POST['rating'])) ? "1" : "0"; $boolComment = (isset($_POST['comment'])) ? "1" : "0"; $boolUpload = (isset($_POST['fileupload'])) ? "1" : "0"; @@ -20,12 +19,7 @@ $strUploaddir = $_POST['uploaddir']; - $strStadt = $_POST['district']; $strTitle = $_POST['title']; - $fileGeojson =$_POST['geojson']; - $numInfoLat = $_POST['lat']; - $numInfoLng = $_POST['lng']; - $numZoom = $_POST['zoom']; $strLogo = $_POST['logo']; $contactEmail= $_POST['contactEmail']; $strImpressum= $_POST['impressum']; @@ -36,26 +30,19 @@ $strImpressum=addslashes($strImpressum); $strIntroText=addslashes($strIntroText); - $db->query("UPDATE config SET value= '$strUploaddir' WHERE key='uploaddir'"); - $db->query("UPDATE config SET value= '$fileGeojson' WHERE key='fileGeojson'"); - $db->query("UPDATE config SET value= '$strStadt' WHERE key='stadt'"); - $db->query("UPDATE config SET value= '$strTitle' WHERE key='title'"); - $db->query("UPDATE config SET value= '$numInfoLat' WHERE key='InfoLat'"); - $db->query("UPDATE config SET value= '$numInfoLng' WHERE key='InfoLng'"); - $db->query("UPDATE config SET value= '$numZoom' WHERE key='zoom'"); - $db->query("UPDATE config SET value= '$strLogo' WHERE key='logo'"); - $db->query("UPDATE config SET value= '$contactEmail' WHERE key='contactEmail'"); - $db->query("UPDATE config SET value= '$strImpressum' WHERE key='impressum'"); - $db->query("UPDATE config SET value= '$strUrl' WHERE key='url'"); - $db->query("UPDATE config SET value= '$strUrlBez' WHERE key='UrlBez'"); - $db->query("UPDATE config SET value= '$strIntroText' WHERE key='IntroText'"); - - $db->query("UPDATE config SET value= '$boolActive' WHERE key='boolActive'"); - $db->query("UPDATE config SET value= '$boolRating' WHERE key='boolRating'"); - $db->query("UPDATE config SET value= '$boolComment' WHERE key='boolComment'"); - $db->query("UPDATE config SET value= '$boolUserinfo' WHERE key='boolUserinfo'"); - $db->query("UPDATE config SET value= '$boolDefect' WHERE key='boolDefect'"); - $db->query("UPDATE config SET value= '$boolUpload' WHERE key='boolUpload'"); + $db->query("UPDATE `config` SET `value`= '$strUploaddir' WHERE `key`='uploaddir'"); + $db->query("UPDATE `config` SET `value`= '$strTitle' WHERE `key`='title'"); + $db->query("UPDATE `config` SET `value`= '$strLogo' WHERE `key`='logo'"); + $db->query("UPDATE `config` SET `value`= '$contactEmail' WHERE `key`='contactEmail'"); + $db->query("UPDATE `config` SET `value`= '$strImpressum' WHERE `key`='impressum'"); + $db->query("UPDATE `config` SET `value`= '$strUrlBez' WHERE `key`='UrlBez'"); + $db->query("UPDATE `config` SET `value`= '$strUrl' WHERE `key`='url'"); + $db->query("UPDATE `config` SET `value`= '$strIntroText' WHERE `key`='IntroText'"); + $db->query("UPDATE `config` SET `value`= '$boolRating' WHERE `key`='boolRating'"); + $db->query("UPDATE `config` SET `value`= '$boolComment' WHERE `key`='boolComment'"); + $db->query("UPDATE `config` SET `value`= '$boolUserinfo' WHERE `key`='boolUserinfo'"); + $db->query("UPDATE `config` SET `value`= '$boolDefect' WHERE `key`='boolDefect'"); + $db->query("UPDATE `config` SET `value`= '$boolUpload' WHERE `key`='boolUpload'"); header("Location: configuration.php"); diff --git a/admin/index.php b/admin/index.php index fbda217..57f7cc8 100644 --- a/admin/index.php +++ b/admin/index.php @@ -126,7 +126,7 @@