function PlayAudio() { if (isset($_REQUEST['wpdm_play_audio'])) { $url = WPDM_Crypt::Decrypt($_REQUEST['wpdm_play_audio']); } echo do_shortcode('[audio'); die; }
foreach ($dfiles as $file) { $zip->addFile($file, str_replace($dir, '', $file)); } } $zip->close(); update_post_meta($package['ID'], "__wpdm_zipped_file", $zipped); } wpdm_download_file($zipped, sanitize_file_name($package['post_title']) . '.zip', $speed, 1, $package); //@unlink($zipped); } else { //Individual file or single file download section //$ind = isset($_GET['ind']) ? intval($_GET['ind']) : 0; //$ind = isset($_GET['ind']) ? array_search(WPDM_Crypt::Decrypt($_GET['ind']), $files) : 0; $rfile = ''; if (isset($_GET['ind'])) { $rfile = WPDM_Crypt::Decrypt($_GET['ind']); } if (count($files) == 1 && count($dfiles) == 0) { $rfile = $files[0]; } $indfile = ""; $rfile = trim($rfile); if (in_array($rfile, $files)) { $indfile = $rfile; } if (is_array($dfiles) && in_array($rfile, $dfiles)) { $indfile = trim($rfile); } //URL Download if ($indfile != '' && strpos($indfile, '://')) { if (!isset($package['url_protect']) || $package['url_protect'] == 0) {