|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
Contributor(s):
|
|
|
Mark J Crane <[email protected]>
|
|
|
+ James Rose <[email protected]>
|
|
|
*/
|
|
|
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 "<div align='center'>";
|
|
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
|
|
echo "<tr>\n";
|
|
|
- echo "<td colspan='2' align='left' nowrap=\"nowrap\"><b>Execute Command</b></td>\n";
|
|
|
+ echo "<td colspan='2' align='left' nowrap=\"nowrap\"><b>".$text['label-execute']."</b></td>\n";
|
|
|
echo "</tr>\n";
|
|
|
echo "<tr>\n";
|
|
|
echo " <td align=\"left\" colspan='2'>\n";
|
|
|
- echo " Provides a conventient way to execute system, PHP, and switch commands.\n";
|
|
|
+ echo " ".$text['description-execute']."\n";
|
|
|
echo " <br />\n";
|
|
|
echo " <br />\n";
|
|
|
echo " </td>\n";
|
|
@@ -150,42 +158,42 @@ else {
|
|
|
if (permission_exists('exec_command_line')) {
|
|
|
echo "<tr>\n";
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
|
|
- echo " Shell command:\n";
|
|
|
+ echo " ".$text['label-shell'].":\n";
|
|
|
echo "</td>\n";
|
|
|
echo "<td class='vtable' align='left'>\n";
|
|
|
echo " <textarea name='shell_cmd' id='shell_cmd' rows='2' class='txt' wrap='off'>$shell_cmd</textarea\n";
|
|
|
echo " <br />\n";
|
|
|
- echo " System commands.\n";
|
|
|
+ echo " ".$text['description-shell']."\n";
|
|
|
echo "</td>\n";
|
|
|
echo "</tr>\n";
|
|
|
}
|
|
|
if (permission_exists('exec_php_command')) {
|
|
|
echo "<tr>\n";
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
|
|
- echo " PHP command:\n";
|
|
|
+ echo " ".$text['label-php'].":\n";
|
|
|
echo "</td>\n";
|
|
|
echo "<td class='vtable' align='left'>\n";
|
|
|
echo " <textarea name='php_cmd' id='php_cmd' rows='7' class='txt' wrap='off'>$php_cmd</textarea\n";
|
|
|
echo " <br />\n";
|
|
|
- echo " Use the following link as a reference for PHP: <a href='http://php.net/manual/en/index.php' target='_blank'>PHP Manual</a>\n";
|
|
|
+ echo " ".$text['description-php']."</a>\n";
|
|
|
echo "</td>\n";
|
|
|
echo "</tr>\n";
|
|
|
}
|
|
|
if (permission_exists('exec_switch')) {
|
|
|
echo "<tr>\n";
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
|
|
- echo " Switch Command:\n";
|
|
|
+ echo " ".$text['label-switch'].":\n";
|
|
|
echo "</td>\n";
|
|
|
echo "<td class='vtable' align='left'>\n";
|
|
|
echo " <textarea name='switch_cmd' id='switch_cmd' rows='2' class='txt' wrap='off'>$switch_cmd</textarea\n";
|
|
|
echo " <br />\n";
|
|
|
- echo " For a list of the valid commands use: help\n";
|
|
|
+ echo " ".$text['description-switch']."\n";
|
|
|
echo "</td>\n";
|
|
|
echo "</tr>\n";
|
|
|
}
|
|
|
echo " <tr>\n";
|
|
|
echo " <td colspan='2' align='right'>\n";
|
|
|
- echo " <input type='submit' name='submit' class='btn' value='Execute'>\n";
|
|
|
+ echo " <input type='submit' name='submit' class='btn' value='".$text['button-execute']."'>\n";
|
|
|
echo " </td>\n";
|
|
|
echo " </tr>";
|
|
|
echo "</form>";
|