Эх сурвалжийг харах

Move the menu array to app_menu.php

Mark Crane 10 жил өмнө
parent
commit
83aa2b4f2a
2 өөрчлөгдсөн 22 нэмэгдсэн , 19 устгасан
  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'] = "SQL Query";
 		$apps[$x]['uuid'] = "a8b8ca29-083d-fb9b-5552-cc272de18ea6";
@@ -19,24 +20,6 @@
 		$apps[$x]['description']['pt-pt'] = "Executar comandos SQL.";
 		$apps[$x]['description']['pt-br'] = "";
 
-	//menu details
-		$apps[$x]['menu'][0]['title']['en-us'] = "SQL Query";
-		$apps[$x]['menu'][0]['title']['es-cl'] = "Coinsulta SQL";
-		$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'] = "Requête SQL";
-		$apps[$x]['menu'][0]['title']['fr-ca'] = "";
-		$apps[$x]['menu'][0]['title']['fr-ch'] = "";
-		$apps[$x]['menu'][0]['title']['pt-pt'] = "Consultas SQL";
-		$apps[$x]['menu'][0]['title']['pt-br'] = "";
-		$apps[$x]['menu'][0]['uuid'] = "a894fed7-5a17-f695-c3de-e32ce58b3794";
-		$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
-		$apps[$x]['menu'][0]['category'] = "internal";
-		$apps[$x]['menu'][0]['path'] = "/app/sql_query/sql_query.php";
-		$apps[$x]['menu'][0]['groups'][] = "superadmin";
-
 	//permission details
 		$apps[$x]['permissions'][0]['name'] = "sql_query_execute";
 		$apps[$x]['permissions'][0]['menu']['uuid'] = "a894fed7-5a17-f695-c3de-e32ce58b3794";
@@ -44,4 +27,5 @@
 
 		$apps[$x]['permissions'][1]['name'] = "sql_query_backup";
 		$apps[$x]['permissions'][1]['groups'][] = "superadmin";
-?>
+
+?>

+ 19 - 0
app_menu.php

@@ -1 +1,20 @@
+<?php
 
+	$apps[$x]['menu'][0]['title']['en-us'] = "SQL Query";
+	$apps[$x]['menu'][0]['title']['es-cl'] = "Coinsulta SQL";
+	$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'] = "Requête SQL";
+	$apps[$x]['menu'][0]['title']['fr-ca'] = "";
+	$apps[$x]['menu'][0]['title']['fr-ch'] = "";
+	$apps[$x]['menu'][0]['title']['pt-pt'] = "Consultas SQL";
+	$apps[$x]['menu'][0]['title']['pt-br'] = "";
+	$apps[$x]['menu'][0]['uuid'] = "a894fed7-5a17-f695-c3de-e32ce58b3794";
+	$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
+	$apps[$x]['menu'][0]['category'] = "internal";
+	$apps[$x]['menu'][0]['path'] = "/app/sql_query/sql_query.php";
+	$apps[$x]['menu'][0]['groups'][] = "superadmin";
+
+?>