decrypt($_REQUEST['recordingpath'],$REC_CRYPT_PASSWORD).$_REQUEST['recording']; // strip ".." from path for security $path = preg_replace('/\.\./','',$path); $ufile = basename($path); // See if the file exists, otherwise check for extensions if (is_file("$path.wav")) { $path="$path.wav"; } elseif (is_file("$path.Wav")) { $path="$path.Wav"; } elseif (is_file("$path.WAV")) { $path="$path.WAV"; } elseif (is_file("$path.mp3")) { $path="$path.mp3"; } elseif (is_file("$path.gsm")) { $path="$path.gsm"; } else { echo("

".sprintf(_("No compatible wav, mp3 or gsm format found to play:

%s"),$ufile)."


"); exit; } $file = urlencode($crypt->encrypt($path,$REC_CRYPT_PASSWORD)); if (isset($file)) { echo("
"); echo("
"); echo("

playing: $ufile


"); } ?>