summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/exec.php4
-rw-r--r--usr/local/www/firewall_nat_out.php2
-rw-r--r--usr/local/www/vpn_ipsec_settings.php10
3 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php
index 48c192b..60f85a0 100644
--- a/usr/local/www/exec.php
+++ b/usr/local/www/exec.php
@@ -44,7 +44,7 @@ $allowautocomplete = true;
require("guiconfig.inc");
-if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
+if (($_POST['submit'] == gettext("Download")) && file_exists($_POST['dlPath'])) {
session_cache_limiter('public');
$fd = fopen($_POST['dlPath'], "rb");
header("Content-Type: application/octet-stream");
@@ -61,7 +61,7 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
fpassthru($fd);
exit;
-} else if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
+} else if (($_POST['submit'] == gettext("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']);
unset($_POST['txtCommand']);
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 96d7a7b..eac4b5d 100644
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -78,7 +78,7 @@ if ($_POST['apply']) {
}
}
-if (isset($_POST['save']) && $_POST['save'] == "Save") {
+if (isset($_POST['save']) && $_POST['save'] == gettext("Save")) {
/* mutually exclusive settings - if user wants advanced NAT, we don't generate automatic rules */
if ($_POST['mode'] == "advanced" && ($mode == "automatic" || $mode == "hybrid")) {
/*
diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php
index fc76fef..26e9005 100644
--- a/usr/local/www/vpn_ipsec_settings.php
+++ b/usr/local/www/vpn_ipsec_settings.php
@@ -294,8 +294,14 @@ function maxmss_checked(obj) {
<td width="78%" valign="top" class="vncell">
<?php echo "<select name=\"ipsec_{$lkey}\" id=\"ipsec_{$lkey}\">\n";
foreach (array("Silent", "Audit", "Control", "Diag", "Raw", "Highest") as $lidx => $lvalue) {
- echo "<option value=\"{$lidx}\" ";
- if ($pconfig["ipsec_{$lkey}"] == $lidx)
+ $logval = $lidx + 1;
+ if (isset($pconfig["ipsec_{$lkey}"])) {
+ $logselected = $pconfig["ipsec_{$lkey}"];
+ } else {
+ $logselected = "2";
+ }
+ echo "<option value=\"{$logval}\" ";
+ if ($logselected == $logval)
echo "selected=\"selected\"";
echo ">{$lvalue}</option>\n";
}
OpenPOWER on IntegriCloud