diff --git a/app/gateways/app_languages.php b/app/gateways/app_languages.php
index 3d5c298e00..3617680cf5 100644
--- a/app/gateways/app_languages.php
+++ b/app/gateways/app_languages.php
@@ -402,6 +402,11 @@
$text['message-update']['pt-pt'] = "Actualização Efectuada";
$text['message-update']['fr-fr'] = "Mis à Jour";
+ $text['message-copy']['en-us'] = "Copy Completed";
+ $text['message-copy']['es-cl'] = "Copia Completada";
+ $text['message-copy']['pt-pt'] = "Cópia Efectuada";
+ $text['message-copy']['fr-fr'] = "Copié";
+
$text['message-delete']['en-us'] = "Delete Completed";
$text['message-delete']['es-cl'] = "Eliminación Completada";
$text['message-delete']['pt-pt'] = "Remoção Efectuada";
diff --git a/app/gateways/gateway_copy.php b/app/gateways/gateway_copy.php
index 0942f9764b..35b3e2125d 100644
--- a/app/gateways/gateway_copy.php
+++ b/app/gateways/gateway_copy.php
@@ -35,12 +35,18 @@ else {
exit;
}
+//add multi-lingual support
+ require_once "app_languages.php";
+ foreach($text as $key => $value) {
+ $text[$key] = $value[$_SESSION['domain']['language']['code']];
+ }
+
//set the http get/post variable(s) to a php variable
if (isset($_REQUEST["id"])) {
$gateway_uuid = check_str($_REQUEST["id"]);
}
-//get the data
+//get the data
$sql = "select * from v_gateways ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and gateway_uuid = '$gateway_uuid' ";
@@ -147,12 +153,8 @@ else {
save_gateway_xml();
//redirect the user
- require_once "resources/header.php";
- echo "\n";
- echo "
\n";
- echo "Copy Complete\n";
- echo "
\n";
- require_once "resources/footer.php";
+ $_SESSION["message"] = $text['message-copy'];
+ header("Location: gateways.php");
return;
?>
diff --git a/app/gateways/gateway_delete.php b/app/gateways/gateway_delete.php
index 001328c7fd..002a40eb88 100644
--- a/app/gateways/gateway_delete.php
+++ b/app/gateways/gateway_delete.php
@@ -120,12 +120,8 @@ if (strlen($_GET["id"])>0) {
}
//redirect the users
- require_once "resources/header.php";
- echo "\n";
- echo "\n";
- echo $text['message-delete']."\n";
- echo "
\n";
- require_once "resources/footer.php";
+ $_SESSION["message"] = $text['message-delete'];
+ header("Location: gateways.php");
return;
?>
\ No newline at end of file
diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php
index 6fd2d4868c..76ffb2a52f 100644
--- a/app/gateways/gateway_edit.php
+++ b/app/gateways/gateway_edit.php
@@ -276,17 +276,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//redirect the user
if (isset($action)) {
- require_once "resources/header.php";
- echo "\n";
- echo "\n";
if ($action == "add") {
- echo " ".$text['message-add']."\n";
+ $_SESSION["message"] = $text['message-add'];
}
if ($action == "update") {
- echo " ".$text['message-update']."\n";
+ $_SESSION["message"] = $text['message-update'];
}
- echo "
\n";
- require_once "resources/footer.php";
+ header("Location: gateways.php");
return;
}
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
@@ -501,7 +497,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
else {
echo " \n";
}
- if ($register == "false") {
+ if ($register == "false") {
echo " \n";
}
else {
@@ -549,13 +545,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "\n";
echo " |