summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-08-25 18:04:19 +0200
committerMichael Tänzer <neo@nhng.de>2012-08-25 18:04:19 +0200
commit81d8360c64b95172ebf0abbe08849dfca212bad0 (patch)
tree48e2e5f750e85c416d9b5cb5fd5dec343a0b8d0f /www
parent31fe41cd72d1a7d34a98cac8cf9122874ad07b2f (diff)
downloadcacert-devel-81d8360c64b95172ebf0abbe08849dfca212bad0.tar.gz
cacert-devel-81d8360c64b95172ebf0abbe08849dfca212bad0.tar.xz
cacert-devel-81d8360c64b95172ebf0abbe08849dfca212bad0.zip
bug 1091: Put some text around the "Find an Assurer" message to make it
obvious that it is not a message on bahalf of CAcert Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'www')
-rw-r--r--www/wot.php30
1 files changed, 28 insertions, 2 deletions
diff --git a/www/wot.php b/www/wot.php
index bf5d301..8767c56 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -442,8 +442,34 @@ $iecho= "c";
where `to`='".$user['id']."' group by `to` HAVING SUM(`points`) > 0"));
if($points > 0)
{
- sendmail($user['email'], "[CAcert.org] ".$_REQUEST['subject'], $_REQUEST['message'],
- $_SESSION['profile']['email'], "", "", $_SESSION['profile']['fname']." ".$_SESSION['profile']['lname']);
+ $my_translation = L10n::get_translation();
+ L10n::set_translation($user['language']);
+
+ $subject = "[CAcert.org] ".sprintf(_("Message from %s"),
+ $_SESSION['profile']['fname']);
+
+ $body = sprintf(_("Hi %s,"), $user['fname'])."\n\n";
+ $body .= sprintf(_("%s %s has sent you a message via the ".
+ "contact an Assurer form on CAcert.org."),
+ $_SESSION['profile']['fname'],
+ $_SESSION['profile']['lname'])."\n\n";
+ $body .= sprintf(_("Subject: %s"), $_REQUEST['subject'])."\n";
+ $body .= _("Message:")."\n";
+ $body .= $_REQUEST['message']."\n\n";
+ $body .= "------------------------------------------------\n\n";
+ $body .= _("Please note, that this is NOT a message on behalf ".
+ "of CAcert but another user.")."\n\n";
+ $body .= _("Best regards")."\n";
+ $body .= _("CAcert Support Team");
+
+ sendmail($user['email'], $subject, $body,
+ $_SESSION['profile']['email'], //from
+ "", //replyto
+ "", //toname
+ $_SESSION['profile']['fname']." ".
+ $_SESSION['profile']['lname']); //fromname
+
+ L10n::set_translation($my_translation);
showheader(_("My CAcert.org Account!"));?>
<p>