This commit is contained in:
Walter Hupfeld 2024-02-18 09:09:31 +01:00
parent 91a8c4e567
commit 8ba6e62610
6 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -35,8 +35,9 @@
$stmt->execute(); $stmt->execute();
$stmt = $db->prepare("SELECT * FROM files where loc_id = :loc_id"); $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(); $result = $stmt->execute();
if ($row = $result->fetch(PDO::FETCH_ASSOC)) { if ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$strFilename = $row['filename']; $strFilename = $row['filename'];
$strFilename = $uploaddir . $strFilename; $strFilename = $uploaddir . $strFilename;

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -48,7 +48,7 @@ $stmt = $db->prepare($strSQL);
$stmt->bindValue(':username', $strUsername); $stmt->bindValue(':username', $strUsername);
$stmt->bindValue(':passwordhash', $strPasswordHash); $stmt->bindValue(':passwordhash', $strPasswordHash);
$stmt->execute(); $stmt->execute();
exit;
$db->query("UPDATE config SET value= '$strUploaddir' WHERE key='uploaddir'"); $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= '$fileGeojson' WHERE key='fileGeojson'");