<?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 *
class EmailModule extends PLModule
{
- function menu_entries()
- {
- return array();
- }
-
function handlers()
{
return array(
'emails/broken' => $this->make_hook('broken', AUTH_COOKIE),
'emails/redirect' => $this->make_hook('redirect', AUTH_MDP),
'emails/send' => $this->make_hook('send', AUTH_MDP),
+ 'emails/antispam/submit' => $this->make_hook('submit', AUTH_COOKIE),
+
+ 'admin/emails/duplicated' => $this->make_hook('duplicated', AUTH_MDP, 'admin')
);
}
- function handler_emails(&$page)
+ function handler_emails(&$page, $action = null, $email = null)
{
global $globals;
$page->changeTpl('emails/index.tpl');
$page->assign('xorg_title','Polytechnique.org - Mes emails');
- $uid = Session::getInt('uid');
+ $uid = S::v('uid');
- if (Post::has('best')) {
+ if ($action == 'best' && $email) {
// bestalias is the first bit : 1
// there will be maximum 8 bits in flags : 255
- $globals->xdb->execute("UPDATE aliases SET flags=flags & (255 - 1) WHERE id={?}", $uid);
- $globals->xdb->execute("UPDATE aliases SET flags=flags | 1 WHERE id={?} AND alias={?}",
- $uid, Post::get('best'));
+ XDB::execute("UPDATE aliases SET flags=flags & (255 - 1) WHERE id={?}", $uid);
+ XDB::execute("UPDATE aliases SET flags=flags | 1 WHERE id={?} AND alias={?}",
+ $uid, $email);
}
- // on regarde si on a affaire à un homonyme
+ // on regarde si on a affaire à un homonyme
$sql = "SELECT alias, (type='a_vie') AS a_vie,
(alias REGEXP '\\\\.[0-9]{2}$') AS cent_ans,
FIND_IN_SET('bestalias',flags) AS best, expire
FROM aliases
WHERE id = {?} AND type!='homonyme'
ORDER BY LENGTH(alias)";
- $page->assign('aliases', $globals->xdb->iterator($sql, $uid));
+ $page->assign('aliases', XDB::iterator($sql, $uid));
+ $homonyme = XDB::query("SELECT alias FROM aliases INNER JOIN homonymes ON (id = homonyme_id) WHERE user_id = {?} AND type = 'homonyme'", $uid);
+ $page->assign('homonyme', $homonyme->fetchOneCell());
+
$sql = "SELECT email
FROM emails
WHERE uid = {?} AND FIND_IN_SET('active', flags)";
- $page->assign('mails', $globals->xdb->iterator($sql, $uid));
+ $page->assign('mails', XDB::iterator($sql, $uid));
// on regarde si l'utilisateur a un alias et si oui on l'affiche !
- $forlife = Session::get('forlife');
- $res = $globals->xdb->query(
+ $forlife = S::v('forlife');
+ $res = XDB::query(
"SELECT alias
FROM virtual AS v
INNER JOIN virtual_redirect AS vr USING(vid)
AND alias LIKE '%@{$globals->mail->alias_dom}'",
$forlife.'@'.$globals->mail->domain, $forlife.'@'.$globals->mail->domain2);
$page->assign('melix', $res->fetchOneCell());
- return PL_OK;
}
function handler_alias(&$page, $action = null, $value = null)
$page->changeTpl('emails/alias.tpl');
$page->assign('xorg_title','Polytechnique.org - Alias melix.net');
- $uid = Session::getInt('uid');
- $forlife = Session::get('forlife');
+ $uid = S::v('uid');
+ $forlife = S::v('forlife');
$page->assign('demande', AliasReq::get_request($uid));
- if ($action == 'suppr' && $value) {
+ if ($action == 'delete' && $value) {
//Suppression d'un alias
- $globals->xdb->execute(
+ XDB::execute(
'DELETE virtual, virtual_redirect
FROM virtual
INNER JOIN virtual_redirect USING (vid)
$forlife.'@'.$globals->mail->domain, $forlife.'@'.$globals->mail->domain2);
}
- //Récupération des alias éventuellement existants
- $res = $globals->xdb->query(
+ //Récupération des alias éventuellement existants
+ $res = XDB::query(
"SELECT alias, emails_alias_pub
FROM auth_user_quick, virtual
INNER JOIN virtual_redirect USING(vid)
WHERE ( redirect={?} OR redirect= {?} )
AND alias LIKE '%@{$globals->mail->alias_dom}' AND user_id = {?}",
$forlife.'@'.$globals->mail->domain,
- $forlife.'@'.$globals->mail->domain2, Session::getInt('uid'));
+ $forlife.'@'.$globals->mail->domain2, S::v('uid'));
list($alias, $visibility) = $res->fetchOneRow();
$page->assign('actuel', $alias);
if ($action == 'ask' && Env::has('alias') and Env::has('raison')) {
//Si l'utilisateur vient de faire une damande
- $alias = Env::get('alias');
- $raison = Env::get('raison');
- $public = (Env::get('public', 'off') == 'on')?"public":"private";
+ $alias = Env::v('alias');
+ $raison = Env::v('raison');
+ $public = (Env::v('public', 'off') == 'on')?"public":"private";
$page->assign('r_alias', $alias);
$page->assign('r_raison', $raison);
$page->assign('r_public', true);
}
- //Quelques vérifications sur l'alias (caractères spéciaux)
+ //Quelques vérifications sur l'alias (caractères spéciaux)
if (!preg_match( "/^[a-zA-Z0-9\-.]{3,20}$/", $alias)) {
- $page->trig("L'adresse demandée n'est pas valide.
- Vérifie qu'elle comporte entre 3 et 20 caractères
- et qu'elle ne contient que des lettres non accentuées,
- des chiffres ou les caractères - et .");
- return PL_OK;
+ $page->trig("L'adresse demandée n'est pas valide.
+ Vérifie qu'elle comporte entre 3 et 20 caractères
+ et qu'elle ne contient que des lettres non accentuées,
+ des chiffres ou les caractères - et .");
+ return;
} else {
- //vérifier que l'alias n'est pas déja pris
- $res = $globals->xdb->query('SELECT COUNT(*) FROM virtual WHERE alias={?}',
+ //vérifier que l'alias n'est pas déja pris
+ $res = XDB::query('SELECT COUNT(*) FROM virtual WHERE alias={?}',
$alias.'@'.$globals->mail->alias_dom);
if ($res->fetchOneCell() > 0) {
- $page->trig("L'alias $alias@{$globals->mail->alias_dom} a déja été attribué.
+ $page->trig("L'alias $alias@{$globals->mail->alias_dom} a déja été attribué.
Tu ne peux donc pas l'obtenir.");
- return PL_OK;
+ return;
}
- //vérifier que l'alias n'est pas déja en demande
+ //vérifier que l'alias n'est pas déja en demande
$it = new ValidateIterator ();
while($req = $it->next()) {
if ($req->type == "alias" and $req->alias == $alias) {
- $page->trig("L'alias $alias@{$globals->mail->alias_dom} a déja été demandé.
+ $page->trig("L'alias $alias@{$globals->mail->alias_dom} a déja été demandé.
Tu ne peux donc pas l'obtenir pour l'instant.");
- return PL_OK;
+ return ;
}
}
- //Insertion de la demande dans la base, écrase les requêtes précédente
+ //Insertion de la demande dans la base, écrase les requêtes précédente
$myalias = new AliasReq($uid, $alias, $raison, $public);
$myalias->submit();
$page->assign('success',$alias);
- return PL_OK;
+ return;
}
}
elseif ($action == 'set'
&& ($value == 'public' || $value == 'private'))
{
if ($value == 'public') {
- $globals->xdb->execute("UPDATE auth_user_quick SET emails_alias_pub = 'public'
- WHERE user_id = {?}", Session::getInt('uid'));
+ XDB::execute("UPDATE auth_user_quick SET emails_alias_pub = 'public'
+ WHERE user_id = {?}", S::v('uid'));
} else {
- $globals->xdb->execute("UPDATE auth_user_quick SET emails_alias_pub = 'private'
- WHERE user_id = {?}", Session::getInt('uid'));
+ XDB::execute("UPDATE auth_user_quick SET emails_alias_pub = 'private'
+ WHERE user_id = {?}", S::v('uid'));
}
$visibility = $value;
}
$page->assign('mail_public', ($visibility == 'public'));
-
- return PL_OK;
}
function handler_redirect(&$page, $action = null, $email = null)
$page->changeTpl('emails/redirect.tpl');
- $uid = Session::getInt('uid');
- $forlife = Session::get('forlife');
+ $uid = S::v('uid');
+ $forlife = S::v('forlife');
+
+ $page->assign('eleve', S::i('promo') >= date("Y") - 5);
- $redirect = new Redirect(Session::getInt('uid'));
+ $redirect = new Redirect(S::v('uid'));
if ($action == 'remove' && $email) {
- $page->assign('retour', $redirect->delete_email($email));
+ $retour = $redirect->delete_email($email);
+ $page->assign('retour', $retour);
}
-
+
+ if ($action == 'active' && $email) {
+ $redirect->modify_one_email($email, true);
+ }
+
+ if ($action == 'inactive' && $email) {
+ $redirect->modify_one_email($email, false);
+ }
+
+ if ($action == 'rewrite' && $email) {
+ $rewrite = @func_get_arg(3);
+ $redirect->modify_one_email_redirect($email, $rewrite);
+ }
+
if (Env::has('emailop')) {
- $actifs = Env::getMixed('emails_actifs', Array());
- if (Env::get('emailop') == "ajouter" && Env::has('email')) {
- $page->assign('retour', $redirect->add_email(Env::get('email')));
+ $actifs = Env::v('emails_actifs', Array());
+ print_r(Env::v('emails_rewrite'));
+ if (Env::v('emailop') == "ajouter" && Env::has('email')) {
+ $page->assign('retour', $redirect->add_email(Env::v('email')));
} elseif (empty($actifs)) {
$page->assign('retour', ERROR_INACTIVE_REDIRECTION);
} elseif (is_array($actifs)) {
$page->assign('retour', $redirect->modify_email($actifs,
- Env::getMixed('emails_rewrite',Array())));
+ Env::v('emails_rewrite',Array())));
}
}
- $res = $globals->xdb->query(
+ $res = XDB::query(
"SELECT alias
FROM virtual
INNER JOIN virtual_redirect USING(vid)
$page->assign('melix',$melix);
}
- $res = $globals->xdb->query(
+ $res = XDB::query(
"SELECT alias,expire
FROM aliases
WHERE id={?} AND (type='a_vie' OR type='alias')
ORDER BY !FIND_IN_SET('usage',flags), LENGTH(alias)", $uid);
$page->assign('alias', $res->fetchAllAssoc());
$page->assign('emails',$redirect->emails);
-
- return PL_OK;
}
- function handler_antispam(&$page)
+ function handler_antispam(&$page, $statut_filtre = null)
{
require_once 'emails.inc.php';
+ require_once('wiki.inc.php');
+ wiki_require_page('Xorg.Antispam');
$page->changeTpl('emails/antispam.tpl');
- $bogo = new Bogo(Session::getInt('uid'));
- if (Env::has('statut_filtre')) {
- $bogo->change(Session::getInt('uid'), Env::getInt('statut_filtre'));
+ $bogo = new Bogo(S::v('uid'));
+ if (isset($statut_filtre)) {
+ $bogo->change(S::v('uid'), $statut_filtre + 0);
}
$page->assign('filtre',$bogo->level());
+ }
- return PL_OK;
+ function handler_submit(&$page)
+ {
+ require_once('wiki.inc.php');
+ wiki_require_page('Xorg.Mails');
+ $page->changeTpl('emails/submit_spam.tpl');
+
+ if (Post::has('send_email')) {
+ $upload = $_FILES['mail']['tmp_name'];
+ if (!is_uploaded_file($upload)) {
+ $page->trig('Une erreur a été rencontrée lors du transfert du fichier');
+ return;
+ }
+ $mime = trim(mime_content_type($upload));
+ if ($mime != 'text/x-mail' && $mime != 'message/rfc822') {
+ $page->trig('Le fichier ne contient pas un mail complet');
+ return;
+ }
+ global $globals;
+ $box = Post::v('type') . '@' . $globals->mail->domain;
+ $mailer = new PlMailer();
+ $mailer->addTo($box);
+ $mailer->setFrom('"' . S::v('prenom') . ' ' . S::v('nom') . '" <web@' . $globals->mail->domain . '>');
+ $mailer->setTxtBody(Post::v('type') . ' soumis par ' . S::v('forlife') . ' via le web');
+ $mailer->addAttachment($upload, 'message/rfc822', $_FILES['mail']['name']);
+ $mailer->send();
+ $page->trig('Le message a été transmis à ' . $box);
+ }
}
function handler_send(&$page)
global $globals;
$page->changeTpl('emails/send.tpl');
+ $page->addJsLink('ajax.js');
$page->assign('xorg_title','Polytechnique.org - Envoyer un email');
// action si on recoit un formulaire
- if (Env::get('submit') == 'Envoyer')
+ if (Env::v('submit') == 'Envoyer')
{
- $to2 = join(', ', Env::getMixed('contacts', Array()));
- $txt = str_replace('^M', '', Env::get('contenu'));
- $to = Env::get('to');
- $subj = Env::get('sujet');
- $from = Env::get('from');
- $cc = Env::get('cc');
- $bcc = Env::get('bcc');
-
- if (empty($to) && empty($cc) && empty($to2)) {
+ function getEmails($aliases)
+ {
+ if (!is_array($aliases)) {
+ return null;
+ }
+ $rel = Env::v('contacts');
+ $ret = array();
+ foreach ($aliases as $alias) {
+ $ret[$alias] = $rel[$alias];
+ }
+ return join(', ', $ret);
+ }
+
+ foreach ($_FILES as &$file) {
+ if ($file['name'] && !PlUpload::get($file, S::v('forlife'), 'emails.send', false)) {
+ $page->trig("Impossible de télécharger '" . pl_entities($file['name']) . "'");
+ }
+ }
+
+ $to2 = getEmails(Env::v('to_contacts'));
+ $cc2 = getEmails(Env::v('cc_contacts'));
+ $txt = str_replace('^M', '', Env::v('contenu'));
+ $to = Env::v('to');
+ $subj = Env::v('sujet');
+ $from = Env::v('from');
+ $cc = trim(Env::v('cc'));
+ $bcc = trim(Env::v('bcc'));
+
+ if (empty($to) && empty($cc) && empty($to2) && empty($bcc) && empty($cc2)) {
$page->trig("Indique au moins un destinataire.");
+ $page->assign('uploaded_f', PlUpload::listFilenames(S::v('forlife'), 'emails.send'));
} else {
- require_once("diogenes/diogenes.hermes.inc.php");
-
- $mymail = new HermesMailer();
+ $mymail = new PlMailer();
$mymail->setFrom($from);
$mymail->setSubject($subj);
if (!empty($to)) { $mymail->addTo($to); }
if (!empty($cc)) { $mymail->addCc($cc); }
if (!empty($bcc)) { $mymail->addBcc($bcc); }
if (!empty($to2)) { $mymail->addTo($to2); }
- $mymail->setTxtBody(wordwrap($txt,72,"\n"));
+ if (!empty($cc2)) { $mymail->addCc($cc2); }
+ $files =& PlUpload::listFiles(S::v('forlife'), 'emails.send');
+ foreach ($files as $name=>&$upload) {
+ $mymail->addUploadAttachment($upload, $name);
+ }
+ if (Env::v('nowiki')) {
+ $mymail->setTxtBody(wordwrap($txt, 78, "\n"));
+ } else {
+ $mymail->setWikiBody($txt);
+ }
if ($mymail->send()) {
- $page->trig("Ton mail a bien été envoyé.");
- $_REQUEST = array('bcc' => Session::get('bestalias').'@'.$globals->mail->domain);
+ $page->trig("Ton mail a bien été envoyé.");
+ $_REQUEST = array('bcc' => S::v('bestalias').'@'.$globals->mail->domain);
+ PlUpload::clear(S::v('forlife'), 'emails.send');
} else {
- $page->trig("Erreur lors de l'envoi du courriel, réessaye.");
+ $page->trig("Erreur lors de l'envoi du courriel, réessaye.");
+ $page->assign('uploaded_f', PlUpload::listFilenames(S::v('forlife'), 'emails.send'));
}
}
} else {
- $_REQUEST['bcc'] = Session::get('bestalias').'@'.$globals->mail->domain;
+ PlUpload::clear(S::v('forlife'), 'emails.send');
+ $_REQUEST['bcc'] = S::v('bestalias').'@'.$globals->mail->domain;
}
- $res = $globals->xdb->query(
+ $res = XDB::query(
"SELECT u.prenom, u.nom, u.promo, a.alias as forlife
FROM auth_user_md5 AS u
INNER JOIN contacts AS c ON (u.user_id = c.contact)
INNER JOIN aliases AS a ON (u.user_id=a.id AND FIND_IN_SET('bestalias',a.flags))
WHERE c.uid = {?}
- ORDER BY u.nom, u.prenom", Session::getInt('uid'));
+ ORDER BY u.nom, u.prenom", S::v('uid'));
$page->assign('contacts', $res->fetchAllAssoc());
-
- return PL_OK;
+ $page->assign('maxsize', ini_get('post_max_size') . 'o');
}
function handler_broken(&$page, $warn = null, $email = null)
{
require_once 'emails.inc.php';
+ require_once('wiki.inc.php');
+ wiki_require_page('Xorg.PatteCassée');
global $globals;
if ($warn == 'warn' && $email) {
$email = valide_email($email);
- // vérifications d'usage
- $sel = $globals->xdb->query(
+ // vérifications d'usage
+ $sel = XDB::query(
"SELECT e.uid, a.alias
FROM emails AS e
INNER JOIN auth_user_md5 AS u ON e.uid = u.user_id
// envoi du mail
$message = "Bonjour !
-Ce mail a été généré automatiquement par le service de patte cassée de
-Polytechnique.org car un autre utilisateur, ".Session::get('prenom').' '.Session::get('nom').",
-nous a signalé qu'en t'envoyant un mail, il avait reçu un message d'erreur
+Ce mail a été généré automatiquement par le service de patte cassée de
+Polytechnique.org car un autre utilisateur, ".S::v('prenom').' '.S::v('nom').",
+nous a signalé qu'en t'envoyant un mail, il avait reçu un message d'erreur
indiquant que ton adresse de redirection $email
ne fonctionnait plus !
-Nous te suggérons de vérifier cette adresse, et le cas échéant de mettre
-à jour sur le site <{$globals->baseurl}/emails.php> tes adresses
+Nous te suggérons de vérifier cette adresse, et le cas échéant de mettre
+à jour sur le site <{$globals->baseurl}/emails> tes adresses
de redirection...
-Pour plus de rensignements sur le service de patte cassée, n'hésites pas à
-consulter la page <{$globals->baseurl}/emails/broken.php>.
+Pour plus de rensignements sur le service de patte cassée, n'hésites pas à
+consulter la page <{$globals->baseurl}/emails/broken>.
-A bientôt sur Polytechnique.org !
-L'équipe d'administration <support@polytechnique.org>";
+A bientôt sur Polytechnique.org !
+L'équipe d'administration <support@polytechnique.org>";
- require_once("diogenes/diogenes.hermes.inc.php");
- $mail = new HermesMailer();
+ $mail = new PlMailer();
$mail->setFrom('"Polytechnique.org" <support@polytechnique.org>');
$mail->addTo("$dest@polytechnique.org");
$mail->setSubject("Une de tes adresse de redirection Polytechnique.org ne marche plus !!");
$mail->setTxtBody($message);
$mail->send();
- $page->trig("Mail envoyé ! :o)");
+ $page->trig("Mail envoyé ! :o)");
}
} elseif (Post::has('email')) {
- $email = valide_email(Post::get('email'));
+ $email = valide_email(Post::v('email'));
list(,$fqdn) = explode('@', $email);
$fqdn = strtolower($fqdn);
$page->assign('neuneu', true);
} else {
$page->assign('email',$email);
- $sel = $globals->xdb->query(
+ $sel = XDB::query(
"SELECT e1.uid, e1.panne != 0 AS panne, count(e2.uid) AS nb_mails,
- u.nom, u.prenom, u.promo
+ u.nom, u.prenom, u.promo, a.alias AS forlife
FROM emails as e1
LEFT JOIN emails as e2 ON(e1.uid = e2.uid
AND FIND_IN_SET('active', e2.flags)
AND e1.email != e2.email)
INNER JOIN auth_user_md5 as u ON(e1.uid = u.user_id)
+ INNER JOIN aliases AS a ON (a.id = e1.uid AND a.type = 'a_vie')
WHERE e1.email = {?}
GROUP BY e1.uid", $email);
if ($x = $sel->fetchOneAssoc()) {
- // on écrit dans la base que l'adresse est cassée
+ // on écrit dans la base que l'adresse est cassée
if (!$x['panne']) {
- $globals->xdb->execute("UPDATE emails SET panne=NOW() WHERE email = {?}", $email);
+ XDB::execute("UPDATE emails
+ SET panne=NOW(),
+ last=NOW(),
+ panne_level = 1
+ WHERE email = {?}", $email);
+ } else {
+ XDB::execute("UPDATE emails
+ SET panne_level = 1
+ WHERE email = {?} AND panne_level = 0", $email);
}
$page->assign_by_ref('x', $x);
}
}
}
}
+
+ function handler_duplicated(&$page, $action = 'list', $email = null)
+ {
+ $page->changeTpl('emails/duplicated.tpl');
+
+ $states = array('pending' => 'En attente...',
+ 'safe' => 'Pas d\'inquiétude',
+ 'unsafe' => 'Recherches en cours',
+ 'dangerous' => 'Usurpations par cette adresse');
+ $page->assign('states', $states);
+
+ switch (Post::v('action')) {
+ case 'create':
+ if (trim(Post::v('emailN')) != '') {
+ Xdb::execute('INSERT IGNORE INTO emails_watch (email, state, detection, last, uid, description)
+ VALUES ({?}, {?}, CURDATE(), NOW(), {?}, {?})',
+ trim(Post::v('emailN')), Post::v('stateN'), S::i('uid'), Post::v('descriptionN'));
+ };
+ break;
+
+ case 'edit':
+ Xdb::execute('UPDATE emails_watch
+ SET state = {?}, last = NOW(), uid = {?}, description = {?}
+ WHERE email = {?}', Post::v('stateN'), S::i('uid'), Post::v('descriptionN'), Post::v('emailN'));
+ break;
+
+ default:
+ if ($action == 'delete' && !is_null($email)) {
+ Xdb::execute('DELETE FROM emails_watch WHERE email = {?}', $email);
+ }
+ }
+ if ($action != 'create' && $action != 'edit') {
+ $action = 'list';
+ }
+ $page->assign('action', $action);
+
+ if ($action == 'list') {
+ $sql = "SELECT w.email, w.detection, w.state, a.alias AS forlife
+ FROM emails_watch AS w
+ LEFT JOIN emails AS e USING(email)
+ LEFT JOIN aliases AS a ON (a.id = e.uid AND a.type = 'a_vie')
+ ORDER BY w.state, w.email, a.alias";
+ $it = Xdb::iterRow($sql);
+
+ $table = array();
+ $props = array();
+ while (list($email, $date, $state, $forlife) = $it->next()) {
+ if (count($props) == 0 || $props['mail'] != $email) {
+ if (count($props) > 0) {
+ $table[] = $props;
+ }
+ $props = array('mail' => $email,
+ 'detection' => $date,
+ 'state' => $state,
+ 'users' => array($forlife));
+ } else {
+ $props['users'][] = $forlife;
+ }
+ }
+ if (count($props) > 0) {
+ $table[] = $props;
+ }
+ $page->assign('table', $table);
+ } elseif ($action == 'edit') {
+ $sql = "SELECT w.detection, w.state, w.last, w.description,
+ a1.alias AS edit, a2.alias AS forlife
+ FROM emails_watch AS w
+ LEFT JOIN aliases AS a1 ON (a1.id = w.uid AND a1.type = 'a_vie')
+ LEFT JOIN emails AS e ON (w.email = e.email)
+ LEFT JOIN aliases AS a2 ON (a2.id = e.uid AND a2.type = 'a_vie')
+ WHERE w.email = {?}
+ ORDER BY a2.alias";
+ $it = Xdb::iterRow($sql, $email);
+
+ $props = array();
+ while (list($detection, $state, $last, $description, $edit, $forlife) = $it->next()) {
+ if (count($props) == 0) {
+ $props = array('mail' => $email,
+ 'detection' => $detection,
+ 'state' => $state,
+ 'last' => $last,
+ 'description' => $description,
+ 'edit' => $edit,
+ 'users' => array($forlife));
+ } else {
+ $props['users'][] = $forlife;
+ }
+ }
+ $page->assign('doublon', $props);
+ }
+ }
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>