Changeset 32779
- Timestamp:
- 09.11.2009 16:45:32 (3 months ago)
- Location:
- _plugins_/clevermail/2_0
- Files:
-
- 2 added
- 13 modified
-
balise/clevermail_unsubscribe.php (modified) (1 diff)
-
balise/clevermail_validation.php (modified) (1 diff)
-
clevermail_lettre.html (added)
-
clevermail_lettre_fonctions.php (added)
-
clevermail_nouveautes_html.html (modified) (2 diffs)
-
clevermail_options.php (modified) (1 diff)
-
formulaires/clevermail.php (modified) (1 diff)
-
formulaires/clevermail_list_edit.php (modified) (1 diff)
-
formulaires/clevermail_multiple.html (modified) (1 diff)
-
formulaires/clevermail_multiple.php (modified) (1 diff)
-
formulaires/clevermail_post_edit.html (modified) (2 diffs)
-
genie/clevermail_queue_process.php (modified) (2 diffs)
-
prive/exec/clevermail_list_edit.html (modified) (1 diff)
-
prive/exec/clevermail_post_edit.html (modified) (1 diff)
-
prive/exec/clevermail_posts.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/clevermail/2_0/balise/clevermail_unsubscribe.php
r29694 r32779 23 23 $template['@@EMAIL@@'] = $sub['sub_email']; 24 24 $template['@@FORMAT_INSCRIPTION@@'] = ($data['lsr_mode'] == 1 ? 'HTML' : 'texte'); 25 $template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 25 //$template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 26 $template['@@URL_CONFIRMATION@@'] = generer_url_public(_CLEVERMAIL_VALIDATION,'id='.$actionId); 26 27 27 28 $to = $sub['sub_email']; -
_plugins_/clevermail/2_0/balise/clevermail_validation.php
r32472 r32779 38 38 sql_delete("spip_cm_posts_queued", "sub_id = ".intval($action['sub_id'])." AND pst_id IN (".implode(',', sql_fetsel("lst_id", "spip_cm_posts", "lst_id=".intval($action['lst_id']), "lst_id")).")"); 39 39 40 $return = '<p>'._T('clevermail:desinscription_validee').'</p>'; 40 $lst_name = sql_getfetsel("lst_name", "spip_cm_lists", "lst_id = ".intval($action['lst_id'])); 41 $return = '<p>'._T('clevermail:desinscription_validee',array('lst_name' => $lst_name)).'</p>'; 41 42 42 43 // E-mail d'alerte envoye au moderateur de la liste -
_plugins_/clevermail/2_0/clevermail_nouveautes_html.html
r32700 r32779 1 #CACHE{0} 2 #HTTP_HEADER{Content-type: text/html; charset=#CHARSET} 3 <B_test_contenu>#SET{date,''} 4 <BOUCLE_test_contenu(AUTEURS){0,1}{tous}><BOUCLE_articles(ARTICLES){age_relatif<=0}{par date}{inverse}{0,20}> 5 [(#COMPTEUR_BOUCLE|=={1}|oui) 6 [<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html> 7 <head><title>Les nouveautés depuis le (#DATE|affdate)</title></head> 8 <body>#SET{date,oui}] 1 #CACHE{0}#HTTP_HEADER{Content-type: text/html; charset=#CHARSET} 2 <B_test_contenu>#SET{news,''} 3 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html> 4 <head><title>[(#ENV{date}|strtotime|=={82800}|?{#SET{news,"Les nouveautés n°1"},#SET{news,Les nouveautés depuis le #ENV{date}|affdate}})][(#GET{news}|textebrut)]</title></head> 5 <body> 9 6 <h1>@@NOM_LETTRE@@</h1> 10 7 11 8 <div>@@DESCRIPTION@@</div> 12 ] 9 <BOUCLE_test_contenu(AUTEURS){0,1}{tous}><BOUCLE_articles(ARTICLES){age_relatif<=0}{par date}{inverse}{0,20}> 13 10 [<h2><a href="[(#URL_ARTICLE|url_absolue)]">(#TITRE)</a></h2>] 14 11 <p>[par (#LESAUTEURS|textebrut)][ le (#DATE|affdate)]</p> … … 18 15 19 16 <p>Cliquez sur le lien suivant pour vous désinscrire : <a href="@@URL_DESINSCRIPTION@@">@@URL_DESINSCRIPTION@@</a></p> 20 [(#GET{date}|oui)</body></html>] 17 </body></html> 21 18 </B_test_contenu> -
_plugins_/clevermail/2_0/clevermail_options.php
r29457 r32779 5 5 // \r\n on Windows 6 6 define('CM_NEWLINE', "\n"); 7 // penser a recopier le fichier _CLEVERMAIL_LETTRE_EN_LIGNE_fonctions.php ou placer la fonction extraire dans le fichier de fonction 8 define("_CLEVERMAIL_LETTRE_EN_LIGNE", 'clevermail_lettre'); 9 define("_CLEVERMAIL_NOUVEAUTES_HTML", 'clevermail_nouveautes_html'); 10 define("_CLEVERMAIL_NOUVEAUTES_TEXT", 'clevermail_nouveautes_text'); 11 define("_CLEVERMAIL_PREVIEW_HTML", 'clevermail_post_preview_html'); 12 define("_CLEVERMAIL_PREVIEW_TEXTE", 'clevermail_post_preview_text'); 13 define("_CLEVERMAIL_VALIDATION", 'clevermail_do'); 14 define("_CLEVERMAIL_INVALIDATION", 'clevermail_rm'); 7 15 ?> -
_plugins_/clevermail/2_0/formulaires/clevermail.php
r30152 r32779 99 99 $template['@@FORMAT_INSCRIPTION@@'] = (intval($lsr_mode) == 1 ? _T('choix_version_html') : _T('choix_version_texte')); 100 100 $template['@@EMAIL@@'] = _request('sub_email'); 101 $template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 101 //$template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 102 $template['@@URL_CONFIRMATION@@'] = generer_url_public(_CLEVERMAIL_VALIDATION,'id='.$actionId); 102 103 $body = $listData['lst_subscribe_text']; 103 104 while (list($translateFrom, $translateTo) = each($template)) { -
_plugins_/clevermail/2_0/formulaires/clevermail_list_edit.php
r30410 r32779 17 17 'lst_unsubscribe_text' => _T('clevermail:confirmation_votre_desinscription_text'), 18 18 'lst_subject_tag' => 1, 19 'lst_url_html' => $GLOBALS['meta']['adresse_site'].'/?page=clevermail_nouveautes_html', 20 'lst_url_text' => $GLOBALS['meta']['adresse_site'].'/?page=clevermail_nouveautes_text', 19 //'lst_url_html' => $GLOBALS['meta']['adresse_site'].'/?page=clevermail_nouveautes_html', 20 'lst_url_html' => generer_url_public(_CLEVERMAIL_NOUVEAUTES_HTML), 21 //'lst_url_text' => $GLOBALS['meta']['adresse_site'].'/?page=clevermail_nouveautes_text', 22 'lst_url_text' => generer_url_public(_CLEVERMAIL_NOUVEAUTES_TEXT), 21 23 'lst_auto_mode' => 'none', 22 24 'lst_auto_hour' => 8, -
_plugins_/clevermail/2_0/formulaires/clevermail_multiple.html
r32612 r32779 17 17 </li> 18 18 </ul> 19 <p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:clevermail:bouton_inscription:>" /></p>19 <p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:clevermail:bouton_inscription:>" /></p> 20 20 </div></form> 21 21 ] -
_plugins_/clevermail/2_0/formulaires/clevermail_multiple.php
r32612 r32779 99 99 $template['@@FORMAT_INSCRIPTION@@'] = (intval($lsr_mode) == 1 ? _T('choix_version_html') : _T('choix_version_texte')); 100 100 $template['@@EMAIL@@'] = _request('sub_email'); 101 $template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 101 ///$template['@@URL_CONFIRMATION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_do&id='.$actionId; 102 $template['@@URL_CONFIRMATION@@'] = generer_url_public(_CLEVERMAIL_VALIDATION,'id='.$actionId); 102 103 $body = $listData['lst_subscribe_text']; 103 104 while (list($translateFrom, $translateTo) = each($template)) { -
_plugins_/clevermail/2_0/formulaires/clevermail_post_edit.html
r29453 r32779 15 15 <label for="#GET{name}"><:clevermail:sujet_message:></label> 16 16 [<span class='erreur_message'>(#GET{erreurs})</span>] 17 <input type="text" class="text" name="#GET{name}" id="#GET{name}" size="50" maxlength="255" value="#ENV{#GET{name}}" /> </li>17 <input type="text" class="text" name="#GET{name}" id="#GET{name}" size="50" maxlength="255" value="#ENV{#GET{name}}" /> 18 18 </li> 19 19 #SET{name,pst_html} … … 35 35 </ul> 36 36 </fieldset> 37 <p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>37 <p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p> 38 38 </div></form> 39 39 </div> -
_plugins_/clevermail/2_0/genie/clevermail_queue_process.php
r30445 r32779 34 34 $template['@@SUJET_LETTRE@@'] = $post['pst_subject']; 35 35 $template['@@ID_LETTRE@@'] = $message['pst_id']; 36 $template['@@URL_LETTRE@@'] = generer_url_public(_CLEVERMAIL_LETTRE_EN_LIGNE,'id='.$message['pst_id']); 36 37 $template['@@NOM_LETTRE@@'] = $list['lst_name']; 37 38 $template['@@DESCRIPTION@@'] = propre($list['lst_comment']); … … 43 44 $template[dirname($list['lst_url_txt']).'/@@URL_DESINSCRIPTION@@'] = '@@URL_DESINSCRIPTION@@'; 44 45 45 $template['@@URL_DESINSCRIPTION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_rm&id='.$subscription['lsr_id']; 46 //$template['@@URL_DESINSCRIPTION@@'] = $GLOBALS['meta']['adresse_site'].'/spip.php?page=clevermail_rm&id='.$subscription['lsr_id']; 47 $template['@@URL_DESINSCRIPTION@@'] = generer_url_public(_CLEVERMAIL_INVALIDATION,'id='.$subscription['lsr_id']); 46 48 reset($template); 47 49 while (list($templateFrom, $templateTo) = each($template)) { -
_plugins_/clevermail/2_0/prive/exec/clevermail_list_edit.html
r30059 r32779 23 23 <ul> 24 24 <li>@@NOM_LETTRE@@</li> 25 <li>@@URL_LETTRE@@</li> 25 26 <li>@@DESCRIPTION@@</li> 26 27 <li>@@FORMAT_INSCRIPTION@@</li> -
_plugins_/clevermail/2_0/prive/exec/clevermail_post_edit.html
r31295 r32779 8 8 #FORMULAIRE_CLEVERMAIL_POST_EDIT{#ENV{pst_id}} 9 9 [(#REM)</div>] 10 </div>11 10 <!--#navigation--> 12 11 <INCLURE{fond=prive/menu}> 13 12 <!--/#navigation--> 14 13 <!--#extra--> 15 Extra...16 14 <!--/#extra--> 17 15 </BOUCLE_post> -
_plugins_/clevermail/2_0/prive/exec/clevermail_posts.html
r32633 r32779 1 1 <h1 class="grostitre"><:clevermail:administration:></h1> 2 #SET{preview_text,#EVAL{_CLEVERMAIL_PREVIEW_TEXTE}} 3 #SET{preview_html,#EVAL{_CLEVERMAIL_PREVIEW_HTML}} 2 4 <BOUCLE_list(spip_cm_lists){lst_id=#ENV{lst_id}}> 3 5 <BOUCLE_subscribers(spip_cm_lists_subscribers){lst_id} />#SET{nbSubs,#TOTAL_BOUCLE}<//B_subscribers> … … 16 18 <div class="actions"> 17 19 <:clevermail:actions:> : 18 <a href="[(#URL_PAGE{ clevermail_post_preview_text}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a>19 | <a href="[(#URL_PAGE{ clevermail_post_preview_html}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a>20 <a href="[(#URL_PAGE{#GET{preview_text}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a> 21 | <a href="[(#URL_PAGE{#GET{preview_html}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a> 20 22 | <a href="[(#URL_ECRIRE{clevermail_post_edit}|parametre_url{pst_id,#PST_ID})]"><:clevermail:modifier:></a> 21 23 | [(#BOUTON_ACTION{<:clevermail:supprimer:>,#URL_ACTION_AUTEUR{clevermail_post_remove,#PST_ID,#SELF,ajax}})] … … 50 52 <div class="actions"> 51 53 <:clevermail:actions:> : 52 <a href="[(#URL_PAGE{ clevermail_post_preview_text}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a>53 | <a href="[(#URL_PAGE{ clevermail_post_preview_html}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a>54 <a href="[(#URL_PAGE{#GET{preview_text}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a> 55 | <a href="[(#URL_PAGE{#GET{preview_html}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a> 54 56 </div> 55 57 </li> … … 79 81 <div class="actions"> 80 82 <:clevermail:actions:> : 81 <a href="[(#URL_PAGE{ clevermail_post_preview_text}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a>82 | <a href="[(#URL_PAGE{ clevermail_post_preview_html}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a>83 <a href="[(#URL_PAGE{#GET{preview_text}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> TXT</a> 84 | <a href="[(#URL_PAGE{#GET{preview_html}}|parametre_url{pst_id,#PST_ID})]" target="_blank"><:clevermail:apercu:> HTML</a> 83 85 [(#BOUTON_ACTION{<:clevermail:supprimer:>,#URL_ACTION_AUTEUR{clevermail_post_remove,#PST_ID,#SELF,ajax}})] 84 86 </div>
