diff --git a/.gitattributes b/.gitattributes index 21965f59d42ef04c15c93d41fc4a7383b97f247b..7c1db68b7f2f03d9c04e9e8c961d78f0ba50b018 100644 --- a/.gitattributes +++ b/.gitattributes @@ -365,11 +365,6 @@ ecrire/safehtml/readme-SPIP.txt -text ecrire/safehtml/readme.txt -text ecrire/statistiques_repartition.php -text /inc-urls-propres-qs.php3 -text -plugins/ancres/version.php -text -plugins/podcast_client/podcast_client.php -text -plugins/podcast_client/version.php -text -plugins/revision_nbsp/version.php -text -plugins/smallcaps/version.php -text /puce.gif -text /puce_rtl.gif -text /rien.gif -text diff --git a/plugins/ancres/version.php b/plugins/ancres/version.php deleted file mode 100644 index 5b0bbf32b1526d31eb2f6fbb96af03a350411be4..0000000000000000000000000000000000000000 --- a/plugins/ancres/version.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/* - * ancres - * - * introduit le raccourci [#ancre<-] pour les ancres - * - * Auteur : collectif - * © 2005 - Distribue sous licence BSD - * - */ - -$nom = 'ancres'; -$version = 0.1; - -// s'inserer dans le pipeline 'avant_propre' @ ecrire/inc_texte.php3 -$GLOBALS['spip_pipeline']['post_propre'] .= '|ancres'; - -// la fonction est tres legere on la definit directement ici -function ancres($texte) { - $regexp = "|\[#?([^][]*)<-\]|"; - if (preg_match_all($regexp, $texte, $matches, PREG_SET_ORDER)) - foreach ($matches as $regs) - $texte = str_replace($regs[0], - '<a name="'.entites_html($regs[1]).'"></a>', $texte); - return $texte; -} - -#$GLOBALS['spip_matrice']['ancres'] = dirname(__FILE__).'/ancres.php'; - -?> diff --git a/plugins/podcast_client/podcast_client.php b/plugins/podcast_client/podcast_client.php deleted file mode 100644 index c430ea44a98f5b65ee57390c552bcce7946ff4da..0000000000000000000000000000000000000000 --- a/plugins/podcast_client/podcast_client.php +++ /dev/null @@ -1,87 +0,0 @@ -<?php - -// Syndication : ce plugin permet d'integrer les <enclosure> -// des flux RSS sous la forme de documents distants dans la -// table spip_documents -// (par defaut, on se contente de conserver une trace de ces -// documents dans le champ #TAGS de l'article syndique). - - -// -// recupere les donnees du point d'entree 'post_syndication' -// -function podcast_client() { - list($le_lien, $id_syndic, $data) = func_get_arg(0); - traiter_les_enclosures_rss($data['enclosures'],$id_syndic,$le_lien); -} - -// -// Inserer les references aux fichiers joints -// presentes sous la forme microformat <a rel="enclosure"> -// -function traiter_les_enclosures_rss($enclosures,$id_syndic,$le_lien) { - if (!preg_match_all( - ',<a([[:space:]][^>]*)?[[:space:]]rel=[\'"]enclosure[^>]*>,', - $enclosures, $regs, PREG_PATTERN_ORDER)) - return false; - $enclosures = $regs[0]; - include_ecrire('inc_filtres.php3'); # pour extraire_attribut - - list($id_syndic_article) = spip_fetch_array(spip_query( - "SELECT id_syndic_article FROM spip_syndic_articles - WHERE id_syndic=$id_syndic AND url='".addslashes($le_lien)."'")); - - // Attention si cet article est deja vu, ne pas doubler les references - spip_query("DELETE FROM spip_documents_syndic - WHERE id_syndic_article=$id_syndic_article"); - - // Integrer les enclosures - foreach ($enclosures as $enclosure) { - - // href et type sont obligatoires - if ($enc_regs_url = extraire_attribut($enclosure,'href') - AND $enc_regs_type = extraire_attribut($enclosure,'type')) { - - $url = substr(urldecode($enc_regs_url), 0,255); - $url = addslashes(abs_url($url, $le_lien)); - $type = $enc_regs_type; - - // Verifier que le content-type nous convient - list($id_type) = spip_fetch_array(spip_query("SELECT id_type - FROM spip_types_documents WHERE mime_type='$type'")); - if (!$id_type) { - spip_log("podcast_client: enclosure inconnue ($type) $url"); - list($id_type) = spip_fetch_array(spip_query("SELECT id_type - FROM spip_types_documents WHERE extension='bin'")); - // si les .bin ne sont pas autorises, on ignore ce document - if (!$id_type) continue; - } - - // length : optionnel (non bloquant) - $taille = intval(extraire_attribut($enclosure, 'length')); - - // Inserer l'enclosure dans la table spip_documents - if ($t = spip_fetch_array(spip_query("SELECT id_document FROM - spip_documents WHERE fichier='$url' AND distant='oui'"))) - $id_document = $t['id_document']; - else { - spip_query("INSERT INTO spip_documents - (id_type, titre, fichier, date, distant, taille, mode) - VALUES ($id_type,'','$url',NOW(),'oui',$taille, 'document')"); - $id_document = spip_insert_id(); - spip_log("podcast_client: '$url' => id_document=$id_document"); - } - - // lier avec l'article syndique - spip_query("INSERT INTO spip_documents_syndic - (id_document, id_syndic, id_syndic_article) - VALUES ($id_document, $id_syndic, $id_syndic_article)"); - - $n++; - } - } - - return $n; #nombre d'enclosures integrees -} - -?> diff --git a/plugins/podcast_client/version.php b/plugins/podcast_client/version.php deleted file mode 100644 index 106c77aa029cc56b611c0f322c95358c6883d409..0000000000000000000000000000000000000000 --- a/plugins/podcast_client/version.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/* - * podcast_client - * - * Client de podcast pour SPIP - * - * Auteur : fil@rezo.net - * © 2005 - Distribue sous licence GNU/GPL - * - * Voir la documentation dans podcast_client.php - * (ou, plus tard, dans documentation.html) - */ - -$nom = 'podcast_client'; -$version = 0.1; - -// s'inserer dans le pipeline 'post_syndication' @ ecrire/inc_sites.php3 -$GLOBALS['spip_pipeline']['post_syndication'] .= '|podcast_client'; -$GLOBALS['spip_matrice']['podcast_client'] = dirname(__FILE__).'/podcast_client.php'; - -?> diff --git a/plugins/revision_nbsp/version.php b/plugins/revision_nbsp/version.php deleted file mode 100644 index 732aff8998223865be2230c3dc4af82d5e8f9808..0000000000000000000000000000000000000000 --- a/plugins/revision_nbsp/version.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/* - * revision_nbsp - * - * Dans l'espace prive, souligne en grise les espaces insecables - * - * Auteur : fil@rezo.net - * © 2005 - Distribue sous licence GNU/GPL - * - */ - -$nom = 'revision_nbsp'; -$version = 0.1; - -// s'inserer dans le pipeline 'apres_typo' @ ecrire/inc_texte.php3 -if (!_DIR_RESTREINT) - $GLOBALS['spip_pipeline']['post_typo'] .= '|revision_nbsp'; - -// la fonction est tres legere on la definit directement ici -function revision_nbsp($letexte) { - return str_replace(' ', - '<span class="spip-nbsp"> </span>', $letexte); -} - -#$GLOBALS['spip_matrice']['revision_nbsp'] = dirname(__FILE__).'/revision_nbsp.php'; - -?> diff --git a/plugins/smallcaps/version.php b/plugins/smallcaps/version.php deleted file mode 100644 index f0873d7aa5cf8b2923532c9cfbe79965a1a91755..0000000000000000000000000000000000000000 --- a/plugins/smallcaps/version.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/* - * smallcaps - * - * introduit le raccourci <sc>...</sc> pour les petites majuscules - * - * Auteur : arno@scarabee.com - * © 2005 - Distribue sous licence GNU/GPL - * - */ - -$nom = 'smallcaps'; -$version = 0.1; - -// s'inserer dans le pipeline 'apres_typo' @ ecrire/inc_texte.php3 -$GLOBALS['spip_pipeline']['post_typo'] .= '|smallcaps'; - -// la fonction est tres legere on la definit directement ici -#$GLOBALS['spip_matrice']['smallcaps'] = dirname(__FILE__).'/smallcaps.php'; - -// Raccourci typographique <sc></sc> -function smallcaps($texte) { - $texte = str_replace("<sc>", - "<span style=\"font-variant: small-caps\">", $texte); - $texte = str_replace("</sc>", "</span>", $texte); - return $texte; -} - - -?>