diff --git a/app/recordings/recording_edit.php b/app/recordings/recording_edit.php
index 2d815eda1d..1c79147f47 100644
--- a/app/recordings/recording_edit.php
+++ b/app/recordings/recording_edit.php
@@ -327,6 +327,7 @@
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'name'=>'btn_delete','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
}
if (permission_exists('recording_play') && !empty($recording_uuid) && is_uuid($recording_uuid)) {
+ $recording_hash = md5($recording_voice.$recording_message);
$recording_file_name = strtolower(pathinfo($recording_filename, PATHINFO_BASENAME));
$recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION);
switch ($recording_file_ext) {
@@ -334,7 +335,7 @@
case "mp3" : $recording_type = "audio/mpeg"; break;
case "ogg" : $recording_type = "audio/ogg"; break;
}
- echo "";
+ echo "";
echo button::create(['type'=>'button','title'=>$text['label-play'].' / '.$text['label-pause'],'label'=>$text['label-preview'],'icon'=>$settings->get('theme','button_icon_play'),'id'=>'recording_button_'.escape($recording_uuid),'onclick'=>"recording_play('".escape($recording_uuid)."','','','".$text['label-preview']."'); this.blur();"]);
}
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$settings->get('theme', 'button_icon_save'),'id'=>'btn_save','style'=>'margin-left: 15px;']);
@@ -557,4 +558,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/voicemail_greetings/voicemail_greeting_edit.php b/app/voicemail_greetings/voicemail_greeting_edit.php
index f783269731..0230f8c6c0 100644
--- a/app/voicemail_greetings/voicemail_greeting_edit.php
+++ b/app/voicemail_greetings/voicemail_greeting_edit.php
@@ -313,6 +313,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'name'=>'btn_delete','collapse'=>'hide-xs','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
}
if (permission_exists('voicemail_greeting_play') && $action == 'update') {
+ $greeting_hash = md5($greeting_voice.$greeting_message);
$greeting_file_name = strtolower(pathinfo($greeting_filename, PATHINFO_BASENAME));
$greeting_file_ext = pathinfo($greeting_file_name, PATHINFO_EXTENSION);
switch ($greeting_file_ext) {
@@ -320,7 +321,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
case "mp3" : $greeting_type = "audio/mpeg"; break;
case "ogg" : $greeting_type = "audio/ogg"; break;
}
- echo "";
+ echo "";
echo button::create(['type'=>'button','title'=>$text['label-play'].' / '.$text['label-pause'],'label'=>$text['label-preview'],'icon'=>$settings->get('theme','button_icon_play'),'id'=>'recording_button_'.escape($voicemail_greeting_uuid),'onclick'=>"recording_play('".escape($voicemail_greeting_uuid)."','','','".$text['label-preview']."'); this.blur();"]);
}
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$settings->get('theme', 'button_icon_save'),'id'=>'btn_save','style'=>'margin-left: 15px;','collapse'=>'hide-xs']);