summaryrefslogtreecommitdiff
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 00:12:05 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 00:12:05 -0500
commit1fc3ca62eeb334f55fc1ac6503df00f7e06edbb1 (patch)
treeca1853072a5c8cd87764f7796861c2c3c9821cdf /web/lib/acctfuncs.inc.php
parent7e38e6d48957f60feaddda9a3eaf31d12b5b8548 (diff)
Make the instance name and domain configurable.
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 81118e8..abc40c3 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -294,7 +294,7 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$P="",$C="",
return;
}
- $subject = 'Welcome to the Arch User Repository';
+ $subject = __('Welcome to the %s', config_get('options', 'branding_longname'));
$body = __('Welcome to %s! In order ' .
'to set an initial password ' .
'for your new account, ' .
@@ -726,10 +726,10 @@ function send_resetkey($email, $subject, $body) {
"?resetkey={$resetkey}";
$headers = "MIME-Version: 1.0\r\n" .
"Content-type: text/plain; charset=UTF-8\r\n" .
- "Reply-to: noreply@aur.archlinux.org\r\n" .
- "From: notify@aur.archlinux.org\r\n" .
+ "Reply-to: noreply@".config_get('options', 'email_domain')."\r\n" .
+ "From: notify@".config_get('options', 'email_domain')."\r\n" .
"X-Mailer: PHP\r\n" .
- "X-MimeOLE: Produced By AUR";
+ "X-MimeOLE: Produced By ".config_get('options', 'branding_shortname');
@mail($email, $subject, $body, $headers);
}