diff --git a/LICENSE b/LICENSE index 80cbca1..1e620c6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Walter Hupfeld +Copyright (c) 2024 Walter Hupfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/admin/index.php b/admin/index.php index f186791..71247aa 100644 --- a/admin/index.php +++ b/admin/index.php @@ -35,8 +35,9 @@ $stmt->execute(); $stmt = $db->prepare("SELECT * FROM files where loc_id = :loc_id"); - $stmt->bindValue(":loc_id", $numDelete, SQLITE3_TEXT); + $stmt->bindValue(":loc_id", $numDelete, PDO::PARAM_INT); $result = $stmt->execute(); + if ($row = $result->fetch(PDO::FETCH_ASSOC)) { $strFilename = $row['filename']; $strFilename = $uploaddir . $strFilename; diff --git a/admin/shape/ideenmelder.dbf b/admin/shape/ideenmelder.dbf index f1c6427..9005ee1 100644 Binary files a/admin/shape/ideenmelder.dbf and b/admin/shape/ideenmelder.dbf differ diff --git a/admin/shape/ideenmelder.shp b/admin/shape/ideenmelder.shp index d60fe2b..bc5f226 100644 Binary files a/admin/shape/ideenmelder.shp and b/admin/shape/ideenmelder.shp differ diff --git a/admin/shape/ideenmelder.shx b/admin/shape/ideenmelder.shx index 0f7f2e7..8650990 100644 Binary files a/admin/shape/ideenmelder.shx and b/admin/shape/ideenmelder.shx differ diff --git a/setup_chk.php b/setup_chk.php index c34b731..0d3a4ed 100644 --- a/setup_chk.php +++ b/setup_chk.php @@ -48,7 +48,7 @@ $stmt = $db->prepare($strSQL); $stmt->bindValue(':username', $strUsername); $stmt->bindValue(':passwordhash', $strPasswordHash); $stmt->execute(); - +exit; $db->query("UPDATE config SET value= '$strUploaddir' WHERE key='uploaddir'"); $db->query("UPDATE config SET value= '$fileGeojson' WHERE key='fileGeojson'");