name; $song_ids = $pl->get_songs(); $song_files = get_song_files( $song_ids ); set_memory_limit( $song_files[1]+32 ); send_zip( $name, $song_files[0] ); break; case "alb": $id = scrub_in( $_REQUEST['id'] ); $alb = new Album( $id ); $name = $alb->name; $song_ids = $alb->get_song_ids(); $song_files = get_song_files( $song_ids ); set_memory_limit( $song_files[1]+32 ); send_zip( $name, $song_files[0] ); break; default: header( "Location:" . conf('web_path') . "/index.php?amp_error=Unknown action on batch.php: {$_REQUEST['action']}" ); break; } // action switch } else { // bulk download permissions header( "Location: " . conf('web_path') . "/index.php?amp_error=Download disabled" ); } // no bulk download permissions ?>