=0 ; $prev--) { $mime = mime_content_type("$realDir/$files[$prev]"); if ($mime == "image/jpeg") $prevImage = $files[$prev]; } $imageUrl = dirname($scriptPath)."/images$quickPath"; if ($nextImage === '') { $nextImageUrl = ''; $nextPageUrl = ''; } else { $nextImageUrl = dirname($scriptPath)."/images".dirname($quickPath)."/$nextImage"; $nextPageUrl = dirname($_SERVER["REQUEST_URI"])."/$nextImage"; } if ($prevImage === '') $prevPageUrl = ''; else $prevPageUrl = dirname($_SERVER["REQUEST_URI"])."/$prevImage"; $directoryUrl = dirname($_SERVER["SCRIPT_NAME"])."/index".dirname($quickPath); header('Content-Type: text/html; charset=utf-8'); header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); ?>
^