if ($file_path) { $info = pathinfo($file_path); $user_info = api_get_user_info($nano->params['user_id']); $name = get_lang('Quiz') . '-' . $user_info['firstname'] . '-' . $user_info['lastname'] . '.' . $info['extension']; $download = true; if (isset($_REQUEST['download']) && $_REQUEST['download'] == 0) { $download = false; } DocumentManager::file_send_for_download($file_path, $download); exit; } } break; case 'show_audio': if (!$is_nano) { echo $nano->return_js($_REQUEST); } 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();