From cc49f9cbf0cb4a7375bcaa8ef3c65b80344fc6d3 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Thu, 7 Oct 2010 22:31:50 +0200 Subject: [PATCH] really removed the parent folder code --- index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 2d503c7..794c7b2 100644 --- a/index.php +++ b/index.php @@ -90,11 +90,7 @@ $realDir = "images$shortPath"; foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..') { - if ($file == '..') - { - echo "
..
\n"; - } - elseif (is_dir("$realDir/$file")) + if (is_dir("$realDir/$file")) { $folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") ); } @@ -116,7 +112,7 @@ else ?> -
^
+
^