From 60f5e5ff1e3bec3cdb009245d949605abca098d3 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 15 Sep 2013 05:30:16 +0000 Subject: [PATCH] Update the base menu for better defaults. --- core/menu/app_config.php | 61 +++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/core/menu/app_config.php b/core/menu/app_config.php index 23d865cfdf..27c0c7d8f9 100644 --- a/core/menu/app_config.php +++ b/core/menu/app_config.php @@ -33,7 +33,6 @@ $apps[$x]['menu'][0]['parent_uuid'] = '02194288-6d56-6d3e-0b1a-d53a2bc10788'; $apps[$x]['menu'][0]['category'] = 'internal'; $apps[$x]['menu'][0]['path'] = '/core/menu/menu.php'; - $apps[$x]['menu'][0]['groups'][] = 'superadmin'; $apps[$x]['menu'][1]['title']['en-us'] = 'System'; @@ -68,38 +67,42 @@ $apps[$x]['menu'][2]['uuid'] = 'bc96d773-ee57-0cdd-c3ac-2d91aba61b55'; $apps[$x]['menu'][2]['parent_uuid'] = ''; $apps[$x]['menu'][2]['category'] = 'internal'; - $apps[$x]['menu'][2]['path'] = '/app/extensions/extensions.php'; + $apps[$x]['menu'][2]['path'] = '/core/users/index.php'; $apps[$x]['menu'][2]['order'] = '10'; $apps[$x]['menu'][2]['groups'][] = 'admin'; $apps[$x]['menu'][2]['groups'][] = 'superadmin'; - $apps[$x]['menu'][3]['title']['en-us'] = 'Dialplan2'; - $apps[$x]['menu'][3]['uuid'] = 'b94e8bd9-9eb5-e427-9c26-ff7a6c21552a'; - $apps[$x]['menu'][3]['parent_uuid'] = ''; - $apps[$x]['menu'][3]['category'] = 'internal'; - $apps[$x]['menu'][3]['path'] = '/app/dialplan/dialplans.php'; - $apps[$x]['menu'][3]['order'] = '15'; - $apps[$x]['menu'][3]['groups'][] = 'admin'; - $apps[$x]['menu'][3]['groups'][] = 'superadmin'; + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/vars/app_config.php")) { + $apps[$x]['menu'][3]['title']['en-us'] = 'Dialplan'; + $apps[$x]['menu'][3]['uuid'] = 'b94e8bd9-9eb5-e427-9c26-ff7a6c21552a'; + $apps[$x]['menu'][3]['parent_uuid'] = ''; + $apps[$x]['menu'][3]['category'] = 'internal'; + $apps[$x]['menu'][3]['path'] = '/app/dialplan/dialplans.php'; + $apps[$x]['menu'][3]['order'] = '15'; + $apps[$x]['menu'][3]['groups'][] = 'admin'; + $apps[$x]['menu'][3]['groups'][] = 'superadmin'; + } - $apps[$x]['menu'][4]['title']['en-us'] = 'Status'; - $apps[$x]['menu'][4]['title']['es-mx'] = ''; - $apps[$x]['menu'][4]['title']['de'] = ''; - $apps[$x]['menu'][4]['title']['de-ch'] = ''; - $apps[$x]['menu'][4]['title']['de-at'] = ''; - $apps[$x]['menu'][4]['title']['fr'] = 'Etat'; - $apps[$x]['menu'][4]['title']['fr-ca'] = ''; - $apps[$x]['menu'][4]['title']['fr-ch'] = ''; - $apps[$x]['menu'][4]['title']['pt-pt'] = 'Estado'; - $apps[$x]['menu'][4]['title']['pt-br'] = ''; - $apps[$x]['menu'][4]['uuid'] = '0438b504-8613-7887-c420-c837ffb20cb1'; - $apps[$x]['menu'][4]['parent_uuid'] = ''; - $apps[$x]['menu'][4]['category'] = 'internal'; - $apps[$x]['menu'][4]['path'] = '/app/calls_active/calls_active_extensions.php'; - $apps[$x]['menu'][4]['order'] = '25'; - $apps[$x]['menu'][4]['groups'][] = 'user'; - $apps[$x]['menu'][4]['groups'][] = 'admin'; - $apps[$x]['menu'][4]['groups'][] = 'superadmin'; + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/calls_active/calls_active_extensions.php")) { + $apps[$x]['menu'][4]['title']['en-us'] = 'Status'; + $apps[$x]['menu'][4]['title']['es-mx'] = ''; + $apps[$x]['menu'][4]['title']['de'] = ''; + $apps[$x]['menu'][4]['title']['de-ch'] = ''; + $apps[$x]['menu'][4]['title']['de-at'] = ''; + $apps[$x]['menu'][4]['title']['fr'] = 'Etat'; + $apps[$x]['menu'][4]['title']['fr-ca'] = ''; + $apps[$x]['menu'][4]['title']['fr-ch'] = ''; + $apps[$x]['menu'][4]['title']['pt-pt'] = 'Estado'; + $apps[$x]['menu'][4]['title']['pt-br'] = ''; + $apps[$x]['menu'][4]['uuid'] = '0438b504-8613-7887-c420-c837ffb20cb1'; + $apps[$x]['menu'][4]['parent_uuid'] = ''; + $apps[$x]['menu'][4]['category'] = 'internal'; + $apps[$x]['menu'][4]['path'] = '/app/calls_active/calls_active_extensions.php'; + $apps[$x]['menu'][4]['order'] = '25'; + $apps[$x]['menu'][4]['groups'][] = 'user'; + $apps[$x]['menu'][4]['groups'][] = 'admin'; + $apps[$x]['menu'][4]['groups'][] = 'superadmin'; + } $apps[$x]['menu'][5]['title']['en-us'] = 'Advanced'; $apps[$x]['menu'][5]['title']['es-mx'] = ''; @@ -114,7 +117,7 @@ $apps[$x]['menu'][5]['uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; $apps[$x]['menu'][5]['parent_uuid'] = ''; $apps[$x]['menu'][5]['category'] = 'internal'; - $apps[$x]['menu'][5]['path'] = '/app/exec/exec.php'; + $apps[$x]['menu'][5]['path'] = '/core/domain_settings/domains.php'; $apps[$x]['menu'][5]['order'] = '30'; $apps[$x]['menu'][5]['groups'][] = 'superadmin';