From 9fc82c02cb34ea2411d6f372cbaffe9868140ed8 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:28:45 -0700 Subject: [PATCH 01/10] Add dashboard icon color setting (#7197) * Add dashboard icon color setting * Update index.php * Update app_languages.php * Update app_defaults.php * Update app_config.php * Update dashboard_edit.php * Update index.php * Update app_languages.php * Update app_defaults.php * Update app_config.php * Update config.php * Update domains.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update config.php * Update registrations.php * Update config.php * Update config.php * Update config.php * Update config.php * Update voicemails.php * Update config.php * Update missed_calls.php * Update recent_calls.php * Update index.php * Update index.php * Update index.php --- app/call_block/resources/dashboard/config.php | 6 +- .../resources/dashboard/config.php | 3 +- .../resources/dashboard/config.php | 5 +- .../resources/dashboard/config.php | 5 +- .../resources/dashboard/config.php | 5 +- .../resources/dashboard/config.php | 5 +- app/extensions/resources/dashboard/config.php | 5 +- app/fax/resources/dashboard/config.php | 5 +- app/ivr_menus/resources/dashboard/config.php | 5 +- app/recordings/resources/dashboard/config.php | 5 +- .../resources/dashboard/config.php | 5 +- .../resources/dashboard/registrations.php | 2 +- .../resources/dashboard/config.php | 3 +- .../resources/dashboard/config.php | 5 +- app/voicemails/resources/dashboard/config.php | 5 +- .../resources/dashboard/voicemails.php | 4 +- app/xml_cdr/resources/dashboard/config.php | 11 +- .../resources/dashboard/missed_calls.php | 4 +- .../resources/dashboard/recent_calls.php | 4 +- core/dashboard/app_config.php | 10 + core/dashboard/app_defaults.php | 2 + core/dashboard/app_languages.php | 220 +++++++++++++++++- core/dashboard/dashboard_edit.php | 76 ++++-- core/dashboard/index.php | 7 + core/domains/resources/dashboard/config.php | 5 +- core/domains/resources/dashboard/domains.php | 4 +- 26 files changed, 349 insertions(+), 67 deletions(-) diff --git a/app/call_block/resources/dashboard/config.php b/app/call_block/resources/dashboard/config.php index d220ccc517..96bd82114e 100644 --- a/app/call_block/resources/dashboard/config.php +++ b/app/call_block/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e75f04ff-6d1b-4b39-af0f-e1d1860327c $array['dashboard'][$x]['dashboard_name'] = 'Call Block'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-ban'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#EA4C46'; $array['dashboard'][$x]['dashboard_url'] = '/app/call_block/call_block.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -17,9 +18,9 @@ $array['dashboard'][$x]['dashboard_heading_text_color'] = ''; $array['dashboard'][$x]['dashboard_heading_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_heading_background_color'] = ''; $array['dashboard'][$x]['dashboard_heading_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#EA4C46'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; @@ -44,3 +45,4 @@ $array['dashboard'][$x]['dashboard_groups'][$y]['group_name'] = 'user'; $y++; ?> + diff --git a/app/call_forward/resources/dashboard/config.php b/app/call_forward/resources/dashboard/config.php index 29f7122a91..edc3f0c0a7 100644 --- a/app/call_forward/resources/dashboard/config.php +++ b/app/call_forward/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ba60799a-1c40-44a8-80ef-c2be4f4692f $array['dashboard'][$x]['dashboard_name'] = 'Call Forward'; $array['dashboard'][$x]['dashboard_path'] = 'call_forward/call_forward'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-forward'; +$array['dashboard'][$x]['dashboard_icon_color'] = ''; $array['dashboard'][$x]['dashboard_url'] = '/app/call_forward/call_forward.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/conference_centers/resources/dashboard/config.php b/app/conference_centers/resources/dashboard/config.php index f9fd79b610..273b533abc 100644 --- a/app/conference_centers/resources/dashboard/config.php +++ b/app/conference_centers/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'd1b26c96-6cfd-45ea-824f-0b5e16a9aab $array['dashboard'][$x]['dashboard_name'] = 'Conference Centers'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-hotel'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3'; $array['dashboard'][$x]['dashboard_url'] = '/app/conference_centers/conference_rooms.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#5d5ce3'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/conferences/resources/dashboard/config.php b/app/conferences/resources/dashboard/config.php index cb9d3cbaf7..d9cd3e9a37 100644 --- a/app/conferences/resources/dashboard/config.php +++ b/app/conferences/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c3c37d29-b654-4024-8ee4-d752b3e4db4 $array['dashboard'][$x]['dashboard_name'] = 'Conferences'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-comments'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/conferences/conferences.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292FF'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/destinations/resources/dashboard/config.php b/app/destinations/resources/dashboard/config.php index dcb4590bd7..6eb1d00670 100644 --- a/app/destinations/resources/dashboard/config.php +++ b/app/destinations/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'a294b771-a125-4d36-b51a-973540346fa $array['dashboard'][$x]['dashboard_name'] = 'Destinations'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-to-bracket'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/destinations/destinations.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/event_guard/resources/dashboard/config.php b/app/event_guard/resources/dashboard/config.php index 6e5ec741fd..49d060ee1d 100644 --- a/app/event_guard/resources/dashboard/config.php +++ b/app/event_guard/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e95f0221-d956-4baf-90c5-e38e16a20a4 $array['dashboard'][$x]['dashboard_name'] = 'Event Guard'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-person-military-pointing'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3'; $array['dashboard'][$x]['dashboard_url'] = '/app/event_guard/event_guard_logs.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -17,9 +18,9 @@ $array['dashboard'][$x]['dashboard_heading_text_color'] = ''; $array['dashboard'][$x]['dashboard_heading_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_heading_background_color'] = ''; $array['dashboard'][$x]['dashboard_heading_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#5D5CE3'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/extensions/resources/dashboard/config.php b/app/extensions/resources/dashboard/config.php index fbd82ae049..ed8eff5fb1 100644 --- a/app/extensions/resources/dashboard/config.php +++ b/app/extensions/resources/dashboard/config.php @@ -26,6 +26,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '4b7b6652-7e5f-48d3-987e-971053f093a $array['dashboard'][$x]['dashboard_name'] = 'Extensions'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-suitcase'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/extensions/extensions.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -39,9 +40,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/fax/resources/dashboard/config.php b/app/fax/resources/dashboard/config.php index 11888f256a..f769641f90 100644 --- a/app/fax/resources/dashboard/config.php +++ b/app/fax/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ea3f5a8a-fc93-47d7-a632-a733522affc $array['dashboard'][$x]['dashboard_name'] = 'Fax Server'; $array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-print'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3'; $array['dashboard'][$x]['dashboard_url'] = '/app/fax/fax.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#5d5ce3'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/ivr_menus/resources/dashboard/config.php b/app/ivr_menus/resources/dashboard/config.php index feae19b377..f3ea72026d 100644 --- a/app/ivr_menus/resources/dashboard/config.php +++ b/app/ivr_menus/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '3af7af65-7861-4d05-a0bc-36d704458fa $array['dashboard'][$x]['dashboard_name'] = 'IVR Menus'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-diagram-project'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/ivr_menus/ivr_menus.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/recordings/resources/dashboard/config.php b/app/recordings/resources/dashboard/config.php index 9c2779bda0..c0ea2d1d68 100644 --- a/app/recordings/resources/dashboard/config.php +++ b/app/recordings/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '3d8efe65-49c3-4783-844e-4ebc1c97db6 $array['dashboard'][$x]['dashboard_name'] = 'Recordings'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-microphone'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/recordings/recordings.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/registrations/resources/dashboard/config.php b/app/registrations/resources/dashboard/config.php index 700512b15e..c7a08b6a94 100644 --- a/app/registrations/resources/dashboard/config.php +++ b/app/registrations/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ce343ebe-3b54-4aad-b7e0-66de02171e7 $array['dashboard'][$x]['dashboard_name'] = 'Registrations'; $array['dashboard'][$x]['dashboard_path'] = 'registrations/registrations.php'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-list-check'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf'; $array['dashboard'][$x]['dashboard_url'] = '/app/registrations/registrations.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf'; +$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff'; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = '#5d5ce3'; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/registrations/resources/dashboard/registrations.php b/app/registrations/resources/dashboard/registrations.php index 401ee88b11..6883af3d3d 100644 --- a/app/registrations/resources/dashboard/registrations.php +++ b/app/registrations/resources/dashboard/registrations.php @@ -59,7 +59,7 @@ echo " ".escape($dashboard_label).""; echo "
\n"; echo " \n"; - echo " ".$active_registrations." / ".($active_registrations + $inactive_registrations)."\n"; + echo " ".$active_registrations." / ".($active_registrations + $inactive_registrations)."\n"; echo "
\n"; echo " \n"; if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") { diff --git a/app/ring_groups/resources/dashboard/config.php b/app/ring_groups/resources/dashboard/config.php index 790d472815..264a39606c 100644 --- a/app/ring_groups/resources/dashboard/config.php +++ b/app/ring_groups/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'b5da1d72-2cc7-422e-b05c-f07659aed41 $array['dashboard'][$x]['dashboard_name'] = 'Ring Group Forward'; $array['dashboard'][$x]['dashboard_path'] = 'ring_groups/ring_group_forward'; $array['dashboard'][$x]['dashboard_icon'] = ''; +$array['dashboard'][$x]['dashboard_icon_color'] = '0292ff'; $array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/time_conditions/resources/dashboard/config.php b/app/time_conditions/resources/dashboard/config.php index d0bbe04dea..2e5d3507bd 100644 --- a/app/time_conditions/resources/dashboard/config.php +++ b/app/time_conditions/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e9f06ed4-ddfc-4611-b246-fdeab36a49c $array['dashboard'][$x]['dashboard_name'] = 'Time Conditions'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-clock'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/time_conditions/time_conditions.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff'; +$array['dashboard'][$x]['dashboard_number_text_color'] = ''; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color'] = ''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/voicemails/resources/dashboard/config.php b/app/voicemails/resources/dashboard/config.php index e62cdc84a7..387d3af327 100644 --- a/app/voicemails/resources/dashboard/config.php +++ b/app/voicemails/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'be2aaa22-d8f1-4d9b-b5f9-14a26da329c $array['dashboard'][$x]['dashboard_name'] = 'New Messages'; $array['dashboard'][$x]['dashboard_path'] = 'voicemails/voicemails'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-envelope'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf'; $array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf'; +$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff'; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = '#03c04a'; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; diff --git a/app/voicemails/resources/dashboard/voicemails.php b/app/voicemails/resources/dashboard/voicemails.php index f1e0baaa61..9c5b571c08 100644 --- a/app/voicemails/resources/dashboard/voicemails.php +++ b/app/voicemails/resources/dashboard/voicemails.php @@ -111,7 +111,7 @@ echo "\n"; echo "
\n"; echo " \n"; - echo " ".$messages['new']."\n"; + echo " ".$messages['new']."\n"; echo "
\n"; echo "
"; } @@ -157,4 +157,4 @@ echo "\n"; -?> \ No newline at end of file +?> diff --git a/app/xml_cdr/resources/dashboard/config.php b/app/xml_cdr/resources/dashboard/config.php index 0c842eda8c..3b1b4b2e05 100644 --- a/app/xml_cdr/resources/dashboard/config.php +++ b/app/xml_cdr/resources/dashboard/config.php @@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '6ad0e056-bf3d-465a-956d-bd77d513ab3 $array['dashboard'][$x]['dashboard_name'] = 'Missed Calls'; $array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/missed_calls'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-circle-xmark'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf'; $array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf'; +$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff'; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = '#EA4C46'; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; @@ -49,6 +50,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c323e296-b1cf-42ea-9c57-fc00697915b $array['dashboard'][$x]['dashboard_name'] = 'Recent Calls'; $array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/recent_calls'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-rectangle-list'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf'; $array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_width'] = ''; @@ -62,9 +64,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = ''; $array['dashboard'][$x]['dashboard_label_text_color_hover'] = ''; $array['dashboard'][$x]['dashboard_label_background_color'] = ''; $array['dashboard'][$x]['dashboard_label_background_color_hover'] = ''; -$array['dashboard'][$x]['dashboard_number_background_color'] = ''; -$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf'; +$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff'; $array['dashboard'][$x]['dashboard_number_text_color_hover'] = ''; +$array['dashboard'][$x]['dashboard_number_background_color'] = '#417ed3'; $array['dashboard'][$x]['dashboard_background_color'] =''; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; @@ -93,6 +95,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '7fb8c79b-3fc4-4977-992a-eb0404f80fe $array['dashboard'][$x]['dashboard_name'] = 'Call Detail Records'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-list-ul'; +$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff'; $array['dashboard'][$x]['dashboard_url'] = '/app/xml_cdr/xml_cdr.php'; $array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_width'] = ''; diff --git a/app/xml_cdr/resources/dashboard/missed_calls.php b/app/xml_cdr/resources/dashboard/missed_calls.php index b00e62a973..80b3378c2d 100644 --- a/app/xml_cdr/resources/dashboard/missed_calls.php +++ b/app/xml_cdr/resources/dashboard/missed_calls.php @@ -149,7 +149,7 @@ echo "\n"; echo "
\n"; echo " \n"; - echo " ".$num_rows."\n"; + echo " ".$num_rows."\n"; echo "
\n"; echo "
"; } @@ -220,4 +220,4 @@ } echo "\n"; -?> \ No newline at end of file +?> diff --git a/app/xml_cdr/resources/dashboard/recent_calls.php b/app/xml_cdr/resources/dashboard/recent_calls.php index bdeb2148f3..8de16e74cb 100644 --- a/app/xml_cdr/resources/dashboard/recent_calls.php +++ b/app/xml_cdr/resources/dashboard/recent_calls.php @@ -147,7 +147,7 @@ echo "
\n"; echo "
\n"; echo " \n"; - echo " ".$num_rows."\n"; + echo " ".$num_rows."\n"; echo "
\n"; echo "
"; } @@ -240,4 +240,4 @@ } echo "\n"; -?> \ No newline at end of file +?> diff --git a/core/dashboard/app_config.php b/core/dashboard/app_config.php index 63f0950532..89549d09e7 100644 --- a/core/dashboard/app_config.php +++ b/core/dashboard/app_config.php @@ -78,6 +78,11 @@ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.'; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon_color'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon color.'; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_url'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; @@ -157,6 +162,11 @@ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number text color hover.'; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_number_background_color'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number background color.'; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_color'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; diff --git a/core/dashboard/app_defaults.php b/core/dashboard/app_defaults.php index 635f0cf81d..7019d63cf1 100644 --- a/core/dashboard/app_defaults.php +++ b/core/dashboard/app_defaults.php @@ -66,7 +66,9 @@ if ($domains_processed == 1) { if (!empty($row['dashboard_label_text_color_hover'])) { $array['dashboard'][$x]['dashboard_label_text_color_hover'] = $row['dashboard_label_text_color_hover']; } if (!empty($row['dashboard_number_text_color'])) { $array['dashboard'][$x]['dashboard_number_text_color'] = $row['dashboard_number_text_color']; } if (!empty($row['dashboard_number_text_color_hover'])) { $array['dashboard'][$x]['dashboard_number_text_color_hover'] = $row['dashboard_number_text_color_hover']; } + if (!empty($row['dashboard_number_background_color'])) { $array['dashboard'][$x]['dashboard_number_background_color'] = $row['dashboard_number_background_color']; } if (!empty($row['dashboard_icon'])) { $array['dashboard'][$x]['dashboard_icon'] = $row['dashboard_icon']; } + if (!empty($row['dashboard_icon_color'])) { $array['dashboard'][$x]['dashboard_icon_color'] = $row['dashboard_icon_color']; } if (!empty($row['dashboard_url'])) { $array['dashboard'][$x]['dashboard_url'] = $row['dashboard_url']; } if (!empty($row['dashboard_width'])) { $array['dashboard'][$x]['dashboard_width'] = $row['dashboard_width']; } if (!empty($row['dashboard_height'])) { $array['dashboard'][$x]['dashboard_height'] = $row['dashboard_height']; } diff --git a/core/dashboard/app_languages.php b/core/dashboard/app_languages.php index 1cdca26cda..02d88537c3 100644 --- a/core/dashboard/app_languages.php +++ b/core/dashboard/app_languages.php @@ -216,6 +216,168 @@ $text['description-dashboard_path']['zh-cn'] = "输入仪表板小部件路径 $text['description-dashboard_path']['ja-jp'] = "ダッシュボード ウィジェットのパスを入力します。"; $text['description-dashboard_path']['ko-kr'] = "대시보드 위젯 경로를 입력합니다."; +$text['description-dashboard_icon']['en-us'] = "Select an icon."; +$text['description-dashboard_icon']['en-gb'] = "Select an icon."; +$text['description-dashboard_icon']['ar-eg'] = "اختر أيقونة."; +$text['description-dashboard_icon']['de-at'] = "Wählen Sie ein Symbol."; +$text['description-dashboard_icon']['de-ch'] = "Wählen Sie ein Symbol."; +$text['description-dashboard_icon']['de-de'] = "Wählen Sie ein Symbol."; +$text['description-dashboard_icon']['el-gr'] = "Επιλέξτε ένα εικονίδιο."; +$text['description-dashboard_icon']['es-cl'] = "Selecciona un ícono."; +$text['description-dashboard_icon']['es-mx'] = "Selecciona un ícono."; +$text['description-dashboard_icon']['fr-ca'] = "Sélectionnez une icône."; +$text['description-dashboard_icon']['fr-fr'] = "Sélectionnez une icône."; +$text['description-dashboard_icon']['he-il'] = "בחר אייקון."; +$text['description-dashboard_icon']['it-it'] = "Seleziona un'icona."; +$text['description-dashboard_icon']['ka-ge'] = "აირჩიეთ ხატული."; +$text['description-dashboard_icon']['nl-nl'] = "Selecteer een pictogram."; +$text['description-dashboard_icon']['pl-pl'] = "Wybierz ikonę."; +$text['description-dashboard_icon']['pt-br'] = "Selecione um ícone."; +$text['description-dashboard_icon']['pt-pt'] = "Selecione um ícone."; +$text['description-dashboard_icon']['ro-ro'] = "Selectați o pictogramă."; +$text['description-dashboard_icon']['ru-ru'] = "Выберите значок."; +$text['description-dashboard_icon']['sv-se'] = "Välj ett ikon."; +$text['description-dashboard_icon']['uk-ua'] = "Виберіть значок."; +$text['description-dashboard_icon']['tr-tr'] = "Bir simge seçin."; +$text['description-dashboard_icon']['zh-cn'] = "选择一个图标。"; +$text['description-dashboard_icon']['ja-jp'] = "アイコンを選択してください。"; +$text['description-dashboard_icon']['ko-kr'] = "아이콘을 선택하세요."; + +$text['label-dashboard_icon_color']['en-us'] = "Color"; +$text['label-dashboard_icon_color']['en-gb'] = "Color"; +$text['label-dashboard_icon_color']['ar-eg'] = "اللون"; +$text['label-dashboard_icon_color']['de-at'] = "Farbe"; +$text['label-dashboard_icon_color']['de-ch'] = "Farbe"; +$text['label-dashboard_icon_color']['de-de'] = "Farbe"; +$text['label-dashboard_icon_color']['el-gr'] = "Χρώμα"; +$text['label-dashboard_icon_color']['es-cl'] = "Color"; +$text['label-dashboard_icon_color']['es-mx'] = "Color"; +$text['label-dashboard_icon_color']['fr-ca'] = "Couleur"; +$text['label-dashboard_icon_color']['fr-fr'] = "Couleur"; +$text['label-dashboard_icon_color']['he-il'] = "צבע"; +$text['label-dashboard_icon_color']['it-it'] = "Colore"; +$text['label-dashboard_icon_color']['ka-ge'] = "ფერი"; +$text['label-dashboard_icon_color']['nl-nl'] = "Kleur"; +$text['label-dashboard_icon_color']['pl-pl'] = "Kolor"; +$text['label-dashboard_icon_color']['pt-br'] = "Cor"; +$text['label-dashboard_icon_color']['pt-pt'] = "Cor"; +$text['label-dashboard_icon_color']['ro-ro'] = "Culoare"; +$text['label-dashboard_icon_color']['ru-ru'] = "Цвет"; +$text['label-dashboard_icon_color']['sv-se'] = "Färg"; +$text['label-dashboard_icon_color']['uk-ua'] = "Колір"; +$text['label-dashboard_icon_color']['tr-tr'] = "Renk"; +$text['label-dashboard_icon_color']['zh-cn'] = "颜色"; +$text['label-dashboard_icon_color']['ja-jp'] = "色"; +$text['label-dashboard_icon_color']['ko-kr'] = "색상"; + +$text['description-dashboard_icon_color']['en-us'] = "Enter the icon color."; +$text['description-dashboard_icon_color']['en-gb'] = "Enter the icon color."; +$text['description-dashboard_icon_color']['ar-eg'] = "أدخل لون الأيقونة."; +$text['description-dashboard_icon_color']['de-at'] = "Geben Sie die Symbolfarbe ein."; +$text['description-dashboard_icon_color']['de-ch'] = "Geben Sie die Symbolfarbe ein."; +$text['description-dashboard_icon_color']['de-de'] = "Geben Sie die Symbolfarbe ein."; +$text['description-dashboard_icon_color']['el-gr'] = "Εισάγετε το χρώμα του εικονιδίου."; +$text['description-dashboard_icon_color']['es-cl'] = "Ingresa el color del ícono."; +$text['description-dashboard_icon_color']['es-mx'] = "Ingresa el color del ícono."; +$text['description-dashboard_icon_color']['fr-ca'] = "Entrez la couleur de l'icône."; +$text['description-dashboard_icon_color']['fr-fr'] = "Entrez la couleur de l'icône."; +$text['description-dashboard_icon_color']['he-il'] = "הזן את צבע האייקון."; +$text['description-dashboard_icon_color']['it-it'] = "Inserisci il colore dell'icona."; +$text['description-dashboard_icon_color']['ka-ge'] = "შეიყვანეთ ხატულის ფერი."; +$text['description-dashboard_icon_color']['nl-nl'] = "Voer de kleur van het pictogram in."; +$text['description-dashboard_icon_color']['pl-pl'] = "Wprowadź kolor ikony."; +$text['description-dashboard_icon_color']['pt-br'] = "Digite a cor do ícone."; +$text['description-dashboard_icon_color']['pt-pt'] = "Digite a cor do ícone."; +$text['description-dashboard_icon_color']['ro-ro'] = "Introduceți culoarea pictogramei."; +$text['description-dashboard_icon_color']['ru-ru'] = "Введите цвет значка."; +$text['description-dashboard_icon_color']['sv-se'] = "Ange ikons färg."; +$text['description-dashboard_icon_color']['uk-ua'] = "Введіть колір значка."; +$text['description-dashboard_icon_color']['tr-tr'] = "Simge rengini girin."; +$text['description-dashboard_icon_color']['zh-cn'] = "输入图标颜色。"; +$text['description-dashboard_icon_color']['ja-jp'] = "アイコンの色を入力してください。"; +$text['description-dashboard_icon_color']['ko-kr'] = "아이콘 색상을 입력하세요."; + +$text['description-dashboard_url']['en-us'] = "Enter the URL."; +$text['description-dashboard_url']['en-gb'] = "Enter the URL."; +$text['description-dashboard_url']['ar-eg'] = "أدخل الرابط."; +$text['description-dashboard_url']['de-at'] = "Geben Sie die URL ein."; +$text['description-dashboard_url']['de-ch'] = "Geben Sie die URL ein."; +$text['description-dashboard_url']['de-de'] = "Geben Sie die URL ein."; +$text['description-dashboard_url']['el-gr'] = "Εισάγετε τη διεύθυνση URL."; +$text['description-dashboard_url']['es-cl'] = "Ingrese la URL."; +$text['description-dashboard_url']['es-mx'] = "Ingrese la URL."; +$text['description-dashboard_url']['fr-ca'] = "Entrez l'URL."; +$text['description-dashboard_url']['fr-fr'] = "Entrez l'URL."; +$text['description-dashboard_url']['he-il'] = "הכנס את ה-URL."; +$text['description-dashboard_url']['it-it'] = "Inserisci l'URL."; +$text['description-dashboard_url']['ka-ge'] = "შეიყვანეთ URL-მისამართი."; +$text['description-dashboard_url']['nl-nl'] = "Voer de URL in."; +$text['description-dashboard_url']['pl-pl'] = "Wprowadź URL."; +$text['description-dashboard_url']['pt-br'] = "Digite a URL."; +$text['description-dashboard_url']['pt-pt'] = "Digite a URL."; +$text['description-dashboard_url']['ro-ro'] = "Introduceți URL-ul."; +$text['description-dashboard_url']['ru-ru'] = "Введите URL."; +$text['description-dashboard_url']['sv-se'] = "Ange URL:en."; +$text['description-dashboard_url']['uk-ua'] = "Введіть URL."; +$text['description-dashboard_url']['tr-tr'] = "URL'yi girin."; +$text['description-dashboard_url']['zh-cn'] = "请输入网址."; +$text['description-dashboard_url']['ja-jp'] = "URLを入力してください。"; +$text['description-dashboard_url']['ko-kr'] = "URL을 입력하세요."; + +$text['description-dashboard_width']['en-us'] = "Enter the window width."; +$text['description-dashboard_width']['en-gb'] = "Enter the window width."; +$text['description-dashboard_width']['ar-eg'] = "أدخل عرض النافذة."; +$text['description-dashboard_width']['de-at'] = "Geben Sie die Fensterbreite ein."; +$text['description-dashboard_width']['de-ch'] = "Geben Sie die Fensterbreite ein."; +$text['description-dashboard_width']['de-de'] = "Geben Sie die Fensterbreite ein."; +$text['description-dashboard_width']['el-gr'] = "Εισάγετε το πλάτος του παραθύρου."; +$text['description-dashboard_width']['es-cl'] = "Ingrese el ancho de la ventana."; +$text['description-dashboard_width']['es-mx'] = "Ingrese el ancho de la ventana."; +$text['description-dashboard_width']['fr-ca'] = "Entrez la largeur de la fenêtre."; +$text['description-dashboard_width']['fr-fr'] = "Entrez la largeur de la fenêtre."; +$text['description-dashboard_width']['he-il'] = "הכנס את רוחב החלון."; +$text['description-dashboard_width']['it-it'] = "Inserisci la larghezza della finestra."; +$text['description-dashboard_width']['ka-ge'] = "შეიყვანეთ ფანჯრის სიგანე."; +$text['description-dashboard_width']['nl-nl'] = "Voer de vensterbreedte in."; +$text['description-dashboard_width']['pl-pl'] = "Wprowadź szerokość okna."; +$text['description-dashboard_width']['pt-br'] = "Digite a largura da janela."; +$text['description-dashboard_width']['pt-pt'] = "Digite a largura da janela."; +$text['description-dashboard_width']['ro-ro'] = "Introduceți lățimea ferestrei."; +$text['description-dashboard_width']['ru-ru'] = "Введите ширину окна."; +$text['description-dashboard_width']['sv-se'] = "Ange fönstrets bredd."; +$text['description-dashboard_width']['uk-ua'] = "Введіть ширину вікна."; +$text['description-dashboard_width']['tr-tr'] = "Pencere genişliğini girin."; +$text['description-dashboard_width']['zh-cn'] = "请输入窗口宽度."; +$text['description-dashboard_width']['ja-jp'] = "ウィンドウの幅を入力してください。"; +$text['description-dashboard_width']['ko-kr'] = "창 너비를 입력하세요."; + +$text['description-dashboard_height']['en-us'] = "Enter the window height."; +$text['description-dashboard_height']['en-gb'] = "Enter the window height."; +$text['description-dashboard_height']['ar-eg'] = "أدخل ارتفاع النافذة."; +$text['description-dashboard_height']['de-at'] = "Geben Sie die Fensterhöhe ein."; +$text['description-dashboard_height']['de-ch'] = "Geben Sie die Fensterhöhe ein."; +$text['description-dashboard_height']['de-de'] = "Geben Sie die Fensterhöhe ein."; +$text['description-dashboard_height']['el-gr'] = "Εισάγετε το ύψος του παραθύρου."; +$text['description-dashboard_height']['es-cl'] = "Ingrese la altura de la ventana."; +$text['description-dashboard_height']['es-mx'] = "Ingrese la altura de la ventana."; +$text['description-dashboard_height']['fr-ca'] = "Entrez la hauteur de la fenêtre."; +$text['description-dashboard_height']['fr-fr'] = "Entrez la hauteur de la fenêtre."; +$text['description-dashboard_height']['he-il'] = "הכנס את גובה החלון."; +$text['description-dashboard_height']['it-it'] = "Inserisci l'altezza della finestra."; +$text['description-dashboard_height']['ka-ge'] = "შეიყვანეთ ფანჯრის სიმაღლე."; +$text['description-dashboard_height']['nl-nl'] = "Voer de vensterhoogte in."; +$text['description-dashboard_height']['pl-pl'] = "Wprowadź wysokość okna."; +$text['description-dashboard_height']['pt-br'] = "Digite a altura da janela."; +$text['description-dashboard_height']['pt-pt'] = "Digite a altura da janela."; +$text['description-dashboard_height']['ro-ro'] = "Introduceți înălțimea ferestrei."; +$text['description-dashboard_height']['ru-ru'] = "Введите высоту окна."; +$text['description-dashboard_height']['sv-se'] = "Ange fönstrets höjd."; +$text['description-dashboard_height']['uk-ua'] = "Введіть висоту вікна."; +$text['description-dashboard_height']['tr-tr'] = "Pencere yüksekliğini girin."; +$text['description-dashboard_height']['zh-cn'] = "请输入窗口高度."; +$text['description-dashboard_height']['ja-jp'] = "ウィンドウの高さを入力してください。"; +$text['description-dashboard_height']['ko-kr'] = "창 높이를 입력하세요."; + $text['label-dashboard_content_text_align']['en-us'] = "Text Align"; $text['label-dashboard_content_text_align']['en-gb'] = "Text Align"; $text['label-dashboard_content_text_align']['ar-eg'] = "محاذاة النص"; @@ -488,7 +650,7 @@ $text['label-doughnut']['ko-kr'] = "도넛"; $text['label-progress_bar']['en-us'] = "Progress Bar"; $text['label-progress_bar']['en-gb'] = "Progress Bar"; -$text['label-progress_bar']['ar-eg'] = "شريط التقدم"; +$text['label-progress_bar']['ar-eg'] = "شريط التقدم"; $text['label-progress_bar']['de-at'] = "Fortschrittsbalken"; $text['label-progress_bar']['de-ch'] = "Fortschrittsbalken"; $text['label-progress_bar']['de-de'] = "Fortschrittsbalken"; @@ -511,7 +673,7 @@ $text['label-progress_bar']['uk-ua'] = "Індикатор виконання"; $text['label-progress_bar']['tr-tr'] = "İlerleme Çubuğu"; $text['label-progress_bar']['zh-cn'] = "进度条"; $text['label-progress_bar']['ja-jp'] = "進行バー"; -$text['label-progress_bar']['ko-kr'] = "진행 막대"; +$text['label-progress_bar']['ko-kr'] = "진행 막대"; $text['label-dashboard_label_enabled']['en-us'] = "Label Enabled"; $text['label-dashboard_label_enabled']['en-gb'] = "Label Enabled"; @@ -891,6 +1053,60 @@ $text['description-dashboard_number_text_color_hover']['zh-cn'] = "输入仪表 $text['description-dashboard_number_text_color_hover']['ja-jp'] = "ダッシュボード ウィジェットの番号、テキストの色、ホバーを入力します。"; $text['description-dashboard_number_text_color_hover']['ko-kr'] = "대시보드 위젯 번호 텍스트 색상을 마우스로 가리키면 입력됩니다."; +$text['label-dashboard_number_background_color']['en-us'] = "Number Background Color"; +$text['label-dashboard_number_background_color']['en-gb'] = "Number Background Color"; +$text['label-dashboard_number_background_color']['ar-eg'] = "لون خلفية الرقم"; +$text['label-dashboard_number_background_color']['de-at'] = "Hintergrundfarbe der Zahl"; +$text['label-dashboard_number_background_color']['de-ch'] = "Hintergrundfarbe der Zahl"; +$text['label-dashboard_number_background_color']['de-de'] = "Hintergrundfarbe der Zahl"; +$text['label-dashboard_number_background_color']['el-gr'] = "Χρώμα φόντου αριθμού"; +$text['label-dashboard_number_background_color']['es-cl'] = "Color de fondo del número"; +$text['label-dashboard_number_background_color']['es-mx'] = "Color de fondo del número"; +$text['label-dashboard_number_background_color']['fr-ca'] = "Couleur de fond du nombre"; +$text['label-dashboard_number_background_color']['fr-fr'] = "Couleur de fond du nombre"; +$text['label-dashboard_number_background_color']['he-il'] = "צבע רקע המספר"; +$text['label-dashboard_number_background_color']['it-it'] = "Colore di sfondo del numero"; +$text['label-dashboard_number_background_color']['ka-ge'] = "რიცხვის ფონური ფერი"; +$text['label-dashboard_number_background_color']['nl-nl'] = "Achtergrondkleur van het nummer"; +$text['label-dashboard_number_background_color']['pl-pl'] = "Kolor tła liczby"; +$text['label-dashboard_number_background_color']['pt-br'] = "Cor de fundo do número"; +$text['label-dashboard_number_background_color']['pt-pt'] = "Cor de fundo do número"; +$text['label-dashboard_number_background_color']['ro-ro'] = "Culoare fundal număr"; +$text['label-dashboard_number_background_color']['ru-ru'] = "Цвет фона числа"; +$text['label-dashboard_number_background_color']['sv-se'] = "Nummerbakgrundsfärg"; +$text['label-dashboard_number_background_color']['uk-ua'] = "Колір фону числа"; +$text['label-dashboard_number_background_color']['tr-tr'] = "Numara Arka Plan Rengi"; +$text['label-dashboard_number_background_color']['zh-cn'] = "数字背景颜色"; +$text['label-dashboard_number_background_color']['ja-jp'] = "数字の背景色"; +$text['label-dashboard_number_background_color']['ko-kr'] = "숫자 배경 색상"; + +$text['description-dashboard_number_background_color']['en-us'] = "Enter the dashboard widget number background color."; +$text['description-dashboard_number_background_color']['en-gb'] = "Enter the dashboard widget number background color."; +$text['description-dashboard_number_background_color']['ar-eg'] = "أدخل لون خلفية الرقم في عنصر واجهة المستخدم على لوحة التحكم."; +$text['description-dashboard_number_background_color']['de-at'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein."; +$text['description-dashboard_number_background_color']['de-ch'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein."; +$text['description-dashboard_number_background_color']['de-de'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein."; +$text['description-dashboard_number_background_color']['el-gr'] = "Εισάγετε το χρώμα φόντου του αριθμού στο widget του πίνακα ελέγχου."; +$text['description-dashboard_number_background_color']['es-cl'] = "Ingrese el color de fondo del número en el widget del tablero."; +$text['description-dashboard_number_background_color']['es-mx'] = "Ingrese el color de fondo del número en el widget del tablero."; +$text['description-dashboard_number_background_color']['fr-ca'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord."; +$text['description-dashboard_number_background_color']['fr-fr'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord."; +$text['description-dashboard_number_background_color']['he-il'] = "הזן את צבע הרקע של המספר בווידג'ט בלוח המחוונים."; +$text['description-dashboard_number_background_color']['it-it'] = "Inserisci il colore di sfondo del numero nel widget del cruscotto."; +$text['description-dashboard_number_background_color']['ka-ge'] = "შეიტანეთ ფონი რიცხვის ფონური ფერი ვიჯეტში."; +$text['description-dashboard_number_background_color']['nl-nl'] = "Voer de achtergrondkleur van het nummer in het dashboardwidget in."; +$text['description-dashboard_number_background_color']['pl-pl'] = "Wprowadź kolor tła liczby w widżecie pulpitu nawigacyjnego."; +$text['description-dashboard_number_background_color']['pt-br'] = "Digite a cor de fundo do número no widget do painel."; +$text['description-dashboard_number_background_color']['pt-pt'] = "Digite a cor de fundo do número no widget do painel."; +$text['description-dashboard_number_background_color']['ro-ro'] = "Introduceți culoarea de fundal a numărului în widgetul tabloului de bord."; +$text['description-dashboard_number_background_color']['ru-ru'] = "Введите цвет фона числа в виджете панели управления."; +$text['description-dashboard_number_background_color']['sv-se'] = "Ange bakgrundsfärgen för numret i dashboard-widgeten."; +$text['description-dashboard_number_background_color']['uk-ua'] = "Введіть колір фону числа в віджеті панелі інструментів."; +$text['description-dashboard_number_background_color']['tr-tr'] = "Panel aracındaki numara arka plan rengini girin."; +$text['description-dashboard_number_background_color']['zh-cn'] = "输入仪表板小部件中数字的背景颜色。"; +$text['description-dashboard_number_background_color']['ja-jp'] = "ダッシュボードウィジェットの数字の背景色を入力してください。"; +$text['description-dashboard_number_background_color']['ko-kr'] = "대시보드 위젯 숫자의 배경 색상을 입력하세요."; + $text['label-dashboard_background_color']['en-us'] = "Background Color"; $text['label-dashboard_background_color']['en-gb'] = "Background Color"; $text['label-dashboard_background_color']['ar-eg'] = "لون الخلفية"; diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index 225449b07e..24915a82c3 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -47,6 +47,7 @@ $dashboard_path = 'dashboard/icon'; //$dashboard_path = ''; $dashboard_icon = ''; + $dashboard_icon_color = ''; $dashboard_url = ''; $dashboard_target = 'self'; $dashboard_width = ''; @@ -58,6 +59,7 @@ $dashboard_label_text_color = ''; $dashboard_label_background_color = ''; $dashboard_number_text_color = ''; + $dashboard_number_background_color = ''; $dashboard_groups = []; $dashboard_column_span = ''; $dashboard_row_span = ''; @@ -83,6 +85,7 @@ $dashboard_name = $_POST["dashboard_name"] ?? ''; $dashboard_path = $_POST["dashboard_path"] ?? ''; $dashboard_icon = $_POST["dashboard_icon"] ?? ''; + $dashboard_icon_color = $_POST["dashboard_icon_color"] ?? ''; $dashboard_url = $_POST["dashboard_url"] ?? ''; $dashboard_target = $_POST["dashboard_target"] ?? 'self'; $dashboard_width = $_POST["dashboard_width"] ?? ''; @@ -99,6 +102,7 @@ $dashboard_label_background_color_hover = $_POST["dashboard_label_background_color_hover"] ?? ''; $dashboard_number_text_color = $_POST["dashboard_number_text_color"] ?? ''; $dashboard_number_text_color_hover = $_POST["dashboard_number_text_color_hover"] ?? ''; + $dashboard_number_background_color = $_POST["dashboard_number_background_color"] ?? ''; $dashboard_background_color = $_POST["dashboard_background_color"] ?? ''; $dashboard_background_color_hover = $_POST["dashboard_background_color_hover"] ?? ''; $dashboard_detail_background_color = $_POST["dashboard_detail_background_color"] ?? ''; @@ -121,6 +125,7 @@ $dashboard_name = trim(preg_replace('/[^a-zA-Z0-9 _\-\/.#]/', '', $dashboard_name)); $dashboard_path = preg_replace($text_pattern, '', strtolower($dashboard_path)); $dashboard_icon = preg_replace($text_pattern, '', $dashboard_icon); + $dashboard_icon_color = preg_replace($text_pattern, '', $dashboard_icon_color); $dashboard_url = trim(preg_replace($text_pattern, '', $dashboard_url)); $dashboard_target = trim(preg_replace($text_pattern, '', $dashboard_target)); $dashboard_width = trim(preg_replace($text_pattern, '', $dashboard_width)); @@ -136,6 +141,7 @@ $dashboard_label_background_color_hover = preg_replace($text_pattern, '', $dashboard_label_background_color_hover); $dashboard_number_text_color = preg_replace($text_pattern, '', $dashboard_number_text_color); $dashboard_number_text_color_hover = preg_replace($text_pattern, '', $dashboard_number_text_color_hover); + $dashboard_number_background_color = preg_replace($text_pattern, '', $dashboard_number_background_color); $dashboard_background_color = preg_replace($text_pattern, '', $dashboard_background_color); $dashboard_background_color_hover = preg_replace($text_pattern, '', $dashboard_background_color_hover); $dashboard_detail_background_color = preg_replace($text_pattern, '', $dashboard_detail_background_color); @@ -273,6 +279,7 @@ $array['dashboard'][0]['dashboard_name'] = $dashboard_name; $array['dashboard'][0]['dashboard_path'] = $dashboard_path; $array['dashboard'][0]['dashboard_icon'] = $dashboard_icon; + $array['dashboard'][0]['dashboard_icon_color'] = $dashboard_icon_color; $array['dashboard'][0]['dashboard_url'] = $dashboard_url; $array['dashboard'][0]['dashboard_width'] = $dashboard_width; $array['dashboard'][0]['dashboard_height'] = $dashboard_height; @@ -288,6 +295,7 @@ $array['dashboard'][0]['dashboard_label_background_color_hover'] = $dashboard_label_background_color_hover; $array['dashboard'][0]['dashboard_number_text_color'] = $dashboard_number_text_color; $array['dashboard'][0]['dashboard_number_text_color_hover'] = $dashboard_number_text_color_hover; + $array['dashboard'][0]['dashboard_number_background_color'] = $dashboard_number_background_color; $array['dashboard'][0]['dashboard_background_color'] = $dashboard_background_color; $array['dashboard'][0]['dashboard_background_color_hover'] = $dashboard_background_color_hover; $array['dashboard'][0]['dashboard_detail_background_color'] = $dashboard_detail_background_color; @@ -338,6 +346,7 @@ $sql .= " dashboard_name, "; $sql .= " dashboard_path, "; $sql .= " dashboard_icon, "; + $sql .= " dashboard_icon_color, "; $sql .= " dashboard_url, "; $sql .= " dashboard_width, "; $sql .= " dashboard_height, "; @@ -353,6 +362,7 @@ $sql .= " dashboard_label_background_color_hover, "; $sql .= " dashboard_number_text_color, "; $sql .= " dashboard_number_text_color_hover, "; + $sql .= " dashboard_number_background_color, "; $sql .= " dashboard_background_color, "; $sql .= " dashboard_background_color_hover, "; $sql .= " dashboard_detail_background_color, "; @@ -373,6 +383,7 @@ $dashboard_name = $row["dashboard_name"]; $dashboard_path = $row["dashboard_path"]; $dashboard_icon = $row["dashboard_icon"]; + $dashboard_icon_color = $row["dashboard_icon_color"]; $dashboard_url = $row["dashboard_url"]; $dashboard_width = $row["dashboard_width"]; $dashboard_height = $row["dashboard_height"]; @@ -388,6 +399,7 @@ $dashboard_label_background_color_hover = $row["dashboard_label_background_color_hover"]; $dashboard_number_text_color = $row["dashboard_number_text_color"]; $dashboard_number_text_color_hover = $row["dashboard_number_text_color_hover"]; + $dashboard_number_background_color = $row["dashboard_number_background_color"]; $dashboard_background_color = $row["dashboard_background_color"]; $dashboard_background_color_hover = $row["dashboard_background_color_hover"]; $dashboard_detail_background_color = $row["dashboard_detail_background_color"]; @@ -650,9 +662,21 @@ else { echo " "; } + echo $text['description-dashboard_icon']."\n"; echo " "; echo " "; + echo "\n"; + echo "\n"; + echo $text['label-dashboard_icon_color']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-dashboard_icon_color']."\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo " ".$text['label-link']."\n"; @@ -704,10 +728,7 @@ echo "\n"; } - if ( - $action == "add" || - $dashboard_path == "dashboard/content" - ) { + if ($action == "add" || $dashboard_path == "dashboard/content") { echo "\n"; echo "\n"; echo " ".$text['label-content']."\n"; @@ -734,11 +755,7 @@ echo "\n"; } - if ( - $action == "add" || - $dashboard_path == "dashboard/content" || - $dashboard_path == "dashboard/icon" - ) { + if ($action == "add" || $dashboard_path == "dashboard/content" || $dashboard_path == "dashboard/icon") { echo "\n"; echo "\n"; echo " ".$text['label-details']."\n"; @@ -793,8 +810,7 @@ echo "\n"; echo "\n"; - if ( - $dashboard_path == "voicemails/voicemails" || + if ($dashboard_path == "voicemails/voicemails" || $dashboard_path == "xml_cdr/missed_calls" || $dashboard_path == "xml_cdr/recent_calls" || $dashboard_path == "system/system_status" || @@ -808,8 +824,7 @@ $dashboard_path == "registrations/registrations" || $dashboard_path == "domains/domains" || $dashboard_path == "extensions/caller_id" || - $dashboard_path == "maintenance/maintenance" - ) { + $dashboard_path == "maintenance/maintenance") { echo "\n"; echo "\n"; echo $text['label-dashboard_chart_type']."\n"; @@ -900,18 +915,18 @@ echo "\n"; } - echo "\n"; - echo "\n"; - echo $text['label-dashboard_number_text_color']."\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-dashboard_number_text_color']."\n"; - echo "\n"; - echo "\n"; + if ($dashboard_path != "dashboard/icon") { + echo "\n"; + echo "\n"; + echo $text['label-dashboard_number_text_color']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-dashboard_number_text_color']."\n"; + echo "\n"; + echo "\n"; - if ($action == "add" || $dashboard_path == "dashboard/icon") { echo "\n"; echo "\n"; echo $text['label-dashboard_number_text_color_hover']."\n"; @@ -923,6 +938,19 @@ echo "\n"; echo "\n"; } + + if ($dashboard_chart_type == "icon") { + echo "\n"; + echo "\n"; + echo $text['label-dashboard_number_background_color']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-dashboard_number_background_color']."\n"; + echo "\n"; + echo "\n"; + } echo "\n"; echo "\n"; diff --git a/core/dashboard/index.php b/core/dashboard/index.php index f58b4da2b3..c9b92880dc 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -78,6 +78,7 @@ $sql .= "dashboard_name, "; $sql .= "dashboard_path, "; $sql .= "dashboard_icon, "; + $sql .= "dashboard_icon_color, "; $sql .= "dashboard_url, "; $sql .= "dashboard_target, "; $sql .= "dashboard_width, "; @@ -93,6 +94,7 @@ $sql .= "dashboard_label_background_color_hover, "; $sql .= "dashboard_number_text_color, "; $sql .= "dashboard_number_text_color_hover, "; + $sql .= "dashboard_number_background_color, "; $sql .= "dashboard_background_color, "; $sql .= "dashboard_background_color_hover, "; $sql .= "dashboard_detail_background_color, "; @@ -263,6 +265,11 @@ div.hud_chart { ".escape($dashboard_label).""; echo "
\n"; echo " \n"; - echo " ".$domain_count."\n"; + echo " ".$domain_count."\n"; echo "
\n"; echo " \n"; if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") { @@ -46,4 +46,4 @@ echo " "; echo "\n"; -?> \ No newline at end of file +?> From a9b2076fbee8858961588ee0c3ed1b3f7c3d3cbc Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 11 Dec 2024 22:00:18 -0700 Subject: [PATCH 02/10] Update the cisco 192 template --- .../provision/cisco/spa192/{$mac}.xml | 643 +++++++++--------- 1 file changed, 338 insertions(+), 305 deletions(-) diff --git a/resources/templates/provision/cisco/spa192/{$mac}.xml b/resources/templates/provision/cisco/spa192/{$mac}.xml index 7638a0506f..969fd2086b 100644 --- a/resources/templates/provision/cisco/spa192/{$mac}.xml +++ b/resources/templates/provision/cisco/spa192/{$mac}.xml @@ -1,107 +1,114 @@ - + - - - - - + + + + + 3 - + No -Parametersfor ProvisioningTab - + + + + + + + Yes Yes 2 - + 0 0 30 20 Yes Yes - - + + Yes +Yes [--uid {$http_auth_username} --pwd {$http_auth_password}]http://{$domain_name}{$project_path}/app/provision/?mac=$MA {else} http://{$domain_name}{$project_path}/app/provision/?mac=$MA {/if} - - - - -HTTP + + + +66,160,159,150 +https $PN $MAC -- Requesting resync $SCHEME://$SERVIP:$PORT$PATH $PN $MAC -- Successful resync $SCHEME://$SERVIP:$PORT$PATH $PN $MAC -- Resync failed: $ERR - - + + - + Yes 3600 - - + + $PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH $PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR $PN $MAC -- Upgrade failed: $ERR - - + + - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + + + 70 5 2 $VERSION $VERSION - - - + + + application/dtmf-relay application/hook-flash -Yes +No No No Yes Yes ptime 5060 -5090 +5080 No No PAID-RPID-FROM - + .5 4 5 @@ -120,15 +127,15 @@ Parametersfor ProvisioningTab 0 0 - - - - - - - + + + + + + + - + 16384 32768 0.020 @@ -137,11 +144,12 @@ Parametersfor ProvisioningTab 0 No Yes +Yes - + 100 101 - + 2 112 113 @@ -154,7 +162,7 @@ Parametersfor ProvisioningTab G729a encaprtp - + No No No @@ -163,28 +171,29 @@ Parametersfor ProvisioningTab No No No - - - + + + 15 No - - -Yes + - + +Yes + + No 30 - + - + Yes Yes $NOTIFY $PROXY - + 0x68 3 0xb8 @@ -192,13 +201,13 @@ Parametersfor ProvisioningTab high Yes - + UDP 5060 No - + Yes - + Yes No 0 @@ -213,47 +222,54 @@ Parametersfor ProvisioningTab Yes No No +Yes - + No - + Yes - + 3 No - - -No + + +No +Optional - + + + + + + {$domain_name} {$account.1.outbound_proxy_primary} {if isset ($account.1.outbound_proxy_primary)}Yes{else}No{/if} Yes - + Yes No {$account.1.register_expires} No -Yes -Yes +No +No 3600 Normal - - + +2147483647 No - + {$account.1.display_name} {$account.1.user_id} {$account.1.password} No - - - + + + - -{$spa_call_waiting} + +$spa_call_waiting} Yes Yes Yes @@ -284,11 +300,11 @@ Parametersfor ProvisioningTab Yes Yes - + G711u Unspecified Unspecified -Yes +No Default Yes No @@ -302,7 +318,7 @@ Parametersfor ProvisioningTab Yes ReINVITE Yes -Yes +Yes Auto No Strict @@ -317,31 +333,32 @@ Parametersfor ProvisioningTab No No - + {$spa_dial_plan} - + Forward Forward Forward - + - - -Yes + - + +Yes + + No 30 - + - -Yes -Yes + +No +No $NOTIFY $PROXY - + 0x68 3 0xb8 @@ -349,13 +366,13 @@ Parametersfor ProvisioningTab high Yes - + UDP 5061 No - + Yes - + Yes No 0 @@ -370,46 +387,53 @@ Parametersfor ProvisioningTab Yes No No +Yes - + No - + Yes - + 3 No - - + + No +Optional - -{$domain_name} -{$account.2.outbound_proxy_primary} -{if isset ($account.2.outbound_proxy_primary)}Yes{else}No{/if} + +{$domain_name} +{$account.2.outbound_proxy_primary} +{if isset ($account.2.outbound_proxy_primary)}Yes{else}No{/if} + + + + +No Yes - + Yes No {$account.2.register_expires} No -Yes -Yes +No +No 3600 Normal - - + +2147483647 No - + {$account.2.display_name} {$account.2.user_id} {$account.2.password} No - - - + + + - + {$spa_call_waiting} Yes Yes @@ -441,11 +465,11 @@ Parametersfor ProvisioningTab Yes Yes - + G711u Unspecified Unspecified -Yes +No Default Yes No @@ -474,55 +498,56 @@ Parametersfor ProvisioningTab No No - + {$spa_dial_plan} - + Forward Forward Forward - + - - - - - + + + + + + 20 - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + Yes No No @@ -537,17 +562,17 @@ Parametersfor ProvisioningTab media Yes - - - - - - - - - + + + + + + + + + - + 1 1 8 @@ -558,46 +583,47 @@ Parametersfor ProvisioningTab 0 No - - - - - + + + + + + 20 - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + Yes No No @@ -612,17 +638,17 @@ Parametersfor ProvisioningTab media Yes - - - - - - - - - + + + + + + + + + - + 1 1 8 @@ -633,8 +659,9 @@ Parametersfor ProvisioningTab 0 No - - + + + 350@-19,440@-19;10(*/0/1+2) 420@-19,520@-19;10(*/0/1+2) 420@-16;10(*/0/1) @@ -655,9 +682,9 @@ Parametersfor ProvisioningTab 350@-19;20(.1/.1/1,.1/9.7/1) 397@-19,507@-19;15(0/2/0,.2/.1/1,.1/2.1/2) 350@-16;*(.1/.1/1) - + - + 60(2/4) 60(.8/.4,.8/4) 60(.4/.2,.4/.2,.8/4) @@ -667,17 +694,17 @@ Parametersfor ProvisioningTab 60(.4/.2,.4/.2,.4/4) 60(0.25/9.75) - + *(.3/9.7) -30(.1/.1,.1/9.7) -30(.1/.1,.1/.1,.1/9.7) +30(.1/.1, .1/9.7) +30(.1/.1, .1/.1, .1/9.7) 30(.1/.1,.3/.1,.1/9.3) 1(.5/.5) 30(.1/.1,.3/.2,.3/9.1) 30(.3/.1,.3/.1,.1/9.1) 2.3(.3/2) - + Bellcore-r1 Bellcore-r2 Bellcore-r3 @@ -687,14 +714,14 @@ Parametersfor ProvisioningTab Bellcore-r7 Bellcore-r8 - + Trapezoid 20 85 440@-10 No - + .1 .9 0 @@ -708,7 +735,7 @@ Parametersfor ProvisioningTab 2 .5 - + *69 *07 *98 @@ -751,19 +778,19 @@ Parametersfor ProvisioningTab *17 *18 *19 - - + + *99 #99 *03 - - + + - - - + + + - + *017110 *027110 *017111 @@ -773,7 +800,7 @@ Parametersfor ProvisioningTab *01729 *02729 - + 600 -3 -3 @@ -786,75 +813,77 @@ Parametersfor ProvisioningTab bell 202 Default - - - + + + + + No 2 -0 -0 -0 +0 +0 +0 -dh +dh 0 0 0.0.0.0:0.0.0.0:0.0.0.0 0 0 - - - + + + 0:5:30 0 0 1 -0 - +0 + 64 - + 1 -auto +auto 0 - +00:00:00:00:00:00 ATA192-MPP - -2 - -2 - + +2 + +2 + 1 192.168.15.1 -255.255.255.0 - -0 +255.255.255.0 + +0 0.0.0.0 - - - + + + 1 192.168.15.100 50 0 -8.8.4.4 +1.1.1.1 192.168.15.1 -0 +0 0 2001:: @@ -868,10 +897,10 @@ Parametersfor ProvisioningTab 0 - + - + 0 @@ -882,24 +911,27 @@ Parametersfor ProvisioningTab private 0 v3rwuser -MD5 - -DES - +MD5 + +DES + 192.168.15.100 162 -v1 +v1 {$spa_time_zone} 1 -auto -0.ca.pool.ntp.org +auto +0.ciscosb.pool.ntp.org 3600 0 -1 +1 - + + +Off + 0 @@ -909,7 +941,7 @@ Parametersfor ProvisioningTab 1 1 -1 +{$cisco_router_mode} 0 1 @@ -929,37 +961,38 @@ Parametersfor ProvisioningTab 0 - - - - - - + + + + + + 86400 1 0 -0 -200 +0 +512 - + 514 - + 514 -15 - -0 +15 + +0 0 + -admin - +admin + cisco - + 0 - - + + From 7a33e79f4af6f14e04704a115cf83707a1f432aa Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 11 Dec 2024 22:06:44 -0700 Subject: [PATCH 03/10] Add the spa_router_mode --- app/cisco/app_config.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/cisco/app_config.php b/app/cisco/app_config.php index 34017ad789..442aa4ca55 100644 --- a/app/cisco/app_config.php +++ b/app/cisco/app_config.php @@ -176,5 +176,13 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "SPA PC VLAN ID. Options 0 to 4094."; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "78637de4-ec12-4d41-8c65-39afe50d2b02"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "spa_router_mode"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "0"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Options: 0:Bridge, 1:NAT."; + $y++; ?> From 7e5ac499efe61438df8f6d941385f337dd7154d8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 11 Dec 2024 22:08:07 -0700 Subject: [PATCH 04/10] Update {$mac}.xml --- resources/templates/provision/cisco/spa192/{$mac}.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/templates/provision/cisco/spa192/{$mac}.xml b/resources/templates/provision/cisco/spa192/{$mac}.xml index 969fd2086b..be860089ad 100644 --- a/resources/templates/provision/cisco/spa192/{$mac}.xml +++ b/resources/templates/provision/cisco/spa192/{$mac}.xml @@ -941,7 +941,7 @@ 1 1 -{$cisco_router_mode} +{$spa_router_mode} 0 1 From 8feb150dba013e1c632e25db74a9403e417984b1 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:15:28 -0700 Subject: [PATCH 05/10] rename extension summary csv export (#7179) rename extension summary export/download from 'user-summary.csv. to 'extension-summary.csv' --- app/xml_cdr/xml_cdr_extension_summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/xml_cdr_extension_summary.php b/app/xml_cdr/xml_cdr_extension_summary.php index fc77f5f507..b7eade3167 100644 --- a/app/xml_cdr/xml_cdr_extension_summary.php +++ b/app/xml_cdr/xml_cdr_extension_summary.php @@ -67,7 +67,7 @@ //set the headers header('Content-type: application/octet-binary'); - header('Content-Disposition: attachment; filename=user-summary.csv'); + header('Content-Disposition: attachment; filename=extension-summary.csv'); //show the column names on the first line $z = 0; From 075cc4824a3f12aeb76ae2ee9523e66f05a32fe7 Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 12 Dec 2024 13:03:21 -0400 Subject: [PATCH 06/10] Security, Use the same number of characters for the masked password (#7198) * security set display asterisks to constant number Harder to guess when length is also hidden --- core/default_settings/default_settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php index 5c1f477daf..07c5b5939b 100644 --- a/core/default_settings/default_settings.php +++ b/core/default_settings/default_settings.php @@ -530,7 +530,7 @@ echo " [...]\n"; } else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || substr_count($subcategory, '_key') > 0 || substr_count($subcategory, '_secret') > 0) { - echo " ".str_repeat('*', strlen($row['default_setting_value'] ?? '')); + echo " ".str_repeat('*', 10); //use the same number of characters to mask the password length } else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') { echo " ".$text['option-button_icons_'.$row['default_setting_value']]."\n"; From 2cd94a93a5dc2b27cf82e66cb78d2528cdb69069 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 13 Dec 2024 10:35:36 -0700 Subject: [PATCH 07/10] Fix the device ADD button. Also, permission_exists function uses the permission::new() method and this made it efficient enough to continue to use the permission_exists function. --- app/devices/devices.php | 78 ++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 48 deletions(-) diff --git a/app/devices/devices.php b/app/devices/devices.php index 0cdcd0ee61..af2fb3015b 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -48,18 +48,6 @@ $database = database::new(); $settings = new settings(['database' => $database, 'domain_uuid' => $domain_uuid, 'user_uuid' => $user_uuid]); -//set all permissions - $has_device_import = permission_exists('device_import'); - $has_device_edit = permission_exists('device_edit'); - $has_device_all = permission_exists('device_all'); - $has_device_delete = permission_exists('device_delete'); - $has_device_domain_all = permission_exists('device_domain_all'); - $has_device_export = permission_exists('device_export'); - $has_device_vendor_view = permission_exists('device_vendor_view'); - $has_device_profile_view = permission_exists('device_profile_view'); - $has_device_add = permission_exists('device_add'); - $has_show_all = &$has_device_domain_all; - //add multi-lingual support $language = new text; $text = $language->get(); @@ -78,13 +66,13 @@ if (!empty($action) && !empty($devices) && is_array($devices) && @sizeof($devices) != 0) { switch ($action) { case 'toggle': - if ($has_device_edit) { + if (permission_exists('device_edit')) { $obj = new device; $obj->toggle($devices); } break; case 'delete': - if ($has_device_delete) { + if (permission_exists('device_delete')) { $obj = new device; $obj->delete($devices); } @@ -105,7 +93,7 @@ //get total devices count from the database $sql = "select count(*) from v_devices "; $sql .= "where domain_uuid = :domain_uuid "; - if (!$has_device_all && !$has_device_domain_all) { + if (!permission_exists('device_all') && !permission_exists('device_domain_all')) { $sql .= "and device_user_uuid = :user_uuid "; $parameters['user_uuid'] = $user_uuid; } @@ -113,12 +101,6 @@ $total_devices = $database->select($sql, $parameters, 'column'); unset($sql, $parameters); -//update the has_device_add permission if the total device count is greater then set limit - $device_limit = $settings->get('limit', 'devices', null); - if ($has_device_add && $device_limit !== null) { - $has_device_add = $total_devices > $device_limit; - } - //get the domains if user has permission for show all $domains = []; if ($has_device_domain_all) { @@ -142,7 +124,7 @@ //prepare to page the results $sql = "select count(*) from v_devices as d "; - if (isset($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { if (!empty($search)) { $sql .= "where "; } @@ -150,7 +132,7 @@ else { $sql .= "where ("; $sql .= " d.domain_uuid = :domain_uuid "; - if ($has_device_all) { + if (permission_exists('device_all')) { $sql .= " or d.domain_uuid is null "; } $sql .= ") "; @@ -205,7 +187,7 @@ $param = "&search=".$search; $param .= "&fields=".$fields; } - if (!empty($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { $param .= "&show=all"; } $page = $_GET['page'] ?? 0; @@ -218,7 +200,7 @@ $sql .= "to_char(timezone(:time_zone, d.device_provisioned_date), 'DD Mon YYYY') as provisioned_date_formatted, \n"; $sql .= "to_char(timezone(:time_zone, d.device_provisioned_date), 'HH12:MI:SS am') as provisioned_time_formatted \n"; $sql .= "from v_devices as d, v_devices as d2 "; - if (isset($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { $sql .= ", v_domains as d3 "; } $sql .= "where ( "; @@ -228,19 +210,19 @@ $sql .= " d.device_uuid = d2.device_uuid "; $sql .= " ) "; $sql .= ") "; - if (isset($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { $sql .= " and d.domain_uuid = d3.domain_uuid "; } else { $sql .= "and ("; $sql .= " d.domain_uuid = :domain_uuid "; - if ($has_device_all) { + if (permission_exists('device_all')) { $sql .= " or d.domain_uuid is null "; } $sql .= ") "; $parameters['domain_uuid'] = $domain_uuid; } - if (!$has_device_all && !$has_device_domain_all) { + if (!permission_exists('device_all') && !permission_exists('device_domain_all')) { $sql .= "and d.device_user_uuid = :user_uuid "; $parameters['user_uuid'] = $user_uuid; } @@ -314,33 +296,33 @@ echo "
\n"; echo "
".$text['header-devices']."
".number_format($num_rows)."
\n"; echo "
\n"; - if ($has_device_import) { + if (permission_exists('device_import')) { echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$settings->get('theme', 'button_icon_import'),'link'=>'device_imports.php']); } - if ($has_device_export) { + if (permission_exists('device_export')) { echo button::create(['type'=>'button','label'=>$text['button-export'],'icon'=>$settings->get('theme', 'button_icon_export'),'link'=>'device_download.php']); } - if ($has_device_vendor_view) { + if (permission_exists('device_vendor_view')) { echo button::create(['type'=>'button','label'=>$text['button-vendors'],'icon'=>'fax','link'=>'device_vendors.php']); } - if ($has_device_profile_view) { + if (permission_exists('device_profile_view')) { echo button::create(['type'=>'button','label'=>$text['button-profiles'],'icon'=>'clone','link'=>'device_profiles.php']); } - $margin_left = $has_device_import || $has_device_export || $has_device_vendor_view || $has_device_profile_view ? "margin-left: 15px;" : null; - if ($has_device_add) { + $margin_left = permission_exists('device_import') || permission_exists('device_export') || permission_exists('device_vendor_view') || permission_exists('device_profile_view') ? "margin-left: 15px;" : null; + if (permission_exists('device_add') && (empty($_SESSION['limit']['devices']['numeric']) || ($total_devices < $_SESSION['limit']['devices']['numeric']))) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$settings->get('theme', 'button_icon_add'),'id'=>'btn_add','style'=>$margin_left,'link'=>'device_edit.php']); unset($margin_left); } - if ($has_device_edit && $devices) { + if (permission_exists('device_edit') && $devices) { echo button::create(['type'=>'button','label'=>$text['button-toggle'],'icon'=>$settings->get('theme', 'button_icon_toggle'),'id'=>'btn_toggle','name'=>'btn_toggle','style'=>'display: none; '.($margin_left ?? null),'onclick'=>"modal_open('modal-toggle','btn_toggle');"]); unset($margin_left); } - if ($has_device_delete && $devices) { + if (permission_exists('device_delete') && $devices) { echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'id'=>'btn_delete','name'=>'btn_delete','style'=>'display: none; '.($margin_left ?? null),'onclick'=>"modal_open('modal-delete','btn_delete');"]); unset($margin_left); } echo "
\n"; - if ($has_device_edit && $devices) { + if (permission_exists('device_edit') && $devices) { echo modal::create(['id'=>'modal-toggle','type'=>'toggle','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_toggle','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('toggle'); list_form_submit('form_list');"])]); } - if ($has_device_delete && $devices) { + if (permission_exists('device_delete') && $devices) { echo modal::create(['id'=>'modal-delete','type'=>'delete','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_delete','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('delete'); list_form_submit('form_list');"])]); } @@ -387,12 +369,12 @@ echo "
\n"; echo "\n"; echo "\n"; - if ($has_device_edit || $has_device_delete) { + if (permission_exists('device_edit') || permission_exists('device_delete')) { echo " \n"; } - if (!empty($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, null, null, $param); } echo th_order_by('device_address', $text['label-device_address'], $order_by, $order, null, null, $param ?? null); @@ -406,7 +388,7 @@ echo th_order_by('device_enabled', $text['label-device_enabled'], $order_by, $order, null, "class='center'", $param ?? null); echo th_order_by('device_provisioned_date', $text['label-device_status'], $order_by, $order, null, null, $param ?? null); echo th_order_by('device_description', $text['label-device_description'], $order_by, $order, null, "class='hide-sm-dn'", $param ?? null); - if ($has_device_edit && $settings->get('theme', 'list_row_edit_button', 'false') === 'true') { + if (permission_exists('device_edit') && $settings->get('theme', 'list_row_edit_button', false)) { echo " \n"; } echo "\n"; @@ -422,7 +404,7 @@ } } - if ($has_device_edit) { + if (permission_exists('device_edit')) { $list_row_url = "device_edit.php?id=".urlencode($row['device_uuid']); } @@ -437,17 +419,17 @@ } echo "\n"; - if ($has_device_edit || $has_device_delete) { + if (permission_exists('device_edit') || permission_exists('device_delete')) { echo " \n"; } - if (!empty($_GET['show']) && $_GET['show'] == "all" && $has_device_all) { + if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) { echo " \n"; } echo " \n"; echo " \n"; if ($device_alternate) { @@ -463,7 +445,7 @@ echo " \n"; echo " \n"; echo " \n"; - if ($has_device_edit) { + if (permission_exists('device_edit')) { echo " \n"; echo " \n"; echo " \n"; - if ($has_device_edit && $settings->get('theme', 'list_row_edit_button', false)) { + if (permission_exists('device_edit') && $settings->get('theme', 'list_row_edit_button', false)) { echo " \n"; From 38b02f11d50797f70b97839286500ffcb23063eb Mon Sep 17 00:00:00 2001 From: frytimo Date: Mon, 16 Dec 2024 16:53:33 -0400 Subject: [PATCH 08/10] fix missing slash '/' at end of link tag (#7200) --- core/authentication/resources/views/email.htm | 2 +- core/authentication/resources/views/login.htm | 2 +- core/authentication/resources/views/totp.htm | 2 +- core/authentication/resources/views/totp_secret.htm | 2 +- core/authentication/resources/views/username.htm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/authentication/resources/views/email.htm b/core/authentication/resources/views/email.htm index 35c795d722..2f35985e79 100644 --- a/core/authentication/resources/views/email.htm +++ b/core/authentication/resources/views/email.htm @@ -6,7 +6,7 @@ - +
\n"; echo " \n"; echo "  
\n"; echo " \n"; echo " \n"; echo " ".escape($domains[$row['domain_uuid']]).""; - echo $has_device_edit ? "".escape(format_device_address($row['device_address']))."" : escape(format_device_address($row['device_address'])); + echo permission_exists('device_edit') ? "".escape(format_device_address($row['device_address']))."" : escape(format_device_address($row['device_address'])); echo " ".escape($row['device_label'])." ".escape($row['device_vendor'])." ".escape($row['device_template'])." ".escape($device_profile_name)." ".escape($row['device_description'])." "; echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme','button_icon_edit'),'link'=>$list_row_url]); echo "