Add timestamps to images.

This commit is contained in:
2023-12-31 09:35:34 +01:00
parent 66af0a2bb7
commit 4da5fc3f9c
11 changed files with 28 additions and 17 deletions

View File

@@ -2,7 +2,9 @@
if (!isset($_POST['Speichern'])) {
echo "<p>Dieses Bild löschen?</p>\n";
$file = "../img/umgebung/bilder/" . $_POST['Titel'] . ".jpg";
$ts = time();
$file = "../img/umgebung/bilder/" . $_POST['Titel'] . ".jpg?ts=" . $ts;
echo "<img src=\"$file\"><br />\n";
$sql1 = 'SELECT * FROM bilder WHERE ID = "' . $_POST['Titel'] . '"';
$result1 = $db->query($sql1);