$all = new AllNotifs();
-$mailer = new PlMailer('carnet/mail.notif.tpl');
+$mailer = new PlMailer('carnet/notif.mail.tpl');
foreach ($all->_data as $u) {
- $mailer = new PlMailer('carnet/mail.notif.tpl');
+ $mailer = new PlMailer('carnet/notif.mail.tpl');
$mailer->assign('u', $u);
$mailer->assign('week', date("W - Y"));
$mailer->assign('cats', $all->_cats);
$pass_encrypted = hash_encrypt($pass);
$fdate = strftime('%d %B %Y', strtotime($date));
- $mymail = new PlMailer('marketing/mail.relance.tpl');
+ $mymail = new PlMailer('marketing/relance.mail.tpl');
$mymail->assign('nbdix', $nbx);
$mymail->assign('fdate', $fdate);
$mymail->assign('lusername', $alias);
public function getText(array $user)
{
- $page = new XorgPage('marketing/mail.marketing.tpl', NO_SKIN);
+ $page = new XorgPage('marketing/marketing.mail.tpl', NO_SKIN);
$this->prepareText($page, $user);
return $page->raw();
}
function __construct($id = null)
{
- parent::__construct('newsletter/nl.tpl', 'nl.css', 'nl/show', 'newsletter', 'newsletter_ins');
+ parent::__construct('newsletter/nl.mail.tpl', 'nl.css', 'nl/show', 'newsletter', 'newsletter_ins');
if (isset($id)) {
if ($id == 'last') {
$res = XDB::query("SELECT MAX(id) FROM newsletter WHERE bits!='new'");
WHERE e.eid = {?}",
$this->evt);
list($nom, $diminutif, $evt) = $res->fetchOneRow();
- $mailer = new PlMailer('xnetevents/mail.new_payment.tpl');
+ $mailer = new PlMailer('xnetevents/newpayment.mail.tpl');
$mailer->assign('asso', $nom);
$mailer->assign('diminutif', $diminutif);
$mailer->assign('evt', $evt);
$res = XDB::query($watch);
$new_fields = $res->fetchOneAssoc();
- $mailer = new PlMailer("admin/mail_intervention.tpl");
+ $mailer = new PlMailer("admin/useredit.mail.tpl");
$mailer->assign("user", S::v('forlife'));
$mailer->assign('old', $old_fields);
$mailer->assign('new', $new_fields);
// update number of subscribers (perms or deceased may have changed)
update_NbIns();
$page->trig("'{$mr['user_id']}' a été désinscrit !");
- $mailer = new PlMailer("admin/mail_intervention.tpl");
+ $mailer = new PlMailer("admin/useredit.mail.tpl");
$mailer->assign("user", S::v('forlife'));
$mailer->assign("query", "\nUtilisateur $login désinscrit");
$mailer->send();
function __construct($id)
{
- parent::__construct('axletter/letter.tpl', 'ax.css', 'ax/show', 'axletter', 'axletter_ins');
+ parent::__construct('axletter/letter.mail.tpl', 'ax.css', 'ax/show', 'axletter', 'axletter_ins');
$this->_head = '<cher> <prenom>,';
if (!is_array($id)) {
FROM auth_user_md5 WHERE promo={?}", $promo);
list($effau, $effid) = $res->fetchOneRow();
if (5*$effau>$effid) { // + de 20% d'inscrits
- $mymail = new PlMailer('mails/forums.promo.tpl');
+ $mymail = new PlMailer('admin/forums-promo.mail.tpl');
$mymail->assign('promo', $promo);
$mymail->send();
}
if (!S::has_perms() || !$forlife) {
$forlife = S::v('bestalias');
}
- $mailer = new PlMailer('emails/mail.test.tpl');
+ $mailer = new PlMailer('emails/test.mail.tpl');
$mailer->assign('email', $forlife . '@' . $globals->mail->domain);
$iterator = XDB::iterator("SELECT email
FROM emails AS e
} else if (@$address['parsevalid']) {
$address = array_merge($address, cut_address(@$address['text']));
$address['checked'] = true;
- $mailer = new PlMailer('geoloc/mail_geoloc.tpl');
+ $mailer = new PlMailer('geoloc/geoloc.mail.tpl');
$mailer->assign('text', get_address_text($address));
$mailer->assign('geoloc', $geotxt);
$mailer->send();
+++ /dev/null
-{**************************************************************************}
-{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
-{* http://opensource.polytechnique.org/ *}
-{* *}
-{* This program is free software; you can redistribute it and/or modify *}
-{* it under the terms of the GNU General Public License as published by *}
-{* the Free Software Foundation; either version 2 of the License, or *}
-{* (at your option) any later version. *}
-{* *}
-{* This program is distributed in the hope that it will be useful, *}
-{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
-{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
-{* GNU General Public License for more details. *}
-{* *}
-{* You should have received a copy of the GNU General Public License *}
-{* along with this program; if not, write to the Free Software *}
-{* Foundation, Inc., *}
-{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
-{* *}
-{**************************************************************************}
-
-{config_load file="mails.conf" section="listes_promo"}
-{if $mail_part eq 'head'}
-{from full=#from#}
-{to addr=#to#}
-{subject text="Création de la liste promo $promo"}
-{elseif $mail_part eq 'text'}
-
-Création de la liste promo {$promo} à faire !
-{/if}
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
<tr><th>{$nl->title(true)}</th></tr>
<tr>
<td>
- {include file="newsletter/nl.tpl"}
+ {include file="newsletter/nl.mail.tpl"}
</td>
</tr>
</table>