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

@@ -5,6 +5,7 @@ $ref = "index.php?section=fotos&t=" . $_GET['t'];
if (!isset($_GET['action'])) {
echo "<p>Auf ein Bild klicken um es zu ersetzen<br />";
$ts = time();
for ($i = 0; $i < 2; $i++) {
$pic = $path . $i . ".jpg";
@@ -16,7 +17,7 @@ if (!isset($_GET['action'])) {
echo "<p>Wohnung Amelie:</p>\n";
}
echo "<a href=\"$link\">";
echo "<img style=\"border: 2px solid red;\" src=\"$pic\" width=\"100px\" height=\"100px\"/>";
echo "<img style=\"border: 2px solid red;\" src=\"$pic?ts=$ts\" width=\"100px\" height=\"100px\"/>";
echo "</a>\n";
echo "<br />&nbsp;";
} else {