summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-18 08:19:14 -0200
committerRenato Botelho <renato@netgate.com>2016-01-18 08:19:14 -0200
commite6dede0faa164b8d1dcfb0aefecd6f9faa8671f9 (patch)
tree6ddbb3a9fbefea1ede3878d44a554223003033f4
parentb77f4c119d74d53ce5776155c3fc0e3486b297df (diff)
parentb7edfd3c3d7f87438ccabeb53cbdb6942774bc0f (diff)
downloadpfsense-e6dede0faa164b8d1dcfb0aefecd6f9faa8671f9.zip
pfsense-e6dede0faa164b8d1dcfb0aefecd6f9faa8671f9.tar.gz
Merge pull request #2458 from phil-davis/gt3
-rw-r--r--src/usr/local/www/edit.php8
-rw-r--r--src/usr/local/www/exec.php8
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|' . '<div class="alert alert-danger" role="alert">'.gettext("No file name specified").'</div>' . '|');
+ print('|5|' . '<div class="alert alert-danger" role="alert">' . gettext("No file name specified") . '</div>' . '|');
} elseif (is_dir($_POST['file'])) {
- print('|4|' . '<div class="alert alert-danger" role="alert">' . gettext("Loading a directory is not supported") .'</div>' . '|');
+ print('|4|' . '<div class="alert alert-danger" role="alert">' . gettext("Loading a directory is not supported") . '</div>' . '|');
} elseif (!is_file($_POST['file'])) {
print('|3|' . '<div class="alert alert-danger" role="alert">' . gettext("File does not exist or is not a regular file") . '</div>' . '|');
} else {
@@ -87,7 +87,7 @@ if ($_POST['action']) {
case 'save':
if (strlen($_POST['file']) < 1) {
- print('|' . '<div class="alert alert-danger" role="alert">'.gettext("No file name specified").'</div>' . '|');
+ print('|' . '<div class="alert alert-danger" role="alert">' . gettext("No file name specified") . '</div>' . '|');
} else {
conf_mount_rw();
$_POST['data'] = str_replace("\r", "", base64_decode($_POST['data']));
@@ -116,7 +116,7 @@ require("head.inc");
?>
<!-- file status box -->
<div style="display:none; background:#eeeeee;" id="fileStatusBox">
- <strong id="fileStatus"></strong>
+ <strong id="fileStatus"></strong>
</div>
<div class="panel panel-default">
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'])) {
<?php
if (isBlank($_POST['txtCommand']) && isBlank($_POST['txtPHPCommand']) && isBlank($ulmsg)) {
- print('<div class="alert alert-warning" role="alert">'.gettext("The capabilities offered here can be dangerous. No support is available. Use them at your own risk!").'</div>');
+ print('<div class="alert alert-warning" role="alert">' . gettext("The capabilities offered here can be dangerous. No support is available. Use them at your own risk!") . '</div>');
}
if (!isBlank($_POST['txtCommand'])):?>
<div class="panel panel-success responsive">
- <div class="panel-heading"><h2 class="panel-title">Shell Output - <?=htmlspecialchars($_POST['txtCommand'])?></h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=sprintf(gettext('Shell Output - %s'), htmlspecialchars($_POST['txtCommand']))?></h2></div>
<div class="panel-body">
<div class="content">
<?php
@@ -269,7 +269,7 @@ if (!isBlank($_POST['txtCommand'])):?>
<?php
if ($ulmsg) {
- print('<div class="alert alert-success" role="alert">' . $ulmsg .'</div>');
+ print('<div class="alert alert-success" role="alert">' . $ulmsg . '</div>');
}
?>
<div class="panel panel-default">
OpenPOWER on IntegriCloud