* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: utilisateurs.php,v 1.24 2004-10-11 18:56:02 x2000habouzit Exp $
+ $Id: utilisateurs.php,v 1.25 2004-10-25 19:36:11 x2000habouzit Exp $
***************************************************************************/
require("auto.prepend.inc.php");
$globals->db->query($query);
$r=$globals->db->query("SELECT *
FROM auth_user_md5 AS u
- INNER JOIN aliases AS a ON ( a.id = u.user_id AND a.alias='$login' AND type!='homonyme' )");
+ INNER JOIN aliases AS a ON ( a.id = u.user_id AND a.id='{$_REQUEST['user_id']}' )");
if($tmp = mysql_fetch_assoc($r)) $mr=$tmp;
mysql_free_result($r);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: newsletter.inc.php,v 1.25 2004-10-25 19:28:34 x2000habouzit Exp $
+ $Id: newsletter.inc.php,v 1.26 2004-10-25 19:36:12 x2000habouzit Exp $
***************************************************************************/
define('FEMME', 1);
function sendTo($prenom,$nom,$forlife,$sex,$html) {
require_once('diogenes.mailer.inc.php');
+ $fullname = "=?ISO-8859-1?Q?".quoted_printable_encode(str_replace(' ','_',"$prenom $nom"),200)."?=";
$mailer = new DiogenesMailer("Lettre Mensuelle Polytechnique.org <info+nlp@polytechnique.org>",
- "$prenom $nom <$forlife@polytechnique.org>",
+ "$fullname <$forlife@polytechnique.org>",
$this->title(true),
$html);
if($html) {