X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=5747b736a4d36defaa611f3c875a6facaa80cf30;hp=a96d5e6f41c1d4ed86dd46933c36bdb9faf441e2;hb=223a626abc5757fbce0b6ce4e0a4a4a1cf4980e4;hpb=758887b79c875b31b86d427e27f515e2c3d2a257 diff --git a/phpfspot_img.php b/phpfspot_img.php index a96d5e6..5747b73 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -62,7 +62,7 @@ class PHPFSPOT_IMG { $details = $this->parent->get_photo_details($idx); if(!$details) { - $this->parent->showTextImage("The image you requested is unknown"); + $this->parent->showTextImage("The image (". $idx .") you requested is unknown"); return; } @@ -106,7 +106,10 @@ class PHPFSPOT_IMG { Header("Content-Disposition: inline; filename=\"". $details['name'] ."\""); Header("Accept-Ranges: bytes"); Header("Connection: close"); - + Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); + Header("Cache-Control: no-cache"); + Header("Pragma: no-cache"); + $file = fopen($fullpath, "rb"); fpassthru($file); @fclose($file);