get_songs($_REQUEST['song']); } else { $song_ids = $_POST['song']; } $name = "selected-" . date("m-d-Y",time()); $song_files = get_song_files($song_ids); set_memory_limit($song_files[1]+32); send_zip($name,$song_files[0]); break; case 'pl': $id = scrub_in($_REQUEST['id']); $pl = new Playlist($id); $song_ids = $pl->get_songs(); $song_files = get_song_files( $song_ids ); set_memory_limit($song_files[1]+32); send_zip($pl->name, $song_files[0]); break; case 'alb': $id = scrub_in($_REQUEST['id']); $alb = new Album($id); $song_ids = $alb->get_song_ids(); $song_files = get_song_files($song_ids); set_memory_limit($song_files[1]+32); send_zip($alb->name, $song_files[0]); break; case 'genre': $id = scrub_in($_REQUEST['id']); $genre = new Genre($id); $song_ids = $genre->get_songs(); $song_files = get_song_files($song_ids); set_memory_limit($song_files[1]+32); send_zip($genre->name,$song_files[0]); break; default: // Rien a faire break; } // action switch ?>