Parcourir la source

Move the menu array to app_menu.php

Mark Crane il y a 10 ans
Parent
commit
ae9f8ba5e2

+ 1 - 41
core/apps/app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "App Manager";
 		$apps[$x]['uuid'] = "d8704214-75a0-e52f-1336-f0780e29fef8";
@@ -18,47 +19,6 @@
 		$apps[$x]['description']['pt-pt'] = "";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Apps";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Aplicaciones";
-		$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'] = "Apps";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Aplicações";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
-		$apps[$x]['menu'][0]['parent_uuid'] = "";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		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-cl'] = "Administrador de Aplicaciones";
-		$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";

+ 43 - 0
core/apps/app_menu.php

@@ -1 +1,44 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Apps";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Aplicaciones";
+	$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'] = "Apps";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Aplicações";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
+	$apps[$x]['menu'][0]['parent_uuid'] = "";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	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-cl'] = "Administrador de Aplicaciones";
+	$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";
+
+
+?>

+ 1 - 17
core/databases/app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Databases";
 		$apps[$x]['uuid'] = "8d229b6d-1383-fcec-74c6-4ce1682479e2";
@@ -18,23 +19,6 @@
 		$apps[$x]['description']['pt-pt'] = "Armazena informações de conexão com a base de dados.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Databases";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Bases de datos";
-		$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'] = "BDD";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Base de Dados";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "ebbd754d-ca74-d5b1-a77e-9206ba3ecc3f";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/databases/databases.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "database_view";

+ 18 - 0
core/databases/app_menu.php

@@ -1 +1,19 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Databases";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Bases de datos";
+	$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'] = "BDD";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Base de Dados";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "ebbd754d-ca74-d5b1-a77e-9206ba3ecc3f";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/databases/databases.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>

+ 1 - 17
core/default_settings/app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Default Settings";
 		$apps[$x]['uuid'] = "2c2453c0-1bea-4475-9f44-4d969650de09";
@@ -18,23 +19,6 @@
 		$apps[$x]['description']['pt-pt'] = "Configurações padrão que se aplicam a todos os domínios.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Default Settings";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Conf. Predeterminada";
-		$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'] = "Confs par Défaut";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Predefinições";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "834b2739-9e99-4345-9b0b-7ec3ca332b67";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/default_settings/default_settings.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "default_setting_view";

+ 18 - 0
core/default_settings/app_menu.php

@@ -1 +1,19 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Default Settings";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Conf. Predeterminada";
+	$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'] = "Confs par Défaut";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Predefinições";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "834b2739-9e99-4345-9b0b-7ec3ca332b67";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/default_settings/default_settings.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>

+ 1 - 17
core/domain_settings/app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Domains";
 		$apps[$x]['guid'] = "b31e723a-bf70-670c-a49b-470d2a232f71";
@@ -18,23 +19,6 @@
 		$apps[$x]['description']['pt-pt'] = "Gerir um único domínio ou vários domínios para multi-tenant.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Domains";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Dominios";
-		$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'] = "domaines";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Domínios";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "4fa7e90b-6d6c-12d4-712f-62857402b801";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/domain_settings/domains.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "domain_view";

+ 18 - 0
core/domain_settings/app_menu.php

@@ -1 +1,19 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Domains";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Dominios";
+	$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'] = "domaines";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Domínios";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "4fa7e90b-6d6c-12d4-712f-62857402b801";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/domain_settings/domains.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>

+ 0 - 103
core/menu/app_config.php

@@ -18,109 +18,6 @@
 		$apps[$x]['description']['pt-pt'] = "O menu pode ser personalizado utilizando esta ferramenta.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Menu Manager";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Gestor de Menú";
-		$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 des Menus";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Gestor de Menus";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "da3a9ab4-c28e-ea8d-50cc-e8405ac8e76e";
-		$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";
-		$apps[$x]['menu'][1]['title']['es-cl'] = "Sistema";
-		$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'] = "Système";
-		$apps[$x]['menu'][1]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][1]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][1]['title']['pt-pt'] = "Sistema";
-		$apps[$x]['menu'][1]['title']['pt-br'] = "";
-		$apps[$x]['menu'][1]['uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
-		$apps[$x]['menu'][1]['parent_uuid'] = "";
-		$apps[$x]['menu'][1]['category'] = "internal";
-		$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
-		$apps[$x]['menu'][1]['order'] = "5";
-		$apps[$x]['menu'][1]['groups'][] = "user";
-		$apps[$x]['menu'][1]['groups'][] = "admin";
-		$apps[$x]['menu'][1]['groups'][] = "superadmin";
-
-		$apps[$x]['menu'][2]['title']['en-us'] = "Accounts";
-		$apps[$x]['menu'][2]['title']['es-cl'] = "Cuentas";
-		$apps[$x]['menu'][2]['title']['de-de'] = "";
-		$apps[$x]['menu'][2]['title']['de-ch'] = "";
-		$apps[$x]['menu'][2]['title']['de-at'] = "";
-		$apps[$x]['menu'][2]['title']['fr-fr'] = "Comptes";
-		$apps[$x]['menu'][2]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][2]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][2]['title']['pt-pt'] = "Contas";
-		$apps[$x]['menu'][2]['title']['pt-br'] = "";
-		$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'] = "/core/users/index.php";
-		$apps[$x]['menu'][2]['order'] = "10";
-		$apps[$x]['menu'][2]['groups'][] = "admin";
-		$apps[$x]['menu'][2]['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";
-		}
-
-		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-cl'] = "Estado";
-			$apps[$x]['menu'][4]['title']['de-de'] = "";
-			$apps[$x]['menu'][4]['title']['de-ch'] = "";
-			$apps[$x]['menu'][4]['title']['de-at'] = "";
-			$apps[$x]['menu'][4]['title']['fr-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-cl'] = "Avanzado";
-		$apps[$x]['menu'][5]['title']['de-de'] = "";
-		$apps[$x]['menu'][5]['title']['de-ch'] = "";
-		$apps[$x]['menu'][5]['title']['de-at'] = "";
-		$apps[$x]['menu'][5]['title']['fr-fr'] = "Avancé";
-		$apps[$x]['menu'][5]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][5]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][5]['title']['pt-pt'] = "Avançado";
-		$apps[$x]['menu'][5]['title']['pt-br'] = "";
-		$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'] = "/core/domain_settings/domains.php";
-		$apps[$x]['menu'][5]['order'] = "30";
-		$apps[$x]['menu'][5]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "menu_view";

+ 104 - 0
core/menu/app_menu.php

@@ -1 +1,105 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Menu Manager";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Gestor de Menú";
+	$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 des Menus";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Gestor de Menus";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "da3a9ab4-c28e-ea8d-50cc-e8405ac8e76e";
+	$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";
+	$apps[$x]['menu'][1]['title']['es-cl'] = "Sistema";
+	$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'] = "Système";
+	$apps[$x]['menu'][1]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][1]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][1]['title']['pt-pt'] = "Sistema";
+	$apps[$x]['menu'][1]['title']['pt-br'] = "";
+	$apps[$x]['menu'][1]['uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
+	$apps[$x]['menu'][1]['parent_uuid'] = "";
+	$apps[$x]['menu'][1]['category'] = "internal";
+	$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
+	$apps[$x]['menu'][1]['order'] = "5";
+	$apps[$x]['menu'][1]['groups'][] = "user";
+	$apps[$x]['menu'][1]['groups'][] = "admin";
+	$apps[$x]['menu'][1]['groups'][] = "superadmin";
+
+	$apps[$x]['menu'][2]['title']['en-us'] = "Accounts";
+	$apps[$x]['menu'][2]['title']['es-cl'] = "Cuentas";
+	$apps[$x]['menu'][2]['title']['de-de'] = "";
+	$apps[$x]['menu'][2]['title']['de-ch'] = "";
+	$apps[$x]['menu'][2]['title']['de-at'] = "";
+	$apps[$x]['menu'][2]['title']['fr-fr'] = "Comptes";
+	$apps[$x]['menu'][2]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][2]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][2]['title']['pt-pt'] = "Contas";
+	$apps[$x]['menu'][2]['title']['pt-br'] = "";
+	$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'] = "/core/users/index.php";
+	$apps[$x]['menu'][2]['order'] = "10";
+	$apps[$x]['menu'][2]['groups'][] = "admin";
+	$apps[$x]['menu'][2]['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";
+	}
+
+	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-cl'] = "Estado";
+		$apps[$x]['menu'][4]['title']['de-de'] = "";
+		$apps[$x]['menu'][4]['title']['de-ch'] = "";
+		$apps[$x]['menu'][4]['title']['de-at'] = "";
+		$apps[$x]['menu'][4]['title']['fr-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-cl'] = "Avanzado";
+	$apps[$x]['menu'][5]['title']['de-de'] = "";
+	$apps[$x]['menu'][5]['title']['de-ch'] = "";
+	$apps[$x]['menu'][5]['title']['de-at'] = "";
+	$apps[$x]['menu'][5]['title']['fr-fr'] = "Avancé";
+	$apps[$x]['menu'][5]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][5]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][5]['title']['pt-pt'] = "Avançado";
+	$apps[$x]['menu'][5]['title']['pt-br'] = "";
+	$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'] = "/core/domain_settings/domains.php";
+	$apps[$x]['menu'][5]['order'] = "30";
+	$apps[$x]['menu'][5]['groups'][] = "superadmin";
+
+?>

+ 0 - 17
core/notifications/app_config.php

@@ -17,23 +17,6 @@
 		$apps[$x]['description']['pt-pt'] = "";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Notifications";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Notificaciones";
-		$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'] = "Notifications";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "Notifications";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "f8d65f91-0f4a-405a-b5ac-24cb3c4f10ba";
-		$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/notifications/notification_edit.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//schema details
 		$y = 0; //table array index
 		$z = 0; //field array index

+ 18 - 0
core/notifications/app_menu.php

@@ -1 +1,19 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Notifications";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Notificaciones";
+	$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'] = "Notifications";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "Notifications";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "f8d65f91-0f4a-405a-b5ac-24cb3c4f10ba";
+	$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/notifications/notification_edit.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>

+ 0 - 17
core/upgrade/app_config.php

@@ -18,23 +18,6 @@
 		$apps[$x]['description']['pt-pt'] = "Atualizar o esquema da base de dados.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Upgrade";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Actualizar";
-		$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'] = "Mise à jour";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Actualizar BD";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "8c826e92-be3c-0944-669a-24e5b915d562";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/upgrade/index.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "upgrade_svn";

+ 18 - 0
core/upgrade/app_menu.php

@@ -1 +1,19 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Upgrade";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Actualizar";
+	$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'] = "Mise à jour";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Actualizar BD";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "8c826e92-be3c-0944-669a-24e5b915d562";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/upgrade/index.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>

+ 0 - 37
core/user_settings/app_config.php

@@ -18,43 +18,6 @@
 		$apps[$x]['description']['pt-pt'] = "Configurações de conta de utilizador pode ser alterado pelo utilizador.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Account Settings";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Config de Cuenta";
-		$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'] = "Confs du Compte";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Configurações da Conta";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "4d532f0b-c206-c39d-ff33-fc67d668fb69";
-		$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/core/user_settings/user_edit.php";
-		$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'] = "User Dashboard";
-		$apps[$x]['menu'][1]['title']['es-cl'] = "Dashboard Usuario";
-		$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'] = "Tableau de bord de l'utilisateur";
-		$apps[$x]['menu'][1]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][1]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][1]['title']['pt-pt'] = "Painel de Controle do Usuário";
-		$apps[$x]['menu'][1]['title']['pt-br'] = "";
-		$apps[$x]['menu'][1]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
-		$apps[$x]['menu'][1]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
-		$apps[$x]['menu'][1]['category'] = "internal";
-		$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
-		$apps[$x]['menu'][0]['groups'][] = "user";
-		$apps[$x]['menu'][0]['groups'][] = "admin";
-		$apps[$x]['menu'][1]['groups'][] = "superadmin";
-
 	//permission details
 		$apps[$x]['permissions'][0]['name'] = "user_account_setting_view";
 		$apps[$x]['permissions'][0]['menu']['uuid'] = "4d532f0b-c206-c39d-ff33-fc67d668fb69";

+ 38 - 0
core/user_settings/app_menu.php

@@ -1 +1,39 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Account Settings";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Config de Cuenta";
+	$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'] = "Confs du Compte";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Configurações da Conta";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "4d532f0b-c206-c39d-ff33-fc67d668fb69";
+	$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/core/user_settings/user_edit.php";
+	$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'] = "User Dashboard";
+	$apps[$x]['menu'][1]['title']['es-cl'] = "Dashboard Usuario";
+	$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'] = "Tableau de bord de l'utilisateur";
+	$apps[$x]['menu'][1]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][1]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][1]['title']['pt-pt'] = "Painel de Controle do Usuário";
+	$apps[$x]['menu'][1]['title']['pt-br'] = "";
+	$apps[$x]['menu'][1]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
+	$apps[$x]['menu'][1]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
+	$apps[$x]['menu'][1]['category'] = "internal";
+	$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
+	$apps[$x]['menu'][0]['groups'][] = "user";
+	$apps[$x]['menu'][0]['groups'][] = "admin";
+	$apps[$x]['menu'][1]['groups'][] = "superadmin";
+
+?>

+ 0 - 33
core/users/app_config.php

@@ -18,39 +18,6 @@
 		$apps[$x]['description']['pt-pt'] = "Adicionar, editar, apagar e pesquisa pelos utilizadores.";
 		$apps[$x]['description']['pt-br'] = "";
 
-		$apps[$x]['menu'][2]['title']['en-us'] = "User Manager";
-		$apps[$x]['menu'][2]['title']['es-cl'] = "Gestor de Usuarios";
-		$apps[$x]['menu'][2]['title']['de-de'] = "";
-		$apps[$x]['menu'][2]['title']['de-ch'] = "";
-		$apps[$x]['menu'][2]['title']['de-at'] = "";
-		$apps[$x]['menu'][2]['title']['fr-fr'] = "Gestion Usagers";
-		$apps[$x]['menu'][2]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][2]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][2]['title']['pt-pt'] = "Gestão de Utilizadores";
-		$apps[$x]['menu'][2]['title']['pt-br'] = "";
-		$apps[$x]['menu'][2]['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
-		$apps[$x]['menu'][2]['parent_uuid'] = "bc96d773-ee57-0cdd-c3ac-2d91aba61b55";
-		$apps[$x]['menu'][2]['category'] = "internal";
-		$apps[$x]['menu'][2]['path'] = "/core/users/index.php";
-		$apps[$x]['menu'][2]['groups'][] = "admin";
-		$apps[$x]['menu'][2]['groups'][] = "superadmin";
-
-		$apps[$x]['menu'][3]['title']['en-us'] = "Group Manager";
-		$apps[$x]['menu'][3]['title']['es-cl'] = "Administración de Grupos";
-		$apps[$x]['menu'][3]['title']['de-de'] = "";
-		$apps[$x]['menu'][3]['title']['de-ch'] = "";
-		$apps[$x]['menu'][3]['title']['de-at'] = "";
-		$apps[$x]['menu'][3]['title']['fr-fr'] = "Gestion Groupes";
-		$apps[$x]['menu'][3]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][3]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][3]['title']['pt-pt'] ="'Gestão de Grupos";
-		$apps[$x]['menu'][3]['title']['pt-br'] = "";
-		$apps[$x]['menu'][3]['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
-		$apps[$x]['menu'][3]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][3]['category'] = "internal";
-		$apps[$x]['menu'][3]['path'] = "/core/users/groups.php";
-		$apps[$x]['menu'][3]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "user_view";

+ 35 - 0
core/users/app_menu.php

@@ -1 +1,36 @@
+<?php
 
+	$apps[$x]['menu'][2]['title']['en-us'] = "User Manager";
+	$apps[$x]['menu'][2]['title']['es-cl'] = "Gestor de Usuarios";
+	$apps[$x]['menu'][2]['title']['de-de'] = "";
+	$apps[$x]['menu'][2]['title']['de-ch'] = "";
+	$apps[$x]['menu'][2]['title']['de-at'] = "";
+	$apps[$x]['menu'][2]['title']['fr-fr'] = "Gestion Usagers";
+	$apps[$x]['menu'][2]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][2]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][2]['title']['pt-pt'] = "Gestão de Utilizadores";
+	$apps[$x]['menu'][2]['title']['pt-br'] = "";
+	$apps[$x]['menu'][2]['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
+	$apps[$x]['menu'][2]['parent_uuid'] = "bc96d773-ee57-0cdd-c3ac-2d91aba61b55";
+	$apps[$x]['menu'][2]['category'] = "internal";
+	$apps[$x]['menu'][2]['path'] = "/core/users/index.php";
+	$apps[$x]['menu'][2]['groups'][] = "admin";
+	$apps[$x]['menu'][2]['groups'][] = "superadmin";
+
+	$apps[$x]['menu'][3]['title']['en-us'] = "Group Manager";
+	$apps[$x]['menu'][3]['title']['es-cl'] = "Administración de Grupos";
+	$apps[$x]['menu'][3]['title']['de-de'] = "";
+	$apps[$x]['menu'][3]['title']['de-ch'] = "";
+	$apps[$x]['menu'][3]['title']['de-at'] = "";
+	$apps[$x]['menu'][3]['title']['fr-fr'] = "Gestion Groupes";
+	$apps[$x]['menu'][3]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][3]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][3]['title']['pt-pt'] ="'Gestão de Grupos";
+	$apps[$x]['menu'][3]['title']['pt-br'] = "";
+	$apps[$x]['menu'][3]['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
+	$apps[$x]['menu'][3]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][3]['category'] = "internal";
+	$apps[$x]['menu'][3]['path'] = "/core/users/groups.php";
+	$apps[$x]['menu'][3]['groups'][] = "superadmin";
+
+?>

+ 2 - 2
resources/classes/menu.php

@@ -51,7 +51,7 @@
 					$db = $this->db;
 
 				//get the $apps array from the installed apps from the core and mod directories
-					$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
+					$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_menu.php");
 					$x=0;
 					foreach ($config_list as &$config_path) {
 						include($config_path);
@@ -204,7 +204,7 @@
 					$db->beginTransaction();
 
 				//get the $apps array from the installed apps from the core and mod directories
-					$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
+					$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_menu.php");
 					$x=0;
 					foreach ($config_list as &$config_path) {
 						include($config_path);