..] utilises par les spammeurs ! include_spip("public/interfaces"); $table_objet = "forum"; $links = array(); foreach ($t as $champ=>$v){ $champ = strtoupper($champ); $traitement = (isset($GLOBALS['table_des_traitements'][$champ])?$GLOBALS['table_des_traitements'][$champ]:null); if (is_array($traitement) AND (isset($traitement[$table_objet]) OR isset($traitement[0]))){ $traitement = $traitement[isset($traitement[$table_objet]) ? $table_objet : 0]; $traitement = str_replace('%s', "'".texte_script($v)."'", $traitement); eval("\$v = $traitement;"); } $links = $links + extraire_balises($v,'a'); } $links = extraire_attribut($links,'href'); $links = implode("\n",$links); $t['liens'] = $links; $contextes_store[$t['id_forum']] = $t; } $fond = "notifications/forum_poste"; if (isset($contexte['fond'])){ $fond = $contexte['fond']; unset($contexte['fond']); } $t = array_merge($contextes_store[$t['id_forum']],$contexte); // Rechercher eventuellement la langue du destinataire if (NULL !== ($l = sql_getfetsel('lang', 'spip_auteurs', "email=" . sql_quote($email)))) $l = lang_select($l); $parauteur = (strlen($t['auteur']) <= 2) ? '' : (" " ._T('forum_par_auteur', array( 'auteur' => $t['auteur']) ) . ($t['email_auteur'] ? ' <' . $t['email_auteur'] . '>' : '')); $titre = textebrut(typo($t['titre_source'])); if ($titre){ $forum_poste_par = _T( $t['objet']=='article'?'forum:forum_poste_par':'forum:forum_poste_par_generique', array('parauteur' => $parauteur, 'titre' => $titre, 'objet'=>$t['objet']) ); } else $forum_poste_par = _T('forum:forum_poste_par_court',array('parauteur' => $parauteur)); $t['par_auteur'] = $forum_poste_par; $envoyer_mail = charger_fonction('envoyer_mail','inc'); // pour nettoyer_titre_email $corps = recuperer_fond($fond,$t); if ($l) lang_select(); return $corps; }