Changeset 31553 in spip-zone
- Timestamp:
- Sep 13, 2009, 6:56:37 PM (11 years ago)
- Location:
- _galaxie_/programmer.spip.org/plugin_documentation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_galaxie_/programmer.spip.org/plugin_documentation/documentation_pipelines.php
r31441 r31553 27 27 $flux['data']['type'] = 2; 28 28 $flux['data']['severite'] = 4; 29 } 30 return $flux; 31 } 32 33 34 function doc_nospam_tester_spam($texte, $params) { 35 $infos = analyser_spams($texte); 36 if ($infos['nombre_liens'] > 0) { 37 foreach ($params as $desc) { 38 list($nom, $op, $val) = $desc; 39 eval("\$test = (\$infos['$nom'] $op $val);"); 40 if ($test) { 41 return true; 42 } 43 } 44 } 45 return false; 46 } 47 48 49 // ne pas accepter ce qu'on peut appeler du spam 50 function documentation_formulaire_verifier($flux){ 51 if ($flux['args']['form'] == 'editer_ticket') { 52 $info_plugin = chercher_filtre('info_plugin'); 53 if ($info_plugin('nospam', 'est_actif')) { 54 include_spip('inc/nospam'); 55 $testsA = $testsB = $testsC = array( 56 array('caracteres_texte_lien_min', '<', 4), 57 array('nombre_liens', '>', 3), 58 array('caracteres_utiles', '<', 10), 59 ); 60 $testsB[1][2] = 0; // nombre_liens > 0 61 $testsC[1][2] = 1; // nombre_liens > 1 62 $testsC[2][2] = 3; // caracteres_utiles < 3 63 if (doc_nospam_tester_spam(_request('texte'), $testsA) 64 or doc_nospam_tester_spam(_request('titre'), $testsB) 65 or doc_nospam_tester_spam(_request('exemple'), $testsC)) { 66 $flux['data']['message_erreur'] .= _T('nospam:erreur_spam'); 67 } 68 } 29 69 } 30 70 return $flux; -
_galaxie_/programmer.spip.org/plugin_documentation/inclure/liste_suggestions.html
r31192 r31553 17 17 <tbody> 18 18 <BOUCLE_detaillee(TICKETS){par severite}{par type}{!par date}{pagination 10 #GET{hash_pagination}}{id_auteur?}{id_assigne?}{statut IN #ENV{statut,.*}}{type?}{jalon?}> 19 <tr class="[(# ID_TICKET|alterner{odd,even})]">19 <tr class="[(#COMPTEUR_BOUCLE|alterner{odd,even})]"> 20 20 <td><img[ src="(#CHEMIN{[prive/images/(#STATUT|tickets_icone_statut)]})"][ alt="(#STATUT|tickets_texte_statut)"][ title="(#STATUT|tickets_texte_statut)"] /></td> 21 21 <td><b>##ID_TICKET</b></td> -
_galaxie_/programmer.spip.org/plugin_documentation/modeles/synthese.html
r31435 r31553 10 10 <tbody> 11 11 <BOUCLE_synthese(ARTICLES){id_rubrique=#ENV{id}}{descriptif!=''}{par num titre, titre}> 12 <tr[ class="(# ID_ARTICLE|alterner{odd,even})"]>12 <tr[ class="(#COMPTEUR_BOUCLE|alterner{odd,even})"]> 13 13 <td><a title="art#ID_ARTICLE" href='#URL_ARTICLE'>#TITRE</a></td> 14 14 <td><div[ class="(#EDIT{descriptif})"]>[(#DESCRIPTIF|ptobr)]</div></td> -
_galaxie_/programmer.spip.org/plugin_documentation/plugin.xml
r31435 r31553 5 5 </auteur> 6 6 <lien></lien> 7 <version>1.1. 0</version>7 <version>1.1.1</version> 8 8 <etat>test</etat> 9 9 <description> … … 23 23 <pipeline> 24 24 <nom>formulaire_charger</nom> 25 <inclure>documentation_pipelines.php</inclure> 26 </pipeline> 27 <pipeline> 28 <nom>formulaire_verifier</nom> 25 29 <inclure>documentation_pipelines.php</inclure> 26 30 </pipeline> … … 44 48 <utilise id="porte_plume" /> 45 49 <utilise id="tickets" /> 46 <utilise id="nospam" />50 <utilise id="nospam" version="[0.6;]" /> 47 51 <utilise id="pages" /> 48 52 </plugin>
Note: See TracChangeset
for help on using the changeset viewer.