Response message updates.
This commit is contained in:
parent
e4c196e238
commit
daf29a4560
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ 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"]);
|
||||
|
|
@ -147,12 +153,8 @@ else {
|
|||
save_gateway_xml();
|
||||
|
||||
//redirect the user
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=gateways.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Copy Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
$_SESSION["message"] = $text['message-copy'];
|
||||
header("Location: gateways.php");
|
||||
return;
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -120,12 +120,8 @@ if (strlen($_GET["id"])>0) {
|
|||
}
|
||||
|
||||
//redirect the users
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=gateways.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
header("Location: gateways.php");
|
||||
return;
|
||||
|
||||
?>
|
||||
|
|
@ -276,17 +276,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
|
||||
//redirect the user
|
||||
if (isset($action)) {
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=gateways.php\">\n";
|
||||
echo "<div align='center'>\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 "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
header("Location: gateways.php");
|
||||
return;
|
||||
}
|
||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue