瀏覽代碼

Move the menu array to app_menu.php

Mark Crane 10 年之前
父節點
當前提交
18ea65b3a2
共有 2 個文件被更改,包括 90 次插入88 次删除
  1. 2 88
      app_config.php
  2. 88 0
      app_menu.php

+ 2 - 88
app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Edit";
 		$apps[$x]['uuid'] = "17e628ee-ccfa-49c0-29ca-9894a0384b9b";
@@ -19,93 +20,6 @@
 		$apps[$x]['description']['pt-pt'] = "Editor de script pode ser usado para editar lua, javascript ou outros scripts.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$y = 0;
-		$apps[$x]['menu'][$y]['title']['en-us'] = "Script Editor";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor de Scripts";
-		$apps[$x]['menu'][$y]['title']['es-mx'] = "";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de script";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de Scripts";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "f1905fec-0577-daef-6045-59d09b7d3f94";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][$y]['category'] = "external";
-		$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=scripts";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-		$y++;
-		$apps[$x]['menu'][$y]['title']['en-us'] = "XML Editor";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor XML";
-		$apps[$x]['menu'][$y]['title']['es-mx'] = "";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur XML";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor XML";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "16013877-606a-2a05-7d6a-c1b215839131";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][$y]['category'] = "external";
-		$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=xml";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-		$y++;
-		$apps[$x]['menu'][$y]['title']['en-us'] = "Provision Editor";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor de Provisionamiento";
-		$apps[$x]['menu'][$y]['title']['es-mx'] = "";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de Provisioning";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de Provisionamento";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "57773542-a565-1a29-605d-6535da1a0870";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][$y]['category'] = "external";
-		$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=provision";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-		$y++;
-		$apps[$x]['menu'][$y]['title']['en-us'] = "PHP Editor";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor PHP";
-		$apps[$x]['menu'][$y]['title']['es-mx'] = "";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur PHP";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de PHP";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "eae1f2d6-789b-807c-cc26-44501e848693";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][$y]['category'] = "external";
-		$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=php";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-		$y++;
-		$apps[$x]['menu'][$y]['title']['en-us'] = "Grammar Editor";
-		$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor Gramático";
-		$apps[$x]['menu'][$y]['title']['es-mx'] = "Editor Gramático";
-		$apps[$x]['menu'][$y]['title']['de-de'] = "";
-		$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['de-at'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de Grammaire";
-		$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor Gramático";
-		$apps[$x]['menu'][$y]['title']['pt-br'] = "";
-		$apps[$x]['menu'][$y]['uuid'] = "c3db739e-89f9-0fa2-44ce-0f4c2ff43b1a";
-		$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][$y]['category'] = "external";
-		$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=grammar";
-		$apps[$x]['menu'][$y]['groups'][] = "superadmin";
-
 	//permission details
 		$y = 0;
 		$apps[$x]['permissions'][$y]['name'] = "script_editor_view";
@@ -192,4 +106,4 @@
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
 
-?>
+?>

+ 88 - 0
app_menu.php

@@ -1 +1,89 @@
+<php
 
+	$y = 0;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "Script Editor";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor de Scripts";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de script";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de Scripts";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "f1905fec-0577-daef-6045-59d09b7d3f94";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][$y]['category'] = "external";
+	$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=scripts";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+	$y++;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "XML Editor";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor XML";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur XML";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor XML";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "16013877-606a-2a05-7d6a-c1b215839131";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][$y]['category'] = "external";
+	$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=xml";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+	$y++;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "Provision Editor";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor de Provisionamiento";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de Provisioning";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de Provisionamento";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "57773542-a565-1a29-605d-6535da1a0870";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][$y]['category'] = "external";
+	$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=provision";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+	$y++;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "PHP Editor";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor PHP";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur PHP";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor de PHP";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "eae1f2d6-789b-807c-cc26-44501e848693";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][$y]['category'] = "external";
+	$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=php";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+	$y++;
+	$apps[$x]['menu'][$y]['title']['en-us'] = "Grammar Editor";
+	$apps[$x]['menu'][$y]['title']['es-cl'] = "Editor Gramático";
+	$apps[$x]['menu'][$y]['title']['es-mx'] = "Editor Gramático";
+	$apps[$x]['menu'][$y]['title']['de-de'] = "";
+	$apps[$x]['menu'][$y]['title']['de-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['de-at'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-fr'] = "Editeur de Grammaire";
+	$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][$y]['title']['pt-pt'] = "Editor Gramático";
+	$apps[$x]['menu'][$y]['title']['pt-br'] = "";
+	$apps[$x]['menu'][$y]['uuid'] = "c3db739e-89f9-0fa2-44ce-0f4c2ff43b1a";
+	$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][$y]['category'] = "external";
+	$apps[$x]['menu'][$y]['path'] = "/app/edit/index.php?dir=grammar";
+	$apps[$x]['menu'][$y]['groups'][] = "superadmin";
+
+?>