Backport
[platal.git] / include / homonymes.inc.php
index 5b37d7c..12cf9c2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -29,28 +29,26 @@ function select_if_homonyme($uid) {
 }
 
 function send_warning_homonyme($prenom, $nom, $forlife, $loginbis) {
-    require_once("diogenes/diogenes.hermes.inc.php");
     $cc = "support+homonyme@polytechnique.org";
     $FROM = "\"Support Polytechnique.org\" <$cc>";
-    $mymail = new HermesMailer();
+    $mymail = new PlMailer();
     $mymail->setFrom($FROM);
     $mymail->setSubject("Dans 2 semaines, suppression de $loginbis@polytechnique.org");
     $mymail->addTo("$prenom $nom <$forlife@polytechnique.org>");
     $mymail->addCc($cc);
-    $mymail->setTxtBody(Env::get('mailbody'));
+    $mymail->setTxtBody(Env::v('mailbody'));
     $mymail->send();
 }
 
 function send_robot_homonyme($prenom, $nom, $forlife, $loginbis) {
-    require_once("diogenes/diogenes.hermes.inc.php");
     $cc = "support+homonyme@polytechnique.org";
     $FROM = "\"Support Polytechnique.org\" <$cc>";
-    $mymail = new HermesMailer();
+    $mymail = new PlMailer();
     $mymail->setFrom($FROM);
     $mymail->setSubject("Mise en place du robot $loginbis@polytechnique.org");
     $mymail->addTo("$prenom $nom <$forlife@polytechnique.org>");
     $mymail->addCc($cc);
-    $mymail->setTxtBody(Env::get('mailbody'));
+    $mymail->setTxtBody(Env::v('mailbody'));
     $mymail->send();
 }
 
@@ -69,4 +67,5 @@ function switch_bestalias($uid, $loginbis) {
     return $newbest;
 }
 
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>