echo $nano->show_audio_file($is_nano); break; case 'delete': $return = $nano->delete_files(); if ($return == 1) { //cant' do this because the post that nano send doesnt take into account the session Display::display_confirmation_message(get_lang('FileDeleted')); } else { Display::display_confirmation_message(get_lang('FileNotFound')); } break; case 'show_form': api_protect_course_script(true); Display::display_reduced_header(); echo $nano->return_js($_REQUEST); echo $nano->return_form(); break; case 'save_file': //User access same as upload.php $return = $nano->upload_file($is_nano); if ($is_nano) { //nano looks for numbers if ($return == 1) { //cant' do this because the post that nano send doesnt take into account the session echo 1; //Display::display_confirmation_message(get_lang('UplUploadSucceeded')); } else { echo 0; //Display::display_warning_message(get_lang('UplUnableToSaveFileFilteredExtension')); } } else {