Przeglądaj źródła

Move the menu array to app_menu.php

Mark Crane 10 lat temu
rodzic
commit
edd4adb5f0
2 zmienionych plików z 22 dodań i 19 usunięć
  1. 3 19
      app_config.php
  2. 19 0
      app_menu.php

+ 3 - 19
app_config.php

@@ -1,4 +1,5 @@
 <?php
+
 	//application details
 		$apps[$x]['name'] = "Exec";
 		$apps[$x]['uuid'] = "1dd98ca6-95f1-e728-7e8f-137fe18dc23c";
@@ -19,24 +20,6 @@
 		$apps[$x]['description']['pt-pt'] = "Ofereçe uma forma conveniente para executar comandos de sistema, PHP e switch.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "Command";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Comando";
-		$apps[$x]['menu'][0]['title']['es-mx'] = "Comando";
-		$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'] = "Commande";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "Command";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Comandos";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "06493580-9131-ce57-23cd-d42d69dd8526";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/app/exec/exec.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$apps[$x]['permissions'][0]['name'] = "exec_command_line";
 		$apps[$x]['permissions'][0]['menu']['uuid'] = "06493580-9131-ce57-23cd-d42d69dd8526";
@@ -49,4 +32,5 @@
 		$apps[$x]['permissions'][2]['name'] = "exec_switch";
 		$apps[$x]['permissions'][2]['menu']['uuid'] = "06493580-9131-ce57-23cd-d42d69dd8526";
 		$apps[$x]['permissions'][2]['groups'][] = "superadmin";
-?>
+
+?>

+ 19 - 0
app_menu.php

@@ -1 +1,20 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "Command";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Comando";
+	$apps[$x]['menu'][0]['title']['es-mx'] = "Comando";
+	$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'] = "Commande";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "Command";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Comandos";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "06493580-9131-ce57-23cd-d42d69dd8526";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/app/exec/exec.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>