X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fhomonymes.inc.php;h=b88586cb424672b20b4b9824c498b0d4098d48e4;hb=63fac48e801886b27c5b0254c16f25a5c9084071;hp=8fe93e60c713ea704ea1100c886b4130d95907e2;hpb=1d55fe45fa148bbe6209f82f97d19dcd26455eeb;p=platal.git diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index 8fe93e6..b88586c 100644 --- a/include/validations/homonymes.inc.php +++ b/include/validations/homonymes.inc.php @@ -25,7 +25,7 @@ require_once 'validations.inc.php'; class HomonymeReq extends Validate { // {{{ properties - + public $loginbis; public $warning = true; @@ -36,7 +36,7 @@ class HomonymeReq extends Validate // }}} // {{{ constructor - + public function __construct($_uid, $_loginbis, $_homonymes_forlife, $warning=true) { $this->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'; @@ -74,7 +74,7 @@ class HomonymeReq extends Validate // }}} // {{{ function _mail_body - + protected function _mail_body($isok) { global $globals; @@ -115,7 +115,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 +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; }