diff --git a/view.php b/view.php index 1b38962..99e7f9c 100644 --- a/view.php +++ b/view.php @@ -1,15 +1,16 @@ 0) if ($pos < sizeof($images)) $nextImage = $images[$pos+1]; -$imageUrl = dirname($scriptPath)."/images$quickPath"; +// template variables +$imageUrl = dirname($scriptPath)."/images$shortPath"; if ($nextImage === '') { $nextImageUrl = ''; $nextPageUrl = ''; } else { - $nextImageUrl = dirname($scriptPath)."/images".dirname($quickPath)."/$nextImage"; + $nextImageUrl = dirname($scriptPath)."/images".dirname($shortPath)."/$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); +$directoryUrl = dirname($_SERVER["SCRIPT_NAME"])."/index".dirname($shortPath); header('Content-Type: text/html; charset=utf-8'); header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); @@ -112,7 +114,7 @@ img {