<?php
$path = '../fileadmin/panoramen/*';
$files = glob($path, GLOB_NOSORT);
$file = $files[mt_rand(0, count($files) - 1)];
header('Content-Description: File Transfer');
header('Content-Type: image/jpg');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
@readfile($file);
?>
