From: Marc MAURICE Date: Thu, 7 Oct 2010 20:31:50 +0000 (+0200) Subject: really removed the parent folder code X-Git-Tag: v1.0~16 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=cc49f9cbf0cb4a7375bcaa8ef3c65b80344fc6d3 really removed the parent folder code --- 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 ?> -
^
+
^