+ 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");
+}
+
+function render_tr_playframe_show() {
+ if($GLOBALS['flash_player_frame'] == 'playframe-show' && $GLOBALS['useflash']) { ?>
+<tr id="playframe-tr">
+<td><a href="?blank" target="playframe-show" title="Stop playback" class="icon ifstop">S</a></td>
+<td colspan="100%">
+<iframe
+src="?blank"
+name="playframe-show"
+width="100%"
+height="24"
+style="border:none;"
+transparentpagebg="yes"
+></iframe></td></tr>
+ <?php }
+}
+
+function render_footer() {
+ $quotes = array(
+ 'This is NOT advertisments. This is just good text to think about... Remove it if you want!',
+ 'Downloading without sharing and other forms of leeching equals STEALING! ;P',
+ 'Do NOT support Microsoft!!! Use Linux! ;D',
+ 'Don\'t steal! Steal and share!!! ;P',
+ 'Linux is not matter of price, it\'s matter of freedom!',
+ 'This software brought to you by <a href="http://blog.Harvie.cz">Harvie</a> free of charge! Of course...',
+ 'Don\'t be looser, use GNU/Linux! ;P',
+ 'Make love and not war!',
+ 'Take your chance! Prove yourself!',
+ 'This software is free of charge. If you wan\'t to donate, please send some money to children in Africa/etc...'
+ );
+
+ echo('<span id="quote" style="float: left;"><i><small>'.$quotes[rand(0,sizeof($quotes)-1)]."</small></i></span>\n");
+ echo('<span id="exectime" style="float: right;"><small>Page was generated in '.(round(microtime(true), 3) - $GLOBALS['exec_time']).'
+seconds</small></span>');
+ @readfile($GLOBALS['footer_file']);
+ echo('</body></html>');