projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow access to list trombi on xnet
[platal.git]
/
modules
/
marketing.php
diff --git
a/modules/marketing.php
b/modules/marketing.php
index
842a8c3
..
0235efa
100644
(file)
--- a/
modules/marketing.php
+++ b/
modules/marketing.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
6
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-92,7
+92,7
@@
class MarketingModule extends PLModule
WHERE user_id={?} AND perms='pending'", $uid);
if (list($nom, $prenom, $promo, $matricule) = $res->fetchOneRow()) {
WHERE user_id={?} AND perms='pending'", $uid);
if (list($nom, $prenom, $promo, $matricule) = $res->fetchOneRow()) {
- require_once('
register
.inc.php');
+ require_once('
user.func
.inc.php');
$matricule_X = get_X_mat($matricule);
$page->assign('nom', $nom);
$page->assign('prenom', $prenom);
$matricule_X = get_X_mat($matricule);
$page->assign('nom', $nom);
$page->assign('prenom', $prenom);
@@
-186,8
+186,7
@@
class MarketingModule extends PLModule
$email = trim(Post::v('mail'));
if (Post::has('valide') && strlen($email) > 0) {
$email = trim(Post::v('mail'));
if (Post::has('valide') && strlen($email) > 0) {
- require_once('diogenes/diogenes.hermes.inc.php');
- $mailer = new HermesMailer();
+ $mailer = new PlMailer();
$mailer->setFrom(S::v('bestalias') . '@polytechnique.org');
$mailer->addTo('resetpass@polytechnique.org');
$mailer->setSubject("Proposition d'adresse mail pour " . $user['forlife']);
$mailer->setFrom(S::v('bestalias') . '@polytechnique.org');
$mailer->addTo('resetpass@polytechnique.org');
$mailer->setSubject("Proposition d'adresse mail pour " . $user['forlife']);