[SPIP] ~v3.0.21-->v3.0.22
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 25 Mar 2016 11:31:52 +0000 (12:31 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 25 Mar 2016 11:31:52 +0000 (12:31 +0100)
575 files changed:
www/CHANGELOG.txt
www/config/ecran_securite.php
www/ecrire/action/activer_plugins.php
www/ecrire/action/ajouter_lien.php
www/ecrire/action/annuler_job.php
www/ecrire/action/auth.php
www/ecrire/action/calculer_taille_cache.php
www/ecrire/action/confirmer_email.php
www/ecrire/action/confirmer_inscription.php
www/ecrire/action/converser.php
www/ecrire/action/cookie.php
www/ecrire/action/debloquer_edition.php
www/ecrire/action/desinstaller_plugin.php
www/ecrire/action/editer_article.php
www/ecrire/action/editer_auteur.php
www/ecrire/action/editer_liens.php
www/ecrire/action/editer_objet.php
www/ecrire/action/editer_rubrique.php
www/ecrire/action/etre_webmestre.php
www/ecrire/action/forcer_job.php
www/ecrire/action/iconifier.php
www/ecrire/action/inscrire_auteur.php
www/ecrire/action/instituer_langue_objet.php
www/ecrire/action/instituer_langue_rubrique.php
www/ecrire/action/instituer_objet.php
www/ecrire/action/logout.php
www/ecrire/action/menu_rubriques.php
www/ecrire/action/preferer.php
www/ecrire/action/purger.php
www/ecrire/action/purger_queue.php
www/ecrire/action/redirect.php
www/ecrire/action/referencer_traduction.php
www/ecrire/action/reorganiser.php
www/ecrire/action/session.php
www/ecrire/action/super_cron.php
www/ecrire/action/supprimer_lien.php
www/ecrire/action/supprimer_rubrique.php
www/ecrire/action/tester.php
www/ecrire/action/tester_taille.php
www/ecrire/auth/ldap.php
www/ecrire/auth/spip.php
www/ecrire/balise/configurer_metas.php
www/ecrire/balise/formulaire_.php
www/ecrire/balise/formulaire_admin.php
www/ecrire/balise/formulaire_ecrire_auteur.php
www/ecrire/balise/formulaire_inscription.php
www/ecrire/balise/info_.php
www/ecrire/balise/logo_.php
www/ecrire/balise/menu_lang.php
www/ecrire/balise/menu_lang_ecrire.php
www/ecrire/balise/url_.php
www/ecrire/balise/url_logout.php
www/ecrire/base/abstract_sql.php
www/ecrire/base/auxiliaires.php
www/ecrire/base/connect_sql.php
www/ecrire/base/create.php
www/ecrire/base/delete_all.php
www/ecrire/base/dump.php
www/ecrire/base/objets.php
www/ecrire/base/repair.php
www/ecrire/base/serial.php
www/ecrire/base/trouver_table.php
www/ecrire/base/upgrade.php
www/ecrire/charsets/iso-8859-15.php
www/ecrire/charsets/iso-8859-6.php
www/ecrire/charsets/iso-8859-9.php
www/ecrire/charsets/translitcomplexe.php
www/ecrire/exec/403.php
www/ecrire/exec/404.php
www/ecrire/exec/admin_plugin.php
www/ecrire/exec/base_delete_all.php
www/ecrire/exec/base_repair.php
www/ecrire/exec/demande_mise_a_jour.php
www/ecrire/exec/fond.php
www/ecrire/exec/fond_monobloc.php
www/ecrire/exec/informer.php
www/ecrire/exec/install.php
www/ecrire/exec/plonger.php
www/ecrire/exec/puce_statut.php
www/ecrire/exec/rechercher.php
www/ecrire/exec/selectionner.php
www/ecrire/exec/upgrade.php
www/ecrire/exec/valider_xml.php
www/ecrire/genie/mail.php
www/ecrire/genie/maintenance.php
www/ecrire/genie/mise_a_jour.php
www/ecrire/genie/optimiser.php
www/ecrire/inc/acces.php
www/ecrire/inc/actions.php
www/ecrire/inc/admin.php
www/ecrire/inc/aider.php
www/ecrire/inc/auth.php
www/ecrire/inc/autoriser.php
www/ecrire/inc/bandeau.php
www/ecrire/inc/boutons.php
www/ecrire/inc/charsets.php
www/ecrire/inc/chercher_logo.php
www/ecrire/inc/chercher_rubrique.php
www/ecrire/inc/commencer_page.php
www/ecrire/inc/config.php
www/ecrire/inc/cookie.php
www/ecrire/inc/couleurs.php
www/ecrire/inc/csv.php
www/ecrire/inc/cvt_autosave.php
www/ecrire/inc/cvt_configurer.php
www/ecrire/inc/cvt_multietapes.php
www/ecrire/inc/distant.php
www/ecrire/inc/documents.php
www/ecrire/inc/drapeau_edition.php
www/ecrire/inc/editer.php
www/ecrire/inc/envoyer_mail.php
www/ecrire/inc/filtres.php
www/ecrire/inc/filtres_boites.php
www/ecrire/inc/filtres_ecrire.php
www/ecrire/inc/filtres_images_lib_mini.php
www/ecrire/inc/filtres_images_mini.php
www/ecrire/inc/filtres_mime.php
www/ecrire/inc/filtres_mini.php
www/ecrire/inc/flock.php
www/ecrire/inc/genie.php
www/ecrire/inc/headers.php
www/ecrire/inc/icone_renommer.php
www/ecrire/inc/iconifier.php
www/ecrire/inc/informer.php
www/ecrire/inc/install.php
www/ecrire/inc/invalideur.php
www/ecrire/inc/journal.php
www/ecrire/inc/json.php
www/ecrire/inc/lang.php
www/ecrire/inc/lang_liste.php
www/ecrire/inc/layer.php
www/ecrire/inc/lien.php
www/ecrire/inc/lien_court.php
www/ecrire/inc/lister_objets.php
www/ecrire/inc/log.php
www/ecrire/inc/mail.php
www/ecrire/inc/math.php
www/ecrire/inc/meta.php
www/ecrire/inc/minipres.php
www/ecrire/inc/modifier.php
www/ecrire/inc/notifications.php
www/ecrire/inc/pipelines.php
www/ecrire/inc/pipelines_ecrire.php
www/ecrire/inc/plonger.php
www/ecrire/inc/plugin.php
www/ecrire/inc/precharger_article.php
www/ecrire/inc/precharger_objet.php
www/ecrire/inc/prepare_recherche.php
www/ecrire/inc/preselectionner_parent_nouvel_objet.php
www/ecrire/inc/presentation.php
www/ecrire/inc/presentation_mini.php
www/ecrire/inc/presenter_enfants.php
www/ecrire/inc/puce_statut.php
www/ecrire/inc/queue.php
www/ecrire/inc/recherche_to_array.php
www/ecrire/inc/rechercher.php
www/ecrire/inc/rubriques.php
www/ecrire/inc/securiser_action.php
www/ecrire/inc/selectionner.php
www/ecrire/inc/session.php
www/ecrire/inc/simplexml_to_array.php
www/ecrire/inc/surligne.php
www/ecrire/inc/texte.php
www/ecrire/inc/texte_mini.php
www/ecrire/inc/traduire.php
www/ecrire/inc/urls.php
www/ecrire/inc/utils.php
www/ecrire/inc/xml.php
www/ecrire/inc_version.php
www/ecrire/index.php
www/ecrire/install/etape_.php
www/ecrire/install/etape_1.php
www/ecrire/install/etape_2.php
www/ecrire/install/etape_3.php
www/ecrire/install/etape_3b.php
www/ecrire/install/etape_4.php
www/ecrire/install/etape_chmod.php
www/ecrire/install/etape_fin.php
www/ecrire/install/etape_ldap1.php
www/ecrire/install/etape_ldap2.php
www/ecrire/install/etape_ldap3.php
www/ecrire/install/etape_ldap4.php
www/ecrire/install/etape_ldap5.php
www/ecrire/iterateur/condition.php
www/ecrire/iterateur/data.php
www/ecrire/iterateur/php.php
www/ecrire/iterateur/pour.php
www/ecrire/iterateur/sql.php
www/ecrire/maj/svn10000.php
www/ecrire/maj/v009.php
www/ecrire/maj/v010.php
www/ecrire/maj/v011.php
www/ecrire/maj/v012.php
www/ecrire/maj/v013.php
www/ecrire/maj/v014.php
www/ecrire/maj/v015.php
www/ecrire/maj/v016.php
www/ecrire/maj/v017.php
www/ecrire/maj/v018.php
www/ecrire/maj/v019.php
www/ecrire/maj/v019_pre193.php
www/ecrire/paquet.xml
www/ecrire/plugins/afficher_liste.php
www/ecrire/plugins/afficher_nom_plugin.php
www/ecrire/plugins/afficher_plugin.php
www/ecrire/plugins/afficher_repertoires.php
www/ecrire/plugins/extraire_boutons.php
www/ecrire/plugins/extraire_pipelines.php
www/ecrire/plugins/get_infos.php
www/ecrire/plugins/infos_paquet.php
www/ecrire/plugins/infos_plugin.php
www/ecrire/plugins/installer.php
www/ecrire/plugins/verifie_conformite.php
www/ecrire/prive.php
www/ecrire/public.php
www/ecrire/public/admin.php
www/ecrire/public/aiguiller.php
www/ecrire/public/assembler.php
www/ecrire/public/balises.php
www/ecrire/public/boucles.php
www/ecrire/public/cacher.php
www/ecrire/public/compiler.php
www/ecrire/public/composer.php
www/ecrire/public/criteres.php
www/ecrire/public/debusquer.php
www/ecrire/public/decompiler.php
www/ecrire/public/evaluer_page.php
www/ecrire/public/format_html.php
www/ecrire/public/interfaces.php
www/ecrire/public/iterateur.php
www/ecrire/public/jointures.php
www/ecrire/public/normaliser.php
www/ecrire/public/parametrer.php
www/ecrire/public/phraser_html.php
www/ecrire/public/quete.php
www/ecrire/public/references.php
www/ecrire/public/sandbox.php
www/ecrire/public/styliser.php
www/ecrire/public/styliser_par_z.php
www/ecrire/public/tracer.php
www/ecrire/req/mysql.php
www/ecrire/req/pg.php
www/ecrire/req/sqlite2.php
www/ecrire/req/sqlite3.php
www/ecrire/req/sqlite_fonctions.php
www/ecrire/req/sqlite_generique.php
www/ecrire/typographie/en.php
www/ecrire/typographie/fr.php
www/ecrire/urls/page.php
www/ecrire/xml/analyser_dtd.php
www/ecrire/xml/indenter.php
www/ecrire/xml/interfaces.php
www/ecrire/xml/sax.php
www/ecrire/xml/valider.php
www/htaccess.txt
www/plugins-dist/breves/action/editer_breve.php
www/plugins-dist/breves/base/breves.php
www/plugins-dist/breves/breves_administrations.php
www/plugins-dist/breves/breves_autoriser.php
www/plugins-dist/breves/breves_pipelines.php
www/plugins-dist/breves/formulaires/configurer_breves.php
www/plugins-dist/breves/formulaires/editer_breve.php
www/plugins-dist/breves/prive/squelettes/contenu/breves.html
www/plugins-dist/compresseur/compresseur_fonctions.php
www/plugins-dist/compresseur/compresseur_pipeline.php
www/plugins-dist/compresseur/formulaires/configurer_compresseur.php
www/plugins-dist/compresseur/inc/compresseur.php
www/plugins-dist/compresseur/inc/compresseur_concatener.php
www/plugins-dist/compresseur/inc/compresseur_embarquer.php
www/plugins-dist/compresseur/inc/compresseur_minifier.php
www/plugins-dist/compresseur/lib/csstidy/class.csstidy.php
www/plugins-dist/compresseur/lib/csstidy/class.csstidy_optimise.php
www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php
www/plugins-dist/compresseur/paquet.xml
www/plugins-dist/dump/action/restaurer.php
www/plugins-dist/dump/action/sauvegarder.php
www/plugins-dist/dump/action/telecharger_dump.php
www/plugins-dist/dump/base/restaurer.php
www/plugins-dist/dump/connect/dump.php
www/plugins-dist/dump/exec/base_restaurer.php
www/plugins-dist/dump/formulaires/restaurer.php
www/plugins-dist/dump/formulaires/sauvegarder.php
www/plugins-dist/dump/inc/dump.php
www/plugins-dist/dump/inc/sauvegarder.php
www/plugins-dist/dump/prive/squelettes/contenu/restaurer_fonctions.php
www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php
www/plugins-dist/filtres_images/filtres/couleurs.php
www/plugins-dist/filtres_images/filtres/images_lib.php
www/plugins-dist/filtres_images/filtres/images_transforme.php
www/plugins-dist/filtres_images/filtres/images_typo.php
www/plugins-dist/filtres_images/images_fonctions.php
www/plugins-dist/filtres_images/inc/filtres_images.php
www/plugins-dist/filtres_images/inc/filtres_images_compat.php
www/plugins-dist/filtres_images/paquet.xml
www/plugins-dist/forum/action/editer_forum.php
www/plugins-dist/forum/action/instituer_forum.php
www/plugins-dist/forum/action/instituer_lot_forum.php
www/plugins-dist/forum/balise/formulaire_forum.php
www/plugins-dist/forum/balise/formulaire_forum_prive.php
www/plugins-dist/forum/base/forum.php
www/plugins-dist/forum/formulaires/activer_forums_objet.php
www/plugins-dist/forum/formulaires/configurer_forums_contenu.php
www/plugins-dist/forum/formulaires/configurer_forums_notifications.php
www/plugins-dist/forum/formulaires/configurer_forums_participants.php
www/plugins-dist/forum/formulaires/configurer_forums_prives.php
www/plugins-dist/forum/formulaires/forum.php
www/plugins-dist/forum/formulaires/forum_prive.php
www/plugins-dist/forum/formulaires/gestion_forum.php
www/plugins-dist/forum/forum_administrations.php
www/plugins-dist/forum/forum_autoriser.php
www/plugins-dist/forum/forum_fonctions.php
www/plugins-dist/forum/forum_pipelines.php
www/plugins-dist/forum/inc/email_notification_forum.php
www/plugins-dist/forum/inc/forum.php
www/plugins-dist/forum/inc/forum_insert.php
www/plugins-dist/forum/prive/modeles/forum_fonctions.php
www/plugins-dist/forum/public/forum.php
www/plugins-dist/forum/urls/generer_url_ecrire_forum.php
www/plugins-dist/forum/urls/generer_url_forum.php
www/plugins-dist/medias/action/acceder_document.php
www/plugins-dist/medias/action/ajouter_documents.php
www/plugins-dist/medias/action/changer_mode_document.php
www/plugins-dist/medias/action/copier_local.php
www/plugins-dist/medias/action/dissocier_document.php
www/plugins-dist/medias/action/editer_document.php
www/plugins-dist/medias/action/supprimer_document.php
www/plugins-dist/medias/action/supprimer_tous_orphelins.php
www/plugins-dist/medias/action/tourner.php
www/plugins-dist/medias/action/verifier_documents_brises.php
www/plugins-dist/medias/action/verifier_documents_liens.php
www/plugins-dist/medias/base/medias.php
www/plugins-dist/medias/base/typedoc.php
www/plugins-dist/medias/formulaires/changer_fichier_document.php
www/plugins-dist/medias/formulaires/configurer_documents.php
www/plugins-dist/medias/formulaires/editer_document.php
www/plugins-dist/medias/formulaires/illustrer_document.php
www/plugins-dist/medias/formulaires/joindre_document.php
www/plugins-dist/medias/inc/choisir_mode_document.php
www/plugins-dist/medias/inc/documenter_objet.php
www/plugins-dist/medias/inc/documents.php
www/plugins-dist/medias/inc/getdocument.php
www/plugins-dist/medias/inc/joindre_document.php
www/plugins-dist/medias/inc/marquer_doublons_doc.php
www/plugins-dist/medias/inc/renseigner_document.php
www/plugins-dist/medias/inc/verifier_document_mode_image.php
www/plugins-dist/medias/inc/verifier_document_mode_vignette.php
www/plugins-dist/medias/inc/vignette.php
www/plugins-dist/medias/medias_administrations.php
www/plugins-dist/medias/medias_autoriser.php
www/plugins-dist/medias/medias_fonctions.php
www/plugins-dist/medias/medias_pipelines.php
www/plugins-dist/medias/metadata/flv.php
www/plugins-dist/medias/metadata/html.php
www/plugins-dist/medias/metadata/image.php
www/plugins-dist/medias/metadata/svg.php
www/plugins-dist/medias/metadata/swf.php
www/plugins-dist/medias/prive/squelettes/inclure/ajouter-documents_fonctions.php
www/plugins-dist/medias/prive/squelettes/inclure/mediatheque-navigation_fonctions.php
www/plugins-dist/medias/puce_statut/document.php
www/plugins-dist/medias/urls/generer_url_document.php
www/plugins-dist/medias/urls/generer_url_ecrire_document.php
www/plugins-dist/mots/action/editer_groupe_mots.php
www/plugins-dist/mots/action/editer_mot.php
www/plugins-dist/mots/action/supprimer_groupe_mots.php
www/plugins-dist/mots/action/supprimer_mot.php
www/plugins-dist/mots/base/mots.php
www/plugins-dist/mots/formulaires/configurer_mots.php
www/plugins-dist/mots/formulaires/editer_groupe_mot.php
www/plugins-dist/mots/formulaires/editer_mot.php
www/plugins-dist/mots/inc/mots.php
www/plugins-dist/mots/mots_administrations.php
www/plugins-dist/mots/mots_autoriser.php
www/plugins-dist/mots/mots_pipelines.php
www/plugins-dist/mots/prive/objets/infos/mot_fonctions.php
www/plugins-dist/mots/prive/objets/liste/mots-admin_fonctions.php
www/plugins-dist/mots/prive/squelettes/contenu/groupe_mots.html
www/plugins-dist/mots/prive/squelettes/contenu/mots.html
www/plugins-dist/mots/puce_statut/mot.php
www/plugins-dist/msie_compat/formulaires/configurer_vieux_butineurs.php
www/plugins-dist/organiseur/action/effacer_messagerecu.php
www/plugins-dist/organiseur/action/envoyer_message.php
www/plugins-dist/organiseur/action/quete_autocomplete.php
www/plugins-dist/organiseur/action/quete_calendrier_prive.php
www/plugins-dist/organiseur/action/supprimer_message.php
www/plugins-dist/organiseur/base/organiseur.php
www/plugins-dist/organiseur/formulaires/configurer_messagerie_agenda.php
www/plugins-dist/organiseur/formulaires/editer_message.php
www/plugins-dist/organiseur/inc/date_gestion.php
www/plugins-dist/organiseur/inc/messages.php
www/plugins-dist/organiseur/inc/quete_calendrier.php
www/plugins-dist/organiseur/notifications/instituermessage.php
www/plugins-dist/organiseur/organiseur_administrations.php
www/plugins-dist/organiseur/organiseur_autoriser.php
www/plugins-dist/organiseur/organiseur_fonctions.php
www/plugins-dist/organiseur/organiseur_pipelines.php
www/plugins-dist/petitions/action/confirmer_signature.php
www/plugins-dist/petitions/action/editer_petition.php
www/plugins-dist/petitions/action/editer_signature.php
www/plugins-dist/petitions/action/relancer_signature.php
www/plugins-dist/petitions/action/supprimer_signature.php
www/plugins-dist/petitions/action/traiter_lot_signature.php
www/plugins-dist/petitions/action/valider_signature.php
www/plugins-dist/petitions/balise/formulaire_signature.php
www/plugins-dist/petitions/base/petitions.php
www/plugins-dist/petitions/formulaires/activer_petition_article.php
www/plugins-dist/petitions/formulaires/signature.php
www/plugins-dist/petitions/petitions_administrations.php
www/plugins-dist/petitions/petitions_autoriser.php
www/plugins-dist/petitions/petitions_fonctions.php
www/plugins-dist/petitions/petitions_options.php
www/plugins-dist/petitions/petitions_pipelines.php
www/plugins-dist/revisions/afficher_diff/champ.php
www/plugins-dist/revisions/afficher_diff/id_rubrique.php
www/plugins-dist/revisions/afficher_diff/jointure.php
www/plugins-dist/revisions/base/revisions.php
www/plugins-dist/revisions/formulaires/configurer_revisions_objets.php
www/plugins-dist/revisions/formulaires/reviser.php
www/plugins-dist/revisions/genie/optimiser_revisions.php
www/plugins-dist/revisions/inc/diff.php
www/plugins-dist/revisions/inc/revisions.php
www/plugins-dist/revisions/inc/revisions_autoriser.php
www/plugins-dist/revisions/inc/revisions_pipeline.php
www/plugins-dist/revisions/inc/suivi_versions.php
www/plugins-dist/revisions/paquet.xml
www/plugins-dist/revisions/prive/objets/liste/versions.html
www/plugins-dist/revisions/prive/rss/revisions_fonctions.php
www/plugins-dist/revisions/revisions_administrations.php
www/plugins-dist/safehtml/inc/safehtml.php
www/plugins-dist/sites/action/editer_site.php
www/plugins-dist/sites/action/exporter_bookmarks.php
www/plugins-dist/sites/action/importer_bookmarks_netscape.php
www/plugins-dist/sites/action/instituer_syndic_article.php
www/plugins-dist/sites/action/purger_site.php
www/plugins-dist/sites/action/syndiquer_site.php
www/plugins-dist/sites/balise/formulaire_site.php
www/plugins-dist/sites/base/sites.php
www/plugins-dist/sites/formulaires/configurer_sites.php
www/plugins-dist/sites/formulaires/editer_site.php
www/plugins-dist/sites/formulaires/editer_site_fonctions.php
www/plugins-dist/sites/formulaires/exporter_sites.php
www/plugins-dist/sites/formulaires/importer_sites.php
www/plugins-dist/sites/formulaires/regler_moderation_site.php
www/plugins-dist/sites/formulaires/site.php
www/plugins-dist/sites/genie/syndic.php
www/plugins-dist/sites/inc/site.php
www/plugins-dist/sites/inc/syndic.php
www/plugins-dist/sites/liens/implicite_site.php
www/plugins-dist/sites/paquet.xml
www/plugins-dist/sites/prive/objets/liste/syndic_articles.html
www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php
www/plugins-dist/sites/prive/squelettes/contenu/site.html
www/plugins-dist/sites/puce_statut/site.php
www/plugins-dist/sites/sites_administrations.php
www/plugins-dist/sites/sites_autoriser.php
www/plugins-dist/sites/sites_fonctions.php
www/plugins-dist/sites/sites_pipelines.php
www/plugins-dist/squelettes_par_rubrique/squelettes_par_rubrique_options.php
www/plugins-dist/statistiques/base/delete_referers.php
www/plugins-dist/statistiques/base/delete_stats.php
www/plugins-dist/statistiques/base/stats.php
www/plugins-dist/statistiques/engines-list.txt
www/plugins-dist/statistiques/exec/base_delete_referers.php
www/plugins-dist/statistiques/exec/base_delete_stats.php
www/plugins-dist/statistiques/formulaires/configurer_compteur.php
www/plugins-dist/statistiques/genie/popularites.php
www/plugins-dist/statistiques/genie/visites.php
www/plugins-dist/statistiques/inc/referenceurs.php
www/plugins-dist/statistiques/inc/statistiques.php
www/plugins-dist/statistiques/inc/stats_referers_to_array.php
www/plugins-dist/statistiques/inc/stats_visites_to_array.php
www/plugins-dist/statistiques/paquet.xml
www/plugins-dist/statistiques/prive/squelettes/contenu/stats_lang_fonctions.php
www/plugins-dist/statistiques/prive/squelettes/contenu/stats_repartition_fonctions.php
www/plugins-dist/statistiques/public/stats.php
www/plugins-dist/statistiques/stats_administrations.php
www/plugins-dist/svp/action/editer_depot.php
www/plugins-dist/svp/exec/admin_plugin.php
www/plugins-dist/svp/formulaires/admin_plugin.html
www/plugins-dist/svp/formulaires/inc-admin_plugin.html
www/plugins-dist/svp/formulaires/inc-confirmer_actions.html
www/plugins-dist/svp/formulaires/inc-plugins_trouves.html
www/plugins-dist/svp/inc/svp_decider.php
www/plugins-dist/svp/paquet.xml
www/plugins-dist/svp/prive/squelettes/contenu/svp_admin_plugin.html
www/plugins-dist/svp/teleporter/http.php
www/plugins-dist/textwheel/inc/lien.php
www/plugins-dist/textwheel/inc/memoization-mini.php [deleted file]
www/plugins-dist/textwheel/inc/notes.php
www/plugins-dist/textwheel/inc/texte.php
www/plugins-dist/textwheel/inc/textwheel.php
www/plugins-dist/textwheel/paquet.xml
www/plugins-dist/textwheel/typographie/en.php
www/plugins-dist/textwheel/typographie/fr.php
www/plugins-dist/urls_etendues/action/editer_url.php
www/plugins-dist/urls_etendues/action/supprimer_url.php
www/plugins-dist/urls_etendues/action/urls_actualiser.php
www/plugins-dist/urls_etendues/action/urls_liberer.php
www/plugins-dist/urls_etendues/action/urls_verrouiller.php
www/plugins-dist/urls_etendues/base/urls.php
www/plugins-dist/urls_etendues/formulaires/configurer_urls.php
www/plugins-dist/urls_etendues/formulaires/editer_url_objet.php
www/plugins-dist/urls_etendues/paquet.xml
www/plugins-dist/urls_etendues/prive/objets/editer/url.html
www/plugins-dist/urls_etendues/prive/objets/liste/urls.html
www/plugins-dist/urls_etendues/prive/squelettes/navigation/controler_urls.html
www/plugins-dist/urls_etendues/urls/arbo.php
www/plugins-dist/urls_etendues/urls/html.php
www/plugins-dist/urls_etendues/urls/libres.php
www/plugins-dist/urls_etendues/urls/propres.php
www/plugins-dist/urls_etendues/urls/propres2.php
www/plugins-dist/urls_etendues/urls/propres_qs.php
www/plugins-dist/urls_etendues/urls/simple.php
www/plugins-dist/urls_etendues/urls/standard.php
www/plugins-dist/urls_etendues/urls_administrations.php
www/plugins-dist/urls_etendues/urls_pipeline.php
www/plugins-dist/vertebres/public/vertebrer.php
www/prive/aide_body.css
www/prive/aide_menu.html
www/prive/echafaudage/hierarchie/objet_fonctions.php
www/prive/formulaires/configurer_annonces.php
www/prive/formulaires/configurer_articles.php
www/prive/formulaires/configurer_avertisseur.php
www/prive/formulaires/configurer_flux.php
www/prive/formulaires/configurer_identite.php
www/prive/formulaires/configurer_langage.php
www/prive/formulaires/configurer_langue.php
www/prive/formulaires/configurer_logos.php
www/prive/formulaires/configurer_metas.php
www/prive/formulaires/configurer_moderniseur.php
www/prive/formulaires/configurer_multilinguisme.php
www/prive/formulaires/configurer_preferences.php
www/prive/formulaires/configurer_previsualiseur.php
www/prive/formulaires/configurer_redacteurs.php
www/prive/formulaires/configurer_reducteur.php
www/prive/formulaires/configurer_relayeur.php
www/prive/formulaires/configurer_rubriques.php
www/prive/formulaires/configurer_transcodeur.php
www/prive/formulaires/configurer_visiteurs.php
www/prive/formulaires/dater.php
www/prive/formulaires/declarer_bases.php
www/prive/formulaires/editer_article.php
www/prive/formulaires/editer_liens.php
www/prive/formulaires/editer_logo.php
www/prive/formulaires/editer_rubrique.php
www/prive/formulaires/instituer_objet.php
www/prive/formulaires/login.php
www/prive/formulaires/recherche_ecrire.php
www/prive/formulaires/rediriger_article.php
www/prive/formulaires/selecteur/inc-nav-rubriques.html
www/prive/formulaires/selecteur/lister-racine-articles.html
www/prive/formulaires/selecteur/lister-racine-rubriques.html
www/prive/formulaires/selecteur/lister-rubriques-articles.html
www/prive/formulaires/selecteur/lister-rubriques-rubriques.html
www/prive/formulaires/selecteur/lister.html
www/prive/formulaires/traduire.php
www/prive/informer_auteur_fonctions.php
www/prive/javascript/jquery.autosave.js
www/prive/objets/liste/auteurs_associer_fonctions.php
www/prive/objets/liste/auteurs_fonctions.php
www/prive/objets/liste/auteurs_lies_fonctions.php
www/prive/objets/liste/objets-en-edition_fonctions.php
www/prive/objets/liste/objets-trad_fonctions.php
www/prive/objets/liste/visiteurs_fonctions.php
www/prive/spip_admin.css
www/prive/squelettes/inclure/barre-nav.html
www/prive/themes/spip/forms.css.html
www/prive/themes/spip/icons.css.html
www/prive/themes/spip/typo.css.html
www/spip.php
www/squelettes-dist/formulaires/ecrire_auteur.php
www/squelettes-dist/formulaires/inscription.php
www/squelettes-dist/formulaires/mot_de_passe.php
www/squelettes-dist/formulaires/oubli.php
www/squelettes-dist/formulaires/recherche.php
www/svn.revision

index 392f76d..21cb3c4 100644 (file)
@@ -1,4 +1,85 @@
 
+SPIP-Core spip-3.0.21 -> spip-3.0.22  10 mars 2016
+-------------------------------------------------------------
+
+r22472 | ben       |  (dim. 01 nov. 2015) | 3.0.22-dev ! tonton 
+r22476 | b_b       |  (mar. 03 nov. 2015) | report de r22475Fix #3422 : classer les rubriques du picker ajax par rang, puis ordre alpha (maieul)
+r22483 | b_b       |  (mer. 04 nov. 2015) | report de r22482Fix #2745 : ajouter au htaccess la règle qui permet de servir les favicons des itrucs (commentée par défaut)
+r22491 | marcimat  |  (jeu. 05 nov. 2015) | Suppression d'un $requeter défini en double (azerttyu, via damien, via exakat.io).+ phpdoc de ces 2 fonctions tant qu'on y est.
+r22512 | marcimat  |  (ven. 06 nov. 2015) | Report de r22511 (et r22510 !) : Correction suite Ã  un report un peu erronné en r17385 et r17386 (mauvais copier / coller !)
+r22536 | cedric    |  (mar. 10 nov. 2015) | Report de r22530 : indentation et PHPDoc
+r22537 | cedric    |  (mar. 10 nov. 2015) | Report de r22531 : type dans PHPDoc (marcimat)
+r22538 | cedric    |  (mar. 10 nov. 2015) | Report de r22532 : PHPDoc, indentation
+r22539 | cedric    |  (mar. 10 nov. 2015) | Report de r22534 : Generalisation de la prise en charge de <procure> utilisable par les plugins pour signaler qu'ils fournissent le service d'un autre plugin<procure nom="xxxx" version "1.2.3" />si le procure est dans une version plus recente que le plugin du meme nom, c'est le procure qui l'emportePour les procure, on attribue un faux repertoire compose du repertoire du plugin qui procure suivi de /procure:xxxxce qui permet si besoin de savoir a partir de _DIR_PLUGIN_XXXX que c'est un procure, et qui procure.+ renommage d'une variable ambigue dans plugin_valide_resume
+r22559 | kent1     |  (lun. 16 nov. 2015) | Report de r22558Forcer la couleur de ces h6 pour Ã©viter des cas illisibles où le container a pour couleur #fff par exemple
+r22590 | rasta     |  (mar. 24 nov. 2015) | Backport de r22588 en 3.0 : On ajoute un fallback Ã  la fonction url_de_base() avec d'utiliser adresse_site en dernier recours. Cela permet d'avoir une URL de site dans tous les cas, même quand on ne navigue pas avec un client web classique (par exemple en CLI, mais Ã§a peut Ãªtre d'autres types d'appel).
+r22592 | marcimat  |  (mar. 24 nov. 2015) | Report de r22591 :  Erreur dans r22534 : $p n'est pas un tableau, mais le préfixe !
+r22600 | erational |  (jeu. 26 nov. 2015) | report de https://core.spip.net/projects/spip/repository/revisions/22599
+r22603 | cedric    |  (dim. 29 nov. 2015) | Report de r22602 : copie_locale prend un 4e argument optionnel pour specifier une taille maxi du telechargement (#3527)
+r22607 | cedric    |  (dim. 29 nov. 2015) | Report de r22606 : #3588 : n'appeller spip_clear_opcode_cache que lorsqu'on ecrit un fichier PHP (perf issue)
+r22609 | cedric    |  (dim. 29 nov. 2015) | Report de r22608 : oups : erreur sur r22606, toute ecriture de fichier provoquait un echec
+r22631 | cedric    |  (dim. 06 déc. 2015) | Fix #3542 : z-index du date-picker superieur a celui des icones et de la navigation principale
+r22633 | cedric    |  (dim. 06 déc. 2015) | Fix #3542 : probleme de overflow
+r22637 | b_b       |  (mar. 08 déc. 2015) | report de r22636 / Fix #3614 : affichage des icones en RTL (George)
+r22650 | cedric    |  (ven. 11 déc. 2015) | Report de r22648 : Fix #3617 : la fonction objet_modifier_champ utilise options[data] pour verifier les conflit, et si non fourni ou nul se rabat sur $_POST pour assurer la continuite de fonctionnement
+r22651 | cedric    |  (ven. 11 déc. 2015) | Report de r22649 : Fix #3617 : passer $set a objet_modifier_champs pour qu'elle ne detecte les conflits sur $_POST que quand c'est pertinent
+r22655 | cedric    |  (sam. 12 déc. 2015) | Report de r22652 : Full Path Disclosure dans le phraseur. Lorsqu'un symbole d'avant-boucle n'avait pas son chevron fermant,le compilateur signalait bien l'erreur mais produisait quand même du code PHP,leque Ã©tant syntaxiquement faux produisait une erreur PHP. Bonne stratégie: poursuivre la compilation un caractère après le chevron ouvrant de cette avant-boucle pour traquer les Ã©ventuelles erreurs plus loi.
+r22656 | cedric    |  (sam. 12 déc. 2015) | Indentation (soupe d'espaces et de tabulations)
+r22680 | cedric    |  (mer. 16 déc. 2015) | option peut prendre une valeur 'action' passee aux pipelines pre/post edition
+r22684 | cedric    |  (ven. 18 déc. 2015) | r22281 et r22282 ont introduit une dependance de la fonction liens_absolus aux fonctions extraire_attribut et inserer_attribut, mais qui ne sont pas forcement chargees. Faire un include_spip au besoin
+r22687 | cedric    |  (lun. 21 déc. 2015) | coquille affreuse dans r22603 qui cassait copie_locale
+r22693 | denisb    |  (ven. 01 janv. 2016) | bonne année.
+r22695 | erational |  (ven. 01 janv. 2016) | backport SPIP 3.1: Ã©viter le problème avec set_magic_quotes_runtime avec les versions PHP5.3+
+r22698 | cedric    |  (lun. 04 janv. 2016) | Report de r22697 : utiliser PHP_VERSION_ID plutot que version_compare pour ce code execute a chaque hit (perf issue) + emuler PHP_VERSION_ID si besoin
+r22721 | cedric    |  (lun. 11 janv. 2016) | Report de r22719 : Perf issue sur les filtres images appliques sur des images distantes en 404 :[(#VAL{http://example.org/fichier_inexistant.png}|image_reduire{64,64})] provoquait 3 operations file_exists sur http://example.org/fichier_inexistant.png.srcque PHP interprete en faisant 3 hits http sur le fichier sauf si PHP bloque ce type d'operation.
+r22781 | b_b       |  (mar. 02 févr. 2016) | report de r22779 : réparer le lien d'accès rapide vers la recherche (cf #3634)
+r22803 | james     |  (sam. 06 févr. 2016) | report @22801: Ã©viter des warning dans les logs (Camille Sauvage)
+r22806 | james     |  (sam. 06 févr. 2016) | report de r22805
+r22816 | james     |  (mar. 09 févr. 2016) | report r22814
+r22820 | james     |  (mar. 09 févr. 2016) | report r22818
+r22824 | marcimat  |  (mer. 10 févr. 2016) | Report de r22822 : Le cnx doit Ãªtre de la même forme dans tous les cas de retour, avec ou sans le login trouvé dans le formulaire de login. Clos https://core.spip.net/issues/3690 (Stéph R).
+r22834 | marcimat  |  (dim. 14 févr. 2016) | Report de r22833 : Coquille sur un log.
+r22840 | cedric    |  (jeu. 18 févr. 2016) | Catcher les erreurs de eval(), ce qui permet de generer une erreur squelette propre avec le nom du squelette qui a genere l'erreur, information qui manquait cruellement. Les utilisatateurs non admin ne voient pas l'erreur, et on genere un commentaire html a la place du resultat
+r22841 | cedric    |  (jeu. 18 févr. 2016) | Suite de r22840 : on expose le code PHP du squelette qui fait l'erreur d'eval, avec numerotation des
+r22865 | b_b       |  (ven. 26 févr. 2016) | report de r22863Fix #3660 : Ã©viter de retomber sur _MEMORY_LIMIT_MIN quand memory_limit est défini Ã  -1 dans php.ini
+r22874 | rasta     |  (jeu. 03 mars 2016) | Juste des tabulations et espacements, pour y voir plus clair et ne pas mélanger avec des vraies modifs.
+r22875 | rasta     |  (ven. 04 mars 2016) | Déplantage de la balise #RANG quand on a déclaré autre chose qu'un simple champ pour le titre (par exemple une expression avec fonctions et virgules).On garde exactement le même fonctionnement qu'avant avec un "AS titre_rang" rajouté. Mais on fait deux tests au lieu d'un seul :- d'abord on cherche le titre en se disant que "lang" est défini AVANT- et si on ne trouve pas, là on prend depuis le débutMais dans les deux cas, vu que c'est séparé en deux, et qu'on cherche "lang" explicitement et pas une virgule toute seule : on peut donc prendre tout caractère pour le titre, y compris les virgules qu'il y aurait dans des fonctions.Cela gère donc bien tous les cas, enfin de toute façon plus de cas qu'avant.
+r22885 | rasta     |  (mar. 08 mars 2016) | Backport de #22884 : Ã©chapper les apostrophes (quote simple) dans les appels javascript.
+r22888 | rasta     |  (mar. 08 mars 2016) | Backport de r22887 : Pour le javascript on fait un plus brutal "textebrut", là au moins Ã§a marche.
+r22901 | cedric    |  (jeu. 10 mars 2016) | Report de r22899 : Mise a jour de la liste des bots : Moreover|FunWebProducts|facebook|hootsuite|MetaURI|flipboard sont tous des bots
+r22903 | cedric    |  (jeu. 10 mars 2016) | Report de r22872 : Fix #3680 : on change le format du contexte ajax pour pouvoir verifier la cle de signature du contexte avant de deserializer, ce qui permet de faire confiance au contenu
+r22909 | cedric    |  (jeu. 10 mars 2016) | un var_isbot pour permettre le monitoring par robot (monitoring de la disponibilite user/robot)+ mise a jour de la liste des robots
+r22910 | cedric    |  (jeu. 10 mars 2016) | un filtre filtrer_entites
+
+SPIP-plugins-dist spip-3.0.21 -> spip-3.0.22  10 mars 2016
+-------------------------------------------------------------
+
+r92729 | marcimat  |  (sam. 07 nov. 2015) | Report de r92728: Il manquait le préfixe sur l'appel d'une chaine de langue.
+r92931 | real3t    |  (sam. 14 nov. 2015) | Ajout du moteur Lilo pour les statistiques
+r92992 | cedric    |  (mer. 18 nov. 2015) | Robustesse de la detection du titre qui pouichait quand la balise title etait sur plusieurs (contexte.com)
+r92995 | cedric    |  (mer. 18 nov. 2015) | On etend la prise en charge de _SYNDICATION_DEREFERENCER_URL a tout flux en verifiant que les URLs syndiquees ne sont pas des redirections, et en recuperant l'URL finale le cas echeant
+r92996 | cedric    |  (mer. 18 nov. 2015) | quand syndication=non mais qu'il y a des articles, afficher la liste en plus du bouton pour purger, car sinon on ne sait pas ce qu'on purge
+r93070 | eric      |  (sam. 21 nov. 2015) | Report des initialisations de certaines variables de la fonction printWordWrapped
+r93160 | guytarr   |  (mer. 25 nov. 2015) | report de [93159] (coquille)
+r93278 | cedric    |  (sam. 28 nov. 2015) | Version 1.5.5 de CSSTidy (bugfix font shorthand avec font-family:inherit)
+r93285 | cedric    |  (dim. 29 nov. 2015) | Report de r93284 : Fix https://core.spip.net/issues/3527 : accepter les paquets jusqu'a 64Mo, personalisable par la constante _SVP_PAQUET_MAX_SIZE
+r93407 | cedric    |  (dim. 06 déc. 2015) | Report de r93406 : Fix https://core.spip.net/issues/3571 : ne pas risquer que les fonctions de substitution cache_(get|set) du plugin soient utilisees par ailleurs car elles ne sont pas concues pour cela. On simplifie donc l'approche en les renommant et en les chargeant de deleguer aux fonctions de memoization si presentes
+r93426 | cedric    |  (lun. 07 déc. 2015) | bugfix sur les URLs des pages uniques (id_parent=-1) : on ne pouvait pas les supprimer, et leur id_parent les faisait passer devant une rubrique racine dans une recherche d'URL
+r93430 | cedric    |  (lun. 07 déc. 2015) | Utiliser partout autoriser(modifierurl) au lieu de autoriser(modifier) car cette derniere repond false quand l'objet n'existe plus en base, et dans ce cas precis on veut pouvoir supprimer l'URLautoriser(modifierurl) verifie donc si l'objet existe encore en base et dans le cas contraire on s'en remet a autoriser(administrer,url)
+r93499 | pierre    |  (mer. 09 déc. 2015) | Espaces insécables
+r93500 | pierre    |  (mer. 09 déc. 2015) | Annuler le commit précédent sur les espaces insécables.C'est probablement sur la chaine de langue qu'il faut intervenir.Elle est dans ecrire_fr.php, ne faudrait-il pas la déplacer dans le plugin forum texte_statut_publiestexte_statut_attente_validation?
+r93710 | cedric    |  (mer. 16 déc. 2015) | Un hreflang sur les articles syndiques qui ne sont pas dans la langue courante
+r93711 | cedric    |  (mer. 16 déc. 2015) | utiliser objet_modifier_champs plutot que sql_updateq, cela permet de passer par les pipelines pre/post edition
+r93712 | cedric    |  (mer. 16 déc. 2015) | passer l'action 'syndiquer' a objet_modifier_champs
+r93713 | cedric    |  (mer. 16 déc. 2015) | version
+r93746 | erational |  (jeu. 17 déc. 2015) | Le tri par défaut doit Ãªtre en multi titre pour respecter la langue(report de http://zone.spip.org/trac/spip-zone/changeset/93745 )
+r94397 | denisb    |  (ven. 01 janv. 2016) | bonne année.
+r95237 | Francky   |  (ven. 19 févr. 2016) | Ne sont que pour spip 3.0, ils ont une autre version pour spip 3.1
+r95523 | b_b       |  (ven. 26 févr. 2016) | quelques pétouilles pour ie cf https://core.spip.net/issues/3650
+r95524 | b_b       |  (ven. 26 févr. 2016) | encore des CDATA Ã  Ã©chapper cf https://core.spip.net/issues/3650pour plus d'infos sur les différentes syntaxes voir http://javascript.about.com/library/blxhtml.htm
+r95651 | b_b       |  (mar. 01 mars 2016) | report de r85647 cf https://core.spip.net/issues/2283
+r95776 | cedric    |  (sam. 05 mars 2016) | Eviter une notice
+
 SPIP-Core spip-3.0.20 -> spip-3.0.21  31 octobre 2015
 -------------------------------------------------------------
 
@@ -644,7 +725,7 @@ r78152 | ben       |  (sam. 09 nov. 2013) | maj langues
 SPIP-Core spip-3.0.10 -> spip-3.0.11  09 août 2013
 -------------------------------------------------------------
 
-r20605 | ben       |  (lun 27 mai 2013) | prenons de bonnes habitudes : dès qu'une release est faite, on passe en dev pour ceux/celles qui utilisent svn (eric) 
+r20605 | ben       |  (lun 27 mai 2013) | prenons de bonnes habitudes : dès qu'une release est faite, on passe en dev pour ceux/celles qui utilisent svn (eric)
 r20606 | cedric    |  (lun 27 mai 2013) | Ferme #2860 : appliquer les règles typographiques de la langue de l'article sur son texte (et son titre) dans l'espace privé.Pour cela, on reforme changer_typo() qui ne renvoit plus rien, et annule la dérogation de lang_typo quand on lui passe une chaine vide.
 r20613 | cedric    |  (jeu 30 mai 2013) | Report adapté de r20611, et retour sur r20576 : tester_statut_inscription() revient a son role initial qui est de tester le mode fourni ou de retourner le meilleur mode possible si aucun mode n'est fourni lors de l'inscription. Il accepte aussi un id en second argument, comme c'était le cas en 2.1, non usité par défaut, mais qui peut l'être si passé au #FORMULAIRE_INSCRIPTIONtester_config() est rebranché sur la fonction tester_statut_inscription()
 r20640 | cedric    |  (lun 10 jun 2013) | un filtre liens_nofollow qui ajoute un rel="nofollow" Ã  tous les liens du texte passé en argument
@@ -1142,7 +1223,7 @@ r70865 | ben       |  (lun. 18 mars 2013) | Un ptit update de langue avant la so
 
 
 SPIP-core spip-3.0.4 -> spip-3.0.5
---------------------------------- 
+---------------------------------
 
 r19786 | cedric    | 2012-08-02 14:35:20 | Complement a r19775 : explications et optimisation (il faut en fait doubler la condition objet='xxx' pour Ãªtre exact et optimisé)
 r19794 | cedric    | 2012-08-05 00:02:49 | eviter une notice
@@ -1173,8 +1254,8 @@ r19894 | cedric    | 2012-09-11 09:43:31 | La fonction notifications_envoyer_mai
 r19897 | cedric    | 2012-09-11 12:56:18 | Dans une requete HEAD renvoyer le vrai en-tête. Pour cela on est bien obligé de calculer toute la page, mais on coupe la connexion après les entête http.On perd donc la rapidité de calcul des requetes HEAD au profit de leur exactitude.Dans la mesure ou HEAD représente en général moins de 1% des requetes (voire de l'ordre de 2/1000 sur un echantillon de sites en production) la perte en performance serveur est négligeable (d'autant plus qu'une réponse 200 a toute les chances de générer une requete complète Ã  suivre).A contrario, en cas de soucis, ou pour analyser une page ou le comportement de SPIP, avoir une réponse pertinente sur HEAD est plus utile. Et la page est en cache pour l'éventuelle requete complète qui suit.
 r19901 | marcimat  | 2012-09-12 11:15:21 | Report de r19900 : classes lat sur les colonnes des exec php
 
-plugins-dist spip-3.0.4 -> spip-3.0.5 
---------------------------------- 
+plugins-dist spip-3.0.4 -> spip-3.0.5
+---------------------------------
 
 r64570 | yffic     | 2012-08-07 19:46:04 | Petite précision sur le message d'erreur en cas de répertoire lib inexistant
 r64787 | kent1     | 2012-08-14 11:34:43 | un peu de documentation
index bcf6179..0bd8e65 100644 (file)
@@ -5,7 +5,7 @@
  * ------------------
  */
 
-define('_ECRAN_SECURITE', '1.2.2'); // 2014-12-01
+define('_ECRAN_SECURITE', '1.2.4'); // 2016-03-10
 
 /*
  * Documentation : http://www.spip.net/fr_article4200.html
@@ -17,20 +17,29 @@ define('_ECRAN_SECURITE', '1.2.2'); // 2014-12-01
 if (isset($_GET['test_ecran_securite']))
        $ecran_securite_raison = 'test '._ECRAN_SECURITE;
 
+/*
+ * Monitoring
+ * var_isbot=0 peut etre utilise par un bot de monitoring pour surveiller la disponibilite d'un site vu par les users
+ * var_isbot=1 peut etre utilise pour monitorer la disponibilite pour les bots (sujets a 503 de delestage si
+ * le load depasse ECRAN_SECURITE_LOAD)
+ */
+if (!defined('_IS_BOT') and isset($_GET['var_isbot']))
+               define('_IS_BOT',$_GET['var_isbot']?true:false);
+
 /*
  * Détecteur de robot d'indexation
  */
 if (!defined('_IS_BOT'))
        define('_IS_BOT',
                isset($_SERVER['HTTP_USER_AGENT'])
-               AND preg_match(
+               and preg_match(
            // mots generiques
            ',bot|slurp|crawler|spider|webvac|yandex|'
            // MSIE 6.0 est un botnet 99,9% du temps, on traite donc ce USER_AGENT comme un bot
            . 'MSIE 6\.0|'
            // UA plus cibles
-           . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|Google|Genieo|INA dlweb|InfegyAtlas|Java VM|LiteFinder|Lycos|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti'
-           . ',i',(string) $_SERVER['HTTP_USER_AGENT'])
+           . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|facebook|flipboard|hootsuite|FunWebProducts|Google|Genieo|INA dlweb|InfegyAtlas|Java VM|LiteFinder|Lycos|MetaURI|Moreover|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti'
+           . ',i', (string) $_SERVER['HTTP_USER_AGENT'])
        );
 
 /*
@@ -41,32 +50,32 @@ if (!defined('_IS_BOT'))
  * (id_base est une variable de la config des widgets de WordPress)
  */
 foreach ($_GET as $var => $val)
-       if ($_GET[$var] AND strncmp($var,"id_",3)==0
-       AND !in_array($var, array('id_table','id_base')))
-               $_GET[$var] = is_array($_GET[$var])?@array_map('intval',$_GET[$var]):intval($_GET[$var]);
+       if ($_GET[$var] and strncmp($var, "id_", 3) == 0
+       and !in_array($var, array('id_table', 'id_base')))
+               $_GET[$var] = is_array($_GET[$var])?@array_map('intval', $_GET[$var]):intval($_GET[$var]);
 foreach ($_POST as $var => $val)
-       if ($_POST[$var] AND strncmp($var,"id_",3)==0
-       AND !in_array($var, array('id_table','id_base')))
-               $_POST[$var] = is_array($_POST[$var])?@array_map('intval',$_POST[$var]):intval($_POST[$var]);
+       if ($_POST[$var] and strncmp($var, "id_", 3) == 0
+       and !in_array($var, array('id_table', 'id_base')))
+               $_POST[$var] = is_array($_POST[$var])?@array_map('intval', $_POST[$var]):intval($_POST[$var]);
 foreach ($GLOBALS as $var => $val)
-       if ($GLOBALS[$var] AND strncmp($var,"id_",3)==0
-       AND !in_array($var, array('id_table','id_base')))
-               $GLOBALS[$var] = is_array($GLOBALS[$var])?@array_map('intval',$GLOBALS[$var]):intval($GLOBALS[$var]);
+       if ($GLOBALS[$var] and strncmp($var, "id_", 3) == 0
+       and !in_array($var, array('id_table', 'id_base')))
+               $GLOBALS[$var] = is_array($GLOBALS[$var])?@array_map('intval', $GLOBALS[$var]):intval($GLOBALS[$var]);
 
 /*
  * Interdit la variable $cjpeg_command, qui Ã©tait utilisée sans
  * précaution dans certaines versions de dev (1.8b2 -> 1.8b5)
  */
-$cjpeg_command='';
+$cjpeg_command = '';
 
 /*
  * Contrôle de quelques variables (XSS)
  */
 foreach(array('lang', 'var_recherche', 'aide', 'var_lang_r', 'lang_r', 'var_ajax_ancre') as $var) {
        if (isset($_GET[$var]))
-               $_REQUEST[$var] = $GLOBALS[$var] = $_GET[$var] = preg_replace(',[^\w\,/#&;-]+,',' ',(string)$_GET[$var]);
+               $_REQUEST[$var] = $GLOBALS[$var] = $_GET[$var] = preg_replace(',[^\w\,/#&;-]+,', ' ', (string)$_GET[$var]);
        if (isset($_POST[$var]))
-               $_REQUEST[$var] = $GLOBALS[$var] = $_POST[$var] = preg_replace(',[^\w\,/#&;-]+,',' ',(string)$_POST[$var]);
+               $_REQUEST[$var] = $GLOBALS[$var] = $_POST[$var] = preg_replace(',[^\w\,/#&;-]+,', ' ', (string)$_POST[$var]);
 }
 
 /*
@@ -79,38 +88,38 @@ if (preg_match(',^(.*/)?spip_acces_doc\.,', (string)$_SERVER['REQUEST_URI'])) {
 /*
  * Pas d'inscription abusive
  */
-if (isset($_REQUEST['mode']) AND isset($_REQUEST['page'])
-AND !in_array($_REQUEST['mode'],array("6forum","1comite"))
-AND $_REQUEST['page'] == "identifiants")
+if (isset($_REQUEST['mode']) and isset($_REQUEST['page'])
+and !in_array($_REQUEST['mode'], array("6forum", "1comite"))
+and $_REQUEST['page'] == "identifiants")
        $ecran_securite_raison = "identifiants";
 
 /*
  * Agenda joue Ã  l'injection php
  */
 if (isset($_REQUEST['partie_cal'])
-AND $_REQUEST['partie_cal'] !== htmlentities((string)$_REQUEST['partie_cal']))
+and $_REQUEST['partie_cal'] !== htmlentities((string)$_REQUEST['partie_cal']))
        $ecran_securite_raison = "partie_cal";
 if (isset($_REQUEST['echelle'])
-AND $_REQUEST['echelle'] !== htmlentities((string)$_REQUEST['echelle']))
+and $_REQUEST['echelle'] !== htmlentities((string)$_REQUEST['echelle']))
        $ecran_securite_raison = "echelle";
 
 /*
  * Espace privé
  */
 if (isset($_REQUEST['exec'])
-AND !preg_match(',^[\w-]+$,', (string)$_REQUEST['exec']))
+and !preg_match(',^[\w-]+$,', (string)$_REQUEST['exec']))
        $ecran_securite_raison = "exec";
 if (isset($_REQUEST['cherche_auteur'])
-AND preg_match(',[<],', (string)$_REQUEST['cherche_auteur']))
+and preg_match(',[<],', (string)$_REQUEST['cherche_auteur']))
        $ecran_securite_raison = "cherche_auteur";
 if (isset($_REQUEST['exec'])
-AND $_REQUEST['exec'] == 'auteurs'
-AND preg_match(',[<],', (string)$_REQUEST['recherche']))
+and $_REQUEST['exec'] == 'auteurs'
+and preg_match(',[<],', (string)$_REQUEST['recherche']))
        $ecran_securite_raison = "recherche";
 if (isset($_REQUEST['action'])
-AND $_REQUEST['action'] == 'configurer') {
+and $_REQUEST['action'] == 'configurer') {
        if (@file_exists('inc_version.php')
-       OR @file_exists('ecrire/inc_version.php')) {
+       or @file_exists('ecrire/inc_version.php')) {
                function action_configurer() {
                        include_spip('inc/autoriser');
                        if(!autoriser('configurer', _request('configuration'))) {
@@ -138,7 +147,7 @@ if (strpos(
  * Bloque les requêtes fond=formulaire_
  */
 if (isset($_REQUEST['fond'])
-AND preg_match(',^formulaire_,i', $_REQUEST['fond']))
+and preg_match(',^formulaire_,i', $_REQUEST['fond']))
        $ecran_securite_raison = "fond=formulaire_";
 
 /*
@@ -152,9 +161,9 @@ if (isset($_REQUEST['GLOBALS']))
  * les agenda
  * les paginations entremélées
  */
-if (_IS_BOT AND (
-       (isset($_REQUEST['echelle']) AND isset($_REQUEST['partie_cal']) AND isset($_REQUEST['type']))
-       OR (strpos((string)$_SERVER['REQUEST_URI'],'debut_') AND preg_match(',[?&]debut_.*&debut_,', (string)$_SERVER['REQUEST_URI']))
+if (_IS_BOT and (
+       (isset($_REQUEST['echelle']) and isset($_REQUEST['partie_cal']) and isset($_REQUEST['type']))
+       or (strpos((string)$_SERVER['REQUEST_URI'], 'debut_') and preg_match(',[?&]debut_.*&debut_,', (string)$_SERVER['REQUEST_URI']))
 )
 )
        $ecran_securite_raison = "robot agenda/double pagination";
@@ -164,12 +173,12 @@ if (_IS_BOT AND (
  * Bloque un XSS sur une page inexistante
  */
 if (isset($_REQUEST['page'])) {
-       if ($_REQUEST['page']=='test_cfg')
+       if ($_REQUEST['page'] == 'test_cfg')
                $ecran_securite_raison = "test_cfg";
        if ($_REQUEST['page'] !== htmlspecialchars((string)$_REQUEST['page']))
                $ecran_securite_raison = "xsspage";
        if ($_REQUEST['page'] == '404'
-       AND isset($_REQUEST['erreur']))
+       and isset($_REQUEST['erreur']))
                $ecran_securite_raison = "xss404";
 }
 
@@ -177,7 +186,7 @@ if (isset($_REQUEST['page'])) {
  * XSS par array
  */
 foreach (array('var_login') as $var)
-if (isset($_REQUEST[$var]) AND is_array($_REQUEST[$var]))
+if (isset($_REQUEST[$var]) and is_array($_REQUEST[$var]))
        $ecran_securite_raison = "xss ".$var;
 
 /*
@@ -185,11 +194,11 @@ if (isset($_REQUEST[$var]) AND is_array($_REQUEST[$var]))
  */
 if (!function_exists('tmp_lkojfghx')) {
        function tmp_lkojfghx() {}
-       function tmp_lkojfghx2($a=0, $b=0, $c=0, $d=0) {
+       function tmp_lkojfghx2($a = 0, $b = 0, $c = 0, $d = 0) {
                // si jamais on est arrivé ici sur une erreur php
                // et qu'un autre gestionnaire d'erreur est défini, l'appeller
-               if ($b&&$GLOBALS['tmp_xhgfjokl'])
-                       call_user_func($GLOBALS['tmp_xhgfjokl'],$a,$b,$c,$d);
+               if ($b && $GLOBALS['tmp_xhgfjokl'])
+                       call_user_func($GLOBALS['tmp_xhgfjokl'], $a, $b, $c, $d);
        }
 }
 if (isset($_POST['tmp_lkojfghx3']))
@@ -205,10 +214,10 @@ if (isset($_REQUEST['transformer_xml']))
  * Sauvegarde mal securisée < 2.0.9
  */
 if (isset($_REQUEST['nom_sauvegarde'])
-AND strstr((string)$_REQUEST['nom_sauvegarde'], '/'))
+and strstr((string)$_REQUEST['nom_sauvegarde'], '/'))
        $ecran_securite_raison = 'nom_sauvegarde manipulee';
 if (isset($_REQUEST['znom_sauvegarde'])
-AND strstr((string)$_REQUEST['znom_sauvegarde'], '/'))
+and strstr((string)$_REQUEST['znom_sauvegarde'], '/'))
        $ecran_securite_raison = 'znom_sauvegarde manipulee';
 
 
@@ -216,17 +225,17 @@ AND strstr((string)$_REQUEST['znom_sauvegarde'], '/'))
  * op permet des inclusions arbitraires ;
  * on vérifie 'page' pour ne pas bloquer ... drupal
  */
-if (isset($_REQUEST['op']) AND isset($_REQUEST['page'])
-AND $_REQUEST['op'] !== preg_replace('/[^\-\w]/', '', $_REQUEST['op']))
+if (isset($_REQUEST['op']) and isset($_REQUEST['page'])
+and $_REQUEST['op'] !== preg_replace('/[^\-\w]/', '', $_REQUEST['op']))
        $ecran_securite_raison = 'op';
 
 /*
  * Forms & Table ne se méfiait pas assez des uploads de fichiers
  */
 if (count($_FILES)){
-       foreach($_FILES as $k=>$v){
-                if (preg_match(',^fichier_\d+$,',$k)
-                AND preg_match(',\.php,i',$v['name']))
+       foreach($_FILES as $k => $v){
+                if (preg_match(',^fichier_\d+$,', $k)
+                and preg_match(',\.php,i', $v['name']))
                        unset($_FILES[$k]);
        }
 }
@@ -234,7 +243,7 @@ if (count($_FILES)){
  * et Contact trop laxiste avec une variable externe
  * on bloque pas le post pour eviter de perdre des donnees mais on unset la variable et c'est tout
  */
-if (isset($_REQUEST['pj_enregistrees_nom']) AND $_REQUEST['pj_enregistrees_nom']){
+if (isset($_REQUEST['pj_enregistrees_nom']) and $_REQUEST['pj_enregistrees_nom']){
        unset($_REQUEST['pj_enregistrees_nom']);
        unset($_GET['pj_enregistrees_nom']);
        unset($_POST['pj_enregistrees_nom']);
@@ -244,7 +253,7 @@ if (isset($_REQUEST['pj_enregistrees_nom']) AND $_REQUEST['pj_enregistrees_nom']
  * reinstall=oui un peu trop permissif
  */
 if (isset($_REQUEST['reinstall'])
-AND $_REQUEST['reinstall'] == 'oui')
+and $_REQUEST['reinstall'] == 'oui')
        $ecran_securite_raison = 'reinstall=oui';
 
 /*
@@ -256,9 +265,9 @@ if (isset($_SERVER['HTTP_REFERER']))
 /*
  * Réinjection des clés en html dans l'admin r19561
  */
-if (strpos($_SERVER['REQUEST_URI'],"ecrire/")!==false){
-       $zzzz=implode("",array_keys($_REQUEST));
-       if (strlen($zzzz)!=strcspn($zzzz,'<>"\''))
+if (strpos($_SERVER['REQUEST_URI'], "ecrire/") !== false){
+       $zzzz = implode("", array_keys($_REQUEST));
+       if (strlen($zzzz) != strcspn($zzzz, '<>"\''))
                $ecran_securite_raison = 'Cle incorrecte en $_REQUEST';
 }
 
@@ -266,13 +275,13 @@ if (strpos($_SERVER['REQUEST_URI'],"ecrire/")!==false){
  * Injection par connect
  */
 if (isset($_REQUEST['connect'])
-       AND
+       and
        // cas qui permettent de sortir d'un commentaire PHP
-       (strpos($_REQUEST['connect'], "?")!==false
-        OR strpos($_REQUEST['connect'], "<")!==false
-        OR strpos($_REQUEST['connect'], ">")!==false
-        OR strpos($_REQUEST['connect'], "\n")!==false
-        OR strpos($_REQUEST['connect'], "\r")!==false)
+       (strpos($_REQUEST['connect'], "?") !== false
+        or strpos($_REQUEST['connect'], "<") !== false
+        or strpos($_REQUEST['connect'], ">") !== false
+        or strpos($_REQUEST['connect'], "\n") !== false
+        or strpos($_REQUEST['connect'], "\r") !== false)
        ) {
        $ecran_securite_raison = "malformed connect argument";
 }
@@ -289,6 +298,17 @@ if (isset($ecran_securite_raison)) {
        die("<html><title>Error 403: Forbidden</title><body><h1>Error 403</h1><p>You are not authorized to view this page ($ecran_securite_raison)</p></body></html>");
 }
 
+/*
+ * Un filtre filtrer_entites securise
+ */
+if (!function_exists('filtre_filtrer_entites_dist')) {
+       function filtre_filtrer_entites_dist($t) {
+               include_spip('inc/texte');
+               return interdire_scripts(filtrer_entites($t));
+       }
+}
+
+
 /*
  * Fin sécurité
  */
@@ -303,23 +323,23 @@ if (!defined('_ECRAN_SECURITE_LOAD'))
 
 if (
        defined('_ECRAN_SECURITE_LOAD')
-       AND _ECRAN_SECURITE_LOAD>0
-       AND _IS_BOT
-       AND $_SERVER['REQUEST_METHOD'] === 'GET'
-       AND (
+       and _ECRAN_SECURITE_LOAD > 0
+       and _IS_BOT
+       and $_SERVER['REQUEST_METHOD'] === 'GET'
+       and (
                (function_exists('sys_getloadavg')
-                 AND $load = sys_getloadavg()
-                 AND is_array($load)
-                 AND $load = array_shift($load)
+                 and $load = sys_getloadavg()
+                 and is_array($load)
+                 and $load = array_shift($load)
                )
-               OR
+               or
                (@is_readable('/proc/loadavg')
-                 AND $load = file_get_contents('/proc/loadavg')
-                 AND $load = floatval($load)
+                 and $load = file_get_contents('/proc/loadavg')
+                 and $load = floatval($load)
                )
        )
-       AND $load > _ECRAN_SECURITE_LOAD // eviter l'evaluation suivante si de toute facon le load est inferieur a la limite
-       AND rand(0, $load*$load) > _ECRAN_SECURITE_LOAD*_ECRAN_SECURITE_LOAD
+       and $load > _ECRAN_SECURITE_LOAD // eviter l'evaluation suivante si de toute facon le load est inferieur a la limite
+       and rand(0, $load * $load) > _ECRAN_SECURITE_LOAD * _ECRAN_SECURITE_LOAD
 ) {
        header("HTTP/1.0 503 Service Unavailable");
        header("Retry-After: 300");
@@ -329,6 +349,3 @@ if (
        header("Content-Type: text/html");
        die("<html><title>Status 503: Site temporarily unavailable</title><body><h1>Status 503</h1><p>Site temporarily unavailable (load average $load)</p></body></html>");
 }
-
-
-?>
\ No newline at end of file
index 448d7a7..0226197 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f2fd355..83baced 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 78239c0..86b4068 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f850e7c..ebf6ec6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1665e12..84f34de 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index caf4c5b..5f02ffe 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ed5bbbc..398f7bb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3744f76..50b9631 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 06cce14..56c2182 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9f4bfc2..168963c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2c91ea0..8c7505f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 09ad864..982bddc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -77,6 +77,7 @@ function article_modifier($id_article, $set=null) {
 
        if ($err = objet_modifier_champs('article', $id_article,
                array(
+                       'data' => $set,
                        'nonvide' => array('titre' => _T('info_nouvel_article')." "._T('info_numero_abbreviation').$id_article),
                        'invalideur' => $invalideur,
                        'indexation' => $indexation,
index 81e4204..210fa32 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -112,6 +112,7 @@ function auteur_modifier($id_auteur, $set = null, $force_update=false) {
 
        if ($err = objet_modifier_champs('auteur', $id_auteur,
                array(
+                       'data' => $set,
                        'nonvide' => array('nom' => _T('ecrire:item_nouvel_auteur'))
                ),
                $c))
index f5d5f87..c05a4e3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 17a7ece..8df6352 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -106,6 +106,7 @@ function objet_modifier($objet, $id, $set=null) {
 
        if ($err = objet_modifier_champs($objet, $id,
                array(
+                       'data' => $set,
                        'nonvide' => '',
                        'invalideur' => $invalideur,
                        'indexation' => $indexation,
index 2c6ed64..c52e1a7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -132,6 +132,7 @@ function rubrique_modifier($id_rubrique, $set=null) {
 
        if ($err = objet_modifier_champs('rubrique', $id_rubrique,
                array(
+                       'data' => $set,
                        'nonvide' => array('titre' => _T('titre_nouvelle_rubrique')." "._T('info_numero_abbreviation').$id_rubrique)
                ),
                $c))
index b9eede3..fbdb07b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4a62ff7..a6fd254 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f71b953..54e359d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bf9211b..afaba99 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4ffac96..e7ad0a6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0de3358..1889317 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ef86dbf..b3a0180 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4abb813..97adb05 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8b97c78..c6a8877 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1292b7d..89428aa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cc4359c..fef9f1a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 886c2e5..0bd4986 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bf2f297..292eb98 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 114dffa..855777a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0b1b3d7..53cb8b5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 212afb4..a5f6150 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4449356..2451d38 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f8f1343..e89fb3e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4d5c685..8f805ca 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 32c1e71..decb36f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1fe1626..6fe03fc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4de7df6..3ceec10 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -136,9 +136,9 @@ function auth_ldap_search($login, $pass, $checkpass=true, $serveur=''){
        if (!$ldap = auth_ldap_connect($serveur))
                return '';
 
-       $ldap_link = $ldap['link'];
-       $ldap_base = $ldap['base'];
-       $desc = $ldap['attributes'] ? $ldap['attributes'] : $GLOBALS['ldap_attributes'] ;
+       $ldap_link = isset($ldap['link']) ? $ldap['link'] : null;
+       $ldap_base = isset($ldap['base']) ? $ldap['base'] : null;
+       $desc = isset($ldap['attributes']) && $ldap['attributes'] ? $ldap['attributes'] : $GLOBALS['ldap_attributes'] ;
 
        $logins = is_array($desc['login']) ? $desc['login'] : array($desc['login']);
 
index 5da5853..3221063 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 93c3248..7ea1438 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 631b865..28ea0da 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 31a988c..4bc30c6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a91987a..629d229 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7831b25..be6dd66 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6c0c91e..23c021e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 16e1fba..70370c4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d72a5e5..64b9dd1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ab48a33..9fede36 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 833b492..f888feb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b0dc3fb..3d6459e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5c115a9..a7332fc 100644 (file)
@@ -3,7 +3,7 @@
 /* *************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 61e7918..72b8b3f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 759b422..e215a0e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2b97459..1740bb6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 481b272..be29f99 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8b2709d..58639ad 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 42e07f7..42aa17e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4d13029..e5d3ee3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e454b5c..e4f3a90 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7f42984..1e3dd37 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cb12422..61e46c6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 34e39a0..34c0e00 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1ed320a..077d36b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bbdd0bc..617e419 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 71f29b6..9f0ffc4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 90ef329..1086e9e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8003d0e..b533584 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1e615e5..b4f3d96 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0927bfe..c7f2f38 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fcd3d99..81e231a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d7c3d97..cf53cd5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4f8047b..17e3d09 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 216f898..4ca8f0a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7abfd23..c30fe6c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e4266b0..c2f1fd5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 838daf7..048e179 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 50a6d36..0d362c5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3c630ab..4a70f24 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 710c7f0..41d5bb8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2f54a9e..f601c37 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index db3ee92..621ae26 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d584959..2859347 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0508135..9f76add 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 31eefb8..86a0868 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 200b579..4d93291 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c7bb2d3..90cd3dc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7e2cb76..0981bab 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e902262..2f70a84 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bae9078..90b8f43 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index be9e706..4f59f2d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c3c91a9..fbccc13 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1dade27..e272254 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ec9a28f..aa8be69 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c7a0859..01cdecd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 35151ce..abd81d7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e68c549..b37e58c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d60c54a..7fa1488 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c843898..1d1aacf 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0e4c622..d19364f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f410fca..58cb005 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2f52bfd..ae90101 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 934091a..36b41c3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ed20842..da1901f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 84ecde5..00c8623 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 31b5e51..5b94a06 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -45,9 +45,11 @@ define('_REGEXP_COPIE_LOCALE', ',' .
  *   'force' - charger toujours (mettre a jour)
  * @param string $local
  *   permet de specifier le nom du fichier local (stockage d'un cache par exemple, et non document IMG)
+ * @param int $taille_max
+ *   taille maxi de la copie local, par defaut _COPIE_LOCALE_MAX_SIZE
  * @return bool|string
  */
-function copie_locale($source, $mode='auto', $local = null) {
+function copie_locale($source, $mode='auto', $local=null, $taille_max=null){
 
        // si c'est la protection de soi-meme, retourner le path
        if ($mode !== 'force' AND preg_match(_REGEXP_COPIE_LOCALE, $source, $match)) {
@@ -82,7 +84,8 @@ function copie_locale($source, $mode='auto', $local = null) {
                // passer par un fichier temporaire unique pour gerer les echecs en cours de recuperation
                // et des eventuelles recuperations concurantes
                include_spip("inc/acces");
-               $res = recuperer_page($source, $localrac, false, _COPIE_LOCALE_MAX_SIZE, '', '', false, $t ? filemtime($localrac) : '');
+               if (!$taille_max) $taille_max = _COPIE_LOCALE_MAX_SIZE;
+               $res = recuperer_page($source, $localrac, false, $taille_max, '', '', false, $t ? filemtime($localrac) : '');
                if (!$res) {
                        if (!$t) // si $t c'est sans doute juste un not-modified-since qui fait renvoyer false
                                spip_log("copie_locale : Echec recuperation $source sur $localrac",_LOG_INFO_IMPORTANTE);
index 634a55a..038e1ec 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e82df71..394a86f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1702c31..51f59f0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 367430c..187eab5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ae61ab2..5223d09 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -419,6 +419,19 @@ function filtrer_entites($texte) {
        return $texte;
 }
 
+/**
+ * Version securisee de filtrer_entites
+ * @param string $t
+ * @return string
+ */
+if (!function_exists('filtre_filtrer_entites_dist')) {
+       function filtre_filtrer_entites_dist($t) {
+               include_spip('inc/texte');
+               return interdire_scripts(filtrer_entites($t));
+       }
+}
+
+
 // caracteres de controle - http://www.w3.org/TR/REC-xml/#charsets
 // http://doc.spip.org/@supprimer_caracteres_illegaux
 function supprimer_caracteres_illegaux($texte) {
@@ -426,7 +439,7 @@ function supprimer_caracteres_illegaux($texte) {
        static $to = null;
        
        if (is_array($texte)) {
-               return array_map('corriger_caracteres_windows', $texte);
+               return array_map('supprimer_caracteres_illegaux', $texte);
        }
        
        if (!$to) $to = str_repeat('-', strlen($from));
@@ -2507,8 +2520,10 @@ function encoder_contexte_ajax($c,$form='', $emboite=NULL, $ajaxid='') {
        
        if (!function_exists('calculer_cle_action'))
                include_spip("inc/securiser_action");
-       $cle = calculer_cle_action($form.(is_array($c)?serialize($c):$c));
-       $c = serialize(array($c,$cle));
+
+       $c = serialize($c);
+       $cle = calculer_cle_action($form . $c);
+       $c = "$cle:$c";
 
        // on ne stocke pas les contextes dans des fichiers caches
        // par defaut, sauf si cette configuration a ete forcee
@@ -2575,10 +2590,20 @@ function decoder_contexte_ajax($c,$form='') {
                if (function_exists('gzdeflate') && function_exists('gzinflate'))
                        $c = @gzinflate($c);
        }
-       list($env, $cle) = @unserialize($c);
 
-       if ($cle == calculer_cle_action($form.(is_array($env)?serialize($env):$env)))
-               return $env;
+       // extraire la signature en debut de contexte
+       // et la verifier avant de deserializer
+       // format : signature:donneesserializees
+       if ($p = strpos($c,":")){
+               $cle = substr($c,0,$p);
+               $c = substr($c,$p+1);
+
+               if ($cle == calculer_cle_action($form . $c)) {
+                       $env = @unserialize($c);
+                       return $env;
+               }
+       }
+
        return false;
 }
 
index 2f2c628..51feb3a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8d310fb..edd6087 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 83c5429..468d619 100644 (file)
@@ -3,7 +3,7 @@
 /* *************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -513,8 +513,8 @@ function _image_gd_output($img,$valeurs, $qualite=_IMG_GD_QUALITE){
 function reconstruire_image_intermediaire($fichier_manquant){
        $reconstruire = array();
        $fichier = $fichier_manquant;
-       while (
-               !@file_exists($fichier)
+       while (strpos($fichier,"://")===false
+               and !@file_exists($fichier)
                AND lire_fichier($src = "$fichier.src",$source)
                AND $valeurs=unserialize($source)
     AND ($fichier = $valeurs['fichier']) # l'origine est connue (on ne verifie pas son existence, qu'importe ...)
@@ -533,10 +533,29 @@ function reconstruire_image_intermediaire($fichier_manquant){
        ramasse_miettes($fichier_manquant);
 }
 
-// http://doc.spip.org/@ramasse_miettes
-function ramasse_miettes($fichier){
-       if (!lire_fichier($src = "$fichier.src",$source) 
-               OR !$valeurs=unserialize($source)) return;
+/**
+ * Indique qu'un fichier d'image calculé est Ã  conserver
+ *
+ * Permet de rendre une image définitive et de supprimer les images
+ * intermédiaires Ã  son calcul.
+ *
+ * Supprime le fichier de contrôle de l’image cible (le $fichier.src)
+ * ce qui indique que l'image est définitive.
+ *
+ * Remonte ensuite la chaîne des fichiers de contrôle pour supprimer
+ * les images temporaires (mais laisse les fichiers de contrôle permettant
+ * de les reconstruire).
+ *
+ * @param string $fichier
+ *     Chemin du fichier d'image calculé
+ **/
+function ramasse_miettes($fichier) {
+       if (strpos($fichier,"://")!==false
+               or !lire_fichier($src = "$fichier.src", $source)
+               or !$valeurs = unserialize($source)
+       ) {
+               return;
+       }
        spip_unlink($src); # on supprime la reference a sa source pour marquer cette image comme non intermediaire
        while (
             ($fichier = $valeurs['fichier']) # l'origine est connue (on ne verifie pas son existence, qu'importe ...)
@@ -563,8 +582,10 @@ function image_graver($img){
        if (strlen($fichier) < 1)
                $fichier = $img;
        # si jamais le fichier final n'a pas ete calcule car suppose temporaire
-       if (!@file_exists($fichier))
+       # et qu'il ne s'agit pas d'une URL
+       if (strpos($fichier,"://")===false and !@file_exists($fichier)) {
                reconstruire_image_intermediaire($fichier);
+       }
        ramasse_miettes($fichier);
        return $img; // on ne change rien
 }
index 5bcdf14..fc47c45 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4b6973c..9f11d0f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4621ebc..c65a2da 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -102,6 +102,9 @@ function protocole_implicite($url_absolue){
 function liens_absolus($texte, $base='') {
        if (preg_match_all(',(<(a|link|image|img|script)\s[^<>]*(href|src)=[^<>]*>),imsS', 
        $texte, $liens, PREG_SET_ORDER)) {
+               if (!function_exists('extraire_attribut')) {
+                       include_spip('inc/filtres');
+               }
                foreach ($liens as $lien) {
                        foreach(array('href', 'src') as $attr) {
                                $href = extraire_attribut($lien[0], $attr);
index 75b0fcb..6a96201 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -181,7 +181,9 @@ function ecrire_fichier ($fichier, $contenu, $ignorer_echec = false, $truncate=t
                // liberer le verrou et fermer le fichier
                @chmod($fichier, _SPIP_CHMOD & 0666);
                if ($ok) {
-                       spip_clear_opcode_cache(realpath($fichier));
+                       if (strpos($fichier,".php")!==false){
+                               spip_clear_opcode_cache(realpath($fichier));
+                       }
                        return $ok;
                }
        }
@@ -415,14 +417,7 @@ function sous_repertoire($base, $subdir='', $nobase = false, $tantpis=false) {
        @mkdir($path, _SPIP_CHMOD);
        @chmod($path, _SPIP_CHMOD);
 
-       $ok = false;
-       if ($test = @fopen("$path/dir_test.php", "w")) {
-               @fputs($test, '<'.'?php $ok = true; ?'.'>');
-               @fclose($test);
-               @include("$path/dir_test.php");
-               spip_unlink("$path/dir_test.php");
-       }
-       if ($ok) {
+       if (is_dir($path) && is_writable($path)) {
                @touch ("$path/.ok");
                spip_log("creation $base$subdir/");
                return $baseaff.($dirs[$base.$subdir] = "$subdir/");
@@ -440,7 +435,7 @@ function sous_repertoire($base, $subdir='', $nobase = false, $tantpis=false) {
                if (!_DIR_RESTREINT)
                        $base = preg_replace(',^' . _DIR_RACINE .',', '',$base);
                $base .= $subdir;
-               raler_fichier($base . ($test?'/.ok':'/dir_test.php'));
+               raler_fichier($base . '/.plat');
        }
        spip_log("faux sous-repertoire $base${subdir}");
        return $baseaff.($dirs[$base.$subdir] = "${subdir}_");
index a688129..4ba2608 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b237baa..ca8a4f5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cfa9a41..97a873a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 81bf8f0..618d2b7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d887f48..6521780 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e92ccd3..9ff5e62 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f52471d..80536ba 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f34ea91..09e70ae 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 538d08d..49cce51 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a2e88b1..edf2247 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8bcb588..6bd2e71 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3455fb0..9a2d5fc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a76d5c7..55fc18b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5166ff8..e15d98a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 861e66a..2eec519 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1a5fcb1..07f9e78 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fc81757..c2f717c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ecbb5a0..1143c9a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e99d52d..b50f00f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0de42ae..73629b8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cca62ae..f815369 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -78,7 +78,13 @@ function collecter_requests($white_list, $black_list, $set=null, $tous=false){
  * @param int $id_objet
  *     Identifiant de l'objet
  * @param array $options
- *     Toutes les options
+ *     array data : tableau des donnees sources utilisees pour la detection de conflit ($_POST sinon fourni ou si nul)
+ *     array nonvide : valeur par defaut des champs que l'on ne veut pas vide
+ *     string date_modif : champ a mettre a date('Y-m-d H:i:s') s'il y a modif
+ *     string invalideur : id de l'invalideur eventuel
+ *     array champs : non documente (utilise seulement par inc/rechercher ?)
+ *     string action : action realisee, passee aux pipelines pre/post edition (par defaut 'modifier')
+ *     bool indexation : deprecie
  * @param array|null $c
  *     Couples champ/valeur Ã  modifier
  * @param string $serveur
@@ -150,7 +156,7 @@ function objet_modifier_champs($objet, $id_objet, $options, $c=null, $serveur=''
                                'id_objet' => $id_objet,
                                'champs' => isset($options['champs']) ? $options['champs'] : array(), // [doc] c'est quoi ?
                                'serveur' => $serveur,
-                               'action' => 'modifier'
+                               'action' => isset($options['action']) ? $options['action'] : 'modifier'
                        ),
                        'data' => $champs
                )
@@ -167,7 +173,10 @@ function objet_modifier_champs($objet, $id_objet, $options, $c=null, $serveur=''
 
        // Verifier si les mises a jour sont pertinentes, datees, en conflit etc
        include_spip('inc/editer');
-       $conflits = controler_md5($champs, $_POST, $objet, $id_objet, $serveur);
+       if (!isset($options['data']) OR is_null($options['data'])){
+               $options['data'] = &$_POST;
+       }
+       $conflits = controler_md5($champs, $options['data'], $objet, $id_objet, $serveur);
        // cas hypothetique : normalement inc/editer verifie en amont le conflit edition
        // et gere l'interface
        // ici on ne renvoie donc qu'un messsage d'erreur, au cas ou on y arrive quand meme
@@ -245,7 +254,7 @@ function objet_modifier_champs($objet, $id_objet, $options, $c=null, $serveur=''
                                        'id_objet' => $id_objet,
                                        'champs' => isset($options['champs']) ? $options['champs'] : array(), // [doc] kesako ?
                                        'serveur' => $serveur,
-                                       'action' => 'modifier'
+                                       'action' => isset($options['action']) ? $options['action'] : 'modifier'
                                ),
                                'data' => $champs
                        )
index abc2840..785aed3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b2eb236..c204559 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1cebc91..faa6864 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7acfa93..e766f36 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1510889..442b0a5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -149,89 +149,139 @@ function plugin_version_compatible($intervalle, $version, $avec_quoi = '') {
 }
 
 
-
-// Construire la liste des infos strictement necessaires aux plugins a activer
-// afin de les memoriser dans une meta pas trop grosse
-// http://doc.spip.org/@liste_plugin_valides
-function liste_plugin_valides($liste_plug, $force = false)
-{
+/**
+ * Construire la liste des infos strictement necessaires aux plugins a activer
+ * afin de les memoriser dans une meta pas trop grosse
+ * http://code.spip.net/@liste_plugin_valides
+ *
+ * @param array $liste_plug
+ * @param bool $force
+ * @return array
+ */
+function liste_plugin_valides($liste_plug, $force = false){
        $liste_ext = liste_plugin_files(_DIR_PLUGINS_DIST);
-       $get_infos = charger_fonction('get_infos','plugins');
+       $get_infos = charger_fonction('get_infos', 'plugins');
        $infos = array(
                // lister les extensions qui sont automatiquement actives
                '_DIR_PLUGINS_DIST' => $get_infos($liste_ext, $force, _DIR_PLUGINS_DIST),
                '_DIR_PLUGINS' => $get_infos($liste_plug, $force, _DIR_PLUGINS)
-                      );
+       );
 
        // creer une premiere liste non ordonnee mais qui ne retient
        // que les plugins valides, et dans leur derniere version en cas de doublon
-       $infos['_DIR_RESTREINT'][''] = $get_infos('./',$force,_DIR_RESTREINT);
+       $infos['_DIR_RESTREINT'][''] = $get_infos('./', $force, _DIR_RESTREINT);
        $infos['_DIR_RESTREINT']['SPIP']['version'] = $GLOBALS['spip_version_branche'];
        $infos['_DIR_RESTREINT']['SPIP']['chemin'] = array();
-       $liste_non_classee = array('SPIP'=>array(
+       $liste_non_classee = array('SPIP' => array(
                'nom' => 'SPIP',
                'etat' => 'stable',
                'version' => $GLOBALS['spip_version_branche'],
                'dir_type' => '_DIR_RESTREINT',
-               'dir'=> '',
+               'dir' => '',
        )
        );
 
-       foreach($liste_ext as $plug){
-         if (isset($infos['_DIR_PLUGINS_DIST'][$plug]))
-           plugin_valide_resume($liste_non_classee, $plug, $infos, '_DIR_PLUGINS_DIST');
+       foreach ($liste_ext as $plug){
+               if (isset($infos['_DIR_PLUGINS_DIST'][$plug]))
+                       plugin_valide_resume($liste_non_classee, $plug, $infos, '_DIR_PLUGINS_DIST');
        }
-       foreach($liste_plug as $plug) {
-         if (isset($infos['_DIR_PLUGINS'][$plug]))
-           plugin_valide_resume($liste_non_classee, $plug, $infos, '_DIR_PLUGINS');
+       foreach ($liste_plug as $plug){
+               if (isset($infos['_DIR_PLUGINS'][$plug]))
+                       plugin_valide_resume($liste_non_classee, $plug, $infos, '_DIR_PLUGINS');
        }
        
-       if (defined('_DIR_PLUGINS_SUPPL') and _DIR_PLUGINS_SUPPL) {
+       if (defined('_DIR_PLUGINS_SUPPL') and _DIR_PLUGINS_SUPPL){
                $infos['_DIR_PLUGINS_SUPPL'] = $get_infos($liste_plug, false, _DIR_PLUGINS_SUPPL);
-               foreach($liste_plug as $plug) {
+               foreach ($liste_plug as $plug){
                        if (isset($infos['_DIR_PLUGINS_SUPPL'][$plug]))
                                plugin_valide_resume($liste_non_classee, $plug, $infos, '_DIR_PLUGINS_SUPPL');
                }
        }
        
-       // les procure de core.xml sont consideres comme des plugins proposes,
-       // mais surchargeables (on peut activer un plugin qui procure ca pour l'ameliorer,
-       // donc avec le meme prefixe)
-       foreach($infos['_DIR_RESTREINT']['']['procure'] as $procure) {
-               $p = strtoupper($procure['nom']);
-               if (!isset($liste_non_classee[$p])){
-                       $procure['etat'] = '?';
-                       $procure['dir_type'] = '_DIR_RESTREINT';
-                       $procure['dir'] = '';
-                       $liste_non_classee[$p] = $procure;
-               }
-       }
+       plugin_fixer_procure($liste_non_classee, $infos);
 
        return array($infos, $liste_non_classee);
 }
 
-// Ne retenir un plugin que s'il est valide
-// et dans leur plus recente version compatible
-// avec la version presente de SPIP
-
-function plugin_valide_resume(&$liste, $plug, $infos, $dir)
-{
-       $i = $infos[$dir][$plug];
+/**
+ * Ne retenir un plugin que s'il est valide
+ * et dans leur plus recente version compatible
+ * avec la version presente de SPIP
+ *
+ * @param array $liste
+ * @param string $plug
+ * @param array $infos
+ * @param string $dir_type
+ */
+function plugin_valide_resume(&$liste, $plug, $infos, $dir_type){
+       $i = $infos[$dir_type][$plug];
        if (isset($i['erreur']) AND $i['erreur'])
                return;
-       if (!plugin_version_compatible($i['compatibilite'], $GLOBALS['spip_version_branche'],'spip'))
+       if (!plugin_version_compatible($i['compatibilite'], $GLOBALS['spip_version_branche'], 'spip'))
                return;
        $p = strtoupper($i['prefix']);
        if (!isset($liste[$p]) 
-       OR spip_version_compare($i['version'],$liste[$p]['version'],'>')) {
+               OR spip_version_compare($i['version'], $liste[$p]['version'], '>')
+         ){
                $liste[$p] = array(
                        'nom' => $i['nom'],
                        'etat' => $i['etat'],
-                       'version'=> $i['version'],
-                       'dir'=> $plug,
-                       'dir_type' => $dir
-                                              );
+                       'version' => $i['version'],
+                       'dir' => $plug,
+                       'dir_type' => $dir_type
+               );
+       }
+}
+
+/**
+ * Completer la liste des plugins avec les eventuels procure
+ *
+ * les <procure> sont consideres comme des plugins proposes,
+ * mais surchargeables (on peut activer un plugin qui procure ca pour l'ameliorer,
+ * donc avec le meme prefixe, qui sera pris en compte si il a une version plus grande)
+ *
+ * @param array $liste
+ * @param array $infos
+ */
+function plugin_fixer_procure(&$liste, &$infos){
+       foreach($liste as $p=>$resume){
+               $i = $infos[$resume['dir_type']][$resume['dir']];
+               if (isset($i['procure']) AND $i['procure']){
+                       foreach($i['procure'] as $procure){
+                               $p = strtoupper($procure['nom']);
+                               $dir = $resume['dir'];
+                               if ($dir) $dir .= "/";
+                               $dir .= "procure:".$procure['nom'];
+
+                               $procure['etat'] = '?';
+                               $procure['dir_type'] = $resume['dir_type'];
+                               $procure['dir'] = $dir;
+
+                               // si ce plugin n'est pas deja procure, ou dans une version plus ancienne
+                               // on ajoute cette version a la liste
+                               if (!isset($liste[$p])
+                                       OR spip_version_compare($procure['version'], $liste[$p]['version'], '>')
+                                 ){
+                                       $liste[$p] = $procure;
+
+                                       // on fournit une information minimale pour ne pas perturber la compilation
+                                       $infos[$resume['dir_type']][$dir] = array(
+                                               'prefix' => $procure['nom'],
+                                               'nom' => $procure['nom'],
+                                               'etat' => $procure['etat'],
+                                               'version' => $procure['version'],
+                                               'chemin' => array(),
+                                               'necessite' => array(),
+                                               'utilise' => array(),
+                                               'lib' => array(),
+                                               'menu' => array(),
+                                               'onglet' => array(),
+                                               'procure' => array(),
+                                       );
+                               }
+                       }
                }
+       }
 }
 
 /**
@@ -594,6 +644,7 @@ function plugins_precompile_xxxtions($plugin_valides, $ordre)
                                // donc ni sa relecture, ni sa detection
                                if (!isset($info[$charge])
                                        AND $dir // exclure le cas du plugin "SPIP"
+                                       AND strpos($dir,":")===false // exclure le cas des procure:
                                        AND file_exists("$dir$plug/paquet.xml") // uniquement pour les paquet.xml
                                        ){
                                        if (is_readable("$dir$plug/".($file=$info['prefix']."_".$charge.".php"))){
index 36491c6..9169b7a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bef3c7c..5852f4f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 065ca58..1570293 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 98996f0..8043b5a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8fe805f..74f74fd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5754a1c..2bfaef9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4502ceb..91df554 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 353c0a1..2375867 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7fa78cd..9df1340 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 14ab04c..3b26c3c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e289c73..3e36105 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f707250..e1ccdaa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 369d53d..1968538 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 83c6cd5..f2ddb6f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 97067ce..f19d06a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fbb91d4..7dce798 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 004a812..ecdf900 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c0cec0b..c64532e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bd141cc..8171342 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 989e763..57cbe33 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9c21837..108b805 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 923431f..01ed0c1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -1220,8 +1220,9 @@ function test_valeur_serveur($truc) {
 // Fonctions de fabrication des URL des scripts de Spip
 //
 /**
- * l'URL de base du site, sans se fier a meta(adresse_site) qui
- * peut etre fausse (sites a plusieurs noms d'hotes, deplacements, erreurs)
+ * L'URL de base du site, en priorité sans se fier a meta(adresse_site) qui
+ * peut etre fausse (sites a plusieurs noms d'hotes, deplacements, erreurs).
+ * En dernier recours, lorsqu'on ne trouve rien, on utilise adresse_site comme fallback.
  * Note : la globale $profondeur_url doit etre initialisee de maniere a
  * indiquer le nombre de sous-repertoires de l'url courante par rapport a la
  * racine de SPIP : par exemple, sur ecrire/ elle vaut 1, sur sedna/ 1, et a
@@ -1252,8 +1253,16 @@ function url_de_base($profondeur=null) {
                OR (isset($_SERVER['HTTPS']) AND
                    test_valeur_serveur($_SERVER['HTTPS']))
        ) ? 'https' : 'http';
-       # note : HTTP_HOST contient le :port si necessaire
+       // note : HTTP_HOST contient le :port si necessaire
        $host = $_SERVER['HTTP_HOST'];
+       // si on n'a pas trouvé d'hôte du tout, en dernier recours on utilise adresse_site comme fallback
+       if (is_null($host) and isset($GLOBALS['meta']['adresse_site'])) {
+               $host = $GLOBALS['meta']['adresse_site'];
+               if ($scheme = parse_url($host, PHP_URL_SCHEME)) {
+                       $http = $scheme;
+                       $host = str_replace("{$scheme}://", '', $host);
+               }
+       }
        if (isset($_SERVER['SERVER_PORT'])
                AND $port=$_SERVER['SERVER_PORT']
                AND strpos($host,":")==false){
@@ -1574,6 +1583,12 @@ function spip_initialisation_core($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
                #if (!defined('_SPIP_LOCK_MODE')) define('_SPIP_LOCK_MODE',2); // utiliser le nfslock de spip mais link() est tres souvent interdite
        }
 
+       // PHP_VERSION_ID dispo depuis PHP 5.2.7
+       if (!defined('PHP_VERSION_ID')) {
+          $version = explode('.',PHP_VERSION);
+          define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
+       }
+
        //
        // Module de lecture/ecriture/suppression de fichiers utilisant flock()
        // (non surchargeable en l'etat ; attention si on utilise include_spip()
@@ -1599,7 +1614,9 @@ function spip_initialisation_core($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
        spip_desinfecte($_REQUEST);
 
        // Par ailleurs on ne veut pas de magic_quotes au cours de l'execution
-       @set_magic_quotes_runtime(0);
+       if (PHP_VERSION_ID<50300) {
+               @set_magic_quotes_runtime(0);
+       }
 
        // Si les variables sont passees en global par le serveur,
        // il faut faire quelques verifications de base
@@ -1791,7 +1808,7 @@ function spip_initialisation_suite() {
        // on verifie que la memoire est suffisante pour le compactage css+js pour eviter la page blanche
        // il y aura d'autres problemes et l'utilisateur n'ira pas tres loin, mais ce sera plus comprehensible qu'une page blanche
        if (test_espace_prive() AND _MEMORY_LIMIT_MIN>8){
-               if ($memory = trim(ini_get('memory_limit'))){
+               if ($memory = trim(ini_get('memory_limit')) and $memory != -1) {
                        $unit = strtolower(substr($memory,strlen($memory/1),1));
                        switch($unit) {
                                // Le modifieur 'G' est disponible depuis PHP 5.1.0
index a85db3f..3a40fb1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 31467ab..d491833 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -90,10 +90,12 @@ if (!defined('_IS_BOT')){
        define('_IS_BOT',
                isset($_SERVER['HTTP_USER_AGENT'])
                AND preg_match(
-               // mots generiques
+                       // mots generiques
                        ',bot|slurp|crawler|spider|webvac|yandex|'
+                       // MSIE 6.0 est un botnet 99,9% du temps, on traite donc ce USER_AGENT comme un bot
+                       . 'MSIE 6\.0|'
                        // UA plus cibles
-                       . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|Google|Genieo|INA dlweb|InfegyAtlas|Java VM|LiteFinder|Lycos|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti'
+                       . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|facebook|flipboard|hootsuite|FunWebProducts|Google|Genieo|INA dlweb|InfegyAtlas|Java VM|LiteFinder|Lycos|MetaURI|Moreover|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti'
                        . ',i', (string)$_SERVER['HTTP_USER_AGENT'])
        );
 }
@@ -294,7 +296,7 @@ $liste_des_authentifications = array(
 // pour specifier les versions de SPIP necessaires
 // il faut s'en tenir a un nombre de decimales fixe
 // ex : 2.0.0, 2.0.0-dev, 2.0.0-beta, 2.0.0-beta2
-$spip_version_branche = "3.0.21";
+$spip_version_branche = "3.0.22";
 // version des signatures de fonctions PHP
 // (= numero SVN de leur derniere modif cassant la compatibilite et/ou necessitant un recalcul des squelettes)
 $spip_version_code = 17873;
index 99a8329..bdddab2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4c1a3ed..3a0320e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e3e6432..d1fd2d0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 67d9519..c14092e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5c706ff..947c1bc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 46ec2e7..08b983c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6c20a6f..abc89ab 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9c25740..9d07b3e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -53,16 +53,9 @@ function test_ecrire($my_dir) {
                }
                spip_unlink('test');
        }
-       // Verifier que les valeurs sont correctes
-       $f = @fopen($my_dir.'test.php', 'w');
-       if ($f) {
-               @fputs($f, '<'.'?php $ok = true; ?'.'>');
-               @fclose($f);
-               @chmod($my_dir.'test.php', $chmod);
-               include($my_dir.'test.php');
-       }
-       spip_unlink($my_dir.'test.php');
-       return $ok?$chmod:false;
+       $ok = is_dir($my_dir) && is_writable($my_dir);
+
+       return $ok ? $chmod : false;
 }
 
 //
index cb3cec6..471ac7f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4acbac5..8e8a1a4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b6ce021..4359030 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4f8b61c..768f007 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 23223ce..1265e03 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9a3bd0b..433069e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bc1684e..29acc55 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4ccaa43..2af35bc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a06d4b3..0afa991 100644 (file)
@@ -4,7 +4,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9a9166c..98ce715 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 58b0572..2a1c37e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index abe37f2..b458dc2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6da03a4..425d6e2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d6e78cd..c3429f0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a732516..68d5f99 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 863eebf..4aed6a1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 822f27f..efbf362 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6ad8b98..fb6a906 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c141afa..eb56c9c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7cd11c0..964b03c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c447266..31b6585 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 114df0d..8bc746a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ad59906..6f25476 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bad0d5f..0c47a24 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a14f6d0..87f5e33 100644 (file)
@@ -1,14 +1,14 @@
 <paquet
        prefix="spip"
        categorie="outil"
-       version="3.0.21"
+       version="3.0.22"
        etat="stable"
        compatibilite="];["
        schema="19268"
        documentation="http://www.spip.net"
        demonstration="http://demo.spip.net"
        developpement="http://core.spip.org/projects/spip/"
->      
+>
 
        <nom>SPIP</nom>
        <!-- Système de publication pour l'Internet -->
index 6aa7b1b..c1046ee 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ae074d2..fdbecad 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6c9989f..7ae782a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d3bdef7..af14268 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fdb761b..6bb5cd3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index aef46b1..a3da5ef 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3681b8b..4cfe614 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6ba910d..55c793b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 915dd82..5590ce5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 12d74ac..8d08e3b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c0cbac0..800acba 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c3bf5a6..e0394f9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a128889..c24466e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f361e28..ed1ab60 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 28f552b..8b3bc50 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b0f58a9..c4796b3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 27b8f19..dc042dd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -474,45 +474,59 @@ function balise_LESAUTEURS_dist ($p) {
 function balise_RANG_dist($p) {
        $b = index_boucle($p);
        if ($b === '') {
-               $msg = array('zbug_champ_hors_boucle',
-                               array('champ' => '#RANG')
-                         );
+               $msg = array(
+                       'zbug_champ_hors_boucle',
+                       array('champ' => '#RANG')
+               );
                erreur_squelette($msg, $p);
-       }
-       else {
+       } else {
                // chercher d'abord un champ sql rang (mais pas dans le env : defaut '' si on trouve pas de champ sql)
                // dans la boucle immediatement englobante uniquement
                // sinon on compose le champ calcule
                $_rang = champ_sql('rang', $p, '', false);
 
                // si pas trouve de champ sql rang :
-               if (!$_rang){
+               if (!$_rang) {
                        $boucle = &$p->boucles[$b];
-                       $trouver_table = charger_fonction('trouver_table','base');
+                       $trouver_table = charger_fonction('trouver_table', 'base');
                        $desc = $trouver_table($boucle->id_table);
-                       $_titre = ''; # champ dont on extrait le numero
-                       if (isset($desc['titre'])){
-                               $t=$desc['titre'];
-                         if (preg_match(';(^|,)([^,]*titre)(,|$);',$t,$m)){
-                                 $m = preg_replace(",as\s+titre$,i","",$m[2]);
-                                 $m = trim($m);
-                                 if ($m!="''"){
-                                         if (!preg_match(",\W,",$m))
-                                                 $m = $boucle->id_table . ".$m";
-                                         $m .= " AS titre_rang";
-
-                                         $boucle->select[] = $m;
-                                         $_titre = '$Pile[$SP][\'titre_rang\']';
-                                 }
-                         }
+                       $_titre = ''; # où extraire le numero ?
+                       
+                       if (isset($desc['titre'])) {
+                               $t = $desc['titre'];
+                               if (
+                                       // Soit on trouve avec la déclaration de la lang AVANT
+                                       preg_match(';(?:lang\s*,)\s*(.*?titre)\s*(,|$);', $t, $m)
+                                       // Soit on prend depuis le début
+                                       or preg_match(';^(.*?titre)\s*(,|$);', $t, $m)
+                               ) {
+                                       $m = preg_replace(',as\s+titre$,i', '', $m[1]);
+                                       $m = trim($m);
+                                       if ($m != "''") {
+                                               if (!preg_match(",\W,", $m)) {
+                                                       $m = $boucle->id_table . ".$m";
+                                               }
+                                               
+                                               $m .= " AS titre_rang";
+
+                                               $boucle->select[] = $m;
+                                               $_titre = '$Pile[$SP][\'titre_rang\']';
+                                       }
+                               }
                        }
-                       if (!$_titre)
+                       
+                       // si on n'a rien trouvé, on utilise le champ titre classique
+                       if (!$_titre) {
                                $_titre = champ_sql('titre', $p);
+                       }
+                       
                        $_rang = "recuperer_numero($_titre)";
                }
+               
                $p->code = $_rang;
                $p->interdire_scripts = false;
        }
+       
        return $p;
 }
 
@@ -853,7 +867,7 @@ function balise_CHAMP_SQL_dist($p){
        AND $champ = ($p->param[0][1][0]->texte))
                $p->code = champ_sql($champ, $p);
        else {
-               $err_b_s_a = array('zbug_balise_sans_argument', array('balise' => ' URL_'));
+               $err_b_s_a = array('zbug_balise_sans_argument', array('balise' => ' CHAMP_SQL'));
                erreur_squelette($err_b_s_a, $p);
        }
        #$p->interdire_scripts = true;
index be9513c..37c0b1b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ab8d1d9..478dbc3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3741856..576545b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 02fee78..f96e8fb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 92b7cc2..f797b0a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1fb6dd8..9fdae9f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7becebc..9d5db12 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 85f5611..49c7090 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -52,8 +52,43 @@ if ($page['process_ins'] != 'html') {
        if (strpos($page['texte'],'?xml')!==false)
                $page['texte'] = str_replace('<'.'?xml', "<\1?xml", $page['texte']);
 
-       $res = eval('?' . '>' . $page['texte']);
-       $page['texte'] = ob_get_contents();
+       try {
+               $res = eval('?' . '>' . $page['texte']);
+               // error catching 5.2<=PHP<7
+               if ($res === false
+                 and function_exists('error_get_last')
+                 and ($erreur = error_get_last()) ) {
+                       $code = $page['texte'];
+                       $GLOBALS['numero_ligne_php'] = 1;
+                       if (!function_exists('numerote_ligne_php')){
+                               function numerote_ligne_php($match){
+                                       $GLOBALS['numero_ligne_php']++;
+                                       return "\n/*".str_pad($GLOBALS['numero_ligne_php'],3,"0",STR_PAD_LEFT)."*/";
+                               }
+                       }
+                       $code = "/*001*/".preg_replace_callback(",\n,","numerote_ligne_php",$code);
+                       $code = trim(highlight_string($code,true));
+                       erreur_squelette("L".$erreur['line'].": ".$erreur['message']."<br />".$code,array($page['source'],'',$erreur['file'],'',$GLOBALS['spip_lang']));
+                       $page['texte'] = "<!-- Erreur -->";
+               }
+               else {
+                       $page['texte'] = ob_get_contents();
+               }
+       }
+       catch (Exception $e){
+               $code = $page['texte'];
+               $GLOBALS['numero_ligne_php'] = 1;
+               if (!function_exists('numerote_ligne_php')){
+                       function numerote_ligne_php($match){
+                               $GLOBALS['numero_ligne_php']++;
+                               return "\n/*".str_pad($GLOBALS['numero_ligne_php'],3,"0",STR_PAD_LEFT)."*/";
+                       }
+               }
+               $code = "/*001*/".preg_replace_callback(",\n,","numerote_ligne_php",$code);
+               $code = trim(highlight_string($code,true));
+               erreur_squelette("L".$e->getLine().": ".$e->getMessage()."<br />".$code,array($page['source'],'',$e->getFile(),'',$GLOBALS['spip_lang']));
+               $page['texte'] = "<!-- Erreur -->";
+       }
        ob_end_clean();
 
        $page['process_ins'] = 'html';
index fcfbfb3..9efb9fc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 90a7e30..f40ef5e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 89acafa..3aa6711 100644 (file)
@@ -4,7 +4,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cbad1c4..10e62c9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f596a0e..0934339 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index adbf38d..07a69cb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ea4aca8..aea89ed 100644 (file)
@@ -3,12 +3,12 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
-\***************************************************************************/
+ * \***************************************************************************/
 
 
 if (!defined('_ECRIRE_INC_VERSION')) return;
@@ -24,42 +24,42 @@ define('BALISE_POST_BOUCLE', '</B');
 define('BALISE_ALT_BOUCLE', '<//B');
 
 define('TYPE_RECURSIF', 'boucle');
-define('SPEC_BOUCLE','/\s*\(\s*([^\s?)]+)(\s*[^)?]*)([?]?)\)/');
+define('SPEC_BOUCLE', '/\s*\(\s*([^\s?)]+)(\s*[^)?]*)([?]?)\)/');
 define('NOM_DE_BOUCLE', "[0-9]+|[-_][-_.a-zA-Z0-9]*");
 # ecriture alambiquee pour rester compatible avec les hexadecimaux des vieux squelettes
 define('NOM_DE_CHAMP', "#((" . NOM_DE_BOUCLE . "):)?(([A-F]*[G-Z_][A-Z_0-9]*)|[A-Z_]+)(\*{0,2})");
 define('CHAMP_ETENDU', '/\[([^]\[]*)\(' . NOM_DE_CHAMP . '([^[)]*\)[^]\[]*)\]/S');
 
-define('BALISE_INCLURE','/<INCLU[DR]E[[:space:]]*(\(([^)]*)\))?/S');
-define('BALISE_POLYGLOTTE',',<multi>(.*)</multi>,Uims');
-define('BALISE_IDIOMES',',<:(([a-z0-9_]+):)?([a-z0-9_]*)({([^\|=>]*=[^\|>]*)})?((\|[^>]*)?:>),iS');
+define('BALISE_INCLURE', '/<INCLU[DR]E[[:space:]]*(\(([^)]*)\))?/S');
+define('BALISE_POLYGLOTTE', ',<multi>(.*)</multi>,Uims');
+define('BALISE_IDIOMES', ',<:(([a-z0-9_]+):)?([a-z0-9_]*)({([^\|=>]*=[^\|>]*)})?((\|[^>]*)?:>),iS');
 define('BALISE_IDIOMES_ARGS', '@^\s*([^= ]*)\s*=\s*((' . NOM_DE_CHAMP . '[{][^}]*})?[^,]*)\s*,?\s*@s');
 
 define('SQL_ARGS', '(\([^)]*\))');
 define('CHAMP_SQL_PLUS_FONC', '`?([A-Z_\/][A-Z_\/0-9.]*)' . SQL_ARGS . '?`?');
 
 // http://doc.spip.org/@phraser_inclure
-function phraser_inclure($texte, $ligne, $result) {
+function phraser_inclure($texte, $ligne, $result){
 
-       while (preg_match(BALISE_INCLURE, $texte, $match)) {
-               $p = strpos($texte,$match[0]);
+       while (preg_match(BALISE_INCLURE, $texte, $match)){
+               $p = strpos($texte, $match[0]);
                $debut = substr($texte, 0, $p);
                if ($p) $result = phraser_idiomes($debut, $ligne, $result);
-               $ligne +=  substr_count($debut, "\n");
+               $ligne += substr_count($debut, "\n");
                $champ = new Inclure;
                $champ->ligne = $ligne;
                $ligne += substr_count($match[0], "\n");
                $fichier = @$match[2];
                # assurer ici la migration .php3 => .php
                # et de l'ancienne syntaxe INCLURE(page.php3) devenue surperflue
-               if (preg_match(',^(.*[.]php)3$,', $fichier, $r)) {
+               if (preg_match(',^(.*[.]php)3$,', $fichier, $r)){
                        $fichier = $r[1];
                }
-               $champ->texte = ($fichier !== 'page.php') ? $fichier : '';
+               $champ->texte = ($fichier!=='page.php') ? $fichier : '';
                $texte = substr($texte, $p+strlen($match[0]));
                // on assimile {var=val} a une liste de un argument sans fonction
-               phraser_args($texte,"/>","",$result,$champ);
-               if (!$champ->texte OR count($champ->param) > 1) {
+               phraser_args($texte, "/>", "", $result, $champ);
+               if (!$champ->texte OR count($champ->param)>1){
                        if (!function_exists('normaliser_inclure'))
                                include_spip('public/normaliser');
                        normaliser_inclure($champ);
@@ -69,46 +69,48 @@ function phraser_inclure($texte, $ligne, $result) {
                $texte = preg_replace(',^</INCLU[DR]E>,', '', $texte);
                $result[] = $champ;
        }
+
        return (($texte==="") ? $result : phraser_idiomes($texte, $ligne, $result));
 }
 
 // http://doc.spip.org/@phraser_polyglotte
-function phraser_polyglotte($texte,$ligne, $result) {
+function phraser_polyglotte($texte, $ligne, $result){
 
        if (preg_match_all(BALISE_POLYGLOTTE, $texte, $m, PREG_SET_ORDER))
-       foreach ($m as $match) {
-               $p = strpos($texte, $match[0]);
-               $debut = substr($texte, 0, $p);
-               if ($p) {
-                       $champ = new Texte;
-                       $champ->texte = $debut;
+               foreach ($m as $match){
+                       $p = strpos($texte, $match[0]);
+                       $debut = substr($texte, 0, $p);
+                       if ($p){
+                               $champ = new Texte;
+                               $champ->texte = $debut;
+                               $champ->ligne = $ligne;
+                               $result[] = $champ;
+                               $ligne += substr_count($champ->texte, "\n");
+                       }
+
+                       $champ = new Polyglotte;
                        $champ->ligne = $ligne;
+                       $ligne += substr_count($match[0], "\n");
+                       $lang = '';
+                       $bloc = $match[1];
+                       $texte = substr($texte, $p+strlen($match[0]));
+                       while (preg_match("/^[[:space:]]*([^[{]*)[[:space:]]*[[{]([a-z_]+)[]}](.*)$/si", $bloc, $regs)){
+                               $trad = $regs[1];
+                               if ($trad OR $lang)
+                                       $champ->traductions[$lang] = $trad;
+                               $lang = $regs[2];
+                               $bloc = $regs[3];
+                       }
+                       $champ->traductions[$lang] = $bloc;
                        $result[] = $champ;
-                       $ligne += substr_count($champ->texte, "\n");
                }
-
-               $champ = new Polyglotte;
+       if ($texte!==""){
+               $champ = new Texte;
+               $champ->texte = $texte;
                $champ->ligne = $ligne;
-               $ligne += substr_count($match[0], "\n");
-               $lang = '';
-               $bloc = $match[1];
-               $texte = substr($texte,$p+strlen($match[0]));
-               while (preg_match("/^[[:space:]]*([^[{]*)[[:space:]]*[[{]([a-z_]+)[]}](.*)$/si", $bloc, $regs)) {
-                 $trad = $regs[1];
-                 if ($trad OR $lang) 
-                       $champ->traductions[$lang] = $trad;
-                 $lang = $regs[2];
-                 $bloc = $regs[3];
-               }
-               $champ->traductions[$lang] = $bloc;
                $result[] = $champ;
        }
-       if ($texte!=="") {
-                       $champ = new Texte;
-                       $champ->texte = $texte;
-                       $champ->ligne = $ligne;
-                       $result[] = $champ;
-       }
+
        return $result;
 }
 
@@ -118,13 +120,13 @@ function phraser_polyglotte($texte,$ligne, $result) {
 // chaine peut etre vide si =texte1 est present et arg1 est vide
 // sinon ce n'est pas un idiome
 // http://doc.spip.org/@phraser_idiomes
-function phraser_idiomes($texte,$ligne,$result) {
-       while (preg_match(BALISE_IDIOMES, $texte, $match)) {
+function phraser_idiomes($texte, $ligne, $result){
+       while (preg_match(BALISE_IDIOMES, $texte, $match)){
                $p = strpos($texte, $match[0]);
                $ko = (!$match[3] && ($match[5][0]!=='='));
-               $debut = substr($texte, 0, $p + ($ko ? strlen($match[0]) : 0));
+               $debut = substr($texte, 0, $p+($ko ? strlen($match[0]) : 0));
                if ($debut) $result = phraser_champs($debut, $ligne, $result);
-               $texte = substr($texte,$p+strlen($match[0]));
+               $texte = substr($texte, $p+strlen($match[0]));
                $ligne += substr_count($debut, "\n");
                if ($ko) continue; // faux idiome
                $champ = new Idiome;
@@ -133,9 +135,9 @@ function phraser_idiomes($texte,$ligne,$result) {
                // Stocker les arguments de la balise de traduction
                $args = array();
                $largs = $match[5];
-               while (preg_match(BALISE_IDIOMES_ARGS, $largs, $r)) {
+               while (preg_match(BALISE_IDIOMES_ARGS, $largs, $r)){
                        $args[$r[1]] = phraser_champs($r[2], 0, array());
-                       $largs = substr($largs, strlen($r[0])); 
+                       $largs = substr($largs, strlen($r[0]));
                }
                $champ->arg = $args;
                $champ->nom_champ = strtolower($match[3]);
@@ -144,49 +146,51 @@ function phraser_idiomes($texte,$ligne,$result) {
                phraser_args(@$match[7], ":", '', array(), $champ);
                $result[] = $champ;
        }
-       if ($texte!=="")  $result = phraser_champs($texte,$ligne,$result);
+       if ($texte!=="") $result = phraser_champs($texte, $ligne, $result);
+
        return $result;
 }
 
 // http://doc.spip.org/@phraser_champs
-function phraser_champs($texte,$ligne,$result) {
-       while (preg_match("/".NOM_DE_CHAMP."/S", $texte, $match)) {
-         $p = strpos($texte, $match[0]);
-         $suite = substr($texte,$p+strlen($match[0]));
-         if ($match[5] || (strpos($suite[0], "[0-9]") === false)) {
-               $debut = substr($texte, 0, $p);
-               if ($p) $result = phraser_polyglotte($debut, $ligne, $result);
-               $ligne += substr_count($debut, "\n");
-               $champ = new Champ;
-               $champ->ligne = $ligne;
-               $ligne += substr_count($match[0], "\n");
-               $champ->nom_boucle = $match[2];
-               $champ->nom_champ = $match[3];
-               $champ->etoile = $match[5];
-
-               if ($suite[0] == '{') {
-                       phraser_arg($suite, '', array(), $champ);
-               // ce ltrim est une ereur de conception
-               // mais on le conserve par souci de compatibilite
-                       $texte = ltrim($suite);
-               // Il faudrait le normaliser dans l'arbre de syntaxe abstraite
-               // pour faire sauter ce cas particulier a la decompilation.
-               /* Ce qui suit est malheureusement incomplet pour cela:
-                       if ($n = (strlen($suite) - strlen($texte))) {
-                               $champ->apres = array(new Texte);
-                               $champ->apres[0]->texte = substr($suite,0,$n);
-                       }
-               */
-               } else $texte = $suite;
-               phraser_vieux($champ);
-               $result[] = $champ;
-         } else {
-           // faux champ
-           $result = phraser_polyglotte (substr($texte, 0, $p+1), $ligne, $result);
-           $texte = (substr($texte, $p+1));
-         }
+function phraser_champs($texte, $ligne, $result){
+       while (preg_match("/" . NOM_DE_CHAMP . "/S", $texte, $match)){
+               $p = strpos($texte, $match[0]);
+               $suite = substr($texte, $p+strlen($match[0]));
+               if ($match[5] || (strpos($suite[0], "[0-9]")===false)){
+                       $debut = substr($texte, 0, $p);
+                       if ($p) $result = phraser_polyglotte($debut, $ligne, $result);
+                       $ligne += substr_count($debut, "\n");
+                       $champ = new Champ;
+                       $champ->ligne = $ligne;
+                       $ligne += substr_count($match[0], "\n");
+                       $champ->nom_boucle = $match[2];
+                       $champ->nom_champ = $match[3];
+                       $champ->etoile = $match[5];
+
+                       if ($suite[0]=='{'){
+                               phraser_arg($suite, '', array(), $champ);
+                               // ce ltrim est une ereur de conception
+                               // mais on le conserve par souci de compatibilite
+                               $texte = ltrim($suite);
+                               // Il faudrait le normaliser dans l'arbre de syntaxe abstraite
+                               // pour faire sauter ce cas particulier a la decompilation.
+                               /* Ce qui suit est malheureusement incomplet pour cela:
+                                       if ($n = (strlen($suite) - strlen($texte))) {
+                                               $champ->apres = array(new Texte);
+                                               $champ->apres[0]->texte = substr($suite,0,$n);
+                                       }
+                               */
+                       } else $texte = $suite;
+                       phraser_vieux($champ);
+                       $result[] = $champ;
+               } else {
+                       // faux champ
+                       $result = phraser_polyglotte(substr($texte, 0, $p+1), $ligne, $result);
+                       $texte = (substr($texte, $p+1));
+               }
        }
        if ($texte!=="") $result = phraser_polyglotte($texte, $ligne, $result);
+
        return $result;
 }
 
@@ -196,11 +200,12 @@ function phraser_champs($texte,$ligne,$result) {
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
 
 // http://doc.spip.org/@phraser_champs_etendus
-function phraser_champs_etendus($texte, $ligne,$result) {
+function phraser_champs_etendus($texte, $ligne, $result){
        if ($texte==="") return $result;
        $sep = '##';
-       while (strpos($texte,$sep)!== false)
+       while (strpos($texte, $sep)!==false)
                $sep .= '#';
+
        return array_merge($result, phraser_champs_interieurs($texte, $ligne, $sep, array()));
 }
 
@@ -211,60 +216,61 @@ function phraser_champs_etendus($texte, $ligne,$result) {
 // Tres chevelu
 
 // http://doc.spip.org/@phraser_args
-function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ) {
-  $texte = ltrim($texte);
-  while (($texte!=="") && strpos($fin, $texte[0]) === false) {
-       $result = phraser_arg($texte, $sep, $result, $pointeur_champ);
+function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ){
        $texte = ltrim($texte);
-  }
+       while (($texte!=="") && strpos($fin, $texte[0])===false){
+               $result = phraser_arg($texte, $sep, $result, $pointeur_champ);
+               $texte = ltrim($texte);
+       }
 # mettre ici la suite du texte, 
 # notamment pour que l'appelant vire le caractere fermant si besoin
-  $pointeur_champ->apres = $texte;
-  return $result;
+       $pointeur_champ->apres = $texte;
+
+       return $result;
 }
 
 // http://doc.spip.org/@phraser_arg
-function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
+function phraser_arg(&$texte, $sep, $result, &$pointeur_champ){
        preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
        $suite = ltrim($match[2]);
        $fonc = trim($match[1]);
-       if ($fonc && $fonc[0] == "|") $fonc = ltrim(substr($fonc,1));
+       if ($fonc && $fonc[0]=="|") $fonc = ltrim(substr($fonc, 1));
        $res = array($fonc);
        $err_f = '';
        // cas du filtre sans argument ou du critere /
-       if (($suite && ($suite[0] != '{')) || ($fonc  && $fonc[0] == '/')) {
+       if (($suite && ($suite[0]!='{')) || ($fonc && $fonc[0]=='/')){
                // si pas d'argument, alors il faut une fonction ou un double |
-               if (!$match[1]) {
+               if (!$match[1]){
                        $err_f = array('zbug_erreur_filtre', array('filtre' => $texte));
                        erreur_squelette($err_f, $pointeur_champ);
                        $texte = '';
-               } else  $texte = $suite;
+               } else  $texte = $suite;
                if ($err_f) $pointeur_champ->param = false;
                elseif ($fonc!=='') $pointeur_champ->param[] = $res;
                // pour les balises avec faux filtres qui boudent ce dur larbeur
                $pointeur_champ->fonctions[] = array($fonc, '');
+
                return $result;
        }
-       $args = ltrim(substr($suite,1)); // virer le '(' initial
+       $args = ltrim(substr($suite, 1)); // virer le '(' initial
        $collecte = array();
-       while ($args && $args[0] != '}') {
-               if ($args[0] == '"')
-                       preg_match ('/^(")([^"]*)(")(.*)$/ms', $args, $regs);
-               else if ($args[0] == "'")
-                       preg_match ("/^(')([^']*)(')(.*)$/ms", $args, $regs);
+       while ($args && $args[0]!='}'){
+               if ($args[0]=='"')
+                       preg_match('/^(")([^"]*)(")(.*)$/ms', $args, $regs);
+               else if ($args[0]=="'")
+                       preg_match("/^(')([^']*)(')(.*)$/ms", $args, $regs);
                else {
-                 preg_match("/^([[:space:]]*)([^,([{}]*([(\[{][^])}]*[])}])?[^,}]*)([,}].*)$/ms", $args, $regs);
-                 if (!strlen($regs[2]))
-                   {
-                       $err_f = array('zbug_erreur_filtre', array('filtre' => $args));
-                       erreur_squelette($err_f, $pointeur_champ);
-                       $champ = new Texte;
-                       $champ->apres = $champ->avant = $args = "";
-                       break;
-                     }   
+                       preg_match("/^([[:space:]]*)([^,([{}]*([(\[{][^])}]*[])}])?[^,}]*)([,}].*)$/ms", $args, $regs);
+                       if (!strlen($regs[2])){
+                               $err_f = array('zbug_erreur_filtre', array('filtre' => $args));
+                               erreur_squelette($err_f, $pointeur_champ);
+                               $champ = new Texte;
+                               $champ->apres = $champ->avant = $args = "";
+                               break;
+                       }
                }
                $arg = $regs[2];
-               if (trim($regs[1])) {
+               if (trim($regs[1])){
                        $champ = new Texte;
                        $champ->texte = $arg;
                        $champ->apres = $champ->avant = $regs[1];
@@ -272,109 +278,118 @@ function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
                        $collecte[] = $champ;
                        $args = ltrim($regs[count($regs)-1]);
                } else {
-                       if (!preg_match("/".NOM_DE_CHAMP ."([{|])/", $arg, $r)) {
+                       if (!preg_match("/" . NOM_DE_CHAMP . "([{|])/", $arg, $r)){
                                // 0 est un aveu d'impuissance. A completer
                                $arg = phraser_champs_exterieurs($arg, 0, $sep, $result);
 
                                $args = ltrim($regs[count($regs)-1]);
                                $collecte = array_merge($collecte, $arg);
                                $result = array_merge($result, $arg);
-                       }
-                       else {
-                               $n = strpos($args,$r[0]);
+                       } else {
+                               $n = strpos($args, $r[0]);
                                $pred = substr($args, 0, $n);
                                $par = ',}';
-                               if (preg_match('/^(.*)\($/', $pred, $m))
-                                       {$pred = $m[1]; $par =')';}
-                               if ($pred) {
+                               if (preg_match('/^(.*)\($/', $pred, $m)){
+                                       $pred = $m[1];
+                                       $par = ')';
+                               }
+                               if ($pred){
                                        $champ = new Texte;
                                        $champ->texte = $pred;
                                        $champ->apres = $champ->avant = "";
                                        $result[] = $champ;
                                        $collecte[] = $champ;
                                }
-                               $rec = substr($args, $n + strlen($r[0]) -1);
+                               $rec = substr($args, $n+strlen($r[0])-1);
                                $champ = new Champ;
                                $champ->nom_boucle = $r[2];
                                $champ->nom_champ = $r[3];
                                $champ->etoile = $r[5];
                                $next = $r[6];
-                               while ($next=='{') {
+                               while ($next=='{'){
                                        phraser_arg($rec, $sep, array(), $champ);
-                                       $args = ltrim($rec) ;
+                                       $args = ltrim($rec);
                                        $next = isset($args[0]) ? $args[0] : '';
                                }
-                               while ($next=='|') {
+                               while ($next=='|'){
                                        phraser_args($rec, $par, $sep, array(), $champ);
-                                       $args = $champ->apres ;
+                                       $args = $champ->apres;
                                        $champ->apres = '';
                                        $next = isset($args[0]) ? $args[0] : '';
                                }
                                // Si erreur de syntaxe dans un sous-argument, propager.
-                               if ($champ->param === false)
+                               if ($champ->param===false)
                                        $err_f = true;
                                else phraser_vieux($champ);
-                               if ($par==')') $args = substr($args,1);
+                               if ($par==')') $args = substr($args, 1);
                                $collecte[] = $champ;
                                $result[] = $champ;
                        }
                }
-               if (isset($args[0]) AND $args[0] == ',') {
-                       $args = ltrim(substr($args,1));
-                       if ($collecte) {$res[] = $collecte; $collecte = array();}
+               if (isset($args[0]) AND $args[0]==','){
+                       $args = ltrim(substr($args, 1));
+                       if ($collecte){
+                               $res[] = $collecte;
+                               $collecte = array();
+                       }
                }
        }
-       if ($collecte) {$res[] = $collecte; $collecte = array();}
-       $texte = substr($args,1);
-       $source = substr($suite, 0, strlen($suite) - strlen($texte));
+       if ($collecte){
+               $res[] = $collecte;
+               $collecte = array();
+       }
+       $texte = substr($args, 1);
+       $source = substr($suite, 0, strlen($suite)-strlen($texte));
        // propager les erreurs, et ignorer les param vides
-       if ($pointeur_champ->param !== false) {
+       if ($pointeur_champ->param!==false){
                if ($err_f)
                        $pointeur_champ->param = false;
-               elseif ($fonc!=='' || count($res) > 1)
+               elseif ($fonc!=='' || count($res)>1)
                        $pointeur_champ->param[] = $res;
        }
        // pour les balises avec faux filtres qui boudent ce dur larbeur
        $pointeur_champ->fonctions[] = array($fonc, $source);
+
        return $result;
 }
 
 
 // http://doc.spip.org/@phraser_champs_exterieurs
-function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) {
+function phraser_champs_exterieurs($texte, $ligne, $sep, $nested){
        $res = array();
-       while (($p=strpos($texte, "%$sep"))!==false) {
-               if (!preg_match(',^%'.preg_quote($sep).'([0-9]+)@,', substr($texte,$p), $m))
+       while (($p = strpos($texte, "%$sep"))!==false){
+               if (!preg_match(',^%' . preg_quote($sep) . '([0-9]+)@,', substr($texte, $p), $m))
                        break;
-               $debut = substr($texte,0,$p);
+               $debut = substr($texte, 0, $p);
                $texte = substr($texte, $p+strlen($m[0]));
                if ($p)
                        $res = phraser_inclure($debut, $ligne, $res);
                $ligne += substr_count($debut, "\n");
-               $res[]= $nested[$m[1]];
+               $res[] = $nested[$m[1]];
        }
+
        return (($texte==='') ? $res : phraser_inclure($texte, $ligne, $res));
 }
 
 // http://doc.spip.org/@phraser_champs_interieurs
-function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
+function phraser_champs_interieurs($texte, $ligne, $sep, $result){
        $i = 0; // en fait count($result)
        $x = "";
 
-       while (true) {
-               $j=$i;
+       while (true){
+               $j = $i;
                $n = $ligne;
-               while (preg_match(CHAMP_ETENDU, $texte, $match)) {
+               while (preg_match(CHAMP_ETENDU, $texte, $match)){
                        $p = strpos($texte, $match[0]);
                        $debut = substr($texte, 0, $p);
-                       if ($p) {
+                       if ($p){
                                $result[$i] = $debut;
                                $i++;
                        }
                        $nom = $match[4];
                        $champ = new Champ;
                        // ca ne marche pas encore en cas de champ imbrique
-                       $champ->ligne = $x ? 0 :($n+substr_count($debut, "\n"));
+                       $champ->ligne = $x ? 0 : ($n+substr_count($debut, "\n"));
                        $champ->nom_boucle = $match[3];
                        $champ->nom_champ = $nom;
                        $champ->etoile = $match[6];
@@ -382,25 +397,30 @@ function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
                        $result = phraser_args($match[7], ")", $sep, $result, $champ);
                        phraser_vieux($champ);
                        $champ->avant =
-                               phraser_champs_exterieurs($match[1],$n,$sep,$result);
-                       $debut = substr($champ->apres,1);
-                       $n += substr_count(substr($texte, 0, strpos($texte, $debut)), "\n");
-                       $champ->apres = phraser_champs_exterieurs($debut,$n,$sep,$result);
+                               phraser_champs_exterieurs($match[1], $n, $sep, $result);
+                       $debut = substr($champ->apres, 1);
+                       if (!empty($debut)){
+                               $n += substr_count(substr($texte, 0, strpos($texte, $debut)), "\n");
+                       }
+                       $champ->apres = phraser_champs_exterieurs($debut, $n, $sep, $result);
 
                        $result[$i] = $champ;
                        $i++;
-                       $texte = substr($texte,$p+strlen($match[0]));
+                       $texte = substr($texte, $p+strlen($match[0]));
+               }
+               if ($texte!==""){
+                       $result[$i] = $texte;
+                       $i++;
                }
-               if ($texte!=="") {$result[$i] = $texte; $i++;}
-               $x ='';
+               $x = '';
 
-               while($j < $i) {
-                       $z= $result[$j]; 
+               while ($j<$i){
+                       $z = $result[$j];
                        // j'aurais besoin de connaitre le nombre de lignes...
                        if (is_object($z))
                                $x .= "%$sep$j@";
                        else
-                               $x.=$z;
+                               $x .= $z;
                        $j++;
                }
                if (preg_match(CHAMP_ETENDU, $x))
@@ -410,19 +430,18 @@ function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
        }
 }
 
-function phraser_vieux(&$champ)
-{
+function phraser_vieux(&$champ){
        $nom = $champ->nom_champ;
-       if ($nom == 'EMBED_DOCUMENT') {
+       if ($nom=='EMBED_DOCUMENT'){
                if (!function_exists('phraser_vieux_emb'))
                        include_spip('public/normaliser');
                phraser_vieux_emb($champ);
-       } elseif ($nom == 'EXPOSER') {
+       } elseif ($nom=='EXPOSER') {
                if (!function_exists('phraser_vieux_exposer'))
                        include_spip('public/normaliser');
                phraser_vieux_exposer($champ);
        } elseif ($champ->param) {
-               if ($nom == 'FORMULAIRE_RECHERCHE') {
+               if ($nom=='FORMULAIRE_RECHERCHE'){
                        if (!function_exists('phraser_vieux_recherche'))
                                include_spip('public/normaliser');
                        phraser_vieux_recherche($champ);
@@ -430,11 +449,11 @@ function phraser_vieux(&$champ)
                        if (!function_exists('phraser_vieux_logos'))
                                include_spip('public/normaliser');
                        phraser_vieux_logos($champ);
-               } elseif ($nom == 'MODELE') {
+               } elseif ($nom=='MODELE') {
                        if (!function_exists('phraser_vieux_modele'))
                                include_spip('public/normaliser');
                        phraser_vieux_modele($champ);
-               } elseif ($nom == 'INCLURE' OR $nom == 'INCLUDE') {
+               } elseif ($nom=='INCLURE' OR $nom=='INCLUDE') {
                        if (!function_exists('phraser_vieux_inclu'))
                                include_spip('public/normaliser');
                        phraser_vieux_inclu($champ);
@@ -444,19 +463,19 @@ function phraser_vieux(&$champ)
 
 
 /**
- * Analyse les critères de boucle 
+ * Analyse les critères de boucle
  *
  * Chaque paramètre de la boucle (tel que {id_article>3}) est analysé
  * pour construire un critère (objet Critere) de boucle.
- * 
+ *
  * Un critère a une description plus fine que le paramètre original
  * car on en extrait certaines informations tel que la n'égation et l'opérateur
  * utilisé s'il y a.
- * 
+ *
  * La fonction en profite pour déclarer des modificateurs de boucles
  * en présence de certains critères (tout, plat) ou initialiser des
  * variables de compilation (doublons)...
- * 
+ *
  * @param array $params
  *     Tableau de description des paramètres passés Ã  la boucle.
  *     Chaque paramètre deviendra un critère
@@ -464,182 +483,177 @@ function phraser_vieux(&$champ)
  *     Description de la boucle
  *     Elle sera complété de la liste de ses critères
  * @return void
-**/
-function phraser_criteres($params, &$result) {
+ **/
+function phraser_criteres($params, &$result){
 
        $err_ci = ''; // indiquera s'il y a eu une erreur
        $args = array();
        $type = $result->type_requete;
        $doublons = array();
-       foreach($params as $v) {
+       foreach ($params as $v){
                $var = $v[1][0];
-               $param = ($var->type != 'texte') ? "" : $var->texte;
-               if ((count($v) > 2) && (!preg_match(",[^A-Za-z]IN[^A-Za-z],i",$param)))
-                 {
+               $param = ($var->type!='texte') ? "" : $var->texte;
+               if ((count($v)>2) && (!preg_match(",[^A-Za-z]IN[^A-Za-z],i", $param))){
 // plus d'un argument et pas le critere IN:
 // detecter comme on peut si c'est le critere implicite LIMIT debut, fin
 
-                       if ($var->type != 'texte'
-                       OR preg_match("/^(n|n-|(n-)?\d+)$/S", $param)) {
-                         $op = ',';
-                         $not = "";
+                       if ($var->type!='texte'
+                               OR preg_match("/^(n|n-|(n-)?\d+)$/S", $param)
+                       ){
+                               $op = ',';
+                               $not = "";
                        } else {
-                         // Le debut du premier argument est l'operateur
-                         preg_match("/^([!]?)([a-zA-Z][a-zA-Z0-9_]*)[[:space:]]*(\??)[[:space:]]*(.*)$/ms", $param, $m);
-                         $op = $m[2];
-                         $not = $m[1];
-                         $cond = $m[3];
-                         // virer le premier argument,
-                         // et mettre son reliquat eventuel
-                         // Recopier pour ne pas alterer le texte source
-                         // utile au debusqueur
-                         if ($m[4]) {
-                           // une maniere tres sale de supprimer les "' autour de {critere "xxx","yyy"}
-                           if (preg_match(',^(["\'])(.*)\1$,', $m[4])) {
-                               $c = null;
-                               eval ('$c = '.$m[4].';');
-                               if (isset($c))
-                                       $m[4] = $c;
-                           }
-                           $texte = new Texte;
-                           $texte->texte = $m[4]; 
-                           $v[1][0]= $texte;
-                         } else array_shift($v[1]);
+                               // Le debut du premier argument est l'operateur
+                               preg_match("/^([!]?)([a-zA-Z][a-zA-Z0-9_]*)[[:space:]]*(\??)[[:space:]]*(.*)$/ms", $param, $m);
+                               $op = $m[2];
+                               $not = $m[1];
+                               $cond = $m[3];
+                               // virer le premier argument,
+                               // et mettre son reliquat eventuel
+                               // Recopier pour ne pas alterer le texte source
+                               // utile au debusqueur
+                               if ($m[4]){
+                                       // une maniere tres sale de supprimer les "' autour de {critere "xxx","yyy"}
+                                       if (preg_match(',^(["\'])(.*)\1$,', $m[4])){
+                                               $c = null;
+                                               eval ('$c = ' . $m[4] . ';');
+                                               if (isset($c))
+                                                       $m[4] = $c;
+                                       }
+                                       $texte = new Texte;
+                                       $texte->texte = $m[4];
+                                       $v[1][0] = $texte;
+                               } else array_shift($v[1]);
                        }
                        array_shift($v); // $v[O] est vide
                        $crit = new Critere;
                        $crit->op = $op;
                        $crit->not = $not;
                        $crit->cond = $cond;
-                       $crit->exclus ="";
+                       $crit->exclus = "";
                        $crit->param = $v;
                        $args[] = $crit;
-                 } else {
-                 if ($var->type != 'texte') {
-                   // cas 1 seul arg ne commencant pas par du texte brut: 
-                   // erreur ou critere infixe "/"
-                   if (($v[1][1]->type != 'texte') || (trim($v[1][1]->texte) !='/')) {
-                       $err_ci = array('zbug_critere_inconnu', 
-                                       array('critere' => $var->nom_champ));
-                       erreur_squelette($err_ci, $result);
-                   } else {
-                     $crit = new Critere;
-                     $crit->op = '/';
-                     $crit->not = "";
-                     $crit->exclus ="";
-                     $crit->param = array(array($v[1][0]),array($v[1][2]));
-                     $args[] = $crit;
-                   }
-                 } else {
-       // traiter qq lexemes particuliers pour faciliter la suite
-       // les separateurs
-                       if ($var->apres)
-                               $result->separateur[] = $param;
-                       elseif (($param == 'tout') OR ($param == 'tous'))
-                               $result->modificateur['tout'] = true;
-                       elseif ($param == 'plat') 
-                               $result->modificateur['plat'] = true;
-
-                       // Boucle hierarchie, analyser le critere id_rubrique
-                       // et les autres critères {id_x} pour forcer {tout} sur
-                       // ceux-ci pour avoir la rubrique mere...
-                       // Les autres critères de la boucle hierarchie doivent Ãªtre
-                       // traités normalement.
-                       elseif (strcasecmp($type, 'hierarchie')==0
-                               AND !preg_match(",^id_rubrique\b,",$param)
-                               AND preg_match(",^id_\w+\s*$,", $param))
-                       {
-                               $result->modificateur['tout'] = true;
-                       }
-                       elseif (strcasecmp($type, 'hierarchie')==0 AND $param=="id_rubrique") {
-                               // rien a faire sur {id_rubrique} tout seul
-                       }
-                       else {
-                         // pas d'emplacement statique, faut un dynamique
-                         /// mais il y a 2 cas qui ont les 2 !
-                         if (($param == 'unique') || (preg_match(',^!?doublons *,', $param)))
-                           {
-                             // cette variable sera inseree dans le code
-                             // et son nom sert d'indicateur des maintenant
-                             $result->doublons = '$doublons_index';
-                             if ($param == 'unique') $param = 'doublons';
-                           }
-                         elseif ($param == 'recherche')
-                           // meme chose (a cause de #nom_de_boucle:URL_*)
-                             $result->hash = ' ';
-                         if (preg_match(',^ *([0-9-]+) *(/) *(.+) *$,', $param, $m)) {
-                           $crit = phraser_critere_infixe($m[1], $m[3],$v, '/', '', '');
-                         } elseif (preg_match(',^([!]?)(' . CHAMP_SQL_PLUS_FONC . 
-                                        ')[[:space:]]*(\??)(!?)(<=?|>=?|==?|\b(?:IN|LIKE)\b)(.*)$,is', $param, $m)) {
-                           $a2 = trim($m[8]);
-                           if ($a2 AND ($a2[0]=="'" OR $a2[0]=='"') AND ($a2[0]==substr($a2,-1)))
-                             $a2 = substr($a2,1,-1);
-                           $crit = phraser_critere_infixe($m[2], $a2, $v,
-                                                          (($m[2] == 'lang_select') ? $m[2] : $m[7]),
-                                                          $m[6], $m[5]);
-                                       $crit->exclus = $m[1];
-                         } elseif (preg_match("/^([!]?)\s*(" .
-                                              CHAMP_SQL_PLUS_FONC .
-                                              ")\s*(\??)(.*)$/is", $param, $m)) {
-                 // contient aussi les comparaisons implicites !
-                           // Comme ci-dessus: 
-                           // le premier arg contient l'operateur
-                           array_shift($v);
-                           if ($m[6]) {
-                             $v[0][0] = new Texte;
-                             $v[0][0]->texte = $m[6];
-                           } else {
-                             array_shift($v[0]);
-                             if (!$v[0]) array_shift($v);
-                           }
-                           $crit = new Critere;
-                           $crit->op = $m[2];
-                           $crit->param = $v;
-                           $crit->not = $m[1];
-                           $crit->cond = $m[5];
-                         }
-                         else {
-                               $err_ci = array('zbug_critere_inconnu', 
-                                       array('critere' => $param));
-                               erreur_squelette($err_ci, $result);
-                         }
-                         if ((!preg_match(',^!?doublons *,', $param)) || $crit->not)
-                           $args[] = $crit;
-                         else 
-                           $doublons[] = $crit;
+               } else {
+                       if ($var->type!='texte'){
+                               // cas 1 seul arg ne commencant pas par du texte brut:
+                               // erreur ou critere infixe "/"
+                               if (($v[1][1]->type!='texte') || (trim($v[1][1]->texte)!='/')){
+                                       $err_ci = array('zbug_critere_inconnu',
+                                               array('critere' => $var->nom_champ));
+                                       erreur_squelette($err_ci, $result);
+                               } else {
+                                       $crit = new Critere;
+                                       $crit->op = '/';
+                                       $crit->not = "";
+                                       $crit->exclus = "";
+                                       $crit->param = array(array($v[1][0]), array($v[1][2]));
+                                       $args[] = $crit;
+                               }
+                       } else {
+                               // traiter qq lexemes particuliers pour faciliter la suite
+                               // les separateurs
+                               if ($var->apres)
+                                       $result->separateur[] = $param;
+                               elseif (($param=='tout') OR ($param=='tous'))
+                                       $result->modificateur['tout'] = true;
+                               elseif ($param=='plat')
+                                       $result->modificateur['plat'] = true;
+
+                               // Boucle hierarchie, analyser le critere id_rubrique
+                               // et les autres critères {id_x} pour forcer {tout} sur
+                               // ceux-ci pour avoir la rubrique mere...
+                               // Les autres critères de la boucle hierarchie doivent Ãªtre
+                               // traités normalement.
+                               elseif (strcasecmp($type, 'hierarchie')==0
+                                       AND !preg_match(",^id_rubrique\b,", $param)
+                                       AND preg_match(",^id_\w+\s*$,", $param)
+                               ) {
+                                       $result->modificateur['tout'] = true;
+                               } elseif (strcasecmp($type, 'hierarchie')==0 AND $param=="id_rubrique") {
+                                       // rien a faire sur {id_rubrique} tout seul
+                               } else {
+                                       // pas d'emplacement statique, faut un dynamique
+                                       /// mais il y a 2 cas qui ont les 2 !
+                                       if (($param=='unique') || (preg_match(',^!?doublons *,', $param))){
+                                               // cette variable sera inseree dans le code
+                                               // et son nom sert d'indicateur des maintenant
+                                               $result->doublons = '$doublons_index';
+                                               if ($param=='unique') $param = 'doublons';
+                                       } elseif ($param=='recherche')
+                                               // meme chose (a cause de #nom_de_boucle:URL_*)
+                                               $result->hash = ' ';
+                                       if (preg_match(',^ *([0-9-]+) *(/) *(.+) *$,', $param, $m)){
+                                               $crit = phraser_critere_infixe($m[1], $m[3], $v, '/', '', '');
+                                       } elseif (preg_match(',^([!]?)(' . CHAMP_SQL_PLUS_FONC .
+                                               ')[[:space:]]*(\??)(!?)(<=?|>=?|==?|\b(?:IN|LIKE)\b)(.*)$,is', $param, $m)) {
+                                               $a2 = trim($m[8]);
+                                               if ($a2 AND ($a2[0]=="'" OR $a2[0]=='"') AND ($a2[0]==substr($a2, -1)))
+                                                       $a2 = substr($a2, 1, -1);
+                                               $crit = phraser_critere_infixe($m[2], $a2, $v,
+                                                       (($m[2]=='lang_select') ? $m[2] : $m[7]),
+                                                       $m[6], $m[5]);
+                                               $crit->exclus = $m[1];
+                                       } elseif (preg_match("/^([!]?)\s*(" .
+                                               CHAMP_SQL_PLUS_FONC .
+                                               ")\s*(\??)(.*)$/is", $param, $m)) {
+                                               // contient aussi les comparaisons implicites !
+                                               // Comme ci-dessus:
+                                               // le premier arg contient l'operateur
+                                               array_shift($v);
+                                               if ($m[6]){
+                                                       $v[0][0] = new Texte;
+                                                       $v[0][0]->texte = $m[6];
+                                               } else {
+                                                       array_shift($v[0]);
+                                                       if (!$v[0]) array_shift($v);
+                                               }
+                                               $crit = new Critere;
+                                               $crit->op = $m[2];
+                                               $crit->param = $v;
+                                               $crit->not = $m[1];
+                                               $crit->cond = $m[5];
+                                       } else {
+                                               $err_ci = array('zbug_critere_inconnu',
+                                                       array('critere' => $param));
+                                               erreur_squelette($err_ci, $result);
+                                       }
+                                       if ((!preg_match(',^!?doublons *,', $param)) || $crit->not)
+                                               $args[] = $crit;
+                                       else
+                                               $doublons[] = $crit;
+                               }
                        }
-                 }
                }
        }
        // les doublons non nies doivent etre le dernier critere
        // pour que la variable $doublon_index ait la bonne valeur
        // cf critere_doublon
-       if ($doublons) $args= array_merge($args, $doublons);
+       if ($doublons) $args = array_merge($args, $doublons);
        // Si erreur, laisser la chaine dans ce champ pour le HTTP 503
        if (!$err_ci) $result->criteres = $args;
 }
 
 // http://doc.spip.org/@phraser_critere_infixe
-function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond)
-{
+function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond){
        $args[0] = new Texte;
        $args[0]->texte = $arg1;
        $args[0] = array($args[0]);
        $args[1][0] = new Texte;
-       $args[1][0]->texte  = $arg2;
+       $args[1][0]->texte = $arg2;
        $crit = new Critere;
        $crit->op = $op;
        $crit->not = $not;
        $crit->cond = $cond;
        $crit->param = $args;
+
        return $crit;
 }
 
-function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=1) {
+function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne = 1){
 
        $all_res = array();
 
-       while (($pos_boucle = strpos($texte, BALISE_BOUCLE)) !== false) {
+       while (($pos_boucle = strpos($texte, BALISE_BOUCLE))!==false){
 
                $err_b = ''; // indiquera s'il y a eu une erreur
                $result = new Boucle;
@@ -647,80 +661,84 @@ function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=
                $result->descr = $descr;
 # attention: reperer la premiere des 2 balises: pre_boucle ou boucle
 
-               if (!preg_match(",".BALISE_PRE_BOUCLE . '[0-9_],', $texte, $r)
+               if (!preg_match("," . BALISE_PRE_BOUCLE . '[0-9_],', $texte, $r)
                        OR ($n = strpos($texte, $r[0]))===false
-                       OR ($n > $pos_boucle) ) {
-                 $debut = substr($texte, 0, $pos_boucle);
-                 $milieu = substr($texte, $pos_boucle);
-                 $k = strpos($milieu, '(');
-                 $id_boucle = trim(substr($milieu,
-                                          strlen(BALISE_BOUCLE),
-                                          $k - strlen(BALISE_BOUCLE)));
-                 $milieu = substr($milieu, $k);
+                       OR ($n>$pos_boucle)
+               ){
+                       $debut = substr($texte, 0, $pos_boucle);
+                       $milieu = substr($texte, $pos_boucle);
+                       $k = strpos($milieu, '(');
+                       $id_boucle = trim(substr($milieu,
+                               strlen(BALISE_BOUCLE),
+                               $k-strlen(BALISE_BOUCLE)));
+                       $milieu = substr($milieu, $k);
 
                } else {
-                 $debut = substr($texte, 0, $n);
-                 $milieu = substr($texte, $n);
-                 $k = strpos($milieu, '>');
-                 $id_boucle = substr($milieu,
-                                      strlen(BALISE_PRE_BOUCLE),
-                                      $k - strlen(BALISE_PRE_BOUCLE));
-
-                 if (!preg_match(",".BALISE_BOUCLE . $id_boucle . "[[:space:]]*\(,", $milieu, $r)) {
-                       $err_b = array('zbug_erreur_boucle_syntaxe', array('id' => $id_boucle));
-                       erreur_squelette($err_b, $result);
-                 }
-                 $pos_boucle = $n;
-                 $n = strpos($milieu, $r[0]);
-                 $result->avant = substr($milieu, $k+1, $n-$k-1);
-                 $milieu = substr($milieu, $n+strlen($id_boucle)+strlen(BALISE_BOUCLE));
+                       $debut = substr($texte, 0, $n);
+                       $milieu = substr($texte, $n);
+                       $k = strpos($milieu, '>');
+                       $id_boucle = substr($milieu,
+                               strlen(BALISE_PRE_BOUCLE),
+                               $k-strlen(BALISE_PRE_BOUCLE));
+
+                       if (!preg_match("," . BALISE_BOUCLE . $id_boucle . "[[:space:]]*\(,", $milieu, $r)){
+                               $err_b = array('zbug_erreur_boucle_syntaxe', array('id' => $id_boucle));
+                               erreur_squelette($err_b, $result);
+                               $texte = substr($texte, $n+1);
+                               continue;
+                       } else {
+                               $pos_boucle = $n;
+                               $n = strpos($milieu, $r[0]);
+                               $result->avant = substr($milieu, $k+1, $n-$k-1);
+                               $milieu = substr($milieu, $n+strlen($id_boucle)+strlen(BALISE_BOUCLE));
+                       }
                }
                $result->id_boucle = $id_boucle;
 
                preg_match(SPEC_BOUCLE, $milieu, $match);
                $result->type_requete = $match[0];
-                $milieu = substr($milieu, strlen($match[0]));
+               $milieu = substr($milieu, strlen($match[0]));
                $type = $match[1];
                $jointures = trim($match[2]);
                $table_optionnelle = ($match[3]);
-               if ($jointures) {
+               if ($jointures){
                        // on affecte pas ici les jointures explicites, mais dans la compilation
                        // ou elles seront completees des jointures declarees
                        $result->jointures_explicites = $jointures;
                }
-               
+
                if ($table_optionnelle){
                        $result->table_optionnelle = $type;
                }
-               
+
                // 1ere passe sur les criteres, vu comme des arguments sans fct
                // Resultat mis dans result->param
-               phraser_args($milieu,"/>","",$all_res,$result);
+               phraser_args($milieu, "/>", "", $all_res, $result);
 
                // En 2e passe result->criteres contiendra un tableau
                // pour l'instant on met le source (chaine) :
                // si elle reste ici au final, c'est qu'elle contient une erreur
-               $result->criteres =  substr($milieu,0,@strpos($milieu,$result->apres));
+               $result->criteres = substr($milieu, 0, @strpos($milieu, $result->apres));
                $milieu = $result->apres;
                $result->apres = "";
 
                //
                // Recuperer la fin :
                //
-               if ($milieu[0] === '/') {
-                       $suite = substr($milieu,2);
+               if ($milieu[0]==='/'){
+                       $suite = substr($milieu, 2);
                        $milieu = '';
                } else {
-                       $milieu = substr($milieu,1);
+                       $milieu = substr($milieu, 1);
                        $s = BALISE_FIN_BOUCLE . $id_boucle . ">";
                        $p = strpos($milieu, $s);
-                       if ($p === false) {
+                       if ($p===false){
                                $err_b = array('zbug_erreur_boucle_fermant',
                                        array('id' => $id_boucle));
                                erreur_squelette($err_b, $result);
                        }
 
-                       $suite = substr($milieu, $p + strlen($s));
+                       $suite = substr($milieu, $p+strlen($s));
                        $milieu = substr($milieu, 0, $p);
                }
 
@@ -731,9 +749,9 @@ function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=
                //
                $s = BALISE_POST_BOUCLE . $id_boucle . ">";
                $p = strpos($suite, $s);
-               if ($p !== false) {
+               if ($p!==false){
                        $result->apres = substr($suite, 0, $p);
-                       $suite = substr($suite, $p + strlen($s));
+                       $suite = substr($suite, $p+strlen($s));
                }
 
                //
@@ -741,18 +759,18 @@ function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=
                //
                $s = BALISE_ALT_BOUCLE . $id_boucle . ">";
                $p = strpos($suite, $s);
-               if ($p !== false) {
+               if ($p!==false){
                        $result->altern = substr($suite, 0, $p);
-                       $suite = substr($suite, $p + strlen($s));
+                       $suite = substr($suite, $p+strlen($s));
                }
-               $result->ligne = $ligne + substr_count($debut, "\n");
+               $result->ligne = $ligne+substr_count($debut, "\n");
                $m = substr_count($milieu, "\n");
                $b = substr_count($result->avant, "\n");
                $a = substr_count($result->apres, "\n");
 
-               if ($p = strpos($type, ':')) {
-                       $result->sql_serveur = substr($type,0,$p);
-                       $type = substr($type,$p+1);
+               if ($p = strpos($type, ':')){
+                       $result->sql_serveur = substr($type, 0, $p);
+                       $type = substr($type, $p+1);
                }
                $soustype = strtolower($type);
 
@@ -765,7 +783,7 @@ function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=
                        $err_b = true;
                else {
                        phraser_criteres($result->param, $result);
-                       if (strncasecmp($soustype, TYPE_RECURSIF, strlen(TYPE_RECURSIF)) == 0) {
+                       if (strncasecmp($soustype, TYPE_RECURSIF, strlen(TYPE_RECURSIF))==0){
                                $result->type_requete = TYPE_RECURSIF;
                                $args = $result->param;
                                array_unshift($args,
@@ -774,31 +792,34 @@ function public_phraser_html_dist($texte, $id_parent, &$boucles, $descr, $ligne=
                        }
                }
 
-               $result->avant = public_phraser_html_dist($result->avant, $id_parent,$boucles, $descr, $result->ligne);
-               $result->apres = public_phraser_html_dist($result->apres, $id_parent,$boucles, $descr, $result->ligne+$b+$m);
-               $result->altern = public_phraser_html_dist($result->altern,$id_parent,$boucles, $descr, $result->ligne+$a+$m+$b);
-               $result->milieu = public_phraser_html_dist($milieu, $id_boucle,$boucles, $descr, $result->ligne+$b);
+               $result->avant = public_phraser_html_dist($result->avant, $id_parent, $boucles, $descr, $result->ligne);
+               $result->apres = public_phraser_html_dist($result->apres, $id_parent, $boucles, $descr, $result->ligne+$b+$m);
+               $result->altern = public_phraser_html_dist($result->altern, $id_parent, $boucles, $descr, $result->ligne+$a+$m+$b);
+               $result->milieu = public_phraser_html_dist($milieu, $id_boucle, $boucles, $descr, $result->ligne+$b);
 
                // Prevenir le generateur de code que le squelette est faux
                if ($err_b) $result->type_requete = false;
 
                // Verifier qu'il n'y a pas double definition
                // apres analyse des sous-parties (pas avant).
-               
-               if (isset($boucles[$id_boucle])) {
+
+               if (isset($boucles[$id_boucle])){
                        $err_b_d = array('zbug_erreur_boucle_double',
-                                       array('id'=>$id_boucle));
+                               array('id' => $id_boucle));
                        erreur_squelette($err_b_d, $result);
-               // Prevenir le generateur de code que le squelette est faux
+                       // Prevenir le generateur de code que le squelette est faux
                        $boucles[$id_boucle]->type_requete = false;
                } else
                        $boucles[$id_boucle] = $result;
                $all_res = phraser_champs_etendus($debut, $ligne, $all_res);
                $all_res[] = &$boucles[$id_boucle];
-               $ligne += substr_count(substr($texte, 0, strpos($texte, $suite)), "\n");
+               if (!empty($suite)){
+                       $ligne += substr_count(substr($texte, 0, strpos($texte, $suite)), "\n");
+               }
                $texte = $suite;
        }
 
        return phraser_champs_etendus($texte, $ligne, $all_res);
 }
+
 ?>
index a5a87c1..4f7eb40 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 39467c7..e5b1b40 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3f615b0..d0cbd39 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 02846e6..0790313 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 22d55a7..1527f36 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cf0fc9e..3140ec3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9a450aa..736108e 100644 (file)
@@ -3,7 +3,7 @@
 /* *************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -112,28 +112,29 @@ $GLOBALS['spip_mysql_functions_1'] = array(
 'utf-8'=>array('charset'=>'utf8','collation'=>'utf8_general_ci'))
                );
 
-// http://doc.spip.org/@spip_mysql_set_charset
+
 /**
- * @param $charset
- * @param string $serveur
- * @param bool $requeter
- * @param bool $requeter
- * @return resource
+ * Définit un charset pour la connexion avec Mysql
+ * 
+ * @param string $charset Charset Ã  appliquer
+ * @param string $serveur Nom de la connexion
+ * @param bool $requeter  inutilisé
+ * @return resource       Ressource de résultats pour fetch()
  */
-function spip_mysql_set_charset($charset, $serveur='',$requeter=true,$requeter=true){
+function spip_mysql_set_charset($charset, $serveur='',$requeter=true){
        $connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
        spip_log("changement de charset sql : "."SET NAMES "._q($charset), _LOG_DEBUG);
        return mysql_query($connexion['last'] = "SET NAMES "._q($charset));
 }
 
-// http://doc.spip.org/@spip_mysql_get_charset
-/**
 
- * @param array $charset
- * @param string $serveur
- * @param bool $requeter
- * @return array
- *
+/**
+ * Teste si le charset indiqué est disponible sur le serveur SQL
+ * 
+ * @param array|string $charset Nom du charset Ã  tester.
+ * @param string $serveur       Nom de la connexion
+ * @param bool $requeter        inutilisé
+ * @return array                Description du charset (son nom est dans 'charset')
  */
 function spip_mysql_get_charset($charset=array(), $serveur='',$requeter=true){
        $connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
index 1d62a8f..9ce37df 100644 (file)
@@ -3,7 +3,7 @@
 /* *************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 855476a..9d384c3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6eded16..a701dff 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5afe581..d6dee23 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cc5196b..e194bc7 100644 (file)
@@ -3,7 +3,7 @@
 /* *************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6e99a2d..36ebd37 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1243ea2..8de98d1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6747a1b..184b172 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 36e2e84..f0b432e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7b9b0b9..459fb8d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index be65f87..28998a5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ceb97b7..16b940d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7cfc836..d2a02d1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1eb3153..4eb6b46 100644 (file)
@@ -122,6 +122,9 @@ RewriteRule ^favicon[.]ico$      spip.php?page=favicon.ico [QSA,L]
 RewriteRule ^sitemap[.]xml$      spip.php?page=sitemap.xml [QSA,L]
 ##
 
+# Favicon pour itrucs
+# Si vous avez le plugin filtres_images et qu'une méthode de retouche a Ã©té configurée, vous pouvez décommenter la ligne ci-dessous.
+#RewriteRule ^apple-touch-icon(-(\d+x\d+))?(-precomposed)?[.]png$      spip.php?page=apple-touch-icon.png&size=$2 [QSA,L]
 
 # expirer les images (pour contourner gros bug MSIE sur le cache)
 # note : a decommenter si vous voulez tester
index 42f1073..7d7589b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 311848a..d8b4b20 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 529d748..b74be95 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ddea288..cbd9515 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0129b68..92b40d5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c6e8ea6..1ad5c0a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c47a961..3621d21 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 86b571c..0fd5423 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 606900a..f8af513 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 11b16dc..d3e3d73 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index afbc2ba..9e76cf5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1629667..3f1ed51 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0d4b9a9..37a0ee7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index db1624a..1e13290 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ec07bd0..fc1f70f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 29b8479..ff380a9 100644 (file)
  */
 
 /**
- * Defines ctype functions if required
- * @todo make them methods of csstidy class
- * @version 1.0
+ * Defines ctype functions if required.
+ *
+ * @TODO: Make these methods of CSSTidy.
+ * @since 1.0.0
  */
-if (!function_exists('ctype_space')) {
-       /* ctype_space  Check for whitespace character(s) */
-       function ctype_space($text) {
-               return!preg_match("/[^\s\r\n\t\f]/", $text);
+if (!function_exists('ctype_space')){
+       /* ctype_space Check for whitespace character(s) */
+       function ctype_space($text){
+               return (1===preg_match("/^[ \r\n\t\f]+$/", $text));
        }
-
 }
-if (!function_exists('ctype_alpha')) {
-       /* ctype_alpha  Check for alphabetic character(s) */
-       function ctype_alpha($text) {
-               return preg_match("/[a-zA-Z]/", $text);
+if (!function_exists('ctype_alpha')){
+       /* ctype_alpha Check for alphabetic character(s) */
+       function ctype_alpha($text){
+               return (1===preg_match('/^[a-zA-Z]+$/', $text));
+       }
+}
+if (!function_exists('ctype_xdigit')){
+       /* ctype_xdigit Check for HEX character(s) */
+       function ctype_xdigit($text){
+               return (1===preg_match('/^[a-fA-F0-9]+$/', $text));
        }
-
 }
 
 /**
@@ -89,7 +94,7 @@ require('class.csstidy_optimise.php');
  * An online version should be available here: http://cdburnerxp.se/cssparse/css_optimiser.php
  * @package csstidy
  * @author Florian Schmitz (floele at gmail dot com) 2005-2006
- * @version 1.5.2
+ * @version 1.5.5
  */
 class csstidy {
 
@@ -142,7 +147,7 @@ class csstidy {
         * @var string
         * @access private
         */
-       public $version = '1.5.2';
+       public $version = '1.5.5';
        /**
         * Stores the settings
         * @var array
@@ -297,6 +302,7 @@ class csstidy {
                 */
                $this->settings['optimise_shorthands'] = 1;
                $this->settings['remove_last_;'] = true;
+               $this->settings['space_before_important'] = false;
                /* rewrite all properties with low case, better for later gzip OK, safe*/
                $this->settings['case_properties'] = 1;
                /* sort properties in alpabetic order, better for later gzip
@@ -616,7 +622,7 @@ class csstidy {
                                                        $this->at .= $this->_unicode($string, $i);
                                                }
                                                // fix for complicated media, i.e @media screen and (-webkit-min-device-pixel-ratio:1.5)
-                                               elseif (in_array($string{$i}, array('(', ')', ':', '.'))) {
+                                               elseif (in_array($string{$i}, array('(', ')', ':', '.', '/'))) {
                                                        $this->at .= $string{$i};
                                                }
                                        } else {
@@ -694,8 +700,8 @@ class csstidy {
                                                        $this->sel_separate[] = strlen($this->selector);
                                                } elseif ($string{$i} === '\\') {
                                                        $this->selector .= $this->_unicode($string, $i);
-                                               } elseif ($string{$i} === '*' && @in_array($string{$i + 1}, array('.', '#', '[', ':'))) {
-                                                       // remove unnecessary universal selector, FS#147
+                                               } elseif ($string{$i} === '*' && @in_array($string{$i + 1}, array('.', '#', '[', ':')) && ($i==0 OR $string{$i - 1}!=='/')) {
+                                                       // remove unnecessary universal selector, FS#147, but not comment in selector
                                                } else {
                                                        $this->selector .= $string{$i};
                                                }
index d42341c..1ceb21f 100644 (file)
@@ -269,7 +269,8 @@ class csstidy_optimise {
         */
        public function compress_important(&$string) {
                if ($this->parser->is_important($string)) {
-                       $string = $this->parser->gvw_important($string) . '!important';
+                       $important = $this->parser->get_cfg('space_before_important') ? ' !important' : '!important';
+                       $string = $this->parser->gvw_important($string) . $important;
                }
                return $string;
        }
@@ -899,7 +900,7 @@ class csstidy_optimise {
                $new_font_value = '';
                $important = '';
                // Skip if not font-family and font-size set
-               if (isset($input_css['font-family']) && isset($input_css['font-size'])) {
+               if (isset($input_css['font-family']) && isset($input_css['font-size']) && $input_css['font-family'] != 'inherit') {
                        // fix several words in font-family - add quotes
                        if (isset($input_css['font-family'])) {
                                $families = explode(',', $input_css['font-family']);
index 48aa897..5f4c2cd 100644 (file)
@@ -256,9 +256,11 @@ class csstidy_print {
 
                                case AT_END:
                                        $out = & $output;
-                                       $out .= $template[10] . str_replace("\n", "\n" . $template[10], $in_at_out);
+                                       $in_at_out = str_replace("\n\n", "\r\n", $in_at_out); // don't fill empty lines
+                                       $in_at_out = str_replace("\n", "\n" . $template[10], $in_at_out);
+                                       $in_at_out = str_replace("\r\n", "\n\n", $in_at_out);
+                                       $out .= $template[10] . $in_at_out . $template[9];
                                        $in_at_out = '';
-                                       $out .= $template[9];
                                        break;
 
                                case COMMENT:
index 74318be..e9eaed6 100644 (file)
@@ -1,9 +1,9 @@
 <paquet
        prefix="compresseur"
        categorie="performance"
-       version="1.8.11"
+       version="1.8.13"
        etat="stable"
-       compatibilite="[3.0.0;3.1.*]"
+       compatibilite="[3.0.0;3.0.*]"
        logo="images/compresseur-32.png"
 >      
 
index a6ffd49..e36a811 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 84c8d16..1e01ce9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1706b69..4220446 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cf90553..bbc1626 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c2e2505..c5b330a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 20821bb..ef229c2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d16bf49..4cc1460 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6e04049..17c1320 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 08c1b73..01c5f2f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7fdf3b1..f947531 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d007b0d..773a884 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8d6ae83..261bf40 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6618334..193fb72 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bfe43eb..5b79164 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d3233a7..c2a5acf 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 019a4c7..e764bdf 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -398,6 +398,7 @@ function rtl_visuel($texte, $rtl_global) {
 // http://code.spip.net/@printWordWrapped
 function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text, $textSize, $align="left", $hauteur_ligne = 0) {
        static $memps = array();
+       $fontps = false;
 
        // imageftbbox exige un float, et settype aime le double pour php < 4.2.0
        settype($textSize, 'double');
@@ -453,6 +454,7 @@ function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text
 
 
        $line = '';
+       $lines = array();
        while (count($words) > 0) {
                
                $mot = $words[0];
@@ -475,6 +477,7 @@ function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text
 
        // Deux passes pour recuperer, d'abord, largeur_ligne
        // necessaire pour alignement right et center
+       $largeur_max = 0;
        foreach ($lines as $line) {
                if ($rtl_global) $line = rtl_visuel($line, $rtl_global);
                
index 0c376e4..5ebbf9f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index de55df7..5b0b581 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9daae63..19a83d1 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4b23ce7..27f43db 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="images"
        categorie="multimedia"
-       version="1.1.10"
+       version="1.1.11"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="images/image_filtre-32.png"
index 983cb11..2377dd2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c643bf3..3cb32e5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f8a40a7..640ec82 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 41f1c28..da01906 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4c2a05a..8249d28 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2a5950e..79d13ed 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 72c52fe..b972171 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6f4979b..6efa293 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6d45950..0f57c22 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c09ed46..fa3f3aa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0446ead..09c96d3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 405073b..f1b7ee5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index 8522428..56948f7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1f3886f..b8daf20 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 45b7401..6d0b634 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5522d43..0463630 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f1e3d58..72e1558 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1e080f8..721f044 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 464915f..6794c01 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ddc90b4..e4698d5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a4e1e89..5875c7c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b133265..86059f5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index de76da9..2c96740 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 09015c3..524fdc4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 79b4bd3..4ef8397 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 81336c9..e210416 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bf203d0..1356a45 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9ae5c87..8cbadfa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c09e02a..dd82788 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c1b1c9d..dff2a17 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e16a562..a83b355 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 97326a7..bdaaa47 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 93d80b4..e7ab4fd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index 48836a9..bd805ed 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f5868e6..a87751f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a286486..aa0eea7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1c6c811..e11322a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e446b58..06c1cbc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index a310638..6086a93 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 492de79..bd94e0d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 044fd44..61c2e83 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a67af45..d34d98b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 38dfbe8..aa9aee1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index 3703a10..270ce40 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fbbbb15..382fe07 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 354f14c..b1f35af 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fa10723..b326cfb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 431cd01..8cbbffd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index 15952dd..3519880 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\\r
  *  SPIP, Systeme de publication pour l'internet                           *\r
  *                                                                         *\r
- *  Copyright (c) 2001-2014                                                *\r
+ *  Copyright (c) 2001-2016                                                *\r
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *\r
  *                                                                         *\r
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *\r
index 862d964..427abac 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3fbd607..543eefb 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9ef1e93..94d3373 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bed8089..11f6d9e 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9117bec..734cbc5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 931dd02..c88ead7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bdd6b26..a327514 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0d4e6a8..829e7ed 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3d69e3d..76ff3c9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 92815e2..3b3ddce 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 92ad33d..517e828 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 983f0d3..728ea76 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 22d6765..9a6aa5a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2231bf1..ba8e49a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 886e86c..9e7c29a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7bf3eb6..ca29e05 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 18e794f..0953cda 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 994af1d..ecab931 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ebe0bd3..95c03b6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a16bb16..175648a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e02fb95..b4036d6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2c922ab..5cb3a97 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 72bbd4b..bd38c00 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9074526..0f20db5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e1d2e2c..57a622e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 750cd00..bc0ea83 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 56c359a..06028cc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a54537d..be8e11d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 637eeae..9a5eca4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ee6949e..a0d1359 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5e47ba8..42b29de 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5e47ba8..42b29de 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8ea3830..a862788 100644 (file)
@@ -20,7 +20,7 @@
        [ | (#TOTAL_BOUCLE|>{200}|oui) [(#SELF|parametre_url{nb,1000}|lien_ou_expose{1000,#ENV{nb}|=={1000},ajax})]]
 </p>
 ]<//B_cpt_mot>
-<INCLURE{fond=prive/objets/liste/mots-admin,id_groupe,par=titre,ajax,env} />
+<INCLURE{fond=prive/objets/liste/mots-admin,id_groupe,par=multi titre,ajax,env} />
 [(#AUTORISER{creer,mot,'','',#ARRAY{id_groupe,#ID_GROUPE}})
        [(#URL_ECRIRE{mot_edit,new=oui&id_groupe=#ID_GROUPE}|parametre_url{redirect,#SELF}
                |icone_verticale{<:mots:icone_creation_mots_cles:>,mot-24.png,new,right})]
index 4b09e5d..bc681ee 100644 (file)
@@ -14,7 +14,7 @@
                                data,#INCLURE{fond=prive/objets/contenu/groupe_mots, id=#ID_GROUPE, id_groupe=#ID_GROUPE}}})]
                        </div>
                        <div class="nettoyeur"></div>
-                       <INCLURE{fond=prive/objets/liste/mots-admin,id_groupe,par=titre,ajax,env} />
+                       <INCLURE{fond=prive/objets/liste/mots-admin,id_groupe,par=multi titre,ajax,env} />
                        [(#AUTORISER{voir,groupemots,#ID_GROUPE})
                                [(#URL_ECRIRE{groupe_mots,id_groupe=#ID_GROUPE}
                                        |icone_verticale{<:mots:icone_voir_groupe_mots:>,groupe_mots-24.png,'',left})]
index d7ae686..6e5d52b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 186ea7b..ce6ca09 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2641f69..2798e33 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b1cbfb8..8c4da61 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 857ca80..5fe1f91 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4e1921f..144140b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 98f93ad..b11d1e2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6f6f6e4..53e01c2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a2e9e9b..2464bc6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6c4313b..a192915 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8823fd4..a3daa36 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 640f424..761ea6c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4c7bf89..ef1a3ca 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 03fd71c..a19d610 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d61305e..dac0225 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 34ad4ee..50a1719 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 15eaeb6..0006deb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d44b438..0c07ed1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3185e38..afd97eb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 02ceeb4..15d08e4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4e9f679..8036d5a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 81071bb..8822134 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 33eef76..996a0e3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 96a3f61..ee57b05 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 59623b8..d9acb40 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f38b8f6..20130b3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f753d5e..88f3654 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b54d674..a7a3d25 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 014a6cb..e88bf51 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 0672680..6d94929 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c0aacf1..94ba6b5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b18b37e..75e60b9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index bc987a2..28c6540 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5b29833..9fddcb8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 91a0522..5dea30b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6c0ba13..6eb47ef 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ea20048..676d5a9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8336201..5d3854e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b449dcc..421aaaf 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ccc5eb1..205b3a2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f22e703..9d75618 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 941d1d9..c669120 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1b9f24b..3427eb3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 22cf2b7..91ef056 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b2fd1ac..7e94e7b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5fe0d59..3186367 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 999f5c6..40d0c9c 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="revisions"
        categorie="edition"
-       version="1.7.10"
+       version="1.7.11"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="prive/themes/spip/images/revision-32.png"
index c612950..d382ebe 100644 (file)
@@ -25,7 +25,7 @@
                        <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
                                <td class='statut'>[(#INFO_STATUT{#OBJET,#ID_OBJET}|puce_statut{#OBJET})]</td>
                                <td class="type">[(#OBJET|objet_icone{16})]</td>
-                               <td class='diff'>#SET{diff,#ID_OBJET|revisions_diff{#OBJET,#ID_VERSION}}
+                               <td class='diff'>[(#REM) desactive/ perf issue #SET{diff,#ID_OBJET|revisions_diff{#OBJET,#ID_VERSION}} ]
                                [<a href="#" onclick="$(this).parent().next().find('.diff').toggle('fast');return false;" title="<:revisions:voir_differences|attribut_html:>">[(#CHEMIN_IMAGE{diff-16.png}|balise_img{<:revisions:voir_differences:>})]</a>
                                (#GET{diff}|oui)]
                                </td>
index a1751a8..13a005c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a740db6..454ede5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c75575c..c2c71f9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8098114..3679770 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6d8c635..c4418b2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2fd5464..8e6788f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 364b54e..47fe722 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 66c23e6..417a4a9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fcaca81..6f906fd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 71f9cf8..8aedc3a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fe007de..29dfef8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d5bceb7..44fe874 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index baf63b2..2ee3e4a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fce3588..0f995d8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 38ff0ba..d07005e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index be54831..302df4c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8c4d3c3..9d7d685 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 19f0574..df3d924 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index eb47437..ed8b5f1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -268,8 +268,9 @@ function inserer_article_syndique ($data, $now_id_syndic, $statut, $url_site, $u
        // Mettre a jour la date si lastbuilddate
        if ($data['lastbuilddate'])
                $vals['date']= date("Y-m-d H:i:s", $data['lastbuilddate']);
-                                   
-       sql_updateq('spip_syndic_articles', $vals, "id_syndic_article=$id_syndic_article");
+
+       include_spip('inc/modifier');
+       objet_modifier_champs('syndic_article',$id_syndic_article,array('data'=>$vals,'action'=>'syndiquer'),$vals);
 
        // Point d'entree post_syndication
        pipeline('post_syndication',
index 66775d3..2593d36 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -88,8 +88,15 @@ function analyser_site($url) {
                        $head = filtrer_entites($regs[1]);
                } else
                        $head = $texte;
-               if (preg_match(',<title[^>]*>(.*),i', $head, $regs))
-                       $result['nom_site'] = filtrer_entites(supprimer_tags(preg_replace(',</title>.*,i', '', $regs[1])));
+
+               if (preg_match(',<title[^>]*>(.*),ims', $head, $regs)){
+                       $titre = trim($regs[1]);
+                       if (!strlen($titre)){
+                               $titre = substr($head,strpos($head,$regs[0]));
+                       }
+                       $result['nom_site'] = filtrer_entites(supprimer_tags(preg_replace(',</title>.*$,ims', '', $titre)));
+               }
+
                if ($a = array_merge(
                        extraire_balises($head, 'meta'),
                        extraire_balises($head, 'http-equiv')
index 56d0e2d..f7bbc63 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -264,6 +264,21 @@ function analyser_backend($rss, $url_syndic='') {
                // passer l'url en absolue
                $data['url'] = url_absolue(filtrer_entites($data['url']), $url_syndic);
 
+               // si on demande un dereferencement de l'URL, il faut verifier que ce n'est pas une redirection
+               if (_SYNDICATION_DEREFERENCER_URL){
+                       $target = $data['url'];
+                       include_spip("inc/distant");
+                       for ($i = 0; $i<10; $i++){
+                               // on fait un GET et pas un HEAD car les vieux SPIP ne repondent pas la redirection avec un HEAD (honte) sur un article virtuel
+                               $res = recuperer_lapage($target, false, "GET", 4096);
+                               if (!$res) break; // c'est pas bon signe car on a pas trouve l'URL...
+                               if (is_array($res))     break; // on a trouve la page, donc on a l'URL finale
+                               $target = $res; // c'est une redirection, on la suit pour voir ou elle mene
+                       }
+                       // ici $target est l'URL finale de la page
+                       $data['url'] = $target;
+               }
+
                // Trouver les microformats (ecrase les <category> et <dc:subject>)
                if (preg_match_all(
                ',<a[[:space:]]([^>]+[[:space:]])?rel=[^>]+>.*</a>,Uims',
index 233a5c4..66dc720 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7894bd7..c34ec28 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="sites"
        categorie="edition"
-       version="1.7.14"
+       version="1.7.19"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="prive/themes/spip/images/site-32.png"
index 40ecc8d..2d685e8 100644 (file)
@@ -8,7 +8,7 @@
 #ANCRE_PAGINATION
 <div class="liste-objets syndic_articles">
 <table class='spip liste'>
-[<caption><span class="image_loading"></span><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{info_1_article_syndique,info_nb_articles_syndiques}})</strong></caption>]
+[<caption><span class="image_loading"></span><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{sites:info_1_article_syndique,sites:info_nb_articles_syndiques}})</strong></caption>]
        <thead>
                <tr class='first_row'>
                        <th class='statut' scope='col'>[(#TRI{statut,<span title="<:lien_trier_statut|attribut_html:>">#</span>,ajax})]</th>
@@ -25,7 +25,8 @@
                <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
                        <td class='statut'>[(#STATUT|puce_statut{syndic_article})]</td>
                        <td class='titre principale'>[<a
-                                       href="(#URL_ARTICLE)"
+                                       href="(#URL_ARTICLE)"[
+                                       (#LANG|=={#ENV{lang}}|non)hreflang="#LANG"]
                                                title="<:info_numero_abbreviation|attribut_html:> #ID_SYNDIC_ARTICLE">#SET{a,'</a>'}]#TITRE[(#GET{a})]
                                <span class="auteurs">([(#LESAUTEURS), ][(#DATE|affdate_court)])</span>
                                [(#TAGS|afficher_enclosures)]
index 0098c76..0843b3c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f14defa..ba587fa 100644 (file)
@@ -58,6 +58,7 @@
 
 <BOUCLE_test(SYNDIC_ARTICLES){id_syndic=#ID_SYNDIC}{0,1}{si #SYNDICATION|=={non}}>
        [(#AUTORISER{purger,site,#ID_SITE}|oui)
+               <INCLURE{fond=prive/objets/liste/syndic_articles,id_syndic,titre=<:sites:titre_articles_syndiques:>,par=date,ajax} />
                <div class='purger_syndic'>
                        [(#BOUTON_ACTION{<:sites:lien_purger_syndication:>,#URL_ACTION_AUTEUR{purger_site,#ID_SYNDIC,#SELF},ajax,<:sites:confirmer_purger_syndication:>})]
                </div>
index b62a2d3..7c24ddf 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                 *
+ *  Copyright (c) 2001-2016                                                 *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7186378..4082c6a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 83a775e..af068a8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e6ddbcb..3f49f09 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 700c2f6..4f9a24d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d7481c5..2cb1fdc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b27a19a..4466bf7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d0d86fc..cb52016 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c4c5b1f..ae7d771 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cb58c60..d5e381b 100644 (file)
@@ -207,6 +207,10 @@ www\.lemmefind\.fr
 query=
 arianna\.libero\.it
 
+[Lilo]
+q=
+(.*\.|)uselilo\.org
+
 [Lost]
 x_query=
 (www\.)?lo\.st
index d99d1fc..efd0215 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 703ca87..e698e8d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 605bfb7..5cc0387 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 80b070b..7f1f1e0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8e789ab..36e3471 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d9497e8..51a82ab 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fab7ffa..c98e9f6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9f60f3a..92e6759 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b7a8eee..8166001 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 8128e74..1ff2fd8 100644 (file)
@@ -1,9 +1,9 @@
 <paquet
        prefix="stats"
        categorie="statistique"
-       version="0.4.34"
+       version="0.4.36"
        etat="stable"
-       compatibilite="[3.0.0;3.1.*]"
+       compatibilite="[3.0.0;3.0.*]"
        logo="prive/themes/spip/images/statistique-32.png"
        schema="1.0.0"
 >      
index ea7fda5..3917022 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 70effbe..99a6b4b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4cb6d1a..27f3cd3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 11a15c4..3aaa7ec 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index dbfdc39..b19ed87 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 07e2b8f..e1295e6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1bcc058..a2725fe 100644 (file)
@@ -46,7 +46,7 @@
                                <input type="submit" class="submit" name="appliquer" value="<:svp:bouton_appliquer:>" />
                        </fieldset>]
                        <script type="text/javascript">
-                       //<![CDATA[
+                       /*<![CDATA[*/
                                (function($){
                                        $("#select_tous").click(function(){
                                                jQuery("input.select_plugin").attr("checked",true);
@@ -80,7 +80,7 @@
                                        onAjaxLoad(cocher_plugins_up);
                                        onAjaxLoad(remonter_sur_erreurs);
                                })(jQuery);
-                       //]]>
+                       /*]]>*/
                        </script>
                </div>
        </form>
index 17ad64d..96d2206 100644 (file)
@@ -92,7 +92,7 @@
 </B_plugins>
 
 <script type="text/javascript">
-//<![CDATA[
+/*<![CDATA[*/
        (function($){
                $('.plugins li.item a[rel=info]').click(function(){
                        var li = $(this).parents('li').eq(0);
                        });
                }
        })(jQuery);
-//]]>
-</script>
+/*]]>*/
+</script>
\ No newline at end of file
index 16fb81b..88db73b 100644 (file)
@@ -19,7 +19,7 @@
                <input type="submit" name="annuler_actions" class="submit annuler_actions" value="<:bouton_annuler:>" />
                <input type="submit" name="valider_actions" class="submit valider_actions" value="<:bouton_valider:>" />
        </p>
-       <script type="text/javascript">
+       <script type="text/javascript">/*<!\[CDATA\[*/
                [(#REM)
                        Fonctionnement du JS.
                                - overlayClose // pas de click en dehors des Ã©léments prévus
@@ -35,7 +35,6 @@
                                - onClose          // apres la fermeture, on clique le bouton ayant 'fire'
                                                
                ]
-               <!--
                (function($){
                        $(function(){
                                if ($.modalbox !== 'undefined') {
@@ -57,6 +56,6 @@
                                }
                        });
                })(jQuery);
-               -->
+               /*\]\]>*/
        </script>
 </div>]
index 7c7d562..d50a3e4 100644 (file)
@@ -51,7 +51,7 @@
 </B_plugins_trouves>
 
 <script type="text/javascript">
-//<![CDATA[
+/*<![CDATA[*/
        jQuery(function(){
                jQuery('.plugins li.item a[rel=info]').click(function(){
                        var li = jQuery(this).parents('li').eq(0);
@@ -74,5 +74,5 @@
                        }
                }); 
        });
-//]]>
+/*]]>*/
 </script>
index a3dcc18..73770cb 100644 (file)
@@ -1006,7 +1006,7 @@ class Decideur {
                                                // absent ou erreur ou pas compatible
                                                $etat = $err ? 'erreur' : ($ninfo ? 'conflit' : 'absent');
                                                // conflit signifie qu'il existe le prefixe actif, mais pas a la version demandee
-                                               $this->log("Dedendance " . $p . " a resoudre ! ($etat)");
+                                               $this->log("Dependance " . $p . " a resoudre ! ($etat)");
 
                                                switch ($etat) {
                                                        // commencons par le plus simple :
index e48afe4..d1851cd 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="svp"
        categorie="maintenance"
-       version="0.80.27"
+       version="0.80.28"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="svp-64.png"
index 77d617c..6bf2ebd 100644 (file)
@@ -30,8 +30,8 @@
        #FORMULAIRE_ADMIN_PLUGIN{#ENV{voir},#ENV{verrouille},#ENV{id_paquet}}
 </div>
 <script type="text/javascript">
-    //<![CDATA[
-    jQuery(function(){
+       /*<![CDATA[*/
+       jQuery(function(){
                jQuery('#contenu .svp_retour').on('hover',function(){
                        if (jQuery('.box .inner .hd h3 img.close', this).length == 0) {
                                jQuery('.box .inner .hd h3', this)
@@ -41,6 +41,6 @@
                                        });
                        }
                });
-    });
-    //]]>
+       });
+       /*]]>*/
 </script>
\ No newline at end of file
index 02fc3f6..3da9589 100644 (file)
@@ -108,8 +108,9 @@ function teleporter_http_recuperer_source($source,$dest_tmp){
 
        $dest_tmp = preg_replace(";\.[\w]{2,3}$;i","",$dest_tmp).".$extension";
 
+       if (!defined('_SVP_PAQUET_MAX_SIZE')) define('_SVP_PAQUET_MAX_SIZE', 67108864); // 64Mo
        include_spip('inc/distant');
-       $dest_tmp = copie_locale($source,'force',$dest_tmp);
+       $dest_tmp = copie_locale($source,'force',$dest_tmp,_SVP_PAQUET_MAX_SIZE);
        if (!$dest_tmp
          OR !file_exists($dest_tmp = _DIR_RACINE . $dest_tmp)) {
                spip_log("Chargement impossible de la source $source","teleport"._LOG_ERREUR);
index 854e29b..d5a9804 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
diff --git a/www/plugins-dist/textwheel/inc/memoization-mini.php b/www/plugins-dist/textwheel/inc/memoization-mini.php
deleted file mode 100644 (file)
index 0b6852b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-if (!defined('_ECRIRE_INC_VERSION')) return;
-
-# memoization minimale (preferer le plugin memoization)
-function cache_get($key) {
-       return @unserialize(file_get_contents(_DIR_CACHE."wheels/".$key.".txt"));
-}
-function cache_set($key, $value) {
-       $dir = sous_repertoire(_DIR_CACHE,"wheels/");
-       return ecrire_fichier($dir.$key.".txt", serialize($value));
-}
-
-?>
index cfafc56..83d03ed 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3ec42c8..8f438e6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 23acd7e..089d9dc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -86,17 +86,15 @@ class SPIPTextWheelRuleset extends TextWheelRuleSet {
                $key = 'tw-'.md5(_WHEELS_VERSION."-".serialize($ruleset).$callback.$class._DIR_RACINE);
 
                # lecture du cache
-               include_spip('memoization_options');
-               if (!function_exists('cache_get')) include_spip('inc/memoization-mini');
                if ((!defined('_VAR_MODE') OR _VAR_MODE!='recalcul')
-                 AND $cacheruleset = cache_get($key))
+                 AND $cacheruleset = tw_cache_get($key))
                        return $cacheruleset;
 
                # calcul de la wheel
                $ruleset = parent::loader($ruleset, $callback, $class);
 
                # ecriture du cache
-               cache_set($key, $ruleset);
+               tw_cache_set($key, $ruleset);
 
                return $ruleset;
        }
@@ -109,4 +107,36 @@ function tw_trig_purger($quoi){
        return $quoi;
 }
 
-?>
+
+/**
+ * Lire une valeur en cache
+ * memoization minimale
+ * (utilise le plugin memoization si disponible)
+ *
+ * @param string $key
+ * @return mixed
+ */
+function tw_cache_get($key) {
+       if (function_exists('cache_get')){
+               return cache_get($key);
+       }
+       return @unserialize(file_get_contents(_DIR_CACHE."wheels/".$key.".txt"));
+}
+
+/**
+ * Ecrire une valeur en cache
+ * memoization minimale
+ * (utilise le plugin memoization si disponible)
+ *
+ * @param string $key
+ * @param mixed $value
+ * @param int|null $ttl
+ * @return bool
+ */
+function tw_cache_set($key, $value, $ttl=null) {
+       if (function_exists('cache_set')){
+               return cache_set($key, $value, $ttl);
+       }
+       $dir = sous_repertoire(_DIR_CACHE,"wheels/");
+       return ecrire_fichier($dir.$key.".txt", serialize($value));
+}
index 7a661be..e792fd9 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="tw"
        categorie="edition"
-       version="0.8.30"
+       version="0.8.31"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="textwheel-32.png"
index ebed71b..1525ca6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ddf3f33..8ec2f98 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ba4cc95..e07ac49 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 67a538e..ded6a83 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -19,14 +19,20 @@ function action_supprimer_url_dist($arg=null) {
                $securiser_action = charger_fonction('securiser_action', 'inc');
                $arg = $securiser_action();
        }
-       $arg = explode('-',$arg);
-       $id_parent = array_shift($arg);
-       $url = implode('-',$arg);
+       if (strncmp($arg,"-1-",3)==0){
+               $id_parent = -1;
+               $url = substr($arg,3);
+       }
+       else {
+               $arg = explode('-',$arg);
+               $id_parent = array_shift($arg);
+               $url = implode('-',$arg);
+       }
 
        $where = 'id_parent='.intval($id_parent)." AND url=".sql_quote($url);
        if($row = sql_fetsel('*','spip_urls',$where)){
 
-               if (autoriser('modifier',$row['type'],$row['id_objet'])){
+               if (autoriser('modifierurl',$row['type'],$row['id_objet'])){
                        sql_delete('spip_urls',$where);
                }
                else
index 8aa9634..8c350e5 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 42611db..93677fb 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -19,12 +19,11 @@ function action_urls_liberer_dist() {
        $arg = $securiser_action();
 
        include_spip('inc/autoriser');
-       if (autoriser('modifier',$type,$id)){
-               $arg = explode('-',$arg);
-               $type = array_shift($arg);
-               $id = array_shift($arg);
-               $url = implode('-',$arg);
-
+       $arg = explode('-',$arg);
+       $type = array_shift($arg);
+       $id = array_shift($arg);
+       $url = implode('-',$arg);
+       if (autoriser('modifierurl',$type,$id)){
                include_spip('action/editer_url');
                url_delete($type, $id, $url);
        }
index 44d5dc3..1bb406b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -19,12 +19,11 @@ function action_urls_verrouiller_dist() {
        $arg = $securiser_action();
 
        include_spip('inc/autoriser');
-       if (autoriser('modifier',$type,$id)){
-               $arg = explode('-',$arg);
-               $type = array_shift($arg);
-               $id = array_shift($arg);
-               $url = implode('-',$arg);
-
+       $arg = explode('-',$arg);
+       $type = array_shift($arg);
+       $id = array_shift($arg);
+       $url = implode('-',$arg);
+       if (autoriser('modifierurl',$type,$id)){
                include_spip('action/editer_url');
                url_verrouiller($type, $id, $url);
        }
index c4245eb..e02ac55 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e4030fa..f083978 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3dbee8c..5e149a6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3504bd4..9ca8f4b 100644 (file)
@@ -1,7 +1,7 @@
 <paquet
        prefix="urls"
        categorie="statistique"
-       version="1.4.26"
+       version="1.4.29"
        etat="stable"
        compatibilite="[3.0.0;3.0.*]"
        logo="prive/themes/spip/images/url-32.png"
index b92f3a9..0ab9ac1 100644 (file)
@@ -1,7 +1,7 @@
 [(#INFO_STATUT{#OBJET,#ID_OBJET}|!={prepa}|oui)
 <div class="editer_urls">
        [<span class='link'>
-               #SET{auth,#AUTORISER{modifier,#OBJET,#ID_OBJET}}
+               #SET{auth,#AUTORISER{modifierurl,#OBJET,#ID_OBJET}}
                [(#GET{auth})
                <a href="#"
                title="Modifier l'URL"
index df18e0e..c1c11be 100644 (file)
@@ -34,7 +34,7 @@
                        <td class='objet'><a href="[(#ID_OBJET|generer_url_entite{#TYPE})]">[(#TYPE|objet_info{texte_objet}|_T)]&nbsp;#ID_OBJET</a></td>
                        <td class='parent'>[(#ID_PARENT|?{#ID_PARENT})]</td>
                        <td class='date secondaire'>[(#DATE|affdate_jourcourt)]</td>
-                       <td class='action'>[(#AUTORISER{modifier,#TYPE,#ID_OBJET})[(#BOUTON_ACTION{[(#CHEMIN_IMAGE{supprimer-12}|balise_img{<:urls:bouton_supprimer_url:>})],[(#URL_ACTION_AUTEUR{supprimer_url,[(#ID_PARENT)-#URL],#SELF})],ajax})]]</td>
+                       <td class='action'>[(#AUTORISER{modifierurl,#TYPE,#ID_OBJET})[(#BOUTON_ACTION{[(#CHEMIN_IMAGE{supprimer-12}|balise_img{<:urls:bouton_supprimer_url:>})],[(#URL_ACTION_AUTEUR{supprimer_url,[(#ID_PARENT)-#URL],#SELF})],ajax})]]</td>
                </tr>
        </BOUCLE_liste_urls>
        </tbody>
index 63abdeb..a1f1484 100644 (file)
@@ -1,6 +1,6 @@
 [(#AUTORISER{administrer,url}|sinon_interdire_acces)]
 #BOITE_OUVRIR{'',raccourcis}
-[(#AUTORISER{modifier})
+[(#AUTORISER{modifierurl})
 [(#BOUTON_ACTION{[(#CHEMIN_IMAGE{url-edit-24.png}|balise_img)<:urls:actualiser_toutes:>],#URL_ACTION_AUTEUR{urls_actualiser,'',#SELF},icone horizontale})]
 ]
 #BOITE_FERMER
index ecd85ea..e5eea98 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -540,7 +540,7 @@ function urls_arbo_dist($i, $entite, $args='', $ancre='') {
                                                                                        // puis le bon parent avec 1 segment
                                                                                        // puis un parent indefini (le 0 de preference) et les deux segments
                                                                                        // puis un parent indefini (le 0 de preference) et 1 segment
-                                                                                       (intval($cp)?"id_parent=".intval($cp)." DESC, ":"")."segments DESC, id_parent"
+                                                                                       (intval($cp)?"id_parent=".intval($cp)." DESC, ":"id_parent>=0 DESC, ")."segments DESC, id_parent"
                        );
                        if ($row){
                                if (!is_null($type) AND $row['url']==$type){
@@ -643,7 +643,9 @@ function urls_arbo_dist($i, $entite, $args='', $ancre='') {
                        }
                }
        }
-       define('_SET_HTML_BASE',1);
+       if (!defined('_SET_HTML_BASE')){
+               define('_SET_HTML_BASE',1);
+       }
 
        return array($contexte, $entite, $url_redirect, null);
 }
index 1864338..ab1a565 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 693d74e..85d82df 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3ce5d55..360b8f0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e32a5f5..f1254ae 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b173fb4..07a8682 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 62b87df..7bfd202 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5bb69c4..b9d519d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 90d9357..024013d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index eeb1b30..bf64ede 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -25,6 +25,24 @@ function autoriser_controlerurls_menu_dist($faire, $type='', $id=0, $qui = NULL,
        return autoriser('administrer','url');
 }
 
+function autoriser_modifierurl($faire, $type='', $id=0, $qui = NULL, $opt = NULL){
+       if (autoriser('modifier',$type,$id,$qui,$opt)){
+               return true;
+       }
+
+       // si pas le droit de 'modifier', regarder d'un peu plus pres pourquoi
+       if (!$type OR !intval($id)) {
+               return false;
+       }
+       // verifier si l'objet existe encore en base
+       $table_sql = table_objet_sql($type);
+       $primary = id_table_objet($type);
+       if (!sql_countsel($table_sql,"$primary=".intval($id))){
+               return autoriser('administrer','url');
+       }
+       return false;
+}
+
 function urls_afficher_fiche_objet($flux){
        if (isset($GLOBALS['meta']['urls_activer_controle'])
                AND $GLOBALS['meta']['urls_activer_controle']=='oui'
@@ -40,4 +58,4 @@ function urls_afficher_fiche_objet($flux){
        }
        return $flux;
 }
-?>
\ No newline at end of file
+?>
index fc713cc..ee7b17d 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 7f7e521..a39ead1 100644 (file)
@@ -1,7 +1,7 @@
 /**************************************************************************/
 /*  SPIP, Systeme de publication pour l'internet                          */
 /*                                                                        */
-/*  Copyright (c) 2001-2014                                               */
+/*  Copyright (c) 2001-2016                                               */
 /*  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James */
 /*                                                                        */
 /*  Ce programme est un logiciel libre distribue sous licence GNU/GPL.    */
index 48d5d3e..4bb2a52 100644 (file)
@@ -5,7 +5,7 @@
 /**************************************************************************/
 /*  SPIP, Systeme de publication pour l'internet                          */
 /*                                                                        */
-/*  Copyright (c) 2001-2014                                               */
+/*  Copyright (c) 2001-2016                                               */
 /*  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James */
 /*                                                                        */
 /*  Ce programme est un logiciel libre distribue sous licence GNU/GPL.    */
index bc98716..96a12f6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cd7a49b..c68b8c9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ca6d5b8..0ff47b3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index b1d675e..68e8125 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 4c50131..90793b1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d6f084c..83e2ee9 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a27c02f..6e37ee3 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 3190877..d00f70c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 899ebee..6982337 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5b13e91..86021a8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index beede93..e492751 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a15523a..4e703e0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ef6f3f3..15f680e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 55a639d..1cc1d23 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e29582d..560901f 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 11ebe7a..7120eb7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6b8f5bf..539f1dd 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c986540..c73dbca 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 31c5cd1..346ed19 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 9eff5ea..b8438ff 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 230063e..f8aebcc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 405f72e..11683dc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 794c27a..531ee33 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d75c3e4..b027b99 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d50ac64..0e5abaa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 16ff865..0fcea52 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index e7fc0f8..20f03b6 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index fe914a5..ef2d6c8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index f314484..596dfc4 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index a210408..29ede2c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 822b270..d49e040 100644 (file)
@@ -1,7 +1,7 @@
 #SET{p,pr_#ID_RUBRIQUE}<B_enfants>
 [<p class='pagination'>(#PAGINATION)</p>]
 <ul class='items'>
-<BOUCLE_enfants(RUBRIQUES){id_parent=#ID_RUBRIQUE}{statut?}{pagination 100 #GET{p}}><li
+<BOUCLE_enfants(RUBRIQUES){id_parent=#ID_RUBRIQUE}{statut?}{pagination 100 #GET{p}}{par num titre, titre}><li
        class='rubrique'>[(#ENV{rubriques,0}|oui)<a
        href='#' onclick="jQuery(this).item_pick('rubrique|#ID_RUBRIQUE','#ENV{name,id_item}','[(#TITRE*|extraire_multi|attribut_html|texte_script|replace{'&#039;',#VAL{'\\'}|concat{#EVAL{chr(39)}}})]','rubrique');return false;"
 ><img
index d83adaf..fddf518 100644 (file)
@@ -11,7 +11,7 @@
                        title="<:bouton_choisir:> : [(#TITRE|attribut_html|couper{80})]"
                        class="choisir"
                        href="#"
-                       onclick="jQuery(this).item_pick('article|#ID_ARTICLE','#ENV{name,id_item}','#TITRE','article');return false;"
+                       onclick="jQuery(this).item_pick('article|#ID_ARTICLE','#ENV{name,id_item}','[(#TITRE|textebrut|texte_script)]','article');return false;"
                ><:bouton_choisir:></a>]
        </li>
 </BOUCLE_enfants>
index e204d6a..e606766 100644 (file)
@@ -11,7 +11,7 @@
                        title="<:bouton_choisir:> : [(#TITRE|attribut_html|couper{80})]"
                        class="choisir"
                        href="#"
-                       onclick="jQuery(this).item_pick('rubrique|#ID_RUBRIQUE','#ENV{name,id_item}','#TITRE','rubrique');return false;"
+                       onclick="jQuery(this).item_pick('rubrique|#ID_RUBRIQUE','#ENV{name,id_item}','[(#TITRE|textebrut|texte_script)]','rubrique');return false;"
                ><:bouton_choisir:></a>]
        </li>
 </BOUCLE_enfants>
index d92cc0d..f392b8b 100644 (file)
@@ -11,7 +11,7 @@
                        title="<:bouton_choisir:> : [(#TITRE|attribut_html|couper{80})]"
                        class="choisir"
                        href="#"
-                       onclick="jQuery(this).item_pick('article|#ID_ARTICLE','#ENV{name,id_item}','#TITRE','article');return false;"
+                       onclick="jQuery(this).item_pick('article|#ID_ARTICLE','#ENV{name,id_item}','[(#TITRE|textebrut|texte_script)]','article');return false;"
                ><:bouton_choisir:></a>]
        </li>
 </BOUCLE_enfants>
index 0f3666d..23c235a 100644 (file)
@@ -11,7 +11,7 @@
                        title="<:bouton_choisir:> : [(#TITRE|attribut_html|couper{80})]"
                        class="choisir"
                        href="#"
-                       onclick="jQuery(this).item_pick('rubrique|#ID_RUBRIQUE','#ENV{name,id_item}','#TITRE','rubrique');return false;"
+                       onclick="jQuery(this).item_pick('rubrique|#ID_RUBRIQUE','#ENV{name,id_item}','[(#TITRE|textebrut|texte_script)]','rubrique');return false;"
                ><:bouton_choisir:></a>]
        </li>
 </BOUCLE_enfants>
index 01929de..7c1d794 100644 (file)
@@ -12,8 +12,8 @@
        <a
                href="#"
                class="choisir_ici"
-               title="<:bouton_choisir:> : #GET{titre}"
-               onclick="jQuery(this).item_pick('[(#ENV{quoi}|objet_type)]|#ENV{id_objet}','#ENV{name,id_item}','#GET{titre}','#ENV{quoi}');return false;"
+               title="<:bouton_choisir:> : [(#GET{titre}|attribut_html)]"
+               onclick="jQuery(this).item_pick('[(#ENV{quoi}|objet_type)]|#ENV{id_objet}','#ENV{name,id_item}','[(#GET{titre}|textebrut|texte_script)]','#ENV{quoi}');return false;"
        ><span><:bouton_choisir:></span></a>
 ]
 
index cbf0473..998afaa 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c5b2efa..c12d3ee 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -39,7 +39,7 @@ function informer_auteur($bof)
                $fauxalea2 = md5('fauxalea'.secret_du_site().$login.ceil(date('U')/86400));
 
                $row = array('login' => $login,
-                'cnx' => 0,
+                'cnx' => '0',
                 'logo' => "",
                 'alea_actuel' => substr_replace($fauxalea1,'.',24,0),
                 'alea_futur' => substr_replace($fauxalea2,'.',24,0)
index 64ef2d2..70dddd6 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * autosave plugin
  *
- * Copyright (c) 2009-2014 Fil (fil@rezo.net)
+ * Copyright (c) 2009-2016 Fil (fil@rezo.net)
  * Dual licensed under the MIT and GPL licenses:
  * http://www.opensource.org/licenses/mit-license.php
  * http://www.gnu.org/licenses/gpl.html
index ffe7af0..89bca2a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index cabf907..584608c 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index ffe7af0..89bca2a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 2a855c9..dcc68bc 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 832b52f..8bd75d7 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 6e5528e..c9822a2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 1d8e1d2..a24afbf 100644 (file)
@@ -51,7 +51,7 @@ a:active.spip-admin-boutons,
        border-bottom:2px solid #FEFF7F !important;
        background:url(images/fond-inclure.png) repeat top left !important;
 }
-.inclure_blocs > h6 {background:#FEFF7F;margin:0;padding:2px;margin-bottom:2px;font-family: Courier, "Courier New", monospace;font-size: 0.8em;}
+.inclure_blocs > h6 {background:#FEFF7F;color:#000000;margin:0;padding:2px;margin-bottom:2px;font-family: Courier, "Courier New", monospace;font-size: 0.8em;}
 .inclure_blocs > h6:hover,
 .inclure_blocs.hover {
        background-color: #FDFF1F !important;
index 8892cc7..67316ab 100644 (file)
@@ -5,7 +5,7 @@
                <div class='largeur clearfix'>
                        <a href='#conteneur' onclick='return focus_zone("#conteneur")'>Aller au contenu</a> |
                        <a href='#bando_navigation' onclick='return focus_zone("#bando_navigation")'>Aller &agrave; la navigation</a> |
-                       <a href='#recherche' onclick='return focus_zone("#recherche")'>Aller &agrave; la recherche</a>
+                       <a href='#recherche' onclick='return focus_zone("#rapides .formulaire_recherche")'>Aller &agrave; la recherche</a>
                </div>
        </div>
 
index 6198bc2..4e8d250 100644 (file)
@@ -312,6 +312,7 @@ input[type="submit"],input[type="reset"] {font-size: inherit;}
 .formulaire_traduire .liste-objets {margin-top:0;margin-bottom:0;}
 .formulaire_traduire .liste-objets .first_row {display:none;}
 .formulaire_traduire .supprimer_trad {float:#ENV{right};}
+.formulaire_traduire .voir_traductions {overflow: visible;}
 
 /* les boutons action */
 form.bouton_action_post, form.bouton_action_post div {display:inline;}
@@ -322,4 +323,6 @@ form.bouton_action_post.link button.submit, .formulaire_spip .boutons input.link
 form.bouton_action_post.link button.submit:hover, .formulaire_spip .boutons input.link:hover,.formulaire_spip button.link:hover {border-bottom:1px solid;padding:0;}
 
 /* formulaire_editer_logo */
-.formulaire_editer_logo .titrem,.formulaire_editer_logo .ajouter_survol {text-transform: uppercase;}
\ No newline at end of file
+.formulaire_editer_logo .titrem,.formulaire_editer_logo .ajouter_survol {text-transform: uppercase;}
+/* Date picker : passer par dessus des icones et du menu haut */
+.ui-datepicker { z-index: 1001 !important;}
index cbddc50..c0d16c1 100644 (file)
 .onglets_simple ul {list-style:none;margin-#ENV{left}:1px;padding:0;}
 .onglets_simple ul li {float:#ENV{left};padding:0;margin:0;margin-bottom:-1px;}
 
-.onglets_simple ul li strong,.onglets_simple ul li a {display:block;float:#ENV{left};padding:4px 7px;border:1px solid #ENV{foncee};margin-#ENV{left}:5px;background-color:#eee;background-position:center left;background-repeat:no-repeat;}
+.onglets_simple ul li strong,.onglets_simple ul li a {display:block;float:#ENV{left};padding:4px 7px;border:1px solid #ENV{foncee};margin-#ENV{left}:5px;background-color:#eee;background-position:center #ENV{left};background-repeat:no-repeat;}
 .onglets_simple ul li strong,.onglets_simple ul li a:hover {background-color:#f8f7f3;}
 .onglets_simple ul li a:hover {cursor:hand;cursor:pointer;}
 .onglets_simple ul li strong {border-bottom:1px solid #f8f7f3;color:#555;}
index b1fc774..25cf164 100644 (file)
@@ -87,7 +87,7 @@ strong, b { font-weight: bold; }
 em, i { font-style: italic; }
 small, .small { font-size: 80%; }
 big, .big { font-size: 150%; }
-abbr[title], acronym[title] { border-bottom: .1em dotted; cursor: help; }
+abbr[title], acronym[title] { border-bottom: .1em dotted; text-decoration: none; cursor: help; }
 dfn { font-weight: bold; font-style: italic; }
 del { text-decoration: line-through; }
 ins { text-decoration: none; background-color: #FFC; }
index 20c2d5b..d22dd83 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index d3f563f..be26771 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5fb3267..2f5908a 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index c00b0b5..f5db8f8 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 48ba0ea..32ec208 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 5d02a1e..c501605 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
index 18a77d5..dc0e7c8 100644 (file)
@@ -1,10 +1,10 @@
 <svn_revision>
 <text_version>
-Origine: svn://trac.rezo.net/spip/tags/spip-3.0.21
-Revision: 22462
-Dernier commit: 2015-10-31 22:17:30 +0100 
+Origine: svn://trac.rezo.net/spip/tags/spip-3.0.22
+Revision: 22914
+Dernier commit: 2016-03-10 15:00:32 +0100 
 </text_version>
-<origine>svn://trac.rezo.net/spip/tags/spip-3.0.21</origine>
-<revision>22462</revision>
-<commit>2015-10-31 22:17:30 +0100 </commit>
+<origine>svn://trac.rezo.net/spip/tags/spip-3.0.22</origine>
+<revision>22914</revision>
+<commit>2016-03-10 15:00:32 +0100 </commit>
 </svn_revision>
\ No newline at end of file