Browse Source

lint

pull/1/head
Friendika 11 years ago
parent
commit
9e35fb26f7
  1. 2
      include/items.php
  2. 2
      mod/dfrn_request.php
  3. 5
      mod/lostpass.php
  4. 4
      mod/register.php
  5. 4
      mod/regmod.php

2
include/items.php

@ -1061,7 +1061,7 @@ function new_follower($importer,$contact,$datarray,$item) {
$res = mail($r[0]['email'],
t("You have a new follower at ") . $a->config['sitename'],
$email,
'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME] );
'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
}
}

2
mod/dfrn_request.php

@ -441,7 +441,7 @@ function dfrn_request_content(&$a) {
$res = mail($r[0]['email'],
t("Introduction received at ") . $a->config['sitename'],
$email,
'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME] );
'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
// This is a redundant notification - no point throwing errors if it fails.
}
if($auto_confirm) {

5
mod/lostpass.php

@ -35,9 +35,8 @@ function lostpass_post(&$a) {
'$reset_link' => $a->get_baseurl() . '/lostpass?verify=' . $new_password
));
$res = mail($email,"Password reset requested at {$a->config['sitename']}",$email_tpl,"From: Administrator@{$_SERVER[SERVER_NAME]}");
$res = mail($email, t('Password reset requested at ') . $a->config['sitename'],
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME]);
goaway($a->get_baseurl());
}

4
mod/register.php

@ -195,7 +195,7 @@ function register_post(&$a) {
'$uid' => $newuid ));
$res = mail($email, t('Registration details for ') . $a->config['sitename'],
$email_tpl, 'From: ' . t('Administrator@') . $_SERVER['SERVER_NAME']);
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME']);
if($res) {
@ -232,7 +232,7 @@ function register_post(&$a) {
));
$res = mail($a->config['admin_email'], t('Registration request at ') . $a->config['sitename'],
$email_tpl,'From: ' . t('Administrator@') . $_SERVER[SERVER_NAME]);
$email_tpl,'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME']);
if($res) {
notice( t('Your registration is pending approval by the site owner.') . EOL ) ;

4
mod/regmod.php

@ -15,7 +15,7 @@ function regmod_content(&$a) {
if($a->argc != 3)
killme();
$cmd = $a->argv[1];
$cmd = $a->argv[1];
$hash = $a->argv[2];
@ -76,7 +76,7 @@ function regmod_content(&$a) {
));
$res = mail($user[0]['email'], t('Registration details for '). $a->config['sitename'],
$email_tpl,'From: ' . t('Administrator@') . $_SERVER[SERVER_NAME] );
$email_tpl,'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
if($res) {
notice( t('Account approved.') . EOL );

Loading…
Cancel
Save