projects
/
bizou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfc7c4e
)
really removed the parent folder code
author
Marc MAURICE
<dooblempub@positon.org>
Thu, 7 Oct 2010 20:31:50 +0000
(22:31 +0200)
committer
Marc MAURICE
<dooblempub@positon.org>
Thu, 7 Oct 2010 20:31:50 +0000
(22:31 +0200)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
2d503c7
..
794c7b2
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-90,11
+90,7
@@
$realDir = "images$shortPath";
foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
{
foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
{
- if ($file == '..')
- {
- echo "<div><a href=\"$scriptUrlPath".dirname($shortPath)."/\">..</a></div>\n";
- }
- elseif (is_dir("$realDir/$file"))
+ if (is_dir("$realDir/$file"))
{
$folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") );
}
{
$folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") );
}
@@
-116,7
+112,7
@@
else
?>
<?php if ($parentLink !== '') { ?>
?>
<?php if ($parentLink !== '') { ?>
- <div><a href="<?php echo $parentLink ?>">^</a></div>
+ <div id="parentfolder"><a href="<?php echo $parentLink ?>">^</a></div>
<?php } ?>
<?php foreach($folders as $folder) { ?>
<?php } ?>
<?php foreach($folders as $folder) { ?>