mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
voicemail transcription to show or not show
This commit is contained in:
@@ -351,7 +351,7 @@
|
||||
//set the defaults
|
||||
if (empty($voicemail_local_after_email)) { $voicemail_local_after_email = 'true'; }
|
||||
if (empty($voicemail_enabled)) { $voicemail_enabled = 'true'; }
|
||||
if (empty($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean']; }
|
||||
if (empty($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean']; }
|
||||
if (empty($voicemail_tutorial)) { $voicemail_tutorial = 'false'; }
|
||||
if (empty($voicemail_recording_instructions)) { $voicemail_recording_instructions = 'true'; }
|
||||
if (empty($voicemail_recording_options)) { $voicemail_recording_options = 'true'; }
|
||||
@@ -458,13 +458,13 @@
|
||||
//password complexity
|
||||
$password_complexity = $_SESSION['voicemail']['password_complexity']['boolean'] ?? '';
|
||||
if ($password_complexity == "true") {
|
||||
echo "<script>\n";
|
||||
echo "<script>\n";
|
||||
$req['length'] = $_SESSION['voicemail']['password_min_length']['numeric'];
|
||||
echo " function check_password_strength(pwd) {\n";
|
||||
echo " var msg_errors = [];\n";
|
||||
//length
|
||||
if (is_numeric($req['length']) && $req['length'] != 0) {
|
||||
echo " var re = /.{".$req['length'].",}/;\n";
|
||||
echo " var re = /.{".$req['length'].",}/;\n";
|
||||
echo " if (!re.test(pwd)) { msg_errors.push('".$req['length']."+ ".$text['label-digits']."'); }\n";
|
||||
}
|
||||
//numberic only
|
||||
@@ -476,7 +476,7 @@
|
||||
//sequential digits
|
||||
echo " var re = /(012|123|345|456|567|678|789|987|876|765|654|543|432|321|210)/;\n";
|
||||
echo " if (re.test(pwd)) { msg_errors.push('".$text['label-password_sequential']."'); }\n";
|
||||
|
||||
|
||||
echo " if (msg_errors.length > 0) {\n";
|
||||
echo " var msg = '".$text['message-password_requirements'].": ' + msg_errors.join(', ');\n";
|
||||
echo " display_message(msg, 'negative', '6000');\n";
|
||||
@@ -794,7 +794,7 @@
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['voicemail']['transcribe_enabled']['boolean'] ?? '') == "true") {
|
||||
if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['transcribe']['enabled']['boolean'] ?? '') == "true") {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
||||
@@ -950,4 +950,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
require_once "resources/paging.php";
|
||||
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('voicemail_view')) {
|
||||
//access granted
|
||||
@@ -93,7 +93,7 @@
|
||||
$order_by = $_GET["order_by"] ?? 'voicemail_id';
|
||||
$order = $_GET["order"] ?? 'asc';
|
||||
$sort = $order_by == 'voicemail_id' ? 'natural' : null;
|
||||
|
||||
|
||||
//set additional variables
|
||||
$show = $_GET["show"] ?? '';
|
||||
|
||||
@@ -263,7 +263,7 @@
|
||||
echo th_order_by('voicemail_mail_to', $text['label-voicemail_mail_to'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||
echo th_order_by('voicemail_file', $text['label-voicemail_file_attached'], $order_by, $order, null, "class='center hide-md-dn'");
|
||||
echo th_order_by('voicemail_local_after_email', $text['label-voicemail_local_after_email'], $order_by, $order, null, "class='center hide-md-dn'");
|
||||
if (!empty($_SESSION['voicemail']['transcribe_enabled']) && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == 'true') {
|
||||
if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['transcribe']['enabled']['boolean'] ?? '') == "true") {
|
||||
echo th_order_by('voicemail_transcription_enabled', $text['label-voicemail_transcribe_enabled'], $order_by, $order);
|
||||
}
|
||||
if (permission_exists('voicemail_message_view') || permission_exists('voicemail_greeting_view')) {
|
||||
@@ -310,7 +310,7 @@
|
||||
echo " <td class='hide-sm-dn'>".escape($row['voicemail_mail_to'])." </td>\n";
|
||||
echo " <td class='center hide-md-dn'>".($row['voicemail_file'] == 'attach' ? $text['label-true'] : $text['label-false'])."</td>\n";
|
||||
echo " <td class='center hide-md-dn'>".ucwords(escape($row['voicemail_local_after_email']))." </td>\n";
|
||||
if (!empty($_SESSION['voicemail']['transcribe_enabled']) && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == 'true') {
|
||||
if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['transcribe']['enabled']['boolean'] ?? '') == "true") {
|
||||
echo " <td>".ucwords(escape($row['voicemail_transcription_enabled']))." </td>\n";
|
||||
}
|
||||
if (permission_exists('voicemail_message_view') || permission_exists('voicemail_greeting_view')) {
|
||||
@@ -354,4 +354,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user