diff --git a/index.php b/index.php index d45e080..592e0c8 100644 --- a/index.php +++ b/index.php @@ -142,9 +142,8 @@ $newthumbs = 0; $thumbfiles = ""; $total = count($items); for ( $i=1; $i<=$total; $i++ ) { -//for ( $i=6; $i<=6; $i++ ) { if ( $i <= count($folders) ) { - $np = urlencode($compath . "/" . $items[$i-1]); + $np = urlencode((($compath == "/") ? "" : $compath) . "/" . $items[$i-1]); $thumbfile = THUMBSDIR . $compath . "/" . $items[$i-1] . ".jpg"; } else { $np = urlencode($compath . "/" . substr($items[$i-1], 0, -4) . ".jpg"); @@ -168,8 +167,9 @@ for ( $i=1; $i<=$total; $i++ ) { $classmod = ""; if ( $i <= count($folders) ) { if ( in_array($items[$i-1], $comics) ) $classmod=" readborder"; - echo "