- echo(' </td><td><a href="'.$temp.'">'.unxss(str_replace('_', ' ', $item)).'</a></td><td>'.$filesize." MiB </td></tr>\n");
+ echo(' </td><td class="maximize-width"><a href="'.$temp.'">'.unxss(str_replace('-',' - ',str_replace('_', ' ',
+$item))).'</a></td><td>'.$filesize." MiB </td></tr>\n");
+}
+
+function render_dir_line($current_dir, $item, $i) {
+ $parclass=($i%2?'even':'odd'); $parcolor=($i%2?'lightblue':'white');
+ $temp=str_replace('%2F', '/', rawurlencode($current_dir)).rawurlencode($item);
+ echo("<tr class=\"$parclass directory\" bgcolor=\"$parcolor\">".
+ '<td><a href="#up">'.$i.'</a></td><td class="btntd"><a href="?download&playlist&dir='.$temp.'" class="icon iplay">P</a>/'.
+ '<a href="?download&recursive&playlist&dir='.$temp.'" class="icon irplay">R</a>');
+ if($GLOBALS['useflash']) echo('/<a href="?f&playlist&dir='.$temp.'" target="'.$GLOBALS['flash_player_frame'].'" class="icon ifplay">F</a>');
+ echo('</td><td colspan="100%" class="maximize-width"><span class="icon ifolder">[DIR] </span><a href="?dir='.$temp.'">'.unxss(str_replace('_', ' ', $item)).
+ "</a></td></tr>\n");