diff options
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index edd38ee..abc40c3 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -41,7 +41,7 @@ function html_format_pgp_fingerprint($fingerprint) { /** * Loads the account editing form, with any values that are already saved * - * @global array $SUPPORTED_LANGS Languages that are supported by the AUR + * @global array $SUPPORTED_LANGS Languages that are supported by the aurweb instance * @param string $A Form to use, either UpdateAccount or NewAccount * @param string $U The username to display * @param string $T The account type of the displayed user @@ -70,7 +70,7 @@ function display_account_form($A,$U="",$T="",$S="",$E="",$P="",$C="",$R="", /** * Process information given to new/edit account form * - * @global array $SUPPORTED_LANGS Languages that are supported by the AUR + * @global array $SUPPORTED_LANGS Languages that are supported by the aurweb instance * @param string $TYPE Either "edit" for editing or "new" for registering an account * @param string $A Form to use, either UpdateAccount or NewAccount * @param string $U The username for the account @@ -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); } |