list($effau, $effid) = $res->fetchOneRow();
if (5*$effau>$effid) { // + de 20% d'inscrits
require_once("xorg.mailer.inc.php");
- $mymail = new XOrgMailer('forums.promo.tpl');
+ $mymail = new XOrgMailer('mails/forums.promo.tpl');
$mymail->assign('promo', $promo);
$mymail->send();
}
$globals->hook->subscribe($forlife, $uid, $promo, $password);
require_once('xorg.mailer.inc.php');
-$mymail = new XOrgMailer('inscription.reussie.tpl');
+$mymail = new XOrgMailer('mails/inscription.reussie.tpl');
$mymail->assign('forlife', $forlife);
$mymail->assign('prenom', $prenom);
$mymail->send();
$pass_encrypted = hash_encrypt($pass);
$fdate = strftime('%d %B %Y', strtotime($date));
- $mymail = new XOrgMailer('marketing.relance.tpl');
+ $mymail = new XOrgMailer('marketing/mail.relance.tpl');
$mymail->assign('nbdix', $nbx);
$mymail->assign('fdate', $fdate);
$mymail->assign('lusername', $alias);
$uid, $forlife, $bestalias, $mailorg2, $pass_encrypted, $email, $naissance, $hash);
require_once('xorg.mailer.inc.php');
- $mymail = new XOrgMailer('inscrire.mail.tpl');
+ $mymail = new XOrgMailer('mails/inscrire.mail.tpl');
$mymail->assign('mailorg', $bestalias);
$mymail->assign('lemail', $email);
$mymail->assign('pass', $pass);
}
if ($action == 'insrel') {
- require_once('marketing.inc.php');
+ require_once 'marketing.inc.php';
if (relance($uid)) {
$page->trig('relance faite');
}
$page->changeTpl('marketing/relance.tpl');
if (Post::has('relancer')) {
+ require_once 'marketing.inc.php';
+
$res = $globals->xdb->query("SELECT COUNT(*) FROM auth_user_md5 WHERE deces=0");
$nbdix = $res->fetchOneCell();