0) $prevImage = $images[$pos-1]; if ($pos < sizeof($images)) $nextImage = $images[$pos+1]; $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)); ?>
^