' . "\n"; echo '' . "\n"; echo '' . "\n"; echo ''; if (isset($prefs_struct['banner'])) { echo $prefs_struct['banner']; } else { echo 'Opentape!'; } echo '' . "\n"; echo '' . "\n"; if (isset($prefs_struct['caption'])) { echo ' ' . htmlentities($prefs_struct['caption']); } else { echo ' ' . count($songlist_struct) . "songs, " . get_total_runtime_string(); } echo '' . "\n"; echo '' . get_base_url() . '' . "\n"; foreach ($songlist_struct as $pos => $row) { if (! is_file( constant("SONGS_PATH") . $row['filename']) ) { unset($songlist_struct[$pos]); continue; } echo '' . "\n"; echo ''; if (isset($row['opentape_artist'])) { echo $row['opentape_artist'] . ' - '; } else { echo htmlentities($row['artist']) . ' - '; } if (isset($row['opentape_title'])) { echo $row['opentape_title']; } else { echo htmlentities($row['title']); } echo '' . "\n"; echo '' . get_base_url() . constant("SONGS_PATH") . rawurlencode($row['filename']) . '' . "\n"; echo '' . '' . "\n"; echo '' . $pos . '' . "\n"; echo '' . $row['playtime_string'] . '' . "\n"; echo '' . "\n"; } echo '' . "\n"; echo '' . "\n"; ?>