浏览代码

Update the base menu for better defaults.

Mark Crane 12 年之前
父节点
当前提交
b92101baa7
共有 1 个文件被更改,包括 32 次插入29 次删除
  1. 32 29
      core/menu/app_config.php

+ 32 - 29
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';