From b7edfd3c3d7f87438ccabeb53cbdb6942774bc0f Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 17 Jan 2016 22:58:49 +0545 Subject: Internationalize edit and exec Note: in the end, edit.php has only whitespace format changes. --- src/usr/local/www/edit.php | 8 ++++---- src/usr/local/www/exec.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/usr/local/www/edit.php b/src/usr/local/www/edit.php index ada73d1..fe15105 100644 --- a/src/usr/local/www/edit.php +++ b/src/usr/local/www/edit.php @@ -69,9 +69,9 @@ if ($_POST['action']) { switch ($_POST['action']) { case 'load': if (strlen($_POST['file']) < 1) { - print('|5|' . '' . '|'); + print('|5|' . '' . '|'); } elseif (is_dir($_POST['file'])) { - print('|4|' . '' . '|'); + print('|4|' . '' . '|'); } elseif (!is_file($_POST['file'])) { print('|3|' . '' . '|'); } else { @@ -87,7 +87,7 @@ if ($_POST['action']) { case 'save': if (strlen($_POST['file']) < 1) { - print('|' . '' . '|'); + print('|' . '' . '|'); } else { conf_mount_rw(); $_POST['data'] = str_replace("\r", "", base64_decode($_POST['data'])); @@ -116,7 +116,7 @@ require("head.inc"); ?>
diff --git a/src/usr/local/www/exec.php b/src/usr/local/www/exec.php index b7ebca0..618eb23 100644 --- a/src/usr/local/www/exec.php +++ b/src/usr/local/www/exec.php @@ -90,7 +90,7 @@ if (($_POST['submit'] == "DOWNLOAD") && file_exists($_POST['dlPath'])) { exit; } else if (($_POST['submit'] == "UPLOAD") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) { move_uploaded_file($_FILES['ulfile']['tmp_name'], "/tmp/" . $_FILES['ulfile']['name']); - $ulmsg = "Uploaded file to /tmp/" . htmlentities($_FILES['ulfile']['name']); + $ulmsg = sprintf(gettext('Uploaded file to /tmp/%s'), htmlentities($_FILES['ulfile']['name'])); unset($_POST['txtCommand']); } @@ -218,12 +218,12 @@ if (isBlank($_POST['txtRecallBuffer'])) { '.gettext("The capabilities offered here can be dangerous. No support is available. Use them at your own risk!").'
'); + print(''); } if (!isBlank($_POST['txtCommand'])):?>
-

Shell Output -

+

' . $ulmsg .'
'); + print(''); } ?>
-- cgit v1.1