From fdfe07a78799dd3d1fb6d293060b752d24be319f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 13 Feb 2014 04:51:03 +0000 Subject: [PATCH] Add the Apps menu to core/apps/app_config.php --- core/apps/app_config.php | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/core/apps/app_config.php b/core/apps/app_config.php index 72bb714ac7..d02879387b 100644 --- a/core/apps/app_config.php +++ b/core/apps/app_config.php @@ -19,22 +19,46 @@ $apps[$x]['description']['pt-br'] = ""; //menu details - $apps[$x]['menu'][0]['title']['en-us'] = "App Manager"; + $apps[$x]['menu'][0]['title']['en-us'] = "Apps"; $apps[$x]['menu'][0]['title']['es-mx'] = ""; $apps[$x]['menu'][0]['title']['de-de'] = ""; $apps[$x]['menu'][0]['title']['de-ch'] = ""; $apps[$x]['menu'][0]['title']['de-at'] = ""; - $apps[$x]['menu'][0]['title']['fr-fr'] = "Gestion App"; + $apps[$x]['menu'][0]['title']['fr-fr'] = "Apps"; $apps[$x]['menu'][0]['title']['fr-ca'] = ""; $apps[$x]['menu'][0]['title']['fr-ch'] = ""; - $apps[$x]['menu'][0]['title']['pt-pt'] = "Gestor de Aplicações"; + $apps[$x]['menu'][0]['title']['pt-pt'] = "Aplicações"; $apps[$x]['menu'][0]['title']['pt-br'] = ""; - $apps[$x]['menu'][0]['uuid'] = "ef00f229-7890-00c2-bf23-fed5b8fa9fe7"; - $apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f"; + $apps[$x]['menu'][0]['uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5"; + $apps[$x]['menu'][0]['parent_uuid'] = ""; $apps[$x]['menu'][0]['category'] = "internal"; - $apps[$x]['menu'][0]['path'] = "/core/apps/apps.php"; + if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/xml_cdr')) { + $apps[$x]['menu'][0]['path'] = "/app/xml_cdr/xml_cdr.php"; + } + else { + $apps[$x]['menu'][0]['path'] = PROJECT_PATH; + } + $apps[$x]['menu'][0]['order'] = "20"; + $apps[$x]['menu'][0]['groups'][] = "user"; + $apps[$x]['menu'][0]['groups'][] = "admin"; $apps[$x]['menu'][0]['groups'][] = "superadmin"; + $apps[$x]['menu'][1]['title']['en-us'] = "App Manager"; + $apps[$x]['menu'][1]['title']['es-mx'] = ""; + $apps[$x]['menu'][1]['title']['de-de'] = ""; + $apps[$x]['menu'][1]['title']['de-ch'] = ""; + $apps[$x]['menu'][1]['title']['de-at'] = ""; + $apps[$x]['menu'][1]['title']['fr-fr'] = "Gestion App"; + $apps[$x]['menu'][1]['title']['fr-ca'] = ""; + $apps[$x]['menu'][1]['title']['fr-ch'] = ""; + $apps[$x]['menu'][1]['title']['pt-pt'] = "Gestor de Aplicações"; + $apps[$x]['menu'][1]['title']['pt-br'] = ""; + $apps[$x]['menu'][1]['uuid'] = "ef00f229-7890-00c2-bf23-fed5b8fa9fe7"; + $apps[$x]['menu'][1]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f"; + $apps[$x]['menu'][1]['category'] = "internal"; + $apps[$x]['menu'][1]['path'] = "/core/apps/apps.php"; + $apps[$x]['menu'][1]['groups'][] = "superadmin"; + //permission details $y = 0; $apps[$x]['permissions'][$y]['name'] = "app_view";