Simplify the dashboard path

This commit is contained in:
FusionPBX 2024-08-21 16:58:44 -06:00 committed by GitHub
parent 0563292557
commit b0aab10872
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
21 changed files with 74 additions and 58 deletions

View File

@ -3,7 +3,7 @@
//call block icon //call block icon
$array['dashboard'][$x]['dashboard_uuid'] = 'e75f04ff-6d1b-4b39-af0f-e1d1860327c1'; $array['dashboard'][$x]['dashboard_uuid'] = 'e75f04ff-6d1b-4b39-af0f-e1d1860327c1';
$array['dashboard'][$x]['dashboard_name'] = 'Call Block'; $array['dashboard'][$x]['dashboard_name'] = 'Call Block';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-ban'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-ban';
$array['dashboard'][$x]['dashboard_url'] = '/app/call_block/call_block.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/call_block/call_block.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -2,7 +2,7 @@
$array['dashboard'][$x]['dashboard_uuid'] = '9083305a-ebb4-4b67-bb9b-8c09cf030261'; $array['dashboard'][$x]['dashboard_uuid'] = '9083305a-ebb4-4b67-bb9b-8c09cf030261';
$array['dashboard'][$x]['dashboard_name'] = 'Call Center Agents'; $array['dashboard'][$x]['dashboard_name'] = 'Call Center Agents';
$array['dashboard'][$x]['dashboard_path'] = 'app/call_centers/resources/dashboard/call_center_agents.php'; $array['dashboard'][$x]['dashboard_path'] = 'call_centers/call_center_agents';
$array['dashboard'][$x]['dashboard_order'] = '180'; $array['dashboard'][$x]['dashboard_order'] = '180';
$array['dashboard'][$x]['dashboard_enabled'] = 'false'; $array['dashboard'][$x]['dashboard_enabled'] = 'false';
$array['dashboard'][$x]['dashboard_description'] = 'Status for agent in a call center.'; $array['dashboard'][$x]['dashboard_description'] = 'Status for agent in a call center.';

View File

@ -3,7 +3,7 @@
//call forward //call forward
$array['dashboard'][$x]['dashboard_uuid'] = 'ba60799a-1c40-44a8-80ef-c2be4f4692fb'; $array['dashboard'][$x]['dashboard_uuid'] = 'ba60799a-1c40-44a8-80ef-c2be4f4692fb';
$array['dashboard'][$x]['dashboard_name'] = 'Call Forward'; $array['dashboard'][$x]['dashboard_name'] = 'Call Forward';
$array['dashboard'][$x]['dashboard_path'] = 'app/call_forward/resources/dashboard/call_forward.php'; $array['dashboard'][$x]['dashboard_path'] = 'call_forward/call_forward';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-forward'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-forward';
$array['dashboard'][$x]['dashboard_url'] = '/app/call_forward/call_forward.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/call_forward/call_forward.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//conference centers icon //conference centers icon
$array['dashboard'][$x]['dashboard_uuid'] = 'd1b26c96-6cfd-45ea-824f-0b5e16a9aab9'; $array['dashboard'][$x]['dashboard_uuid'] = 'd1b26c96-6cfd-45ea-824f-0b5e16a9aab9';
$array['dashboard'][$x]['dashboard_name'] = 'Conference Centers'; $array['dashboard'][$x]['dashboard_name'] = 'Conference Centers';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-hotel'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-hotel';
$array['dashboard'][$x]['dashboard_url'] = '/app/conference_centers/conference_rooms.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/conference_centers/conference_rooms.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//conferences icon //conferences icon
$array['dashboard'][$x]['dashboard_uuid'] = 'c3c37d29-b654-4024-8ee4-d752b3e4db46'; $array['dashboard'][$x]['dashboard_uuid'] = 'c3c37d29-b654-4024-8ee4-d752b3e4db46';
$array['dashboard'][$x]['dashboard_name'] = 'Conferences'; $array['dashboard'][$x]['dashboard_name'] = 'Conferences';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-comments'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-comments';
$array['dashboard'][$x]['dashboard_url'] = '/app/conferences/conferences.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/conferences/conferences.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//destinations icon //destinations icon
$array['dashboard'][$x]['dashboard_uuid'] = 'a294b771-a125-4d36-b51a-973540346fad'; $array['dashboard'][$x]['dashboard_uuid'] = 'a294b771-a125-4d36-b51a-973540346fad';
$array['dashboard'][$x]['dashboard_name'] = 'Destinations'; $array['dashboard'][$x]['dashboard_name'] = 'Destinations';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-to-bracket'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-to-bracket';
$array['dashboard'][$x]['dashboard_url'] = '/app/destinations/destinations.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/destinations/destinations.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -2,7 +2,7 @@
$array['dashboard'][$x]['dashboard_uuid'] = 'f1c722d5-b714-4fa2-9664-5f6d24d44661'; $array['dashboard'][$x]['dashboard_uuid'] = 'f1c722d5-b714-4fa2-9664-5f6d24d44661';
$array['dashboard'][$x]['dashboard_name'] = 'Device Keys'; $array['dashboard'][$x]['dashboard_name'] = 'Device Keys';
$array['dashboard'][$x]['dashboard_path'] = 'app/devices/resources/dashboard/device_keys.php'; $array['dashboard'][$x]['dashboard_path'] = 'devices/device_keys';
$array['dashboard'][$x]['dashboard_order'] = '150'; $array['dashboard'][$x]['dashboard_order'] = '150';
$array['dashboard'][$x]['dashboard_enabled'] = 'false'; $array['dashboard'][$x]['dashboard_enabled'] = 'false';
$array['dashboard'][$x]['dashboard_description'] = ''; $array['dashboard'][$x]['dashboard_description'] = '';

View File

@ -2,7 +2,7 @@
$array['dashboard'][$x]['dashboard_uuid'] = '2f7a90cc-8d60-4df4-98ee-2ef4000afac7'; $array['dashboard'][$x]['dashboard_uuid'] = '2f7a90cc-8d60-4df4-98ee-2ef4000afac7';
$array['dashboard'][$x]['dashboard_name'] = 'Domain Limits'; $array['dashboard'][$x]['dashboard_name'] = 'Domain Limits';
$array['dashboard'][$x]['dashboard_path'] = 'app/domain_limits/resources/dashboard/domain_limits.php'; $array['dashboard'][$x]['dashboard_path'] = 'domain_limits/domain_limits';
$array['dashboard'][$x]['dashboard_order'] = '120'; $array['dashboard'][$x]['dashboard_order'] = '120';
$array['dashboard'][$x]['dashboard_enabled'] = 'false'; $array['dashboard'][$x]['dashboard_enabled'] = 'false';
$array['dashboard'][$x]['dashboard_description'] = ''; $array['dashboard'][$x]['dashboard_description'] = '';

View File

@ -2,7 +2,7 @@
$array['dashboard'][$x]['dashboard_uuid'] = '3bac3209-2f51-47db-b5fe-a1a804f49da9'; $array['dashboard'][$x]['dashboard_uuid'] = '3bac3209-2f51-47db-b5fe-a1a804f49da9';
$array['dashboard'][$x]['dashboard_name'] = 'Caller ID'; $array['dashboard'][$x]['dashboard_name'] = 'Caller ID';
$array['dashboard'][$x]['dashboard_path'] = 'app/extensions/resources/dashboard/caller_id.php'; $array['dashboard'][$x]['dashboard_path'] = 'extensions/caller_id';
$array['dashboard'][$x]['dashboard_order'] = '160'; $array['dashboard'][$x]['dashboard_order'] = '160';
$array['dashboard'][$x]['dashboard_enabled'] = 'false'; $array['dashboard'][$x]['dashboard_enabled'] = 'false';
$array['dashboard'][$x]['dashboard_description'] = ''; $array['dashboard'][$x]['dashboard_description'] = '';
@ -23,7 +23,7 @@ $x++;
//extensions icon //extensions icon
$array['dashboard'][$x]['dashboard_uuid'] = '4b7b6652-7e5f-48d3-987e-971053f093a7'; $array['dashboard'][$x]['dashboard_uuid'] = '4b7b6652-7e5f-48d3-987e-971053f093a7';
$array['dashboard'][$x]['dashboard_name'] = 'Extensions'; $array['dashboard'][$x]['dashboard_name'] = 'Extensions';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-suitcase'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-suitcase';
$array['dashboard'][$x]['dashboard_url'] = '/app/extensions/extensions.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/extensions/extensions.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//ivr menus icon //ivr menus icon
$array['dashboard'][$x]['dashboard_uuid'] = '3af7af65-7861-4d05-a0bc-36d704458fa0'; $array['dashboard'][$x]['dashboard_uuid'] = '3af7af65-7861-4d05-a0bc-36d704458fa0';
$array['dashboard'][$x]['dashboard_name'] = 'IVR Menus'; $array['dashboard'][$x]['dashboard_name'] = 'IVR Menus';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-diagram-project'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-diagram-project';
$array['dashboard'][$x]['dashboard_url'] = '/app/ivr_menus/ivr_menus.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/ivr_menus/ivr_menus.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//time conditions icon //time conditions icon
$array['dashboard'][$x]['dashboard_uuid'] = '3d8efe65-49c3-4783-844e-4ebc1c97db68'; $array['dashboard'][$x]['dashboard_uuid'] = '3d8efe65-49c3-4783-844e-4ebc1c97db68';
$array['dashboard'][$x]['dashboard_name'] = 'Recordings'; $array['dashboard'][$x]['dashboard_name'] = 'Recordings';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-microphone'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-microphone';
$array['dashboard'][$x]['dashboard_url'] = '/app/recordings/recordings.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/recordings/recordings.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//ring group forward //ring group forward
$array['dashboard'][$x]['dashboard_uuid'] = 'b5da1d72-2cc7-422e-b05c-f07659aed419'; $array['dashboard'][$x]['dashboard_uuid'] = 'b5da1d72-2cc7-422e-b05c-f07659aed419';
$array['dashboard'][$x]['dashboard_name'] = 'Ring Group Forward'; $array['dashboard'][$x]['dashboard_name'] = 'Ring Group Forward';
$array['dashboard'][$x]['dashboard_path'] = 'app/ring_groups/resources/dashboard/ring_group_forward.php'; $array['dashboard'][$x]['dashboard_path'] = 'ring_groups/ring_group_forward';
$array['dashboard'][$x]['dashboard_icon'] = ''; $array['dashboard'][$x]['dashboard_icon'] = '';
$array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
$x++; $x++;
$array['dashboard'][$x]['dashboard_uuid'] = 'b9d92260-eaf7-4c05-a51e-3083e25516b3'; $array['dashboard'][$x]['dashboard_uuid'] = 'b9d92260-eaf7-4c05-a51e-3083e25516b3';
$array['dashboard'][$x]['dashboard_name'] = 'Switch Status'; $array['dashboard'][$x]['dashboard_name'] = 'Switch Status';
$array['dashboard'][$x]['dashboard_path'] = 'app/switch/resources/dashboard/switch_status.php'; $array['dashboard'][$x]['dashboard_path'] = 'switch/switch_status';
$array['dashboard'][$x]['dashboard_order'] = '105'; $array['dashboard'][$x]['dashboard_order'] = '105';
$array['dashboard'][$x]['dashboard_enabled'] = 'false'; $array['dashboard'][$x]['dashboard_enabled'] = 'false';
$array['dashboard'][$x]['dashboard_description'] = 'Switch details such as version, uptime, channels and registrations.'; $array['dashboard'][$x]['dashboard_description'] = 'Switch details such as version, uptime, channels and registrations.';

View File

@ -3,7 +3,7 @@
$x++; $x++;
$array['dashboard'][$x]['dashboard_uuid'] = 'c9b1f67a-d78a-4299-a16e-594a4b7cd246'; $array['dashboard'][$x]['dashboard_uuid'] = 'c9b1f67a-d78a-4299-a16e-594a4b7cd246';
$array['dashboard'][$x]['dashboard_name'] = 'System Status'; $array['dashboard'][$x]['dashboard_name'] = 'System Status';
$array['dashboard'][$x]['dashboard_path'] = 'app/system/resources/dashboard/system_status.php'; $array['dashboard'][$x]['dashboard_path'] = 'system/system_status';
$array['dashboard'][$x]['dashboard_order'] = '90'; $array['dashboard'][$x]['dashboard_order'] = '90';
$array['dashboard'][$x]['dashboard_enabled'] = 'true'; $array['dashboard'][$x]['dashboard_enabled'] = 'true';
$array['dashboard'][$x]['dashboard_description'] = 'System information like Disk usage.'; $array['dashboard'][$x]['dashboard_description'] = 'System information like Disk usage.';
@ -15,7 +15,7 @@ $x++;
$array['dashboard'][$x]['dashboard_uuid'] = 'beade936-846b-4f02-986c-a2de6fa762c2'; $array['dashboard'][$x]['dashboard_uuid'] = 'beade936-846b-4f02-986c-a2de6fa762c2';
$array['dashboard'][$x]['dashboard_name'] = 'System CPU Status'; $array['dashboard'][$x]['dashboard_name'] = 'System CPU Status';
$array['dashboard'][$x]['dashboard_path'] = 'app/system/resources/dashboard/system_cpu_status.php'; $array['dashboard'][$x]['dashboard_path'] = 'system/system_cpu_status';
$array['dashboard'][$x]['dashboard_order'] = '100'; $array['dashboard'][$x]['dashboard_order'] = '100';
$array['dashboard'][$x]['dashboard_enabled'] = 'true'; $array['dashboard'][$x]['dashboard_enabled'] = 'true';
$array['dashboard'][$x]['dashboard_description'] = 'System CPU information.'; $array['dashboard'][$x]['dashboard_description'] = 'System CPU information.';
@ -27,7 +27,7 @@ $x++;
$array['dashboard'][$x]['dashboard_uuid'] = 'bb76f7fc-669f-41dd-a636-6ddaee5deae1'; $array['dashboard'][$x]['dashboard_uuid'] = 'bb76f7fc-669f-41dd-a636-6ddaee5deae1';
$array['dashboard'][$x]['dashboard_name'] = 'System Counts'; $array['dashboard'][$x]['dashboard_name'] = 'System Counts';
$array['dashboard'][$x]['dashboard_path'] = 'app/system/resources/dashboard/system_counts.php'; $array['dashboard'][$x]['dashboard_path'] = 'system/system_counts';
$array['dashboard'][$x]['dashboard_order'] = '110'; $array['dashboard'][$x]['dashboard_order'] = '110';
$array['dashboard'][$x]['dashboard_enabled'] = 'true'; $array['dashboard'][$x]['dashboard_enabled'] = 'true';
$array['dashboard'][$x]['dashboard_description'] = 'A list of showing the count of active and inactive domains, devices, extensions, gateways, users, desttinations, ring groups and more'; $array['dashboard'][$x]['dashboard_description'] = 'A list of showing the count of active and inactive domains, devices, extensions, gateways, users, desttinations, ring groups and more';

View File

@ -3,7 +3,7 @@
//time conditions icon //time conditions icon
$array['dashboard'][$x]['dashboard_uuid'] = 'e9f06ed4-ddfc-4611-b246-fdeab36a49ca'; $array['dashboard'][$x]['dashboard_uuid'] = 'e9f06ed4-ddfc-4611-b246-fdeab36a49ca';
$array['dashboard'][$x]['dashboard_name'] = 'Time Conditions'; $array['dashboard'][$x]['dashboard_name'] = 'Time Conditions';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-clock'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-clock';
$array['dashboard'][$x]['dashboard_url'] = '/app/time_conditions/time_conditions.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/time_conditions/time_conditions.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//new messages //new messages
$array['dashboard'][$x]['dashboard_uuid'] = 'be2aaa22-d8f1-4d9b-b5f9-14a26da329cb'; $array['dashboard'][$x]['dashboard_uuid'] = 'be2aaa22-d8f1-4d9b-b5f9-14a26da329cb';
$array['dashboard'][$x]['dashboard_name'] = 'New Messages'; $array['dashboard'][$x]['dashboard_name'] = 'New Messages';
$array['dashboard'][$x]['dashboard_path'] = 'app/voicemails/resources/dashboard/voicemails.php'; $array['dashboard'][$x]['dashboard_path'] = 'voicemails/voicemails';
$array['dashboard'][$x]['dashboard_icon'] = ''; $array['dashboard'][$x]['dashboard_icon'] = '';
$array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_target'] = '';
@ -47,7 +47,7 @@ $x++;
//voicemails icon //voicemails icon
$array['dashboard'][$x]['dashboard_uuid'] = '230f2857-f14a-44cd-9c33-577f26a5ce45'; $array['dashboard'][$x]['dashboard_uuid'] = '230f2857-f14a-44cd-9c33-577f26a5ce45';
$array['dashboard'][$x]['dashboard_name'] = 'Voicemails'; $array['dashboard'][$x]['dashboard_name'] = 'Voicemails';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-envelope'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-envelope';
$array['dashboard'][$x]['dashboard_url'] = '/app/voicemails/voicemails.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/voicemails/voicemails.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -3,7 +3,7 @@
//missed calls //missed calls
$array['dashboard'][$x]['dashboard_uuid'] = '6ad0e056-bf3d-465a-956d-bd77d513ab36'; $array['dashboard'][$x]['dashboard_uuid'] = '6ad0e056-bf3d-465a-956d-bd77d513ab36';
$array['dashboard'][$x]['dashboard_name'] = 'Missed Calls'; $array['dashboard'][$x]['dashboard_name'] = 'Missed Calls';
$array['dashboard'][$x]['dashboard_path'] = 'app/xml_cdr/resources/dashboard/missed_calls.php'; $array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/missed_calls';
$array['dashboard'][$x]['dashboard_icon'] = ''; $array['dashboard'][$x]['dashboard_icon'] = '';
$array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_target'] = '';
@ -47,7 +47,7 @@ $x++;
//recent calls //recent calls
$array['dashboard'][$x]['dashboard_uuid'] = 'c323e296-b1cf-42ea-9c57-fc00697915b7'; $array['dashboard'][$x]['dashboard_uuid'] = 'c323e296-b1cf-42ea-9c57-fc00697915b7';
$array['dashboard'][$x]['dashboard_name'] = 'Recent Calls'; $array['dashboard'][$x]['dashboard_name'] = 'Recent Calls';
$array['dashboard'][$x]['dashboard_path'] = 'app/xml_cdr/resources/dashboard/recent_calls.php'; $array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/recent_calls';
$array['dashboard'][$x]['dashboard_icon'] = ''; $array['dashboard'][$x]['dashboard_icon'] = '';
$array['dashboard'][$x]['dashboard_url'] = ''; $array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = ''; $array['dashboard'][$x]['dashboard_target'] = '';
@ -91,7 +91,7 @@ $x++;
//call detail records icon //call detail records icon
$array['dashboard'][$x]['dashboard_uuid'] = '7fb8c79b-3fc4-4977-992a-eb0404f80fe8'; $array['dashboard'][$x]['dashboard_uuid'] = '7fb8c79b-3fc4-4977-992a-eb0404f80fe8';
$array['dashboard'][$x]['dashboard_name'] = 'Call Detail Records'; $array['dashboard'][$x]['dashboard_name'] = 'Call Detail Records';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-list-ul'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-list-ul';
$array['dashboard'][$x]['dashboard_url'] = '/app/xml_cdr/xml_cdr.php'; $array['dashboard'][$x]['dashboard_url'] = '/app/xml_cdr/xml_cdr.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';

View File

@ -118,6 +118,9 @@ if ($domains_processed == 1) {
//update dashboard icons to be prefixed with v6.x font awesome style class name (e.g. 'fa-solid ') //update dashboard icons to be prefixed with v6.x font awesome style class name (e.g. 'fa-solid ')
$queries[] = "update v_dashboard set dashboard_icon = concat('fa-solid ', dashboard_icon) where dashboard_icon is not null and dashboard_icon not like 'fa-solid fa-%' and dashboard_icon not like 'fa-regular fa-%' and dashboard_icon not like 'fa-brands fa-%' "; $queries[] = "update v_dashboard set dashboard_icon = concat('fa-solid ', dashboard_icon) where dashboard_icon is not null and dashboard_icon not like 'fa-solid fa-%' and dashboard_icon not like 'fa-regular fa-%' and dashboard_icon not like 'fa-brands fa-%' ";
//simplify the dashboard path
$queries[] = "update v_dashboard set dashboard_path = regexp_replace(dashboard_path, 'app/|core/|resources/dashboard/|\.php', '', 'g') where dashboard_path like '%.php';";
//execute array of queries //execute array of queries
foreach ($queries as $sql) { foreach ($queries as $sql) {
$database = new database; $database = new database;
@ -128,3 +131,4 @@ if ($domains_processed == 1) {
} }
?> ?>

View File

@ -44,7 +44,7 @@
//set the defaults //set the defaults
$dashboard_name = ''; $dashboard_name = '';
$dashboard_path = '/core/dashboard/resources/dashboard/icon.php'; $dashboard_path = 'dashboard/icon';
//$dashboard_path = ''; //$dashboard_path = '';
$dashboard_icon = ''; $dashboard_icon = '';
$dashboard_url = ''; $dashboard_url = '';
@ -479,11 +479,11 @@
//adjust form by type entered //adjust form by type entered
echo "<script>\n"; echo "<script>\n";
echo " function adjust_form() {\n"; echo " function adjust_form() {\n";
echo " if ($('#dashboard_path').val() == 'core/dashboard/resources/dashboard/icon.php') {\n"; echo " if ($('#dashboard_path').val() == 'dashboard/icon') {\n";
echo " $('.type_content').hide();\n"; echo " $('.type_content').hide();\n";
echo " $('.type_icon').show();\n"; echo " $('.type_icon').show();\n";
echo " }\n"; echo " }\n";
echo " else if ($('#dashboard_path').val() == 'core/dashboard/resources/dashboard/content.php') {\n"; echo " else if ($('#dashboard_path').val() == 'dashboard/content') {\n";
echo " $('.type_icon').hide();\n"; echo " $('.type_icon').hide();\n";
echo " $('.type_content').show();\n"; echo " $('.type_content').show();\n";
echo " }\n"; echo " }\n";
@ -548,7 +548,7 @@
echo " <select name='dashboard_path' class='formfld' id='dashboard_path' onchange=\"adjust_form();\">\n"; echo " <select name='dashboard_path' class='formfld' id='dashboard_path' onchange=\"adjust_form();\">\n";
echo " <option value=''></option>\n"; echo " <option value=''></option>\n";
foreach($dashboard_tools as $key => $value) { foreach($dashboard_tools as $key => $value) {
echo " <option value='$value' ".($value == $dashboard_path ? "selected='selected'" : null).">".$key."</option>\n"; echo " <option value='$key' ".($key == $dashboard_path ? "selected='selected'" : null).">".$key."</option>\n";
} }
echo " </select>\n"; echo " </select>\n";
echo "<br />\n"; echo "<br />\n";
@ -558,9 +558,9 @@
if ( if (
$action == "add" || $action == "add" ||
$dashboard_path == "core/dashboard/resources/dashboard/icon.php" $dashboard_path == "dashboard/icon"
) { ) {
echo " <tr class='type_icon' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "style='display: none;'" : null).">"; echo " <tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">";
echo " <td class='vncell'>".$text['label-icon']."</td>"; echo " <td class='vncell'>".$text['label-icon']."</td>";
echo " <td class='vtable' style='vertical-align: bottom;'>"; echo " <td class='vtable' style='vertical-align: bottom;'>";
if (file_exists($_SERVER["PROJECT_ROOT"].'/resources/fontawesome/fa_icons.php')) { if (file_exists($_SERVER["PROJECT_ROOT"].'/resources/fontawesome/fa_icons.php')) {
@ -610,7 +610,7 @@
echo " </td>"; echo " </td>";
echo " </tr>"; echo " </tr>";
echo "<tr class='type_icon' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-link']."\n"; echo " ".$text['label-link']."\n";
echo "</td>\n"; echo "</td>\n";
@ -622,7 +622,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
echo "<tr class='type_icon' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-width']."\n"; echo " ".$text['label-width']."\n";
echo "</td>\n"; echo "</td>\n";
@ -634,7 +634,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
echo "<tr class='type_icon' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-height']."\n"; echo " ".$text['label-height']."\n";
echo "</td>\n"; echo "</td>\n";
@ -646,7 +646,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
echo "<tr class='type_icon' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "class='type_icon' style='display: none;'" : null).">\n"; echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "class='type_icon' style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-target']."\n"; echo $text['label-target']."\n";
echo "</td>\n"; echo "</td>\n";
@ -663,9 +663,9 @@
if ( if (
$action == "add" || $action == "add" ||
$dashboard_path == "core/dashboard/resources/dashboard/content.php" $dashboard_path == "dashboard/content"
) { ) {
echo "<tr class='type_content' ".($dashboard_path != 'core/dashboard/resources/dashboard/content.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_content' ".($dashboard_path != 'dashboard/content' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-content']."\n"; echo " ".$text['label-content']."\n";
echo "</td>\n"; echo "</td>\n";
@ -676,7 +676,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
echo "<tr class='type_content' ".($dashboard_path != 'core/dashboard/resources/dashboard/content.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_content' ".($dashboard_path != 'dashboard/content' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-dashboard_content_text_align']."\n"; echo " ".$text['label-dashboard_content_text_align']."\n";
echo "</td>\n"; echo "</td>\n";
@ -693,10 +693,10 @@
if ( if (
$action == "add" || $action == "add" ||
$dashboard_path == "core/dashboard/resources/dashboard/content.php" || $dashboard_path == "dashboard/content" ||
$dashboard_path == "core/dashboard/resources/dashboard/icon.php" $dashboard_path == "dashboard/icon"
) { ) {
echo "<tr class='type_icon type_content' ".($dashboard_path != 'core/dashboard/resources/dashboard/content.php' && $dashboard_path != 'core/dashboard/resources/dashboard/icon.php' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_icon type_content' ".($dashboard_path != 'dashboard/content' && $dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-details']."\n"; echo " ".$text['label-details']."\n";
echo "</td>\n"; echo "</td>\n";
@ -752,18 +752,18 @@
if ( if (
$action == "add" || $action == "add" ||
$dashboard_path == "app/voicemails/resources/dashboard/voicemails.php" || $dashboard_path == "voicemails/voicemails" ||
$dashboard_path == "app/xml_cdr/resources/dashboard/missed_calls.php" || $dashboard_path == "xml_cdr/missed_calls" ||
$dashboard_path == "app/xml_cdr/resources/dashboard/recent_calls.php" || $dashboard_path == "xml_cdr/recent_calls" ||
$dashboard_path == "app/system/resources/dashboard/system_status.php" || $dashboard_path == "system/system_status" ||
$dashboard_path == "app/system/resources/dashboard/system_cpu_status.php" || $dashboard_path == "system/system_cpu_status" ||
$dashboard_path == "app/system/resources/dashboard/system_counts.php" || $dashboard_path == "system/system_counts" ||
$dashboard_path == "app/switch/resources/dashboard/switch_status.php" || $dashboard_path == "switch/switch_status" ||
$dashboard_path == "app/domain_limits/resources/dashboard/domain_limits.php" || $dashboard_path == "domain_limits/domain_limits" ||
$dashboard_path == "app/call_forward/resources/dashboard/call_forward.php" || $dashboard_path == "call_forward/call_forward" ||
$dashboard_path == "app/ring_groups/resources/dashboard/ring_group_forward.php" || $dashboard_path == "ring_groups/ring_group_forward" ||
$dashboard_path == "app/extensions/resources/dashboard/caller_id.php" || $dashboard_path == "extensions/caller_id" ||
$dashboard_path == "app/maintenance/resources/dashboard/maintenance.php" $dashboard_path == "maintenance/maintenance"
) { ) {
echo "<tr class='type_chart' ".($action == "add" ? "style='display: none;'" : null).">\n"; echo "<tr class='type_chart' ".($action == "add" ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
@ -814,8 +814,8 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
if ($action == "add" || $dashboard_path == "core/dashboard/resources/dashboard/icon.php") { if ($action == "add" || $dashboard_path == "dashboard/icon") {
echo "<tr class='type_icon type_label' ".($dashboard_path != 'core/dashboard/resources/dashboard/icon.php' || $dashboard_label_enabled != 'true' ? "style='display: none;'" : null).">\n"; echo "<tr class='type_icon type_label' ".($dashboard_path != 'dashboard/icon' || $dashboard_label_enabled != 'true' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_label_text_color_hover']."\n"; echo $text['label-dashboard_label_text_color_hover']."\n";
echo "</td>\n"; echo "</td>\n";

View File

@ -309,7 +309,7 @@ foreach ($dashboard as $row) {
echo " align-content: center;\n"; echo " align-content: center;\n";
echo "}\n"; echo "}\n";
} }
if ($row['dashboard_path'] == "core/dashboard/resources/dashboard/icon.php") { if ($row['dashboard_path'] == "dashboard/icon") {
echo "#".$dashboard_name." div.hud_content,\n"; echo "#".$dashboard_name." div.hud_content,\n";
echo "#".$dashboard_name." span.hud_title,\n"; echo "#".$dashboard_name." span.hud_title,\n";
echo "#".$dashboard_name." span.hud_stat {\n"; echo "#".$dashboard_name." span.hud_stat {\n";
@ -505,8 +505,19 @@ function toggle_grid_row_end_all() {
} }
echo "<div class='widget' style='grid-row-end: span ".$dashboard_row_span.";' data-state='".$dashboard_details_state."' id='".trim(preg_replace("/[^a-z]/", '_', strtolower($dashboard_name)),'_')."' draggable='false'>\n"; echo "<div class='widget' style='grid-row-end: span ".$dashboard_row_span.";' data-state='".$dashboard_details_state."' id='".trim(preg_replace("/[^a-z]/", '_', strtolower($dashboard_name)),'_')."' draggable='false'>\n";
include $row['dashboard_path']; $dashboard_path_array = explode('/', $row['dashboard_path']);
$path_array = glob(dirname(__DIR__, 2).'/*/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php');
include $path_array[0];
//$file_name = dirname(__DIR__, 2).'/app/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php';
//if (file_exists(dirname(__DIR__, 2).'/core/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php')) {
// include dirname(__DIR__, 2).'/core/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php';
//}
//elseif (file_exists(dirname(__DIR__, 2).'/app/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php')) {
// include dirname(__DIR__, 2).'/app/'.$dashboard_path_array[0].'/resources/dashboard/'.$dashboard_path_array[1].'.php';
//}
echo "</div>\n"; echo "</div>\n";
$x++; $x++;
} }
echo "</div>\n"; echo "</div>\n";
@ -611,3 +622,4 @@ function toggle_grid_row_end_all() {
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -3,7 +3,7 @@
//users icon //users icon
$array['dashboard'][$x]['dashboard_uuid'] = '57fd7761-6ffb-4a11-bdf0-4ce632f50c3c'; $array['dashboard'][$x]['dashboard_uuid'] = '57fd7761-6ffb-4a11-bdf0-4ce632f50c3c';
$array['dashboard'][$x]['dashboard_name'] = 'Users'; $array['dashboard'][$x]['dashboard_name'] = 'Users';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-user-group'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-user-group';
$array['dashboard'][$x]['dashboard_url'] = '/core/users/users.php'; $array['dashboard'][$x]['dashboard_url'] = '/core/users/users.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';
@ -43,7 +43,7 @@ $x++;
//account settings icon //account settings icon
$array['dashboard'][$x]['dashboard_uuid'] = '8aa9bb66-7a62-4a90-b52e-68bd4ccf325f'; $array['dashboard'][$x]['dashboard_uuid'] = '8aa9bb66-7a62-4a90-b52e-68bd4ccf325f';
$array['dashboard'][$x]['dashboard_name'] = 'Account Settings'; $array['dashboard'][$x]['dashboard_name'] = 'Account Settings';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-user-gear'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-user-gear';
$array['dashboard'][$x]['dashboard_url'] = '/core/users/user_edit.php?id=user'; $array['dashboard'][$x]['dashboard_url'] = '/core/users/user_edit.php?id=user';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';
@ -79,7 +79,7 @@ $x++;
//logout icon //logout icon
$array['dashboard'][$x]['dashboard_uuid'] = 'b04ad600-9acc-45e5-a89a-d7a59a6fcb4c'; $array['dashboard'][$x]['dashboard_uuid'] = 'b04ad600-9acc-45e5-a89a-d7a59a6fcb4c';
$array['dashboard'][$x]['dashboard_name'] = 'Logout'; $array['dashboard'][$x]['dashboard_name'] = 'Logout';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php'; $array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-from-bracket'; $array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-from-bracket';
$array['dashboard'][$x]['dashboard_url'] = '/logout.php'; $array['dashboard'][$x]['dashboard_url'] = '/logout.php';
$array['dashboard'][$x]['dashboard_target'] = 'self'; $array['dashboard'][$x]['dashboard_target'] = 'self';