Sfoglia il codice sorgente

Fix alignment issues and remove v_ from the link in the menu for app -> command page.

Mark Crane 13 anni fa
parent
commit
b4a600761b
2 ha cambiato i file con 9 aggiunte e 15 eliminazioni
  1. 1 1
      app_config.php
  2. 8 14
      v_exec.php

+ 1 - 1
app_config.php

@@ -32,7 +32,7 @@
 		$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/v_exec.php';
+		$apps[$x]['menu'][0]['path'] = '/app/exec/exec.php';
 		$apps[$x]['menu'][0]['groups'][] = 'superadmin';
 
 	//permission details

+ 8 - 14
v_exec.php

@@ -36,18 +36,16 @@ else {
 
 //get the html values and set them as variables
 	if (count($_POST)>0) {
-		$shell_cmd = trim(check_str($_POST["shell_cmd"]));
-		$php_cmd = trim(check_str($_POST["php_cmd"]));
-		$switch_cmd = trim(check_str($_POST["switch_cmd"]));
+		$shell_cmd = trim($_POST["shell_cmd"]);
+		$php_cmd = trim($_POST["php_cmd"]);
+		$switch_cmd = trim($_POST["switch_cmd"]);
 	}
 
 //show the header
 	require_once "includes/header.php";
 
 //edit area
-	echo "    <script language=\"javascript\" type=\"text/javascript\" src=\"".PROJECT_PATH."/includes/edit_area/edit_area_full.js\"></script>\n";
-	echo "    <!-- -->\n";
-
+	echo "	<script language=\"javascript\" type=\"text/javascript\" src=\"".PROJECT_PATH."/includes/edit_area/edit_area_full.js\"></script>\n";
 	echo "	<script language=\"Javascript\" type=\"text/javascript\">\n";
 	echo "		// initialisation //load,\n";
 	echo "		editAreaLoader.init({\n";
@@ -61,9 +59,7 @@ else {
 	echo "			,toolbar: \"search, go_to_line,|, fullscreen, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\" //new_document,\n";
 	echo "			,plugins: \"charmap\"\n";
 	echo "			,charmap_default: \"arrows\"\n";
-	echo "\n";
-	echo "    });\n";
-	echo "\n";
+	echo "		});\n";
 	echo "\n";
 	echo "		editAreaLoader.init({\n";
 	echo "			id: \"php_cmd\"	// id of the textarea to transform //, |, help\n";
@@ -76,8 +72,7 @@ else {
 	echo "			,toolbar: \"search, go_to_line,|, fullscreen, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\" //new_document,\n";
 	echo "			,plugins: \"charmap\"\n";
 	echo "			,charmap_default: \"arrows\"\n";
-	echo "\n";
-	echo "    });\n";
+	echo "		});\n";
 	echo "\n";
 	echo "		editAreaLoader.init({\n";
 	echo "			id: \"switch_cmd\"	// id of the textarea to transform //, |, help\n";
@@ -90,9 +85,8 @@ else {
 	echo "			,toolbar: \"search, go_to_line,|, fullscreen, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\" //new_document,\n";
 	echo "			,plugins: \"charmap\"\n";
 	echo "			,charmap_default: \"arrows\"\n";
-	echo "\n";
-	echo "    });\n";
-	echo "    </script>";
+	echo "		});\n";
+	echo "	</script>";
 
 //show the header
 	echo "<div align='center'>";