Repair user private mail
This commit is contained in:
parent
a35c82d2d9
commit
054e53d81a
|
@ -399,7 +399,6 @@ class User
|
|||
global $config;
|
||||
global $user;
|
||||
|
||||
$this->populate();
|
||||
$url = "http://".$_SERVER['SERVER_NAME'].$config['rel_root_folder'];
|
||||
|
||||
$message = "Bonjour ".$this->name.",<br>\r\n";
|
||||
|
@ -413,16 +412,16 @@ class User
|
|||
$message .= "L'équipe Kabano.<br>\r\n";
|
||||
$message .= "<small style='color:#777;'><i>Fait avec ♥ depuis Toulouse.</i></small><br>\r\n";
|
||||
|
||||
$headers = 'From: '. $from->mail . "\r\n" .
|
||||
'Reply-To: '. $from->mail . "\r\n" .
|
||||
$headers = 'From: '. $from->email . "\r\n" .
|
||||
'Reply-To: '. $from->email . "\r\n" .
|
||||
'X-Mailer: PHP/' . phpversion() . "\r\n" .
|
||||
'MIME-Version: 1.0' . "\r\n" .
|
||||
'Content-type: text/html; charset=UTF-8' . "\r\n";
|
||||
|
||||
mail($this->mail, 'Kabano - Nouveau message privé', $message, $headers);
|
||||
mail($this->email, 'Kabano - Nouveau message privé', $message, $headers);
|
||||
|
||||
error_log(
|
||||
date('r')." \t".$user->name." (".$user->id.") \tMAIL \tMail sent to ".$this->name." (".$this->id.")\r\n",
|
||||
date('r')." \t".$user->name." (".$user->get_id().") \tMAIL \tMail sent to ".$this->name." (".$this->id.")\r\n",
|
||||
3,
|
||||
$config['logs_folder'].'users.log');
|
||||
}
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>news">Nouveautés</a></li>
|
||||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>community">Contribuer</a></li>
|
||||
<li class="on-bar has-sub">
|
||||
<? if (isset($user->avatar) AND $user->avatar=='t') { ?>
|
||||
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->id?>_s.jpg"></a>
|
||||
<? } elseif (isset($user->avatar) AND $user->avatar=='f') { ?>
|
||||
<? if ($user->get_id() == 0) { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fa fa-user"></i></a>
|
||||
<? } elseif ($user->get_avatar() == NULL) { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fa fa-user-secret"></i></a>
|
||||
<? } else { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fa fa-user"></i></a>
|
||||
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->get_avatar()?>_s.jpg"></a>
|
||||
<? } ?>
|
||||
<ul>
|
||||
<? if($user->rank == 'visitor') { ?>
|
||||
|
|
Loading…
Reference in New Issue