X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fregister.inc.php;h=d073be32a90643fd00bd0ac43f56af5bd5d0afb2;hb=5c5554b7fbe838b6048b183e846a801832df745e;hp=c77a9978daececcc1dee03e9518954abf319fb6b;hpb=ae1bad30bf6d5bb241a95898548211394eb54ea3;p=platal.git diff --git a/include/register.inc.php b/include/register.inc.php index c77a997..d073be3 100644 --- a/include/register.inc.php +++ b/include/register.inc.php @@ -193,8 +193,7 @@ function create_aliases (&$sub) $res = XDB::query("SELECT alias FROM aliases WHERE id={?} AND expire IS NULL", $h_id); $als = $res->fetchColumn(); - require_once('diogenes/diogenes.hermes.inc.php'); - $mailer = new HermesMailer(); + $mailer = new PlMailer(); $mailer->setFrom('"Support Polytechnique.org" '); $mailer->addTo("$mailorg@polytechnique.org"); $mailer->setSubject("perte de ton alias $mailorg dans un mois !"); @@ -244,8 +243,7 @@ function create_aliases (&$sub) function send_alert_mail($state, $body) { - require_once("diogenes/diogenes.hermes.inc.php"); - $mailer = new HermesMailer(); + $mailer = new PlMailer(); $mailer->setFrom("webmaster@polytechnique.org"); $mailer->addTo("hotliners@staff.polytechnique.org"); $mailer->setSubject("ALERTE LORS DE L'INSCRIPTION de " @@ -276,8 +274,7 @@ function finish_ins($sub_state) VALUES ({?}, {?}, {?}, {?}, {?}, {?}, NOW(), 0, {?}, {?})", $uid, $forlife, $bestalias, $mailorg2, $pass_encrypted, $email, $naissance, $hash); - require_once('xorg.mailer.inc.php'); - $mymail = new XOrgMailer('register/inscrire.mail.tpl'); + $mymail = new PlMailer('register/inscrire.mail.tpl'); $mymail->assign('mailorg', $bestalias); $mymail->assign('lemail', $email); $mymail->assign('pass', $pass);