X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations%2Fhomonymes.inc.php;h=c314fdfbb58ea57b35bb8c8c307658a22608179e;hb=1d08054d724a64a6a3d136bd61348e3a8615b46a;hp=8fe93e60c713ea704ea1100c886b4130d95907e2;hpb=1d55fe45fa148bbe6209f82f97d19dcd26455eeb;p=platal.git diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index 8fe93e6..c314fdf 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,13 @@ class HomonymeReq extends Validate protected function _mail_subj() { + global $globals; 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; @@ -115,7 +116,7 @@ est ambigu pour des raisons d'homonymie et signalera ton email exact."; } // }}} // {{{ function commit() - + public function commit() { require_once('homonymes.inc.php'); @@ -125,7 +126,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; }