\r\n"; echo "\r\n"; echo ""; echo ""; echo ""; echo ""; if($admin) { echo "\r\n"; echo "\r\n"; echo "\r\n"; } echo "\r\n"; $tb = 0; $res = mysql_unbuffered_query($sql); while(list($id, $filename, $times_played, $num_votes, $title, $album, $artist, $year, $genre, $uploader_ip, $last_voter_ip, $delay_time) = mysql_fetch_row($res)) { $tb += 1; $cl = $times_played ? ($tb%2==0 ? 'a1' : 'a2') : ($tb%2==0 ? 'b1' : 'b2'); $displayname = $title ? ($artist ? "$artist - $title" : $title) : basename($filename); $displayname = (strlen($displayname) >= MAX_FILENAME_LENGTH) ? substr($displayname, 0, MAX_FILENAME_LENGTH) : $displayname; $wrap10 = substr(substr(basename($filename),0,-4),0,11); $wrap30 = wordwrap(substr(basename($filename),0,-4 ),30,"
", true); $ext = strtolower(strrchr($filename, '.')); if($classname == 'tio') { $displayname = $wrap10; } echo "$wrap30

".($ext == '.mp3' ? "$artist - $title
album: $album - $year
ID3-genre: $genre
" : "" )."Format: $ext
', RELY, -50,RELX, -30,BGCLASS,'$cl');\" onmouseout=\"return nd();\">"; echo ""; echo ""; echo "\r\n"; if($admin) { echo "\r\n"; echo "\r\n"; echo "\r\n"; } echo "\t\t\r\n"; //flush(); } mysql_free_result($res); if($tb == 0) { echo "\r\n"; } echo "
" . ($page ? "Låt" : "Låt") . "RösterRöstaDelBanNullify
$displayname$num_votes".( (($GLOBALS['can_vote'] && //$uploader_ip != ip2long($_SERVER['REMOTE_ADDR']) && $last_voter_ip != ip2long($_SERVER['REMOTE_ADDR']) && $delay_time > JUST_LISTENED_DELAY ) || $admin) ? " ↑ " : " X ")."[Del][Ban][Nullify]
Inga funna låtar
"; } ?>