From d7dd70be3dd8f76ae6dc9fed7977e7aa7b603085 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sun, 5 Aug 2007 10:32:21 +0000 Subject: [PATCH] Remove most references to @polytechnique.org email adresses. git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1897 839d8a87-29fc-0310-9880-83ba4fa771e5 --- bin/cron/cron_validations.php | 4 ++-- bin/cron/notifs.send.php | 4 ++-- bin/emails.broken.php | 2 +- include/banana/forum.inc.php | 2 +- include/homonymes.inc.php | 12 ++++++------ include/marketing.inc.php | 6 +++--- include/validations.inc.php | 2 +- include/validations/broken.inc.php | 4 ++-- include/validations/homonymes.inc.php | 2 +- include/xorg.misc.inc.php | 4 ++-- modules/axletter.php | 2 +- modules/core.php | 6 +++--- modules/email.php | 6 +++--- modules/marketing.php | 2 +- modules/payment.php | 20 ++++++++++---------- modules/payment/money/cyberpaiement.inc.php | 2 +- modules/payment/money/paypal.inc.php | 2 +- modules/platal.php | 2 +- modules/register.php | 7 ++++--- modules/register/register.inc.php | 11 ++++++----- modules/xnetlists.php | 4 ++-- templates/admin/homonymes.tpl | 18 +++++++++--------- templates/carnet/calendar.tpl | 2 +- templates/emails/broken.mail.tpl | 4 ++-- templates/emails/broken.tpl | 3 ++- templates/emails/redirect.tpl | 8 ++++---- templates/include/plview.geoloc.tpl | 3 ++- templates/payment/xnet.tpl | 2 +- templates/platal/preferences.tpl | 4 ++-- templates/platal/recovery.tpl | 4 ++-- templates/profile/nomusage.tpl | 2 +- templates/register/end.tpl | 2 +- templates/register/step3.tpl | 10 +++++----- templates/register/step4.tpl | 2 +- templates/register/success.tpl | 2 +- 35 files changed, 88 insertions(+), 84 deletions(-) diff --git a/bin/cron/cron_validations.php b/bin/cron/cron_validations.php index 68f8d27..4a45df5 100755 --- a/bin/cron/cron_validations.php +++ b/bin/cron/cron_validations.php @@ -39,8 +39,8 @@ if (empty($nb)) { $plural = $nb == 1 ? "" : "s"; $mymail = new PlMailer(); -$mymail->setFrom('validation@polytechnique.org'); -$mymail->addTo("validation@polytechnique.org"); +$mymail->setFrom('validation@' . $globals->mails->domain); +$mymail->addTo("validation@" . $globals->mails->domain); $mymail->setSubject((empty($nbveryold)?"":"[urgent] ")."il y a $nb validation$plural non effectuée$plural"); $message = diff --git a/bin/cron/notifs.send.php b/bin/cron/notifs.send.php index b3891e1..61b4620 100755 --- a/bin/cron/notifs.send.php +++ b/bin/cron/notifs.send.php @@ -83,8 +83,8 @@ EOF; EOF; $mailer = new PlMailer(); - $mailer->setFrom("Carnet Polytechnicien "); - $mailer->addTo("\"{$u['prenom']} {$u['nom']}\" <{$u['bestalias']}@polytechnique.org>"); + $mailer->setFrom('Carnet Polytechnicien mails->domain . '>'); + $mailer->addTo("\"$u['prenom']} {$u['nom']}\" <{$u['bestalias']}@" . $globals->mails->domain . '>'); $mailer->setSubject("Notifications de la semaine $week"); $mailer->setTxtBody($text); if ($u['mail_fmt'] == 'html') { $mailer->setHtmlBody($html); } diff --git a/bin/emails.broken.php b/bin/emails.broken.php index becd859..982ddc7 100755 --- a/bin/emails.broken.php +++ b/bin/emails.broken.php @@ -75,7 +75,7 @@ foreach ($emails as $_email) { echo "$email : seule adresse active de {$x['prenom']} {$x['nom']}\n"; } else { $mail = new PlMailer('emails/broken.mail.tpl'); - $mail->addTo("\"{$x['prenom']} {$x['nom']}\" <{$x['alias']}@polytechnique.org>"); + $mail->addTo("\"{$x['prenom']} {$x['nom']}\" <{$x['alias']}@" . $globals->mails->domain . '>'); $mail->assign('x', $x); $mail->assign('email', $email); $mail->send(); diff --git a/include/banana/forum.inc.php b/include/banana/forum.inc.php index aa81865..51a862a 100644 --- a/include/banana/forum.inc.php +++ b/include/banana/forum.inc.php @@ -70,7 +70,7 @@ class ForumsBanana extends Banana WHERE uid={?}", S::i('uid')); if (!(list($nom,$mail,$sig,$disp,$maj) = $req->fetchOneRow())) { $nom = S::v('prenom')." ".S::v('nom'); - $mail = S::v('forlife')."@polytechnique.org"; + $mail = S::v('forlife')."@" . $globals->mails->domain; $sig = $nom." (".S::v('promo').")"; $disp = 0; $maj = 1; diff --git a/include/homonymes.inc.php b/include/homonymes.inc.php index 12cf9c2..b9a84d0 100644 --- a/include/homonymes.inc.php +++ b/include/homonymes.inc.php @@ -29,24 +29,24 @@ function select_if_homonyme($uid) { } function send_warning_homonyme($prenom, $nom, $forlife, $loginbis) { - $cc = "support+homonyme@polytechnique.org"; + $cc = "support+homonyme@" . $globals->mails->domain; $FROM = "\"Support Polytechnique.org\" <$cc>"; $mymail = new PlMailer(); $mymail->setFrom($FROM); - $mymail->setSubject("Dans 2 semaines, suppression de $loginbis@polytechnique.org"); - $mymail->addTo("$prenom $nom <$forlife@polytechnique.org>"); + $mymail->setSubject("Dans 2 semaines, suppression de $loginbis@" . $globals->mails->domain); + $mymail->addTo("$prenom $nom <$forlife@" . $globals->mails->domain . '>'); $mymail->addCc($cc); $mymail->setTxtBody(Env::v('mailbody')); $mymail->send(); } function send_robot_homonyme($prenom, $nom, $forlife, $loginbis) { - $cc = "support+homonyme@polytechnique.org"; + $cc = "support+homonyme@" . $globals->mails->domain; $FROM = "\"Support Polytechnique.org\" <$cc>"; $mymail = new PlMailer(); $mymail->setFrom($FROM); - $mymail->setSubject("Mise en place du robot $loginbis@polytechnique.org"); - $mymail->addTo("$prenom $nom <$forlife@polytechnique.org>"); + $mymail->setSubject("Mise en place du robot $loginbis@" . $globals->mails->domain); + $mymail->addTo("$prenom $nom <$forlife@" . $globals->mails->domain . '>'); $mymail->addCc($cc); $mymail->setTxtBody(Env::v('mailbody')); $mymail->send(); diff --git a/include/marketing.inc.php b/include/marketing.inc.php index 37d7075..beca023 100644 --- a/include/marketing.inc.php +++ b/include/marketing.inc.php @@ -71,17 +71,17 @@ class Marketing private function getFrom($from, $sender) { if ($from == 'staff') { - return '"Equipe Polytechnique.org" '; + return '"Equipe Polytechnique.org" mails->domain . '>'; } else { $res = XDB::query("SELECT u.nom, u.prenom, a.alias FROM auth_user_md5 AS u INNER JOIN aliases AS a ON (a.id = u.user_id AND FIND_IN_SET('bestalias', a.flags)) WHERE u.user_id = {?}", $sender); if (!$res->numRows()) { - return '"Equipe Polytechnique.org" '; + return '"Equipe Polytechnique.org" mails->domain . '>'; } $sender = $res->fetchOneAssoc(); - return '"' . $sender['prenom'] . ' ' . $sender['nom'] . '" <' . $sender['alias'] . '@polytechnique.org>'; + return '"' . $sender['prenom'] . ' ' . $sender['nom'] . '" <' . $sender['alias'] . '@' . $globals->mails->domain . '>'; } } diff --git a/include/validations.inc.php b/include/validations.inc.php index 96aa447..0b1eeac 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -187,7 +187,7 @@ abstract class Validate $mailer = new PlMailer; $mailer->setSubject("Commentaires de validation {$this->type}"); $mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}"); - $mailer->addTo("hotliners@staff.polytechnique.org"); + $mailer->addTo($globals->core->admin_emails); $body = "Validation {$this->type} pour {$this->prenom} {$this->nom}\n\n" . S::v('bestalias')." a ajouté le commentaire :\n\n" diff --git a/include/validations/broken.inc.php b/include/validations/broken.inc.php index d5cbe53..a72e67d 100644 --- a/include/validations/broken.inc.php +++ b/include/validations/broken.inc.php @@ -107,7 +107,7 @@ class BrokenReq extends Validate if (XDB::affectedRows() > 0) { $this->m_reactive = true; $mailer = new PlMailer(); - $mailer->setFrom('"Association Polytechnique.org" '); + $mailer->setFrom('"Association Polytechnique.org" mails->domain . '>'); $mailer->addTo($email); $mailer->setSubject("Mise à jour de ton adresse $email"); $mailer->setTxtBody(wordwrap("Cher Camarade,\n\n" @@ -154,7 +154,7 @@ class BrokenReq extends Validate . "-- \nTrès Cordialement,\nL'Equipe de Polytechnique.org\n"; $body = wordwrap($body, 78); $mailer = new PlMailer(); - $mailer->setFrom('"Association Polytechnique.org" '); + $mailer->setFrom('"Association Polytechnique.org" mails->domain . '>'); $mailer->addTo($this->m_email); $mailer->setSubject($subject); $mailer->setTxtBody($body); diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index ec73de6..0141bc9 100644 --- a/include/validations/homonymes.inc.php +++ b/include/validations/homonymes.inc.php @@ -69,7 +69,7 @@ class HomonymeReq extends Validate protected function _mail_subj() { - return "[Polytechnique.org/Support] ".($this->warning?"Dans une semaine : suppression de l'alias":"Mise en place du robot")." $loginbis@polytechnique.org"; + return "[Polytechnique.org/Support] ".($this->warning?"Dans une semaine : suppression de l'alias":"Mise en place du robot")." $loginbis@" . $globals->mails->domain; } // }}} diff --git a/include/xorg.misc.inc.php b/include/xorg.misc.inc.php index c5e4e1d..bc02c95 100644 --- a/include/xorg.misc.inc.php +++ b/include/xorg.misc.inc.php @@ -292,8 +292,8 @@ function check_redirect($red = null) function send_warning_mail($title) { $mailer = new PlMailer(); - $mailer->setFrom("webmaster@polytechnique.org"); - $mailer->addTo("hotliners@staff.polytechnique.org"); + $mailer->setFrom("webmaster@" . $globals->mails->domain); + $mailer->addTo($globals->core->admin_email); $mailer->setSubject("[Plat/al Security Alert] $title"); $mailer->setTxtBody("Identifiants de session :\n" . var_export($_SESSION, true) . "\n\n" ."Identifiants de connexion :\n" . var_export($_SERVER, true)); diff --git a/modules/axletter.php b/modules/axletter.php index a94db3a..0608f46 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -159,7 +159,7 @@ class AXLetterModule extends PLModule $id, $shortname, $subject, $title, $body, $signature, $promo_min, $promo_max, $echeance); if (!$saved) { $mailer = new PlMailer(); - $mailer->setFrom("support@polytechnique.org"); + $mailer->setFrom("support@" . $globals->mails->domain); $mailer->setSubject("Un nouveau projet de mail de l'AX vient d'être proposé"); $mailer->setTxtBody("Un nouveau mail vient d'être rédigé en prévision d'un envoi prochain. Vous pouvez " . "le modifier jusqu'à ce qu'il soit verrouillé pour l'envoi\n\n" diff --git a/modules/core.php b/modules/core.php index 133446a..91c3e0d 100644 --- a/modules/core.php +++ b/modules/core.php @@ -114,9 +114,9 @@ class CoreModule extends PLModule . "Skin : " . S::v('skin') . "\n"; $page->assign('bug_sent',1); $mymail = new PlMailer(); - $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>'); - $mymail->addTo('support+platal@polytechnique.org'); - $mymail->addCc('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>'); + $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@' . $globals->mails->domain . '>'); + $mymail->addTo('support+platal@' . $globals->mails->domain); + $mymail->addCc('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@' . $globals->mails->domain . '>'); $mymail->setSubject('Plat/al '.Env::v('task_type').' : '.Env::v('item_summary')); $mymail->setTxtBody($body); $mymail->send(); diff --git a/modules/email.php b/modules/email.php index 141b309..597df36 100644 --- a/modules/email.php +++ b/modules/email.php @@ -424,11 +424,11 @@ consulter la page <{$globals->baseurl}/emails/broken>. A bientôt sur Polytechnique.org ! -L'équipe d'administration "; +L'équipe d'administration mails->domain . '>'; $mail = new PlMailer(); - $mail->setFrom('"Polytechnique.org" '); - $mail->addTo("$dest@polytechnique.org"); + $mail->setFrom('"Polytechnique.org" mails->domain . '>'); + $mail->addTo("$dest@" . $globals->mails->domain); $mail->setSubject("Une de tes adresse de redirection Polytechnique.org ne marche plus !!"); $mail->setTxtBody($message); $mail->send(); diff --git a/modules/marketing.php b/modules/marketing.php index c8c5c81..6a5f744 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -118,7 +118,7 @@ class MarketingModule extends PLModule $from = $market->sender_mail; $page->assign('rel_from_user', $from); $page->assign('rel_from_staff', - '"Equipe Polytechnique.org" '); + '"Equipe Polytechnique.org" mails->domain . '>'); $page->assign('rel_to', $to); $page->assign('rel_title', $title); $page->assign('rel_text', $text); diff --git a/modules/payment.php b/modules/payment.php index 92c6cc4..713130c 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -22,8 +22,8 @@ /* sort en affichant une erreur */ function cb_erreur($text) { $mymail = new PlMailer(); - $mymail->addTo("telepaiement@polytechnique.org"); - $mymail->setFrom("webmaster@polytechnique.org"); + $mymail->addTo($globals->money->email); + $mymail->setFrom("webmaster@" . $globals->mails->domain); $mymail->setSubject("erreur lors d'un télépaiement (CyberPaiement)"); $mymail->setTxtBody("\n\n".var_export($_REQUEST,true)); $mymail->send(); @@ -39,8 +39,8 @@ function paypal_erreur($text, $send=true) if (!$send) return; $mymail = new PlMailer(); - $mymail->addTo("telepaiement@polytechnique.org"); - $mymail->setFrom("webmaster@polytechnique.org"); + $mymail->addTo($globals->money->email); + $mymail->setFrom("webmaster@" . $globals->mails->domain); $mymail->setSubject("erreur lors d'un télépaiement (PayPal)"); $mymail->setTxtBody("\n\n".var_export($_REQUEST,true)); $mymail->send(); @@ -220,7 +220,7 @@ class PaymentModule extends PLModule $mymail = new PlMailer(); $mymail->setFrom($conf_mail); - $mymail->addTo("\"$prenom $nom\" <$forlife@polytechnique.org>"); + $mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mails->domain . '>'); $mymail->addCc($conf_mail); $mymail->setSubject($conf_title); $mymail->setWikiBody($conf_text); @@ -228,8 +228,8 @@ class PaymentModule extends PLModule /* on envoie les details de la transaction à telepaiement@ */ $mymail = new PlMailer(); - $mymail->setFrom("webmaster@polytechnique.org"); - $mymail->addTo("telepaiement@staff.polytechnique.org"); + $mymail->setFrom("webmaster@" . $globals->mails->domain); + $mymail->addTo($globals->money->email); $mymail->setSubject($conf_title); $msg = "utilisateur : $prenom $nom ($uid)\n". "mail : $forlife@polytechnique.org\n\n". @@ -309,7 +309,7 @@ class PaymentModule extends PLModule $mymail = new PlMailer(); $mymail->setFrom($conf_mail); - $mymail->addTo("\"$prenom $nom\" <$forlife@polytechnique.org>"); + $mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mails->domain . '>'); $mymail->addCc($conf_mail); $mymail->setSubject($conf_title); $mymail->setWikiBody($conf_text); @@ -317,8 +317,8 @@ class PaymentModule extends PLModule /* on envoie les details de la transaction à telepaiement@ */ $mymail = new PlMailer(); - $mymail->setFrom("webmaster@polytechnique.org"); - $mymail->addTo("telepaiement@polytechnique.org"); + $mymail->setFrom("webmaster@" . $globals->mails->domain); + $mymail->addTo($globals->money->email); $mymail->setSubject($conf_title); $msg = "utilisateur : $prenom $nom ($uid)\n". "mail : $forlife@polytechnique.org\n\n". diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php index 3254114..b798596 100644 --- a/modules/payment/money/cyberpaiement.inc.php +++ b/modules/payment/money/cyberpaiement.inc.php @@ -75,7 +75,7 @@ class CyberPayment 'CHAMP101' => S::v('prenom'), 'CHAMP102' => '.', 'CHAMP103' => '.', - 'CHAMP104' => S::v('bestalias').'@polytechnique.org', + 'CHAMP104' => S::v('bestalias').'@' . $globals->mails->domain, 'CHAMP106' => '.', 'CHAMP107' => '.', 'CHAMP108' => '.', diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index acd9adc..bc17eca 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -75,7 +75,7 @@ class PayPal $info_client = Array( 'first_name' => S::v('prenom'), 'last_name' => $name, - 'email' => S::v('bestalias').'@polytechnique.org'); + 'email' => S::v('bestalias').'@' . $globals->mails->domain); $res = XDB::query( "SELECT a.adr1 AS address1, a.adr2 AS address2, diff --git a/modules/platal.php b/modules/platal.php index d83aa66..2a159d8 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -299,7 +299,7 @@ class PlatalModule extends PLModule $mails = implode(', ', $res->fetchColumn()); } $mymail = new PlMailer(); - $mymail->setFrom('"Gestion des mots de passe" '); + $mymail->setFrom('"Gestion des mots de passe" mails->domain . '>'); $mymail->addTo($mails); $mymail->setSubject('Ton certificat d\'authentification'); $mymail->setTxtBody("Visite la page suivante qui expire dans six heures : diff --git a/modules/register.php b/modules/register.php index 625b221..4dea3ae 100644 --- a/modules/register.php +++ b/modules/register.php @@ -192,7 +192,8 @@ class RegisterModule extends PLModule $sub_state['email'] = Post::v('email'); if (check_ip('unsafe')) { $err = "Une erreur s'est produite lors de l'inscription." - . " Merci de contacter register@polytechnique.org" + . " Merci de contacter next()) { $mymail = new PlMailer(); $mymail->setSubject("$prenom $nom s'est inscrit à Polytechnique.org !"); - $mymail->setFrom('"Marketing Polytechnique.org" '); + $mymail->setFrom('"Marketing Polytechnique.org" mails->domain . '>'); $mymail->addTo("\"$sprenom $snom\" <$salias@{$globals->mail->domain}>"); $msg = ($sfemme?'Chère':'Cher')." $sprenom,\n\n" . "Nous t'écrivons pour t'informer que $prenom $nom (X$promo), " @@ -345,7 +346,7 @@ class RegisterModule extends PLModule if ($globals->register->notif) { $mymail = new PlMailer(); $mymail->setSubject("Inscription de $prenom $nom (X$promo)"); - $mymail->setFrom('"Webmaster Polytechnique.org" '); + $mymail->setFrom('"Webmaster Polytechnique.org" mails->domain . '>'); $mymail->addTo($globals->register->notif); $msg = "$prenom $nom (X$promo) a terminé son inscription avec les données suivantes :\n" . " - nom : $nom\n" diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php index e0458fe..1bc4ce8 100644 --- a/modules/register/register.inc.php +++ b/modules/register/register.inc.php @@ -158,7 +158,8 @@ function create_aliases (&$sub) $res = XDB::query('SELECT COUNT(*) FROM aliases WHERE alias={?}', $forlife); if ($res->fetchOneCell() > 0) { return "Tu as un homonyme dans ta promo, il faut traiter ce cas manuellement.
". - "envoie un mail à
support@polytechnique.org en expliquant ta situation."; + "envoie un mail à mail->domain}\">" . + "support@{$globals->mail->domain} en expliquant ta situation."; } $res = XDB::query('SELECT id, type, expire FROM aliases WHERE alias={?}', $mailorg); @@ -175,10 +176,10 @@ function create_aliases (&$sub) $als = $res->fetchColumn(); $mailer = new PlMailer(); - $mailer->setFrom('"Support Polytechnique.org" '); - $mailer->addTo("$mailorg@polytechnique.org"); + $mailer->setFrom('"Support Polytechnique.org" mails->domain . '>'); + $mailer->addTo("$mailorg@" . $globals->mails->domain); $mailer->setSubject("perte de ton alias $mailorg dans un mois !"); - $mailer->addCc('"Support Polytechnique.org" '); + $mailer->addCc('"Support Polytechnique.org" mails->domain . '>'); $msg = "Bonjour,\n\n". @@ -245,7 +246,7 @@ function finish_ins($sub_state) $mymail->assign('pass', $pass); $mymail->assign('baseurl', $globals->baseurl); $mymail->assign('hash', $hash); - $mymail->assign('subj', $bestalias."@polytechnique.org"); + $mymail->assign('subj', $bestalias."@" . $globals->mails->domain); $mymail->send(); } diff --git a/modules/xnetlists.php b/modules/xnetlists.php index 8501046..d78eee0 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -214,7 +214,7 @@ class XnetListsModule extends ListsModule "SELECT if (m.origine='X',if (u.nom_usage<>'', u.nom_usage, u.nom) ,m.nom) AS nom, if (m.origine='X',u.prenom,m.prenom) AS prenom, if (m.origine='X',u.promo,'extérieur') AS promo, - if (m.origine='X',CONCAT(a.alias, '@polytechnique.org'),m.email) AS email, + if (m.origine='X',CONCAT(a.alias, '@{$globals->mails->domain}),m.email) AS email, if (m.origine='X',FIND_IN_SET('femme', u.flags),0) AS femme, m.perms='admin' AS admin, m.origine='X' AS x @@ -267,7 +267,7 @@ class XnetListsModule extends ListsModule WHERE alias={?}", "$alias@m4x.org", $lfull); $page->trig("$alias@m4x.org ajouté"); } else { - $page->trig("$mbox@polytechnique.org n'existe pas."); + $page->trig("$mbox@{$globals->mails->domain} n'existe pas."); } } else { XDB::query( diff --git a/templates/admin/homonymes.tpl b/templates/admin/homonymes.tpl index bf3aedb..386065a 100644 --- a/templates/admin/homonymes.tpl +++ b/templates/admin/homonymes.tpl @@ -85,11 +85,11 @@ Comme nous t'en avons informé par mail il y a quelques temps, pour respecter nos engagements en terme d'adresses e-mail devinables, -tu te verras bientôt retirer l'alias {$loginbis}@polytechnique.org pour -ne garder que {$forlife}@polytechnique.org. +tu te verras bientôt retirer l'alias {$loginbis}@{#globals.mail.domain#} pour +ne garder que {$forlife}@{#globals.mail.domain#}. -Toute personne qui écrira à {$loginbis}@polytechnique.org recevra la -réponse d'un robot qui l'informera que {$loginbis}@polytechnique.org +Toute personne qui écrira à {$loginbis}@{#globals.mail.domain#} recevra la +réponse d'un robot qui l'informera que {$loginbis}@{#globals.mail.domain#} est ambigu pour des raisons d'homonymie et signalera ton email exact. L'équipe Polytechnique.org @@ -110,7 +110,7 @@ L'équipe Polytechnique.org
- + diff --git a/templates/include/plview.geoloc.tpl b/templates/include/plview.geoloc.tpl index ece458e..8393328 100644 --- a/templates/include/plview.geoloc.tpl +++ b/templates/include/plview.geoloc.tpl @@ -94,6 +94,7 @@ function searchMapId() {else}

Le moteur de carte n'a pas été installé sur cette version de plat/al. Veuillez contacter Geodesix.

{/if} -

Pour toute question, problème ou suggestion tu peux envoyer un mail à geoloc@staff.polytechnique.org.

+

Pour toute question, problème ou suggestion tu peux envoyer un mail à +{#globals.geoloc.email#}.

{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} diff --git a/templates/payment/xnet.tpl b/templates/payment/xnet.tpl index d6fd3fa..c04d14f 100644 --- a/templates/payment/xnet.tpl +++ b/templates/payment/xnet.tpl @@ -119,7 +119,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} diff --git a/templates/platal/preferences.tpl b/templates/platal/preferences.tpl index 0e0f840..6def596 100644 --- a/templates/platal/preferences.tpl +++ b/templates/platal/preferences.tpl @@ -38,9 +38,9 @@ diff --git a/templates/platal/recovery.tpl b/templates/platal/recovery.tpl index ac11d18..30925e5 100644 --- a/templates/platal/recovery.tpl +++ b/templates/platal/recovery.tpl @@ -43,7 +43,7 @@ Si tu n'accèdes pas à ton mail dans les 6 heures, sollicite un nouveau certifi

- Contacte le support pour que nous puissions régler ton problème + Contacte le support pour que nous puissions régler ton problème au plus vite.

@@ -63,7 +63,7 @@ Si tu n'accèdes pas à ton mail dans les 6 heures, sollicite un nouveau certifi

Si tu ne reçois pas ce courrier, n'hésite pas à contacter - le support technique. + le support technique.

Mettre en place le robot {$loginbis}@polytechnique.orgMettre en place le robot {$loginbis}@{#globals.mail.domain#}
@@ -119,13 +119,13 @@ L'équipe Polytechnique.org Comme nous t'en avons informé par mail il y a quelques temps, nous t'avons retiré de façon définitive l'adresse -{$loginbis}@polytechnique.org. +{$loginbis}@{#globals.mail.domain#}. -Toute personne qui écrit à {$loginbis}@polytechnique.org reçoit la -réponse d'un robot qui l'informe que {$loginbis}@polytechnique.org +Toute personne qui écrit à {$loginbis}@{#globals.mail.domain#} reçoit la +réponse d'un robot qui l'informe que {$loginbis}@{#globals.mail.domain#} est ambigu pour des raisons d'homonymie et indique ton email exact. -Tu peux faire l'essai toi-même en écrivant à {$loginbis}@polytechnique.org. +Tu peux faire l'essai toi-même en écrivant à {$loginbis}@{#globals.mail.domain#}. L'équipe Polytechnique.org {#globals.baseurl#} diff --git a/templates/carnet/calendar.tpl b/templates/carnet/calendar.tpl index 262d039..a705606 100644 --- a/templates/carnet/calendar.tpl +++ b/templates/carnet/calendar.tpl @@ -31,7 +31,7 @@ BEGIN:VEVENT DTSTAMP:{$e.timestamp|date_format:"%Y%m%dT%H%M%SZ"} DTSTART;VALUE=DATE:{$e.date} DTEND;VALUE=DATE:{$e.tomorrow} -UID:anniv-{$e.date}-{$e.forlife}@polytechnique.org +UID:anniv-{$e.date}-{$e.forlife}@{#globals.mail.domain#} RRULE:FREQ=YEARLY;INTERVAL=1 CLASS:PUBLIC {display_ical name="summary" value=$e.summary} diff --git a/templates/emails/broken.mail.tpl b/templates/emails/broken.mail.tpl index a68a43f..795a746 100644 --- a/templates/emails/broken.mail.tpl +++ b/templates/emails/broken.mail.tpl @@ -30,7 +30,7 @@ Bonjour ! Nous t'écrivons car lors de l'envoi de la lettre d'information mensuelle de Polytechnique.org à ton adresse polytechnicienne : - {$x.alias}@polytechnique.org, + {$x.alias}@{#globals.mail.domain#}, l'adresse {$email}, sur laquelle tu rediriges ton courrier, ne fonctionnait pas. @@ -44,7 +44,7 @@ polytechnicienne, il te suffit de te rendre sur la page : A bientôt sur Polytechnique.org ! -L'équipe d'administration +L'équipe d'administration --------------------------------------------------------------------------- diff --git a/templates/emails/broken.tpl b/templates/emails/broken.tpl index 1968305..e2cfab8 100644 --- a/templates/emails/broken.tpl +++ b/templates/emails/broken.tpl @@ -26,7 +26,8 @@

Erreur !

-Tu as entré une adresse @polytechnique.org, @m4x.org ou @melix, ce qui est invalide. +Tu as entré une adresse @{#globals.mail.domain#}, @{#globals.mail.domain2#} ou @{#globals.mail.alias_dom#}, +ce qui est invalide.

diff --git a/templates/emails/redirect.tpl b/templates/emails/redirect.tpl index d69fcfd..2e4f90c 100644 --- a/templates/emails/redirect.tpl +++ b/templates/emails/redirect.tpl @@ -132,10 +132,10 @@

- {icon name=email title="mail"} + {icon name=email title="mail"} {$p.promo} {$p.comment} -

Mon alias mail @melix.net

+

Mon alias mail @{#globals.mail.alias_dom#}

- Pour choisir un alias @melix.net/melix.org (en choisir un nouveau annule l'ancien). + Pour choisir un alias @{#globals.mail.alias_dom#}/{#globals.mail.alias_dom2#} (en choisir un nouveau annule l'ancien).
diff --git a/templates/profile/nomusage.tpl b/templates/profile/nomusage.tpl index d3b720c..92960d2 100644 --- a/templates/profile/nomusage.tpl +++ b/templates/profile/nomusage.tpl @@ -68,7 +68,7 @@ exceptionnellement sur changement de l'état civil, ...).

Les surnoms sont systématiquement refusés. Pour utiliser une adresse personnalisée, il faut se tourner vers -l'alias @melix.net. +l'alias @{#globals.mail.alias_dom#}.

diff --git a/templates/register/end.tpl b/templates/register/end.tpl index 981f472..2333220 100644 --- a/templates/register/end.tpl +++ b/templates/register/end.tpl @@ -29,7 +29,7 @@ Une erreur est survenue lors de ton inscription ...

Contacte nous au plus vite, en nous indiquant ce nombre : {$uid} sur -support@m4x.org +support@{#globals.mail.domain#}

{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} diff --git a/templates/register/step3.tpl b/templates/register/step3.tpl index 089ea52..5f06921 100644 --- a/templates/register/step3.tpl +++ b/templates/register/step3.tpl @@ -30,16 +30,16 @@ {if $smarty.session.sub_state.mailorg2}

Tu n'as pour le moment aucun homonyme dans notre base de données, nous allons - donc te donner l'adresse {$smarty.session.sub_state.bestalias}@polytechnique.org, - en plus de ton adresse à vie {$smarty.session.sub_state.forlife}@polytechnique.org. - Sache que tu peux perdre l'adresse {$smarty.session.sub_state.bestalias}@polytechnique.org + donc te donner l'adresse {$smarty.session.sub_state.bestalias}@{#globals.mail.domain#}, + en plus de ton adresse à vie {$smarty.session.sub_state.forlife}@{#globals.mail.domain#}. + Sache que tu peux perdre l'adresse {$smarty.session.sub_state.bestalias}@{#globals.mail.domain#} si un homonyme s'inscrit (même si cela reste assez rare).

{else}

Tu as déjà un homonyme inscrit dans notre base de données mais dans une autre promotion, nous allons - donc te donner l'adresse {$smarty.session.sub_state.bestalias}@polytechnique.org, en plus - de ton adresse à vie {$smarty.session.sub_state.forlife}@polytechnique.org. + donc te donner l'adresse {$smarty.session.sub_state.bestalias}@{#globals.mail.domain#}, en plus + de ton adresse à vie {$smarty.session.sub_state.forlife}@{#globals.mail.domain#}.

{/if} diff --git a/templates/register/step4.tpl b/templates/register/step4.tpl index 10ce8bd..a983477 100644 --- a/templates/register/step4.tpl +++ b/templates/register/step4.tpl @@ -29,7 +29,7 @@ La pré-inscription que tu viens de soumettre a été enregistrée.

Les instructions te permettant notamment d'activer ton e-mail -{$smarty.session.sub_state.forlife}@polytechnique.org, ainsi que ton mot de passe pour +{$smarty.session.sub_state.forlife}@{#globals.mail.domain#}, ainsi que ton mot de passe pour accéder au site viennent de t'être envoyés à l'adresse {$smarty.session.sub_state.email}.

diff --git a/templates/register/success.tpl b/templates/register/success.tpl index f8e1cc8..c343cf0 100644 --- a/templates/register/success.tpl +++ b/templates/register/success.tpl @@ -26,7 +26,7 @@

Tu as maintenant accès au site !!!
-Ton adresse électronique à vie {$smarty.session.forlife}@polytechnique.org est déjà ouverte, essaie-la ! +Ton adresse électronique à vie {$smarty.session.forlife}@{#globals.mail.domain#} est déjà ouverte, essaie-la !

Remarque : m4x.org est un domaine "discret" qui veut dire "mail for X" et -- 2.1.4