X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fhomonymes.inc.php;h=ac9de9147edc356eaa4aa8bcef05391572cbde29;hb=ff95a30266c7194bdff34f749121d43130f08b65;hp=39c079453dd30f1d2ccea4c186e34e5ba4b37725;hpb=612a2d8ae13ee29edb3279132877b63db18a5da5;p=platal.git diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index 39c0794..ac9de91 100644 --- a/include/validations/homonymes.inc.php +++ b/include/validations/homonymes.inc.php @@ -1,6 +1,6 @@ warning = $warning; @@ -47,10 +47,10 @@ class HomonymeReq extends Validate $this->loginbis = $_loginbis; $this->homonymes_forlife = $_homonymes_forlife; } - + // }}} // {{{ title() - + private function title() { return $this->warning?'alerte alias':'robot répondeur'; @@ -69,12 +69,12 @@ 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->mail->domain; } // }}} // {{{ function _mail_body - + protected function _mail_body($isok) { global $globals; @@ -108,14 +108,14 @@ est ambigu pour des raisons d'homonymie et signalera ton email exact."; $body = $this->prenom.",\n\n" . $this->_mail_body($isok) . (Env::has('comm') ? "\n\n".Env::v('comm') : '') - . "\n\nCordialement,\nL'équipe Polytechnique.org\n"; + . "\n\nCordialement,\n\n-- \nL'équipe de Polytechnique.org\n"; $mailer->setTxtBody(wordwrap($body)); $mailer->send(); } // }}} // {{{ function commit() - + public function commit() { require_once('homonymes.inc.php'); @@ -125,7 +125,7 @@ est ambigu pour des raisons d'homonymie et signalera ton email exact."; XDB::execute("UPDATE aliases SET type='homonyme',expire=NOW() WHERE alias={?}", $this->loginbis); XDB::execute("REPLACE INTO homonymes (homonyme_id,user_id) VALUES({?},{?})", $this->uid, $this->uid); } - + return true; }