fixes
This commit is contained in:
parent
91a8c4e567
commit
8ba6e62610
2
LICENSE
2
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
|
||||
|
@ -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;
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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'");
|
||||
|
Loading…
Reference in New Issue
Block a user