diff --git a/app/exec/app_languages.php b/app/exec/app_languages.php new file mode 100644 index 0000000000..46ee3f254d --- /dev/null +++ b/app/exec/app_languages.php @@ -0,0 +1,43 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane + James Rose +*/ + + + $text['label-execute']['en-us'] = 'Execute Command'; + $text['description-execute']['en-us'] = 'Provides a conventient way to execute system, PHP, and switch commands.'; + $text['label-shell']['en-us'] = 'Shell command'; + $text['description-shell']['en-us'] = 'System commands.'; + $text['label-php']['en-us'] = 'PHP command'; + $text['description-php']['en-us'] = "Use the following link as a reference for PHP: PHP Manual"; + + $text['label-switch']['en-us'] = 'Switch Command'; + $text['description-switch']['en-us'] = 'For a list of the valid commands use: help'; + $text['button-execute']['en-us'] = 'Execute'; + + + + +?> \ No newline at end of file diff --git a/app/exec/exec.php b/app/exec/exec.php index a6f0e656cf..b79151b837 100644 --- a/app/exec/exec.php +++ b/app/exec/exec.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -34,6 +35,13 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + + //get the html values and set them as variables if (count($_POST)>0) { $shell_cmd = trim($_POST["shell_cmd"]); @@ -92,11 +100,11 @@ else { echo "
"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -150,42 +158,42 @@ else { if (permission_exists('exec_command_line')) { echo "\n"; echo "\n"; echo "
Execute Command".$text['label-execute']."
\n"; - echo " Provides a conventient way to execute system, PHP, and switch commands.\n"; + echo " ".$text['description-execute']."\n"; echo "
\n"; echo "
\n"; echo "
\n"; - echo " Shell command:\n"; + echo " ".$text['label-shell'].":\n"; echo "\n"; echo "