diff --git a/app/call_recordings/app_languages.php b/app/call_recordings/app_languages.php index 4cadc4e3ee..7000bdf14c 100644 --- a/app/call_recordings/app_languages.php +++ b/app/call_recordings/app_languages.php @@ -1,5 +1,4 @@ +$text['label-inbound']['en-us'] = "Inbound"; +$text['label-inbound']['ar-eg'] = "Inbound"; +$text['label-inbound']['de-at'] = "Inbound"; +$text['label-inbound']['de-ch'] = "Inbound"; +$text['label-inbound']['de-de'] = "Inbound"; +$text['label-inbound']['es-cl'] = "Inbound"; +$text['label-inbound']['es-mx'] = "Inbound"; +$text['label-inbound']['fr-ca'] = "Inbound"; +$text['label-inbound']['fr-fr'] = "Inbound"; +$text['label-inbound']['he-il'] = "Inbound"; +$text['label-inbound']['it-it'] = "Inbound"; +$text['label-inbound']['nl-nl'] = "Inbound"; +$text['label-inbound']['pl-pl'] = "Inbound"; +$text['label-inbound']['pt-br'] = "Inbound"; +$text['label-inbound']['pt-pt'] = "Inbound"; +$text['label-inbound']['ro-ro'] = "Inbound"; +$text['label-inbound']['ru-ru'] = "Inbound"; +$text['label-inbound']['sv-se'] = "Inbound"; +$text['label-inbound']['uk-ua'] = "Inbound"; + +$text['label-outbound']['en-us'] = "Outbound"; +$text['label-outbound']['ar-eg'] = "Outbound"; +$text['label-outbound']['de-at'] = "Outbound"; +$text['label-outbound']['de-ch'] = "Outbound"; +$text['label-outbound']['de-de'] = "Outbound"; +$text['label-outbound']['es-cl'] = "Outbound"; +$text['label-outbound']['es-mx'] = "Outbound"; +$text['label-outbound']['fr-ca'] = "Outbound"; +$text['label-outbound']['fr-fr'] = "Outbound"; +$text['label-outbound']['he-il'] = "Outbound"; +$text['label-outbound']['it-it'] = "Outbound"; +$text['label-outbound']['nl-nl'] = "Outbound"; +$text['label-outbound']['pl-pl'] = "Outbound"; +$text['label-outbound']['pt-br'] = "Outbound"; +$text['label-outbound']['pt-pt'] = "Outbound"; +$text['label-outbound']['ro-ro'] = "Outbound"; +$text['label-outbound']['ru-ru'] = "Outbound"; +$text['label-outbound']['sv-se'] = "Outbound"; +$text['label-outbound']['uk-ua'] = "Outbound"; + +$text['label-local']['en-us'] = "Local"; +$text['label-local']['ar-eg'] = "Local"; +$text['label-local']['de-at'] = "Local"; +$text['label-local']['de-ch'] = "Local"; +$text['label-local']['de-de'] = "Local"; +$text['label-local']['es-cl'] = "Local"; +$text['label-local']['es-mx'] = "Local"; +$text['label-local']['fr-ca'] = "Local"; +$text['label-local']['fr-fr'] = "Local"; +$text['label-local']['he-il'] = "Local"; +$text['label-local']['it-it'] = "Local"; +$text['label-local']['nl-nl'] = "Local"; +$text['label-local']['pl-pl'] = "Local"; +$text['label-local']['pt-br'] = "Local"; +$text['label-local']['pt-pt'] = "Local"; +$text['label-local']['ro-ro'] = "Local"; +$text['label-local']['ru-ru'] = "Local"; +$text['label-local']['sv-se'] = "Local"; +$text['label-local']['uk-ua'] = "Local"; + +?> \ No newline at end of file diff --git a/app/call_recordings/call_recordings.php b/app/call_recordings/call_recordings.php index dc97e49824..62547b1ec3 100644 --- a/app/call_recordings/call_recordings.php +++ b/app/call_recordings/call_recordings.php @@ -78,6 +78,9 @@ $obj->delete($call_recordings); //delete message message::add($text['message-delete']); + //redirect + header('Location: call_recordings.php'); + exit; } } @@ -239,7 +242,7 @@ //echo " \n"; echo " ".($row['call_recording_length'] <= 59 ? '0:' : null).escape($row['call_recording_length'])." \n"; echo " ".escape($row['call_recording_date'])." \n"; - echo " ".escape($row['call_direction'])." \n"; + echo " ".($row['call_direction'] != '' ? escape($text['label-'.$row['call_direction']]) : null)." \n"; echo " ".escape($row['call_recording_description'])." \n"; //echo " ".escape($row['call_recording_base64'])." \n"; echo " "; @@ -250,7 +253,7 @@ echo "\n"; + echo "\n"; } echo " \n"; echo "\n"; diff --git a/resources/functions.php b/resources/functions.php index c0425de69e..344067599d 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -149,8 +149,11 @@ if (!function_exists('is_uuid')) { function is_uuid($uuid) { - $regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i'; - return preg_match($regex, $uuid); + if (gettype($uuid) == 'string') { + $regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i'; + return preg_match($regex, $uuid); + } + return false; } }