diff --git a/app/conference_centers/app_config.php b/app/conference_centers/app_config.php index b5177a9972..d609b2e8ef 100644 --- a/app/conference_centers/app_config.php +++ b/app/conference_centers/app_config.php @@ -118,6 +118,11 @@ $apps[$x]['permissions'][$y]['groups'][] = "admin"; $apps[$x]['permissions'][$y]['groups'][] = "user"; $y++; + $apps[$x]['permissions'][$y]['name'] = "conference_room_moderator_endconf"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $apps[$x]['permissions'][$y]['groups'][] = "user"; + $y++; $apps[$x]['permissions'][$y]['name'] = "conference_room_schedule"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; @@ -310,6 +315,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Wait for the moderator to join before starting the conference."; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "moderator_endconf"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "When moderator exits end conference."; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "announce_name"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Introduce participants as they enter the conference."; diff --git a/app/conference_centers/app_languages.php b/app/conference_centers/app_languages.php index 5f230be770..cc2f27b218 100644 --- a/app/conference_centers/app_languages.php +++ b/app/conference_centers/app_languages.php @@ -527,6 +527,27 @@ $text['label-wait_for_moderator']['ru-ru'] = "Ждать модератора"; $text['label-wait_for_moderator']['sv-se'] = "Vänta på Moderator"; $text['label-wait_for_moderator']['uk-ua'] = "Очікування на модератора"; +$text['label-moderator_endconf']['en-us'] = "Moderator endconf"; +$text['label-moderator_endconf']['en-gb'] = "Moderator endconf"; +$text['label-moderator_endconf']['ar-eg'] = ""; +$text['label-moderator_endconf']['de-at'] = ""; //copied from de-de +$text['label-moderator_endconf']['de-ch'] = ""; //copied from de-de +$text['label-moderator_endconf']['de-de'] = ""; +$text['label-moderator_endconf']['es-cl'] = ""; +$text['label-moderator_endconf']['es-mx'] = ""; //copied from es-cl +$text['label-moderator_endconf']['fr-ca'] = ""; //copied from fr-fr +$text['label-moderator_endconf']['fr-fr'] = ""; +$text['label-moderator_endconf']['he-il'] = ""; +$text['label-moderator_endconf']['it-it'] = ""; +$text['label-moderator_endconf']['nl-nl'] = ""; +$text['label-moderator_endconf']['pl-pl'] = ""; +$text['label-moderator_endconf']['pt-br'] = ""; +$text['label-moderator_endconf']['pt-pt'] = ""; +$text['label-moderator_endconf']['ro-ro'] = ""; +$text['label-moderator_endconf']['ru-ru'] = ""; +$text['label-moderator_endconf']['sv-se'] = ""; +$text['label-moderator_endconf']['uk-ua'] = ""; + $text['label-view']['en-us'] = "View"; $text['label-view']['en-gb'] = "View"; $text['label-view']['ar-eg'] = ""; diff --git a/app/conference_centers/conference_room_edit.php b/app/conference_centers/conference_room_edit.php index 13fadb50ff..1a713b4e2e 100644 --- a/app/conference_centers/conference_room_edit.php +++ b/app/conference_centers/conference_room_edit.php @@ -66,6 +66,7 @@ $start_datetime = $_POST["start_datetime"]; $stop_datetime = $_POST["stop_datetime"]; $wait_mod = $_POST["wait_mod"]; + $moderator_endconf = $_POST["moderator_endconf"]; $announce_name = $_POST["announce_name"]; $announce_recording = $_POST["announce_recording"]; $announce_count = $_POST["announce_count"]; @@ -287,6 +288,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($record) == 0) { $record = 'false'; } if (strlen($max_members) == 0) { $max_members = 0; } if (strlen($wait_mod) == 0) { $wait_mod = 'true'; } + if (strlen($moderator_endconf) == 0) { $moderator_endconf = 'false'; } if (strlen($announce_name) == 0) { $announce_name = 'true'; } if (strlen($announce_recording) == 0) { $announce_recording = 'true'; } if (strlen($announce_count) == 0) { $announce_count = 'true'; } @@ -327,6 +329,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $array['conference_rooms'][0]['start_datetime'] = $start_datetime; $array['conference_rooms'][0]['stop_datetime'] = $stop_datetime; $array['conference_rooms'][0]['wait_mod'] = $wait_mod; + $array['conference_rooms'][0]['moderator_endconf'] = $moderator_endconf; $array['conference_rooms'][0]['announce_name'] = $announce_name; $array['conference_rooms'][0]['announce_recording'] = $announce_recording; $array['conference_rooms'][0]['announce_count'] = $announce_count; @@ -421,6 +424,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($wait_mod) > 0) { $array['conference_rooms'][0]['wait_mod'] = $wait_mod; } + if (strlen($moderator_endconf) > 0) { + $array['conference_rooms'][0]['moderator_endconf'] = $moderator_endconf; + } if (strlen($announce_name) > 0) { $array['conference_rooms'][0]['announce_name'] = $announce_name; } @@ -502,6 +508,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $start_datetime = $row["start_datetime"]; $stop_datetime = $row["stop_datetime"]; $wait_mod = $row["wait_mod"]; + $moderator_endconf = $row["moderator_endconf"]; $announce_name = $row["announce_name"]; $announce_recording = $row["announce_recording"]; $announce_count = $row["announce_count"]; @@ -569,6 +576,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($record) == 0) { $record = 'false'; } if (strlen($max_members) == 0) { $max_members = 0; } if (strlen($wait_mod) == 0) { $wait_mod = 'true'; } + if (strlen($moderator_endconf) == 0) { $moderator_endconf = 'false'; } if (strlen($announce_name) == 0) { $announce_name = 'true'; } if (strlen($announce_recording) == 0) { $announce_recording = 'true'; } if (strlen($announce_count) == 0) { $announce_count = 'true'; } @@ -772,6 +780,30 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; } + if (permission_exists('conference_room_moderator_endconf')) { + echo "