small fix for recent audio store changes

git-svn-id: svn://192.168.202.10@3400 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-03-22 20:46:53 +00:00
parent 9e4183cda2
commit 2bb0c705b4
+3 -4
View File
@@ -654,16 +654,15 @@ if ($action == "MANUALUPLOAD")
$audiofile_name = preg_replace("/\^/",'',$audiofile_name);
if (preg_match("/\.wav$|\.gsm$/", $audiofile_name))
{
copy($AF_path, "$WeBServeRRooT/$sounds_web_directory/$audiofile_name");
chmod("$WeBServeRRooT/$sounds_web_directory/$audiofile_name", 0766);
$audio_epoch = date("U");
$audio_format='gsm';
$audio_filesize = filesize("$WeBServeRRooT/$sounds_web_directory/$audiofile_name");
$audio_length = ($audio_filesize / 1650);
$wav_format_details='';
$wav_asterisk_valid='NA';
copy($AF_path, "$WeBServeRRooT/$sounds_web_directory/$audiofile_name");
chmod("$WeBServeRRooT/$sounds_web_directory/$audiofile_name", 0766);
echo "<BR>"._QXZ("SUCCESS").": $audiofile_name "._QXZ("uploaded")." "._QXZ("size").": $audio_filesize<BR><BR>\n";
if (preg_match("/\.wav$/", $audiofile_name))