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

@@ -12,10 +12,11 @@ if (isset($_GET['t'])) {
$link .= "t=" . $_GET['t'] . "&";
}
$ts = time();
if (isset($_GET['f'])) {
$pic = $path . $_GET['f'] . ".jpg";
echo "<div>";
echo " <img class=\"gross\" src=$pic />\n";
echo " <img class=\"gross\" src=\"" . $pic . "?ts=" . $ts . "\" />\n";
echo "</div>\n";
echo "<br class=\"clear\" />\n";
echo "<div id=\"thumb\">\n";
@@ -25,7 +26,7 @@ if (isset($_GET['f'])) {
for ($i = 0; $i < 10; $i++) {
if (file_exists($pic)) {
echo "<div>";
echo " <img class=\"gross\" src=$pic />\n";
echo " <img class=\"gross\" src=\"" . $pic . "?ts=" . $ts . "\" />\n";
echo "</div>\n";
echo "<br class=\"clear\" />\n";
echo "<div id=\"thumb\">\n";
@@ -38,6 +39,6 @@ for ($i = 9; $i >= 0; $i--) {
$thumb = $path . $i . ".jpg";
if (file_exists($thumb)) {
$ref = $link . "f=$i";
echo " <a href=$ref><img src=$thumb /></a>\n";
echo " <a href=\"" . $ref . "\"><img src=\"" . $thumb . "?ts=" . $ts . "\" /></a>\n";
}
}