prepare($query); $sth->execute($fields); $comics = array(); $issues = array(); while ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) { if ( !in_array($row['comic'], $comics) ) $comics[] = $row['comic']; if ( !in_array($row['issue'], $issues) ) $issues[] = $row['issue']; } ?> Comics Fancy
Sort: Name"; } else { echo "Date"; } ?>
$updir"; if ( dirname($compath) == "/" ) { echo "Comics"; } echo "/"; } ?>
"; $newthumbs++; $st = microtime_float(); $havethumb = makeThumb($fullcompath . "/" . $items[$i-1]); $thumbtime += microtime_float() - $st; if ( !$havethumb ) { $havethumb = true; $thumb = "img/nothumb.png"; } } $thumb = "thumbs" . $compath . "/" .basename($thumbfile); $comname = pathinfo($items[$i-1], PATHINFO_FILENAME); if ( strpos($comname, " - ") !== false ) $comname = str_replace(" - ", "
", $comname); $classmod = ""; if ( $i <= count($folders) ) { if ( in_array($items[$i-1], $comics) ) $classmod=" readborder"; echo "
"; $thumburl = htmlentities($thumb, ENT_QUOTES); echo "
{$comname}
\n"; } else { if ( in_array($items[$i-1], $issues) ) $classmod=" readborder"; $relcomic = trim(base64_encode($compath . "/" . $items[$i-1]), "="); $thumburl = htmlentities($thumb, ENT_QUOTES); echo "

"; echo "{$comname}
\n"; } } $htime = microtime_float() - $htime; ?>