diff --git a/admin/export.php b/admin/export.php index 36a00cb..b3762c6 100644 --- a/admin/export.php +++ b/admin/export.php @@ -4,7 +4,7 @@ * Ideenmelder * Autor: Walter Hupfeld, Hamm * E-Mail: info@hupfeld-software.de - * Version: 1.0 + * Version: 3.0 * Datum: 18.05.2021 * zuletzt geändert: 18.02.2024 ******************************** */ diff --git a/admin/geocoding.php b/admin/geocoding.php index 0617851..5fba9f2 100644 --- a/admin/geocoding.php +++ b/admin/geocoding.php @@ -3,7 +3,7 @@ * Ideenmelder * Autor: Walter Hupfeld, Hamm * E-Mail: info@hupfeld-software.de - * Version: 1.0 + * Version: 3.0 * Datum: 18.05.2021 * zuletzt geändert: 18.02.2024 */ diff --git a/admin/index.php b/admin/index.php index bf539a5..b0f6182 100644 --- a/admin/index.php +++ b/admin/index.php @@ -72,12 +72,21 @@ $stmt->execute(); } + if (isset($_GET['approvalId'])) { + if($_GET['csrf'] !== $_SESSION['csrf_token']) { + die("Ungültiger Token"); + } + $numApproval=(int)$_GET['approvalId']; + $stmt = $db->prepare("UPDATE location SET approval = not approval WHERE id= :id"); + $stmt->bindValue(":id",$numApproval); + $stmt->execute(); + } + // Bild löschen if (isset($_GET['delfid'])) { if($_GET['csrf'] !== $_SESSION['csrf_token']) { die("Ungültiger Token"); } - $numDelete=(int)$_GET['delfid']; $stmt = $db->prepare("SELECT * FROM files where id = :id"); $stmt->bindParam(':id', $id); @@ -90,7 +99,6 @@ $stmt = $db->prepare("DELETE FROM files WHERE id= :id"); $stmt->bindValue(":id",$numDelete); $stmt->execute(); - } // Karte zeigen @@ -99,6 +107,7 @@ $boolShowmap=$numShowmap==1; } + $arrTopic = array ( 1 => "Fußverkehr", 2 => "Radverkehr", @@ -114,6 +123,7 @@ 4 => "", 5 => "" ); + ?> @@ -162,9 +172,7 @@