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

Error 403

You are not authorized to view this page ($ecran_securite_raison)

"); } +/* + * 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("Status 503: Site temporarily unavailable

Status 503

Site temporarily unavailable (load average $load)

"); } - - -?> \ No newline at end of file diff --git a/www/ecrire/action/activer_plugins.php b/www/ecrire/action/activer_plugins.php index 448d7a7a..0226197e 100644 --- a/www/ecrire/action/activer_plugins.php +++ b/www/ecrire/action/activer_plugins.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/ajouter_lien.php b/www/ecrire/action/ajouter_lien.php index f2fd355a..83baced2 100644 --- a/www/ecrire/action/ajouter_lien.php +++ b/www/ecrire/action/ajouter_lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/annuler_job.php b/www/ecrire/action/annuler_job.php index 78239c03..86b4068e 100644 --- a/www/ecrire/action/annuler_job.php +++ b/www/ecrire/action/annuler_job.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/auth.php b/www/ecrire/action/auth.php index f850e7cf..ebf6ec68 100644 --- a/www/ecrire/action/auth.php +++ b/www/ecrire/action/auth.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/calculer_taille_cache.php b/www/ecrire/action/calculer_taille_cache.php index 1665e129..84f34dee 100644 --- a/www/ecrire/action/calculer_taille_cache.php +++ b/www/ecrire/action/calculer_taille_cache.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/confirmer_email.php b/www/ecrire/action/confirmer_email.php index caf4c5b2..5f02ffef 100644 --- a/www/ecrire/action/confirmer_email.php +++ b/www/ecrire/action/confirmer_email.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/confirmer_inscription.php b/www/ecrire/action/confirmer_inscription.php index ed5bbbc5..398f7bb5 100644 --- a/www/ecrire/action/confirmer_inscription.php +++ b/www/ecrire/action/confirmer_inscription.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/converser.php b/www/ecrire/action/converser.php index 3744f767..50b96313 100644 --- a/www/ecrire/action/converser.php +++ b/www/ecrire/action/converser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/cookie.php b/www/ecrire/action/cookie.php index 06cce148..56c21822 100644 --- a/www/ecrire/action/cookie.php +++ b/www/ecrire/action/cookie.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/debloquer_edition.php b/www/ecrire/action/debloquer_edition.php index 9f4bfc20..168963ce 100644 --- a/www/ecrire/action/debloquer_edition.php +++ b/www/ecrire/action/debloquer_edition.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/desinstaller_plugin.php b/www/ecrire/action/desinstaller_plugin.php index 2c91ea0c..8c7505fa 100644 --- a/www/ecrire/action/desinstaller_plugin.php +++ b/www/ecrire/action/desinstaller_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/editer_article.php b/www/ecrire/action/editer_article.php index 09ad864e..982bddce 100644 --- a/www/ecrire/action/editer_article.php +++ b/www/ecrire/action/editer_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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, diff --git a/www/ecrire/action/editer_auteur.php b/www/ecrire/action/editer_auteur.php index 81e42042..210fa327 100644 --- a/www/ecrire/action/editer_auteur.php +++ b/www/ecrire/action/editer_auteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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)) diff --git a/www/ecrire/action/editer_liens.php b/www/ecrire/action/editer_liens.php index f5d5f875..c05a4e37 100644 --- a/www/ecrire/action/editer_liens.php +++ b/www/ecrire/action/editer_liens.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index 17a7ece2..8df63528 100644 --- a/www/ecrire/action/editer_objet.php +++ b/www/ecrire/action/editer_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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, diff --git a/www/ecrire/action/editer_rubrique.php b/www/ecrire/action/editer_rubrique.php index 2c6ed642..c52e1a7a 100644 --- a/www/ecrire/action/editer_rubrique.php +++ b/www/ecrire/action/editer_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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)) diff --git a/www/ecrire/action/etre_webmestre.php b/www/ecrire/action/etre_webmestre.php index b9eede3b..fbdb07b9 100644 --- a/www/ecrire/action/etre_webmestre.php +++ b/www/ecrire/action/etre_webmestre.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/forcer_job.php b/www/ecrire/action/forcer_job.php index 4a62ff72..a6fd2540 100644 --- a/www/ecrire/action/forcer_job.php +++ b/www/ecrire/action/forcer_job.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/iconifier.php b/www/ecrire/action/iconifier.php index f71b9534..54e359d2 100644 --- a/www/ecrire/action/iconifier.php +++ b/www/ecrire/action/iconifier.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/inscrire_auteur.php b/www/ecrire/action/inscrire_auteur.php index bf9211b8..afaba99f 100644 --- a/www/ecrire/action/inscrire_auteur.php +++ b/www/ecrire/action/inscrire_auteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/instituer_langue_objet.php b/www/ecrire/action/instituer_langue_objet.php index 4ffac96d..e7ad0a6b 100644 --- a/www/ecrire/action/instituer_langue_objet.php +++ b/www/ecrire/action/instituer_langue_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/instituer_langue_rubrique.php b/www/ecrire/action/instituer_langue_rubrique.php index 0de3358a..1889317b 100644 --- a/www/ecrire/action/instituer_langue_rubrique.php +++ b/www/ecrire/action/instituer_langue_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/instituer_objet.php b/www/ecrire/action/instituer_objet.php index ef86dbfa..b3a0180e 100644 --- a/www/ecrire/action/instituer_objet.php +++ b/www/ecrire/action/instituer_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/logout.php b/www/ecrire/action/logout.php index 4abb8130..97adb057 100644 --- a/www/ecrire/action/logout.php +++ b/www/ecrire/action/logout.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/menu_rubriques.php b/www/ecrire/action/menu_rubriques.php index 8b97c789..c6a8877e 100644 --- a/www/ecrire/action/menu_rubriques.php +++ b/www/ecrire/action/menu_rubriques.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/preferer.php b/www/ecrire/action/preferer.php index 1292b7d2..89428aa2 100644 --- a/www/ecrire/action/preferer.php +++ b/www/ecrire/action/preferer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/purger.php b/www/ecrire/action/purger.php index cc4359cb..fef9f1a6 100644 --- a/www/ecrire/action/purger.php +++ b/www/ecrire/action/purger.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/purger_queue.php b/www/ecrire/action/purger_queue.php index 886c2e59..0bd49864 100644 --- a/www/ecrire/action/purger_queue.php +++ b/www/ecrire/action/purger_queue.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/redirect.php b/www/ecrire/action/redirect.php index bf2f2978..292eb981 100644 --- a/www/ecrire/action/redirect.php +++ b/www/ecrire/action/redirect.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/referencer_traduction.php b/www/ecrire/action/referencer_traduction.php index 114dffa9..855777a4 100644 --- a/www/ecrire/action/referencer_traduction.php +++ b/www/ecrire/action/referencer_traduction.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/reorganiser.php b/www/ecrire/action/reorganiser.php index 0b1b3d78..53cb8b5f 100644 --- a/www/ecrire/action/reorganiser.php +++ b/www/ecrire/action/reorganiser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/session.php b/www/ecrire/action/session.php index 212afb40..a5f61501 100644 --- a/www/ecrire/action/session.php +++ b/www/ecrire/action/session.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/super_cron.php b/www/ecrire/action/super_cron.php index 44493568..2451d382 100644 --- a/www/ecrire/action/super_cron.php +++ b/www/ecrire/action/super_cron.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/supprimer_lien.php b/www/ecrire/action/supprimer_lien.php index f8f1343c..e89fb3e8 100644 --- a/www/ecrire/action/supprimer_lien.php +++ b/www/ecrire/action/supprimer_lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/supprimer_rubrique.php b/www/ecrire/action/supprimer_rubrique.php index 4d5c685f..8f805ca4 100644 --- a/www/ecrire/action/supprimer_rubrique.php +++ b/www/ecrire/action/supprimer_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/tester.php b/www/ecrire/action/tester.php index 32c1e714..decb36f6 100644 --- a/www/ecrire/action/tester.php +++ b/www/ecrire/action/tester.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/action/tester_taille.php b/www/ecrire/action/tester_taille.php index 1fe1626f..6fe03fc5 100644 --- a/www/ecrire/action/tester_taille.php +++ b/www/ecrire/action/tester_taille.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/auth/ldap.php b/www/ecrire/auth/ldap.php index 4de7df63..3ceec109 100644 --- a/www/ecrire/auth/ldap.php +++ b/www/ecrire/auth/ldap.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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']); diff --git a/www/ecrire/auth/spip.php b/www/ecrire/auth/spip.php index 5da58539..32210631 100644 --- a/www/ecrire/auth/spip.php +++ b/www/ecrire/auth/spip.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/configurer_metas.php b/www/ecrire/balise/configurer_metas.php index 93c32488..7ea1438a 100644 --- a/www/ecrire/balise/configurer_metas.php +++ b/www/ecrire/balise/configurer_metas.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/formulaire_.php b/www/ecrire/balise/formulaire_.php index 631b8656..28ea0da9 100644 --- a/www/ecrire/balise/formulaire_.php +++ b/www/ecrire/balise/formulaire_.php @@ -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. * diff --git a/www/ecrire/balise/formulaire_admin.php b/www/ecrire/balise/formulaire_admin.php index 31a988c0..4bc30c61 100644 --- a/www/ecrire/balise/formulaire_admin.php +++ b/www/ecrire/balise/formulaire_admin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/formulaire_ecrire_auteur.php b/www/ecrire/balise/formulaire_ecrire_auteur.php index a91987a7..629d2295 100644 --- a/www/ecrire/balise/formulaire_ecrire_auteur.php +++ b/www/ecrire/balise/formulaire_ecrire_auteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/formulaire_inscription.php b/www/ecrire/balise/formulaire_inscription.php index 7831b259..be6dd661 100644 --- a/www/ecrire/balise/formulaire_inscription.php +++ b/www/ecrire/balise/formulaire_inscription.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/info_.php b/www/ecrire/balise/info_.php index 6c0c91ec..23c021e0 100644 --- a/www/ecrire/balise/info_.php +++ b/www/ecrire/balise/info_.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/logo_.php b/www/ecrire/balise/logo_.php index 16e1fbaf..70370c43 100644 --- a/www/ecrire/balise/logo_.php +++ b/www/ecrire/balise/logo_.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/menu_lang.php b/www/ecrire/balise/menu_lang.php index d72a5e5f..64b9dd13 100644 --- a/www/ecrire/balise/menu_lang.php +++ b/www/ecrire/balise/menu_lang.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/menu_lang_ecrire.php b/www/ecrire/balise/menu_lang_ecrire.php index ab48a336..9fede36f 100644 --- a/www/ecrire/balise/menu_lang_ecrire.php +++ b/www/ecrire/balise/menu_lang_ecrire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/url_.php b/www/ecrire/balise/url_.php index 833b4929..f888feb3 100644 --- a/www/ecrire/balise/url_.php +++ b/www/ecrire/balise/url_.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/balise/url_logout.php b/www/ecrire/balise/url_logout.php index b0dc3fb7..3d6459ee 100644 --- a/www/ecrire/balise/url_logout.php +++ b/www/ecrire/balise/url_logout.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/abstract_sql.php b/www/ecrire/base/abstract_sql.php index 5c115a95..a7332fcb 100644 --- a/www/ecrire/base/abstract_sql.php +++ b/www/ecrire/base/abstract_sql.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/auxiliaires.php b/www/ecrire/base/auxiliaires.php index 61e79185..72b8b3fa 100644 --- a/www/ecrire/base/auxiliaires.php +++ b/www/ecrire/base/auxiliaires.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/connect_sql.php b/www/ecrire/base/connect_sql.php index 759b4228..e215a0e7 100644 --- a/www/ecrire/base/connect_sql.php +++ b/www/ecrire/base/connect_sql.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/create.php b/www/ecrire/base/create.php index 2b974596..1740bb67 100644 --- a/www/ecrire/base/create.php +++ b/www/ecrire/base/create.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/delete_all.php b/www/ecrire/base/delete_all.php index 481b272d..be29f99e 100644 --- a/www/ecrire/base/delete_all.php +++ b/www/ecrire/base/delete_all.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/dump.php b/www/ecrire/base/dump.php index 8b2709d3..58639ad2 100644 --- a/www/ecrire/base/dump.php +++ b/www/ecrire/base/dump.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/objets.php b/www/ecrire/base/objets.php index 42e07f76..42aa17e6 100644 --- a/www/ecrire/base/objets.php +++ b/www/ecrire/base/objets.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/repair.php b/www/ecrire/base/repair.php index 4d130297..e5d3ee30 100644 --- a/www/ecrire/base/repair.php +++ b/www/ecrire/base/repair.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/serial.php b/www/ecrire/base/serial.php index e454b5cc..e4f3a90d 100644 --- a/www/ecrire/base/serial.php +++ b/www/ecrire/base/serial.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/trouver_table.php b/www/ecrire/base/trouver_table.php index 7f429845..1e3dd374 100644 --- a/www/ecrire/base/trouver_table.php +++ b/www/ecrire/base/trouver_table.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/base/upgrade.php b/www/ecrire/base/upgrade.php index cb124229..61e46c69 100644 --- a/www/ecrire/base/upgrade.php +++ b/www/ecrire/base/upgrade.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/charsets/iso-8859-15.php b/www/ecrire/charsets/iso-8859-15.php index 34e39a0f..34c0e00a 100644 --- a/www/ecrire/charsets/iso-8859-15.php +++ b/www/ecrire/charsets/iso-8859-15.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/charsets/iso-8859-6.php b/www/ecrire/charsets/iso-8859-6.php index 1ed320af..077d36b7 100644 --- a/www/ecrire/charsets/iso-8859-6.php +++ b/www/ecrire/charsets/iso-8859-6.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/charsets/iso-8859-9.php b/www/ecrire/charsets/iso-8859-9.php index bbdd0bc3..617e4191 100644 --- a/www/ecrire/charsets/iso-8859-9.php +++ b/www/ecrire/charsets/iso-8859-9.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/charsets/translitcomplexe.php b/www/ecrire/charsets/translitcomplexe.php index 71f29b69..9f0ffc49 100644 --- a/www/ecrire/charsets/translitcomplexe.php +++ b/www/ecrire/charsets/translitcomplexe.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/403.php b/www/ecrire/exec/403.php index 90ef3291..1086e9ef 100644 --- a/www/ecrire/exec/403.php +++ b/www/ecrire/exec/403.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/404.php b/www/ecrire/exec/404.php index 8003d0e7..b533584d 100644 --- a/www/ecrire/exec/404.php +++ b/www/ecrire/exec/404.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/admin_plugin.php b/www/ecrire/exec/admin_plugin.php index 1e615e56..b4f3d960 100644 --- a/www/ecrire/exec/admin_plugin.php +++ b/www/ecrire/exec/admin_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/base_delete_all.php b/www/ecrire/exec/base_delete_all.php index 0927bfef..c7f2f38f 100644 --- a/www/ecrire/exec/base_delete_all.php +++ b/www/ecrire/exec/base_delete_all.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/base_repair.php b/www/ecrire/exec/base_repair.php index fcd3d99f..81e231a5 100644 --- a/www/ecrire/exec/base_repair.php +++ b/www/ecrire/exec/base_repair.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/demande_mise_a_jour.php b/www/ecrire/exec/demande_mise_a_jour.php index d7c3d975..cf53cd5c 100644 --- a/www/ecrire/exec/demande_mise_a_jour.php +++ b/www/ecrire/exec/demande_mise_a_jour.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/fond.php b/www/ecrire/exec/fond.php index 4f8047b4..17e3d095 100644 --- a/www/ecrire/exec/fond.php +++ b/www/ecrire/exec/fond.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/fond_monobloc.php b/www/ecrire/exec/fond_monobloc.php index 216f898f..4ca8f0ac 100644 --- a/www/ecrire/exec/fond_monobloc.php +++ b/www/ecrire/exec/fond_monobloc.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/informer.php b/www/ecrire/exec/informer.php index 7abfd231..c30fe6c1 100644 --- a/www/ecrire/exec/informer.php +++ b/www/ecrire/exec/informer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/install.php b/www/ecrire/exec/install.php index e4266b01..c2f1fd51 100644 --- a/www/ecrire/exec/install.php +++ b/www/ecrire/exec/install.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/plonger.php b/www/ecrire/exec/plonger.php index 838daf70..048e1797 100644 --- a/www/ecrire/exec/plonger.php +++ b/www/ecrire/exec/plonger.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/puce_statut.php b/www/ecrire/exec/puce_statut.php index 50a6d366..0d362c5e 100644 --- a/www/ecrire/exec/puce_statut.php +++ b/www/ecrire/exec/puce_statut.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/rechercher.php b/www/ecrire/exec/rechercher.php index 3c630ab4..4a70f24b 100644 --- a/www/ecrire/exec/rechercher.php +++ b/www/ecrire/exec/rechercher.php @@ -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. * diff --git a/www/ecrire/exec/selectionner.php b/www/ecrire/exec/selectionner.php index 710c7f0d..41d5bb86 100644 --- a/www/ecrire/exec/selectionner.php +++ b/www/ecrire/exec/selectionner.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/upgrade.php b/www/ecrire/exec/upgrade.php index 2f54a9e8..f601c37e 100644 --- a/www/ecrire/exec/upgrade.php +++ b/www/ecrire/exec/upgrade.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/exec/valider_xml.php b/www/ecrire/exec/valider_xml.php index db3ee920..621ae262 100644 --- a/www/ecrire/exec/valider_xml.php +++ b/www/ecrire/exec/valider_xml.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/genie/mail.php b/www/ecrire/genie/mail.php index d5849590..2859347c 100644 --- a/www/ecrire/genie/mail.php +++ b/www/ecrire/genie/mail.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/genie/maintenance.php b/www/ecrire/genie/maintenance.php index 05081355..9f76add3 100644 --- a/www/ecrire/genie/maintenance.php +++ b/www/ecrire/genie/maintenance.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/genie/mise_a_jour.php b/www/ecrire/genie/mise_a_jour.php index 31eefb8d..86a0868f 100644 --- a/www/ecrire/genie/mise_a_jour.php +++ b/www/ecrire/genie/mise_a_jour.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/genie/optimiser.php b/www/ecrire/genie/optimiser.php index 200b5796..4d932911 100644 --- a/www/ecrire/genie/optimiser.php +++ b/www/ecrire/genie/optimiser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/acces.php b/www/ecrire/inc/acces.php index c7bb2d38..90cd3dcf 100644 --- a/www/ecrire/inc/acces.php +++ b/www/ecrire/inc/acces.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/actions.php b/www/ecrire/inc/actions.php index 7e2cb761..0981bab9 100644 --- a/www/ecrire/inc/actions.php +++ b/www/ecrire/inc/actions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/admin.php b/www/ecrire/inc/admin.php index e9022622..2f70a846 100644 --- a/www/ecrire/inc/admin.php +++ b/www/ecrire/inc/admin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/aider.php b/www/ecrire/inc/aider.php index bae90780..90b8f432 100644 --- a/www/ecrire/inc/aider.php +++ b/www/ecrire/inc/aider.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/auth.php b/www/ecrire/inc/auth.php index be9e7060..4f59f2d7 100644 --- a/www/ecrire/inc/auth.php +++ b/www/ecrire/inc/auth.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/autoriser.php b/www/ecrire/inc/autoriser.php index c3c91a9d..fbccc13f 100644 --- a/www/ecrire/inc/autoriser.php +++ b/www/ecrire/inc/autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/bandeau.php b/www/ecrire/inc/bandeau.php index 1dade274..e272254e 100644 --- a/www/ecrire/inc/bandeau.php +++ b/www/ecrire/inc/bandeau.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/boutons.php b/www/ecrire/inc/boutons.php index ec9a28f1..aa8be69e 100644 --- a/www/ecrire/inc/boutons.php +++ b/www/ecrire/inc/boutons.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/charsets.php b/www/ecrire/inc/charsets.php index c7a08590..01cdecd2 100644 --- a/www/ecrire/inc/charsets.php +++ b/www/ecrire/inc/charsets.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/chercher_logo.php b/www/ecrire/inc/chercher_logo.php index 35151cec..abd81d7a 100644 --- a/www/ecrire/inc/chercher_logo.php +++ b/www/ecrire/inc/chercher_logo.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/chercher_rubrique.php b/www/ecrire/inc/chercher_rubrique.php index e68c5494..b37e58c3 100644 --- a/www/ecrire/inc/chercher_rubrique.php +++ b/www/ecrire/inc/chercher_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/commencer_page.php b/www/ecrire/inc/commencer_page.php index d60c54a1..7fa14883 100644 --- a/www/ecrire/inc/commencer_page.php +++ b/www/ecrire/inc/commencer_page.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/config.php b/www/ecrire/inc/config.php index c8438989..1d1aacff 100644 --- a/www/ecrire/inc/config.php +++ b/www/ecrire/inc/config.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/cookie.php b/www/ecrire/inc/cookie.php index 0e4c622c..d19364f9 100644 --- a/www/ecrire/inc/cookie.php +++ b/www/ecrire/inc/cookie.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/couleurs.php b/www/ecrire/inc/couleurs.php index f410fca8..58cb005e 100644 --- a/www/ecrire/inc/couleurs.php +++ b/www/ecrire/inc/couleurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/csv.php b/www/ecrire/inc/csv.php index 2f52bfd2..ae901016 100644 --- a/www/ecrire/inc/csv.php +++ b/www/ecrire/inc/csv.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/cvt_autosave.php b/www/ecrire/inc/cvt_autosave.php index 934091aa..36b41c3c 100644 --- a/www/ecrire/inc/cvt_autosave.php +++ b/www/ecrire/inc/cvt_autosave.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/cvt_configurer.php b/www/ecrire/inc/cvt_configurer.php index ed208425..da1901fd 100644 --- a/www/ecrire/inc/cvt_configurer.php +++ b/www/ecrire/inc/cvt_configurer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/cvt_multietapes.php b/www/ecrire/inc/cvt_multietapes.php index 84ecde5c..00c86239 100644 --- a/www/ecrire/inc/cvt_multietapes.php +++ b/www/ecrire/inc/cvt_multietapes.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/distant.php b/www/ecrire/inc/distant.php index 31b5e519..5b94a060 100644 --- a/www/ecrire/inc/distant.php +++ b/www/ecrire/inc/distant.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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); diff --git a/www/ecrire/inc/documents.php b/www/ecrire/inc/documents.php index 634a55a2..038e1ecf 100644 --- a/www/ecrire/inc/documents.php +++ b/www/ecrire/inc/documents.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/drapeau_edition.php b/www/ecrire/inc/drapeau_edition.php index e82df713..394a86ff 100644 --- a/www/ecrire/inc/drapeau_edition.php +++ b/www/ecrire/inc/drapeau_edition.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/editer.php b/www/ecrire/inc/editer.php index 1702c318..51f59f02 100644 --- a/www/ecrire/inc/editer.php +++ b/www/ecrire/inc/editer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/envoyer_mail.php b/www/ecrire/inc/envoyer_mail.php index 367430c0..187eab53 100644 --- a/www/ecrire/inc/envoyer_mail.php +++ b/www/ecrire/inc/envoyer_mail.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/filtres.php b/www/ecrire/inc/filtres.php index ae61ab25..5223d098 100644 --- a/www/ecrire/inc/filtres.php +++ b/www/ecrire/inc/filtres.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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; } diff --git a/www/ecrire/inc/filtres_boites.php b/www/ecrire/inc/filtres_boites.php index 2f2c628f..51feb3ad 100644 --- a/www/ecrire/inc/filtres_boites.php +++ b/www/ecrire/inc/filtres_boites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/filtres_ecrire.php b/www/ecrire/inc/filtres_ecrire.php index 8d310fb4..edd6087a 100644 --- a/www/ecrire/inc/filtres_ecrire.php +++ b/www/ecrire/inc/filtres_ecrire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/filtres_images_lib_mini.php b/www/ecrire/inc/filtres_images_lib_mini.php index 83c54290..468d6190 100644 --- a/www/ecrire/inc/filtres_images_lib_mini.php +++ b/www/ecrire/inc/filtres_images_lib_mini.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 } diff --git a/www/ecrire/inc/filtres_images_mini.php b/www/ecrire/inc/filtres_images_mini.php index 5bcdf144..fc47c450 100644 --- a/www/ecrire/inc/filtres_images_mini.php +++ b/www/ecrire/inc/filtres_images_mini.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/filtres_mime.php b/www/ecrire/inc/filtres_mime.php index 4b6973c2..9f11d0f9 100644 --- a/www/ecrire/inc/filtres_mime.php +++ b/www/ecrire/inc/filtres_mime.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/filtres_mini.php b/www/ecrire/inc/filtres_mini.php index 4621ebc6..c65a2da7 100644 --- a/www/ecrire/inc/filtres_mini.php +++ b/www/ecrire/inc/filtres_mini.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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); diff --git a/www/ecrire/inc/flock.php b/www/ecrire/inc/flock.php index 75b0fcb7..6a962010 100644 --- a/www/ecrire/inc/flock.php +++ b/www/ecrire/inc/flock.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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}_"); diff --git a/www/ecrire/inc/genie.php b/www/ecrire/inc/genie.php index a6881293..4ba26080 100644 --- a/www/ecrire/inc/genie.php +++ b/www/ecrire/inc/genie.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/headers.php b/www/ecrire/inc/headers.php index b237baa8..ca8a4f5d 100644 --- a/www/ecrire/inc/headers.php +++ b/www/ecrire/inc/headers.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/icone_renommer.php b/www/ecrire/inc/icone_renommer.php index cfa9a41d..97a873a2 100644 --- a/www/ecrire/inc/icone_renommer.php +++ b/www/ecrire/inc/icone_renommer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/iconifier.php b/www/ecrire/inc/iconifier.php index 81bf8f00..618d2b7c 100644 --- a/www/ecrire/inc/iconifier.php +++ b/www/ecrire/inc/iconifier.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/informer.php b/www/ecrire/inc/informer.php index d887f480..6521780f 100644 --- a/www/ecrire/inc/informer.php +++ b/www/ecrire/inc/informer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/install.php b/www/ecrire/inc/install.php index e92ccd34..9ff5e623 100644 --- a/www/ecrire/inc/install.php +++ b/www/ecrire/inc/install.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/invalideur.php b/www/ecrire/inc/invalideur.php index f52471d4..80536ba3 100644 --- a/www/ecrire/inc/invalideur.php +++ b/www/ecrire/inc/invalideur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/journal.php b/www/ecrire/inc/journal.php index f34ea916..09e70ae4 100644 --- a/www/ecrire/inc/journal.php +++ b/www/ecrire/inc/journal.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/json.php b/www/ecrire/inc/json.php index 538d08d0..49cce51a 100644 --- a/www/ecrire/inc/json.php +++ b/www/ecrire/inc/json.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/lang.php b/www/ecrire/inc/lang.php index a2e88b1f..edf2247f 100644 --- a/www/ecrire/inc/lang.php +++ b/www/ecrire/inc/lang.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/lang_liste.php b/www/ecrire/inc/lang_liste.php index 8bcb588e..6bd2e71d 100644 --- a/www/ecrire/inc/lang_liste.php +++ b/www/ecrire/inc/lang_liste.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/layer.php b/www/ecrire/inc/layer.php index 3455fb08..9a2d5fc9 100644 --- a/www/ecrire/inc/layer.php +++ b/www/ecrire/inc/layer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/lien.php b/www/ecrire/inc/lien.php index a76d5c7e..55fc18b0 100644 --- a/www/ecrire/inc/lien.php +++ b/www/ecrire/inc/lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/lien_court.php b/www/ecrire/inc/lien_court.php index 5166ff8d..e15d98a8 100644 --- a/www/ecrire/inc/lien_court.php +++ b/www/ecrire/inc/lien_court.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/lister_objets.php b/www/ecrire/inc/lister_objets.php index 861e66a4..2eec5190 100644 --- a/www/ecrire/inc/lister_objets.php +++ b/www/ecrire/inc/lister_objets.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/log.php b/www/ecrire/inc/log.php index 1a5fcb12..07f9e783 100644 --- a/www/ecrire/inc/log.php +++ b/www/ecrire/inc/log.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/mail.php b/www/ecrire/inc/mail.php index fc817575..c2f717c6 100644 --- a/www/ecrire/inc/mail.php +++ b/www/ecrire/inc/mail.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/math.php b/www/ecrire/inc/math.php index ecbb5a0c..1143c9ab 100644 --- a/www/ecrire/inc/math.php +++ b/www/ecrire/inc/math.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/meta.php b/www/ecrire/inc/meta.php index e99d52dc..b50f00f6 100644 --- a/www/ecrire/inc/meta.php +++ b/www/ecrire/inc/meta.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/minipres.php b/www/ecrire/inc/minipres.php index 0de42ae2..73629b84 100644 --- a/www/ecrire/inc/minipres.php +++ b/www/ecrire/inc/minipres.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/modifier.php b/www/ecrire/inc/modifier.php index cca62aea..f8153690 100644 --- a/www/ecrire/inc/modifier.php +++ b/www/ecrire/inc/modifier.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 ) diff --git a/www/ecrire/inc/notifications.php b/www/ecrire/inc/notifications.php index abc28409..785aed3e 100644 --- a/www/ecrire/inc/notifications.php +++ b/www/ecrire/inc/notifications.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/pipelines.php b/www/ecrire/inc/pipelines.php index b2eb236f..c2045597 100644 --- a/www/ecrire/inc/pipelines.php +++ b/www/ecrire/inc/pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/pipelines_ecrire.php b/www/ecrire/inc/pipelines_ecrire.php index 1cebc91b..faa68647 100644 --- a/www/ecrire/inc/pipelines_ecrire.php +++ b/www/ecrire/inc/pipelines_ecrire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/plonger.php b/www/ecrire/inc/plonger.php index 7acfa93b..e766f367 100644 --- a/www/ecrire/inc/plonger.php +++ b/www/ecrire/inc/plonger.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/plugin.php b/www/ecrire/inc/plugin.php index 15108897..442b0a5e 100644 --- a/www/ecrire/inc/plugin.php +++ b/www/ecrire/inc/plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 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"))){ diff --git a/www/ecrire/inc/precharger_article.php b/www/ecrire/inc/precharger_article.php index 36491c6a..9169b7ae 100644 --- a/www/ecrire/inc/precharger_article.php +++ b/www/ecrire/inc/precharger_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/precharger_objet.php b/www/ecrire/inc/precharger_objet.php index bef3c7ca..5852f4f7 100644 --- a/www/ecrire/inc/precharger_objet.php +++ b/www/ecrire/inc/precharger_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/prepare_recherche.php b/www/ecrire/inc/prepare_recherche.php index 065ca58b..15702932 100644 --- a/www/ecrire/inc/prepare_recherche.php +++ b/www/ecrire/inc/prepare_recherche.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/preselectionner_parent_nouvel_objet.php b/www/ecrire/inc/preselectionner_parent_nouvel_objet.php index 98996f02..8043b5a4 100644 --- a/www/ecrire/inc/preselectionner_parent_nouvel_objet.php +++ b/www/ecrire/inc/preselectionner_parent_nouvel_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/presentation.php b/www/ecrire/inc/presentation.php index 8fe805f8..74f74fd5 100644 --- a/www/ecrire/inc/presentation.php +++ b/www/ecrire/inc/presentation.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/presentation_mini.php b/www/ecrire/inc/presentation_mini.php index 5754a1ca..2bfaef99 100644 --- a/www/ecrire/inc/presentation_mini.php +++ b/www/ecrire/inc/presentation_mini.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/presenter_enfants.php b/www/ecrire/inc/presenter_enfants.php index 4502ceba..91df554c 100644 --- a/www/ecrire/inc/presenter_enfants.php +++ b/www/ecrire/inc/presenter_enfants.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/puce_statut.php b/www/ecrire/inc/puce_statut.php index 353c0a12..23758675 100644 --- a/www/ecrire/inc/puce_statut.php +++ b/www/ecrire/inc/puce_statut.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/queue.php b/www/ecrire/inc/queue.php index 7fa78cd9..9df13404 100644 --- a/www/ecrire/inc/queue.php +++ b/www/ecrire/inc/queue.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/recherche_to_array.php b/www/ecrire/inc/recherche_to_array.php index 14ab04c5..3b26c3c0 100644 --- a/www/ecrire/inc/recherche_to_array.php +++ b/www/ecrire/inc/recherche_to_array.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/rechercher.php b/www/ecrire/inc/rechercher.php index e289c73e..3e361054 100644 --- a/www/ecrire/inc/rechercher.php +++ b/www/ecrire/inc/rechercher.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/rubriques.php b/www/ecrire/inc/rubriques.php index f707250a..e1ccdaa7 100644 --- a/www/ecrire/inc/rubriques.php +++ b/www/ecrire/inc/rubriques.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/securiser_action.php b/www/ecrire/inc/securiser_action.php index 369d53d5..1968538e 100644 --- a/www/ecrire/inc/securiser_action.php +++ b/www/ecrire/inc/securiser_action.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/selectionner.php b/www/ecrire/inc/selectionner.php index 83c6cd57..f2ddb6f0 100644 --- a/www/ecrire/inc/selectionner.php +++ b/www/ecrire/inc/selectionner.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/session.php b/www/ecrire/inc/session.php index 97067cef..f19d06a1 100644 --- a/www/ecrire/inc/session.php +++ b/www/ecrire/inc/session.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/simplexml_to_array.php b/www/ecrire/inc/simplexml_to_array.php index fbb91d40..7dce798b 100644 --- a/www/ecrire/inc/simplexml_to_array.php +++ b/www/ecrire/inc/simplexml_to_array.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/surligne.php b/www/ecrire/inc/surligne.php index 004a812a..ecdf9001 100644 --- a/www/ecrire/inc/surligne.php +++ b/www/ecrire/inc/surligne.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/texte.php b/www/ecrire/inc/texte.php index c0cec0be..c64532eb 100644 --- a/www/ecrire/inc/texte.php +++ b/www/ecrire/inc/texte.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/texte_mini.php b/www/ecrire/inc/texte_mini.php index bd141ccf..8171342c 100644 --- a/www/ecrire/inc/texte_mini.php +++ b/www/ecrire/inc/texte_mini.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/traduire.php b/www/ecrire/inc/traduire.php index 989e763b..57cbe333 100644 --- a/www/ecrire/inc/traduire.php +++ b/www/ecrire/inc/traduire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/urls.php b/www/ecrire/inc/urls.php index 9c21837b..108b8057 100644 --- a/www/ecrire/inc/urls.php +++ b/www/ecrire/inc/urls.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc/utils.php b/www/ecrire/inc/utils.php index 923431f2..01ed0c14 100644 --- a/www/ecrire/inc/utils.php +++ b/www/ecrire/inc/utils.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 diff --git a/www/ecrire/inc/xml.php b/www/ecrire/inc/xml.php index a85db3fd..3a40fb1e 100644 --- a/www/ecrire/inc/xml.php +++ b/www/ecrire/inc/xml.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/inc_version.php b/www/ecrire/inc_version.php index 31467ab7..d491833f 100644 --- a/www/ecrire/inc_version.php +++ b/www/ecrire/inc_version.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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; diff --git a/www/ecrire/index.php b/www/ecrire/index.php index 99a8329e..bdddab24 100644 --- a/www/ecrire/index.php +++ b/www/ecrire/index.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_.php b/www/ecrire/install/etape_.php index 4c1a3ed6..3a0320e2 100644 --- a/www/ecrire/install/etape_.php +++ b/www/ecrire/install/etape_.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_1.php b/www/ecrire/install/etape_1.php index e3e6432f..d1fd2d02 100644 --- a/www/ecrire/install/etape_1.php +++ b/www/ecrire/install/etape_1.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_2.php b/www/ecrire/install/etape_2.php index 67d9519b..c14092e6 100644 --- a/www/ecrire/install/etape_2.php +++ b/www/ecrire/install/etape_2.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_3.php b/www/ecrire/install/etape_3.php index 5c706ff7..947c1bce 100644 --- a/www/ecrire/install/etape_3.php +++ b/www/ecrire/install/etape_3.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_3b.php b/www/ecrire/install/etape_3b.php index 46ec2e71..08b983c2 100644 --- a/www/ecrire/install/etape_3b.php +++ b/www/ecrire/install/etape_3b.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_4.php b/www/ecrire/install/etape_4.php index 6c20a6f4..abc89ab9 100644 --- a/www/ecrire/install/etape_4.php +++ b/www/ecrire/install/etape_4.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_chmod.php b/www/ecrire/install/etape_chmod.php index 9c257402..9d07b3eb 100644 --- a/www/ecrire/install/etape_chmod.php +++ b/www/ecrire/install/etape_chmod.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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; } // diff --git a/www/ecrire/install/etape_fin.php b/www/ecrire/install/etape_fin.php index cb3cec65..471ac7ff 100644 --- a/www/ecrire/install/etape_fin.php +++ b/www/ecrire/install/etape_fin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_ldap1.php b/www/ecrire/install/etape_ldap1.php index 4acbac55..8e8a1a4f 100644 --- a/www/ecrire/install/etape_ldap1.php +++ b/www/ecrire/install/etape_ldap1.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_ldap2.php b/www/ecrire/install/etape_ldap2.php index b6ce021f..4359030b 100644 --- a/www/ecrire/install/etape_ldap2.php +++ b/www/ecrire/install/etape_ldap2.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_ldap3.php b/www/ecrire/install/etape_ldap3.php index 4f8b61c3..768f0076 100644 --- a/www/ecrire/install/etape_ldap3.php +++ b/www/ecrire/install/etape_ldap3.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_ldap4.php b/www/ecrire/install/etape_ldap4.php index 23223ce7..1265e033 100644 --- a/www/ecrire/install/etape_ldap4.php +++ b/www/ecrire/install/etape_ldap4.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/install/etape_ldap5.php b/www/ecrire/install/etape_ldap5.php index 9a3bd0b3..433069ee 100644 --- a/www/ecrire/install/etape_ldap5.php +++ b/www/ecrire/install/etape_ldap5.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/iterateur/condition.php b/www/ecrire/iterateur/condition.php index bc1684e2..29acc552 100644 --- a/www/ecrire/iterateur/condition.php +++ b/www/ecrire/iterateur/condition.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/iterateur/data.php b/www/ecrire/iterateur/data.php index 4ccaa43b..2af35bcc 100644 --- a/www/ecrire/iterateur/data.php +++ b/www/ecrire/iterateur/data.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/iterateur/php.php b/www/ecrire/iterateur/php.php index a06d4b3f..0afa9912 100644 --- a/www/ecrire/iterateur/php.php +++ b/www/ecrire/iterateur/php.php @@ -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. * diff --git a/www/ecrire/iterateur/pour.php b/www/ecrire/iterateur/pour.php index 9a9166ce..98ce7152 100644 --- a/www/ecrire/iterateur/pour.php +++ b/www/ecrire/iterateur/pour.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/iterateur/sql.php b/www/ecrire/iterateur/sql.php index 58b05729..2a1c37e1 100644 --- a/www/ecrire/iterateur/sql.php +++ b/www/ecrire/iterateur/sql.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/svn10000.php b/www/ecrire/maj/svn10000.php index abe37f21..b458dc25 100644 --- a/www/ecrire/maj/svn10000.php +++ b/www/ecrire/maj/svn10000.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v009.php b/www/ecrire/maj/v009.php index 6da03a42..425d6e27 100644 --- a/www/ecrire/maj/v009.php +++ b/www/ecrire/maj/v009.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v010.php b/www/ecrire/maj/v010.php index d6e78cdd..c3429f0c 100644 --- a/www/ecrire/maj/v010.php +++ b/www/ecrire/maj/v010.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v011.php b/www/ecrire/maj/v011.php index a7325168..68d5f991 100644 --- a/www/ecrire/maj/v011.php +++ b/www/ecrire/maj/v011.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v012.php b/www/ecrire/maj/v012.php index 863eebf7..4aed6a11 100644 --- a/www/ecrire/maj/v012.php +++ b/www/ecrire/maj/v012.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v013.php b/www/ecrire/maj/v013.php index 822f27f9..efbf3628 100644 --- a/www/ecrire/maj/v013.php +++ b/www/ecrire/maj/v013.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v014.php b/www/ecrire/maj/v014.php index 6ad8b98a..fb6a9060 100644 --- a/www/ecrire/maj/v014.php +++ b/www/ecrire/maj/v014.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v015.php b/www/ecrire/maj/v015.php index c141afa9..eb56c9c3 100644 --- a/www/ecrire/maj/v015.php +++ b/www/ecrire/maj/v015.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v016.php b/www/ecrire/maj/v016.php index 7cd11c0c..964b03cf 100644 --- a/www/ecrire/maj/v016.php +++ b/www/ecrire/maj/v016.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v017.php b/www/ecrire/maj/v017.php index c447266f..31b65852 100644 --- a/www/ecrire/maj/v017.php +++ b/www/ecrire/maj/v017.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v018.php b/www/ecrire/maj/v018.php index 114df0de..8bc746ad 100644 --- a/www/ecrire/maj/v018.php +++ b/www/ecrire/maj/v018.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v019.php b/www/ecrire/maj/v019.php index ad599063..6f25476f 100644 --- a/www/ecrire/maj/v019.php +++ b/www/ecrire/maj/v019.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/maj/v019_pre193.php b/www/ecrire/maj/v019_pre193.php index bad0d5f9..0c47a243 100644 --- a/www/ecrire/maj/v019_pre193.php +++ b/www/ecrire/maj/v019_pre193.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/paquet.xml b/www/ecrire/paquet.xml index a14f6d02..87f5e339 100644 --- a/www/ecrire/paquet.xml +++ b/www/ecrire/paquet.xml @@ -1,14 +1,14 @@ +> SPIP diff --git a/www/ecrire/plugins/afficher_liste.php b/www/ecrire/plugins/afficher_liste.php index 6aa7b1b3..c1046ee0 100644 --- a/www/ecrire/plugins/afficher_liste.php +++ b/www/ecrire/plugins/afficher_liste.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/afficher_nom_plugin.php b/www/ecrire/plugins/afficher_nom_plugin.php index ae074d22..fdbecadb 100644 --- a/www/ecrire/plugins/afficher_nom_plugin.php +++ b/www/ecrire/plugins/afficher_nom_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/afficher_plugin.php b/www/ecrire/plugins/afficher_plugin.php index 6c9989f8..7ae782a9 100644 --- a/www/ecrire/plugins/afficher_plugin.php +++ b/www/ecrire/plugins/afficher_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/afficher_repertoires.php b/www/ecrire/plugins/afficher_repertoires.php index d3bdef73..af14268f 100644 --- a/www/ecrire/plugins/afficher_repertoires.php +++ b/www/ecrire/plugins/afficher_repertoires.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/extraire_boutons.php b/www/ecrire/plugins/extraire_boutons.php index fdb761bc..6bb5cd38 100644 --- a/www/ecrire/plugins/extraire_boutons.php +++ b/www/ecrire/plugins/extraire_boutons.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/extraire_pipelines.php b/www/ecrire/plugins/extraire_pipelines.php index aef46b19..a3da5efb 100644 --- a/www/ecrire/plugins/extraire_pipelines.php +++ b/www/ecrire/plugins/extraire_pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/get_infos.php b/www/ecrire/plugins/get_infos.php index 3681b8b4..4cfe6142 100644 --- a/www/ecrire/plugins/get_infos.php +++ b/www/ecrire/plugins/get_infos.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/infos_paquet.php b/www/ecrire/plugins/infos_paquet.php index 6ba910dc..55c793b2 100644 --- a/www/ecrire/plugins/infos_paquet.php +++ b/www/ecrire/plugins/infos_paquet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/infos_plugin.php b/www/ecrire/plugins/infos_plugin.php index 915dd826..5590ce52 100644 --- a/www/ecrire/plugins/infos_plugin.php +++ b/www/ecrire/plugins/infos_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/installer.php b/www/ecrire/plugins/installer.php index 12d74ac6..8d08e3b1 100644 --- a/www/ecrire/plugins/installer.php +++ b/www/ecrire/plugins/installer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/plugins/verifie_conformite.php b/www/ecrire/plugins/verifie_conformite.php index c0cbac04..800acbaa 100644 --- a/www/ecrire/plugins/verifie_conformite.php +++ b/www/ecrire/plugins/verifie_conformite.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/prive.php b/www/ecrire/prive.php index c3bf5a69..e0394f96 100644 --- a/www/ecrire/prive.php +++ b/www/ecrire/prive.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public.php b/www/ecrire/public.php index a1288894..c24466ed 100644 --- a/www/ecrire/public.php +++ b/www/ecrire/public.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/admin.php b/www/ecrire/public/admin.php index f361e284..ed1ab609 100644 --- a/www/ecrire/public/admin.php +++ b/www/ecrire/public/admin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/aiguiller.php b/www/ecrire/public/aiguiller.php index 28f552b7..8b3bc506 100644 --- a/www/ecrire/public/aiguiller.php +++ b/www/ecrire/public/aiguiller.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/assembler.php b/www/ecrire/public/assembler.php index b0f58a95..c4796b31 100644 --- a/www/ecrire/public/assembler.php +++ b/www/ecrire/public/assembler.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/balises.php b/www/ecrire/public/balises.php index 27b8f197..dc042dd0 100644 --- a/www/ecrire/public/balises.php +++ b/www/ecrire/public/balises.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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; diff --git a/www/ecrire/public/boucles.php b/www/ecrire/public/boucles.php index be9513c0..37c0b1be 100644 --- a/www/ecrire/public/boucles.php +++ b/www/ecrire/public/boucles.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/cacher.php b/www/ecrire/public/cacher.php index ab8d1d97..478dbc3c 100644 --- a/www/ecrire/public/cacher.php +++ b/www/ecrire/public/cacher.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/compiler.php b/www/ecrire/public/compiler.php index 37418566..576545bd 100644 --- a/www/ecrire/public/compiler.php +++ b/www/ecrire/public/compiler.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/composer.php b/www/ecrire/public/composer.php index 02fee784..f96e8fbd 100644 --- a/www/ecrire/public/composer.php +++ b/www/ecrire/public/composer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/criteres.php b/www/ecrire/public/criteres.php index 92b7cc2d..f797b0a8 100644 --- a/www/ecrire/public/criteres.php +++ b/www/ecrire/public/criteres.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/debusquer.php b/www/ecrire/public/debusquer.php index 1fb6dd88..9fdae9f1 100644 --- a/www/ecrire/public/debusquer.php +++ b/www/ecrire/public/debusquer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/decompiler.php b/www/ecrire/public/decompiler.php index 7becebc6..9d5db122 100644 --- a/www/ecrire/public/decompiler.php +++ b/www/ecrire/public/decompiler.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/evaluer_page.php b/www/ecrire/public/evaluer_page.php index 85f56110..49c7090d 100644 --- a/www/ecrire/public/evaluer_page.php +++ b/www/ecrire/public/evaluer_page.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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']."
".$code,array($page['source'],'',$erreur['file'],'',$GLOBALS['spip_lang'])); + $page['texte'] = ""; + } + 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()."
".$code,array($page['source'],'',$e->getFile(),'',$GLOBALS['spip_lang'])); + $page['texte'] = ""; + } ob_end_clean(); $page['process_ins'] = 'html'; diff --git a/www/ecrire/public/format_html.php b/www/ecrire/public/format_html.php index fcfbfb3b..9efb9fc3 100644 --- a/www/ecrire/public/format_html.php +++ b/www/ecrire/public/format_html.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/interfaces.php b/www/ecrire/public/interfaces.php index 90a7e30c..f40ef5ef 100644 --- a/www/ecrire/public/interfaces.php +++ b/www/ecrire/public/interfaces.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/iterateur.php b/www/ecrire/public/iterateur.php index 89acafa8..3aa67112 100644 --- a/www/ecrire/public/iterateur.php +++ b/www/ecrire/public/iterateur.php @@ -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. * diff --git a/www/ecrire/public/jointures.php b/www/ecrire/public/jointures.php index cbad1c49..10e62c9c 100644 --- a/www/ecrire/public/jointures.php +++ b/www/ecrire/public/jointures.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/normaliser.php b/www/ecrire/public/normaliser.php index f596a0e1..09343391 100644 --- a/www/ecrire/public/normaliser.php +++ b/www/ecrire/public/normaliser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/parametrer.php b/www/ecrire/public/parametrer.php index adbf38db..07a69cb5 100644 --- a/www/ecrire/public/parametrer.php +++ b/www/ecrire/public/parametrer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/phraser_html.php b/www/ecrire/public/phraser_html.php index ea4aca8e..aea89ed2 100644 --- a/www/ecrire/public/phraser_html.php +++ b/www/ecrire/public/phraser_html.php @@ -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', '(.*),Uims'); -define('BALISE_IDIOMES',',<:(([a-z0-9_]+):)?([a-z0-9_]*)({([^\|=>]*=[^\|>]*)})?((\|[^>]*)?:>),iS'); +define('BALISE_INCLURE', '/(.*),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(',^,', '', $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); } + ?> diff --git a/www/ecrire/public/quete.php b/www/ecrire/public/quete.php index a5a87c1b..4f7eb406 100644 --- a/www/ecrire/public/quete.php +++ b/www/ecrire/public/quete.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/references.php b/www/ecrire/public/references.php index 39467c70..e5b1b405 100644 --- a/www/ecrire/public/references.php +++ b/www/ecrire/public/references.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/sandbox.php b/www/ecrire/public/sandbox.php index 3f615b06..d0cbd39f 100644 --- a/www/ecrire/public/sandbox.php +++ b/www/ecrire/public/sandbox.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/styliser.php b/www/ecrire/public/styliser.php index 02846e6f..07903130 100644 --- a/www/ecrire/public/styliser.php +++ b/www/ecrire/public/styliser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/styliser_par_z.php b/www/ecrire/public/styliser_par_z.php index 22d55a77..1527f360 100644 --- a/www/ecrire/public/styliser_par_z.php +++ b/www/ecrire/public/styliser_par_z.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/public/tracer.php b/www/ecrire/public/tracer.php index cf0fc9e9..3140ec30 100644 --- a/www/ecrire/public/tracer.php +++ b/www/ecrire/public/tracer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/req/mysql.php b/www/ecrire/req/mysql.php index 9a450aac..736108e8 100644 --- a/www/ecrire/req/mysql.php +++ b/www/ecrire/req/mysql.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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]; diff --git a/www/ecrire/req/pg.php b/www/ecrire/req/pg.php index 1d62a8f3..9ce37dfe 100644 --- a/www/ecrire/req/pg.php +++ b/www/ecrire/req/pg.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/req/sqlite2.php b/www/ecrire/req/sqlite2.php index 855476ae..9d384c3e 100644 --- a/www/ecrire/req/sqlite2.php +++ b/www/ecrire/req/sqlite2.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/req/sqlite3.php b/www/ecrire/req/sqlite3.php index 6eded16d..a701dff2 100644 --- a/www/ecrire/req/sqlite3.php +++ b/www/ecrire/req/sqlite3.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/req/sqlite_fonctions.php b/www/ecrire/req/sqlite_fonctions.php index 5afe5814..d6dee236 100644 --- a/www/ecrire/req/sqlite_fonctions.php +++ b/www/ecrire/req/sqlite_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/req/sqlite_generique.php b/www/ecrire/req/sqlite_generique.php index cc5196b3..e194bc76 100644 --- a/www/ecrire/req/sqlite_generique.php +++ b/www/ecrire/req/sqlite_generique.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/typographie/en.php b/www/ecrire/typographie/en.php index 6e99a2d3..36ebd378 100644 --- a/www/ecrire/typographie/en.php +++ b/www/ecrire/typographie/en.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/typographie/fr.php b/www/ecrire/typographie/fr.php index 1243ea2a..8de98d1c 100644 --- a/www/ecrire/typographie/fr.php +++ b/www/ecrire/typographie/fr.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/urls/page.php b/www/ecrire/urls/page.php index 6747a1b4..184b172d 100644 --- a/www/ecrire/urls/page.php +++ b/www/ecrire/urls/page.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/xml/analyser_dtd.php b/www/ecrire/xml/analyser_dtd.php index 36e2e84d..f0b432ea 100644 --- a/www/ecrire/xml/analyser_dtd.php +++ b/www/ecrire/xml/analyser_dtd.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/xml/indenter.php b/www/ecrire/xml/indenter.php index 7b9b0b9b..459fb8da 100644 --- a/www/ecrire/xml/indenter.php +++ b/www/ecrire/xml/indenter.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/xml/interfaces.php b/www/ecrire/xml/interfaces.php index be65f878..28998a52 100644 --- a/www/ecrire/xml/interfaces.php +++ b/www/ecrire/xml/interfaces.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/xml/sax.php b/www/ecrire/xml/sax.php index ceb97b70..16b940d9 100644 --- a/www/ecrire/xml/sax.php +++ b/www/ecrire/xml/sax.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/ecrire/xml/valider.php b/www/ecrire/xml/valider.php index 7cfc8368..d2a02d18 100644 --- a/www/ecrire/xml/valider.php +++ b/www/ecrire/xml/valider.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/htaccess.txt b/www/htaccess.txt index 1eb31538..4eb6b460 100644 --- a/www/htaccess.txt +++ b/www/htaccess.txt @@ -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 diff --git a/www/plugins-dist/breves/action/editer_breve.php b/www/plugins-dist/breves/action/editer_breve.php index 42f10737..7d7589bc 100644 --- a/www/plugins-dist/breves/action/editer_breve.php +++ b/www/plugins-dist/breves/action/editer_breve.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/base/breves.php b/www/plugins-dist/breves/base/breves.php index 311848a5..d8b4b203 100644 --- a/www/plugins-dist/breves/base/breves.php +++ b/www/plugins-dist/breves/base/breves.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/breves_administrations.php b/www/plugins-dist/breves/breves_administrations.php index 529d7481..b74be95a 100644 --- a/www/plugins-dist/breves/breves_administrations.php +++ b/www/plugins-dist/breves/breves_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/breves_autoriser.php b/www/plugins-dist/breves/breves_autoriser.php index ddea2886..cbd9515d 100644 --- a/www/plugins-dist/breves/breves_autoriser.php +++ b/www/plugins-dist/breves/breves_autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/breves_pipelines.php b/www/plugins-dist/breves/breves_pipelines.php index 0129b68a..92b40d54 100644 --- a/www/plugins-dist/breves/breves_pipelines.php +++ b/www/plugins-dist/breves/breves_pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/formulaires/configurer_breves.php b/www/plugins-dist/breves/formulaires/configurer_breves.php index c6e8ea6f..1ad5c0ad 100644 --- a/www/plugins-dist/breves/formulaires/configurer_breves.php +++ b/www/plugins-dist/breves/formulaires/configurer_breves.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/formulaires/editer_breve.php b/www/plugins-dist/breves/formulaires/editer_breve.php index c47a9612..3621d210 100644 --- a/www/plugins-dist/breves/formulaires/editer_breve.php +++ b/www/plugins-dist/breves/formulaires/editer_breve.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/breves/prive/squelettes/contenu/breves.html b/www/plugins-dist/breves/prive/squelettes/contenu/breves.html index 86b571cd..0fd54235 100644 --- a/www/plugins-dist/breves/prive/squelettes/contenu/breves.html +++ b/www/plugins-dist/breves/prive/squelettes/contenu/breves.html @@ -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. * diff --git a/www/plugins-dist/compresseur/compresseur_fonctions.php b/www/plugins-dist/compresseur/compresseur_fonctions.php index 606900af..f8af5139 100644 --- a/www/plugins-dist/compresseur/compresseur_fonctions.php +++ b/www/plugins-dist/compresseur/compresseur_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/compresseur_pipeline.php b/www/plugins-dist/compresseur/compresseur_pipeline.php index 11b16dcc..d3e3d73f 100644 --- a/www/plugins-dist/compresseur/compresseur_pipeline.php +++ b/www/plugins-dist/compresseur/compresseur_pipeline.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/formulaires/configurer_compresseur.php b/www/plugins-dist/compresseur/formulaires/configurer_compresseur.php index afbc2ba5..9e76cf53 100644 --- a/www/plugins-dist/compresseur/formulaires/configurer_compresseur.php +++ b/www/plugins-dist/compresseur/formulaires/configurer_compresseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/inc/compresseur.php b/www/plugins-dist/compresseur/inc/compresseur.php index 16296673..3f1ed516 100644 --- a/www/plugins-dist/compresseur/inc/compresseur.php +++ b/www/plugins-dist/compresseur/inc/compresseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/inc/compresseur_concatener.php b/www/plugins-dist/compresseur/inc/compresseur_concatener.php index 0d4b9a93..37a0ee7d 100644 --- a/www/plugins-dist/compresseur/inc/compresseur_concatener.php +++ b/www/plugins-dist/compresseur/inc/compresseur_concatener.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/inc/compresseur_embarquer.php b/www/plugins-dist/compresseur/inc/compresseur_embarquer.php index db1624aa..1e13290c 100644 --- a/www/plugins-dist/compresseur/inc/compresseur_embarquer.php +++ b/www/plugins-dist/compresseur/inc/compresseur_embarquer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/inc/compresseur_minifier.php b/www/plugins-dist/compresseur/inc/compresseur_minifier.php index ec07bd08..fc1f70f3 100644 --- a/www/plugins-dist/compresseur/inc/compresseur_minifier.php +++ b/www/plugins-dist/compresseur/inc/compresseur_minifier.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/compresseur/lib/csstidy/class.csstidy.php b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy.php index 29b84790..ff380a94 100644 --- a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy.php +++ b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy.php @@ -33,23 +33,28 @@ */ /** - * 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}; } diff --git a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_optimise.php b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_optimise.php index d42341ce..1ceb21fc 100644 --- a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_optimise.php +++ b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_optimise.php @@ -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']); diff --git a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php index 48aa8974..5f4c2cd4 100644 --- a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php +++ b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php @@ -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: diff --git a/www/plugins-dist/compresseur/paquet.xml b/www/plugins-dist/compresseur/paquet.xml index 74318be2..e9eaed63 100644 --- a/www/plugins-dist/compresseur/paquet.xml +++ b/www/plugins-dist/compresseur/paquet.xml @@ -1,9 +1,9 @@ diff --git a/www/plugins-dist/dump/action/restaurer.php b/www/plugins-dist/dump/action/restaurer.php index a6ffd491..e36a811e 100644 --- a/www/plugins-dist/dump/action/restaurer.php +++ b/www/plugins-dist/dump/action/restaurer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/action/sauvegarder.php b/www/plugins-dist/dump/action/sauvegarder.php index 84c8d16f..1e01ce95 100644 --- a/www/plugins-dist/dump/action/sauvegarder.php +++ b/www/plugins-dist/dump/action/sauvegarder.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/action/telecharger_dump.php b/www/plugins-dist/dump/action/telecharger_dump.php index 1706b692..4220446f 100644 --- a/www/plugins-dist/dump/action/telecharger_dump.php +++ b/www/plugins-dist/dump/action/telecharger_dump.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/base/restaurer.php b/www/plugins-dist/dump/base/restaurer.php index cf905533..bbc16266 100644 --- a/www/plugins-dist/dump/base/restaurer.php +++ b/www/plugins-dist/dump/base/restaurer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/connect/dump.php b/www/plugins-dist/dump/connect/dump.php index c2e25056..c5b330a3 100644 --- a/www/plugins-dist/dump/connect/dump.php +++ b/www/plugins-dist/dump/connect/dump.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/exec/base_restaurer.php b/www/plugins-dist/dump/exec/base_restaurer.php index 20821bb9..ef229c2f 100644 --- a/www/plugins-dist/dump/exec/base_restaurer.php +++ b/www/plugins-dist/dump/exec/base_restaurer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/formulaires/restaurer.php b/www/plugins-dist/dump/formulaires/restaurer.php index d16bf490..4cc14601 100644 --- a/www/plugins-dist/dump/formulaires/restaurer.php +++ b/www/plugins-dist/dump/formulaires/restaurer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/formulaires/sauvegarder.php b/www/plugins-dist/dump/formulaires/sauvegarder.php index 6e040497..17c1320a 100644 --- a/www/plugins-dist/dump/formulaires/sauvegarder.php +++ b/www/plugins-dist/dump/formulaires/sauvegarder.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/inc/dump.php b/www/plugins-dist/dump/inc/dump.php index 08c1b73c..01c5f2fc 100644 --- a/www/plugins-dist/dump/inc/dump.php +++ b/www/plugins-dist/dump/inc/dump.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/inc/sauvegarder.php b/www/plugins-dist/dump/inc/sauvegarder.php index 7fdf3b13..f9475311 100644 --- a/www/plugins-dist/dump/inc/sauvegarder.php +++ b/www/plugins-dist/dump/inc/sauvegarder.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/prive/squelettes/contenu/restaurer_fonctions.php b/www/plugins-dist/dump/prive/squelettes/contenu/restaurer_fonctions.php index d007b0d0..773a8844 100644 --- a/www/plugins-dist/dump/prive/squelettes/contenu/restaurer_fonctions.php +++ b/www/plugins-dist/dump/prive/squelettes/contenu/restaurer_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/dump/prive/squelettes/contenu/sauvegarder_fonctions.php b/www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php index 8d6ae837..261bf402 100644 --- a/www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php +++ b/www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/filtres_images/filtres/couleurs.php b/www/plugins-dist/filtres_images/filtres/couleurs.php index 6618334e..193fb724 100644 --- a/www/plugins-dist/filtres_images/filtres/couleurs.php +++ b/www/plugins-dist/filtres_images/filtres/couleurs.php @@ -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. * diff --git a/www/plugins-dist/filtres_images/filtres/images_lib.php b/www/plugins-dist/filtres_images/filtres/images_lib.php index bfe43eb9..5b791643 100644 --- a/www/plugins-dist/filtres_images/filtres/images_lib.php +++ b/www/plugins-dist/filtres_images/filtres/images_lib.php @@ -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. * diff --git a/www/plugins-dist/filtres_images/filtres/images_transforme.php b/www/plugins-dist/filtres_images/filtres/images_transforme.php index d3233a7c..c2a5acfa 100644 --- a/www/plugins-dist/filtres_images/filtres/images_transforme.php +++ b/www/plugins-dist/filtres_images/filtres/images_transforme.php @@ -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. * diff --git a/www/plugins-dist/filtres_images/filtres/images_typo.php b/www/plugins-dist/filtres_images/filtres/images_typo.php index 019a4c7f..e764bdfa 100644 --- a/www/plugins-dist/filtres_images/filtres/images_typo.php +++ b/www/plugins-dist/filtres_images/filtres/images_typo.php @@ -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); diff --git a/www/plugins-dist/filtres_images/images_fonctions.php b/www/plugins-dist/filtres_images/images_fonctions.php index 0c376e47..5ebbf9fa 100644 --- a/www/plugins-dist/filtres_images/images_fonctions.php +++ b/www/plugins-dist/filtres_images/images_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/filtres_images/inc/filtres_images.php b/www/plugins-dist/filtres_images/inc/filtres_images.php index de55df79..5b0b581c 100644 --- a/www/plugins-dist/filtres_images/inc/filtres_images.php +++ b/www/plugins-dist/filtres_images/inc/filtres_images.php @@ -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. * diff --git a/www/plugins-dist/filtres_images/inc/filtres_images_compat.php b/www/plugins-dist/filtres_images/inc/filtres_images_compat.php index 9daae631..19a83d1f 100644 --- a/www/plugins-dist/filtres_images/inc/filtres_images_compat.php +++ b/www/plugins-dist/filtres_images/inc/filtres_images_compat.php @@ -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. * diff --git a/www/plugins-dist/filtres_images/paquet.xml b/www/plugins-dist/filtres_images/paquet.xml index 4b23ce73..27f43db2 100644 --- a/www/plugins-dist/filtres_images/paquet.xml +++ b/www/plugins-dist/filtres_images/paquet.xml @@ -1,7 +1,7 @@ {200}|oui) [(#SELF|parametre_url{nb,1000}|lien_ou_expose{1000,#ENV{nb}|=={1000},ajax})]]

] - + [(#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})] diff --git a/www/plugins-dist/mots/prive/squelettes/contenu/mots.html b/www/plugins-dist/mots/prive/squelettes/contenu/mots.html index 4b09e5d6..bc681ee1 100644 --- a/www/plugins-dist/mots/prive/squelettes/contenu/mots.html +++ b/www/plugins-dist/mots/prive/squelettes/contenu/mots.html @@ -14,7 +14,7 @@ data,#INCLURE{fond=prive/objets/contenu/groupe_mots, id=#ID_GROUPE, id_groupe=#ID_GROUPE}}})]
- + [(#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})] diff --git a/www/plugins-dist/mots/puce_statut/mot.php b/www/plugins-dist/mots/puce_statut/mot.php index d7ae686e..6e5d52b2 100644 --- a/www/plugins-dist/mots/puce_statut/mot.php +++ b/www/plugins-dist/mots/puce_statut/mot.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/msie_compat/formulaires/configurer_vieux_butineurs.php b/www/plugins-dist/msie_compat/formulaires/configurer_vieux_butineurs.php index 186ea7b3..ce6ca094 100644 --- a/www/plugins-dist/msie_compat/formulaires/configurer_vieux_butineurs.php +++ b/www/plugins-dist/msie_compat/formulaires/configurer_vieux_butineurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/action/effacer_messagerecu.php b/www/plugins-dist/organiseur/action/effacer_messagerecu.php index 2641f695..2798e33c 100644 --- a/www/plugins-dist/organiseur/action/effacer_messagerecu.php +++ b/www/plugins-dist/organiseur/action/effacer_messagerecu.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/action/envoyer_message.php b/www/plugins-dist/organiseur/action/envoyer_message.php index b1cbfb8d..8c4da611 100644 --- a/www/plugins-dist/organiseur/action/envoyer_message.php +++ b/www/plugins-dist/organiseur/action/envoyer_message.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/action/quete_autocomplete.php b/www/plugins-dist/organiseur/action/quete_autocomplete.php index 857ca805..5fe1f91b 100644 --- a/www/plugins-dist/organiseur/action/quete_autocomplete.php +++ b/www/plugins-dist/organiseur/action/quete_autocomplete.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/action/quete_calendrier_prive.php b/www/plugins-dist/organiseur/action/quete_calendrier_prive.php index 4e1921f4..144140bc 100644 --- a/www/plugins-dist/organiseur/action/quete_calendrier_prive.php +++ b/www/plugins-dist/organiseur/action/quete_calendrier_prive.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/action/supprimer_message.php b/www/plugins-dist/organiseur/action/supprimer_message.php index 98f93ad0..b11d1e2b 100644 --- a/www/plugins-dist/organiseur/action/supprimer_message.php +++ b/www/plugins-dist/organiseur/action/supprimer_message.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/base/organiseur.php b/www/plugins-dist/organiseur/base/organiseur.php index 6f6f6e4d..53e01c24 100644 --- a/www/plugins-dist/organiseur/base/organiseur.php +++ b/www/plugins-dist/organiseur/base/organiseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/formulaires/configurer_messagerie_agenda.php b/www/plugins-dist/organiseur/formulaires/configurer_messagerie_agenda.php index a2e9e9ba..2464bc68 100644 --- a/www/plugins-dist/organiseur/formulaires/configurer_messagerie_agenda.php +++ b/www/plugins-dist/organiseur/formulaires/configurer_messagerie_agenda.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/formulaires/editer_message.php b/www/plugins-dist/organiseur/formulaires/editer_message.php index 6c4313bb..a1929156 100644 --- a/www/plugins-dist/organiseur/formulaires/editer_message.php +++ b/www/plugins-dist/organiseur/formulaires/editer_message.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/inc/date_gestion.php b/www/plugins-dist/organiseur/inc/date_gestion.php index 8823fd4e..a3daa365 100644 --- a/www/plugins-dist/organiseur/inc/date_gestion.php +++ b/www/plugins-dist/organiseur/inc/date_gestion.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/inc/messages.php b/www/plugins-dist/organiseur/inc/messages.php index 640f4243..761ea6c9 100644 --- a/www/plugins-dist/organiseur/inc/messages.php +++ b/www/plugins-dist/organiseur/inc/messages.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/inc/quete_calendrier.php b/www/plugins-dist/organiseur/inc/quete_calendrier.php index 4c7bf897..ef1a3ca1 100644 --- a/www/plugins-dist/organiseur/inc/quete_calendrier.php +++ b/www/plugins-dist/organiseur/inc/quete_calendrier.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/notifications/instituermessage.php b/www/plugins-dist/organiseur/notifications/instituermessage.php index 03fd71cc..a19d6102 100644 --- a/www/plugins-dist/organiseur/notifications/instituermessage.php +++ b/www/plugins-dist/organiseur/notifications/instituermessage.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/organiseur_administrations.php b/www/plugins-dist/organiseur/organiseur_administrations.php index d61305e7..dac0225b 100644 --- a/www/plugins-dist/organiseur/organiseur_administrations.php +++ b/www/plugins-dist/organiseur/organiseur_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/organiseur_autoriser.php b/www/plugins-dist/organiseur/organiseur_autoriser.php index 34ad4eed..50a1719e 100644 --- a/www/plugins-dist/organiseur/organiseur_autoriser.php +++ b/www/plugins-dist/organiseur/organiseur_autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/organiseur_fonctions.php b/www/plugins-dist/organiseur/organiseur_fonctions.php index 15eaeb68..0006deb2 100644 --- a/www/plugins-dist/organiseur/organiseur_fonctions.php +++ b/www/plugins-dist/organiseur/organiseur_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/organiseur/organiseur_pipelines.php b/www/plugins-dist/organiseur/organiseur_pipelines.php index d44b438d..0c07ed11 100644 --- a/www/plugins-dist/organiseur/organiseur_pipelines.php +++ b/www/plugins-dist/organiseur/organiseur_pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/confirmer_signature.php b/www/plugins-dist/petitions/action/confirmer_signature.php index 3185e384..afd97eba 100644 --- a/www/plugins-dist/petitions/action/confirmer_signature.php +++ b/www/plugins-dist/petitions/action/confirmer_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/editer_petition.php b/www/plugins-dist/petitions/action/editer_petition.php index 02ceeb40..15d08e4c 100644 --- a/www/plugins-dist/petitions/action/editer_petition.php +++ b/www/plugins-dist/petitions/action/editer_petition.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/editer_signature.php b/www/plugins-dist/petitions/action/editer_signature.php index 4e9f6790..8036d5aa 100644 --- a/www/plugins-dist/petitions/action/editer_signature.php +++ b/www/plugins-dist/petitions/action/editer_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/relancer_signature.php b/www/plugins-dist/petitions/action/relancer_signature.php index 81071bb3..88221349 100644 --- a/www/plugins-dist/petitions/action/relancer_signature.php +++ b/www/plugins-dist/petitions/action/relancer_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/supprimer_signature.php b/www/plugins-dist/petitions/action/supprimer_signature.php index 33eef76a..996a0e39 100644 --- a/www/plugins-dist/petitions/action/supprimer_signature.php +++ b/www/plugins-dist/petitions/action/supprimer_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/traiter_lot_signature.php b/www/plugins-dist/petitions/action/traiter_lot_signature.php index 96a3f618..ee57b059 100644 --- a/www/plugins-dist/petitions/action/traiter_lot_signature.php +++ b/www/plugins-dist/petitions/action/traiter_lot_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/action/valider_signature.php b/www/plugins-dist/petitions/action/valider_signature.php index 59623b88..d9acb404 100644 --- a/www/plugins-dist/petitions/action/valider_signature.php +++ b/www/plugins-dist/petitions/action/valider_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/balise/formulaire_signature.php b/www/plugins-dist/petitions/balise/formulaire_signature.php index f38b8f6a..20130b3a 100644 --- a/www/plugins-dist/petitions/balise/formulaire_signature.php +++ b/www/plugins-dist/petitions/balise/formulaire_signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/base/petitions.php b/www/plugins-dist/petitions/base/petitions.php index f753d5e0..88f3654d 100644 --- a/www/plugins-dist/petitions/base/petitions.php +++ b/www/plugins-dist/petitions/base/petitions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/formulaires/activer_petition_article.php b/www/plugins-dist/petitions/formulaires/activer_petition_article.php index b54d6746..a7a3d254 100644 --- a/www/plugins-dist/petitions/formulaires/activer_petition_article.php +++ b/www/plugins-dist/petitions/formulaires/activer_petition_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/formulaires/signature.php b/www/plugins-dist/petitions/formulaires/signature.php index 014a6cba..e88bf513 100644 --- a/www/plugins-dist/petitions/formulaires/signature.php +++ b/www/plugins-dist/petitions/formulaires/signature.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/petitions_administrations.php b/www/plugins-dist/petitions/petitions_administrations.php index 0672680d..6d94929c 100644 --- a/www/plugins-dist/petitions/petitions_administrations.php +++ b/www/plugins-dist/petitions/petitions_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/petitions_autoriser.php b/www/plugins-dist/petitions/petitions_autoriser.php index c0aacf1e..94ba6b53 100644 --- a/www/plugins-dist/petitions/petitions_autoriser.php +++ b/www/plugins-dist/petitions/petitions_autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/petitions_fonctions.php b/www/plugins-dist/petitions/petitions_fonctions.php index b18b37ed..75e60b9a 100644 --- a/www/plugins-dist/petitions/petitions_fonctions.php +++ b/www/plugins-dist/petitions/petitions_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/petitions_options.php b/www/plugins-dist/petitions/petitions_options.php index bc987a20..28c65401 100644 --- a/www/plugins-dist/petitions/petitions_options.php +++ b/www/plugins-dist/petitions/petitions_options.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/petitions/petitions_pipelines.php b/www/plugins-dist/petitions/petitions_pipelines.php index 5b298335..9fddcb8d 100644 --- a/www/plugins-dist/petitions/petitions_pipelines.php +++ b/www/plugins-dist/petitions/petitions_pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/afficher_diff/champ.php b/www/plugins-dist/revisions/afficher_diff/champ.php index 91a0522c..5dea30b8 100644 --- a/www/plugins-dist/revisions/afficher_diff/champ.php +++ b/www/plugins-dist/revisions/afficher_diff/champ.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/afficher_diff/id_rubrique.php b/www/plugins-dist/revisions/afficher_diff/id_rubrique.php index 6c0ba134..6eb47efe 100644 --- a/www/plugins-dist/revisions/afficher_diff/id_rubrique.php +++ b/www/plugins-dist/revisions/afficher_diff/id_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/afficher_diff/jointure.php b/www/plugins-dist/revisions/afficher_diff/jointure.php index ea200481..676d5a9c 100644 --- a/www/plugins-dist/revisions/afficher_diff/jointure.php +++ b/www/plugins-dist/revisions/afficher_diff/jointure.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/base/revisions.php b/www/plugins-dist/revisions/base/revisions.php index 8336201e..5d3854ee 100644 --- a/www/plugins-dist/revisions/base/revisions.php +++ b/www/plugins-dist/revisions/base/revisions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/formulaires/configurer_revisions_objets.php b/www/plugins-dist/revisions/formulaires/configurer_revisions_objets.php index b449dccf..421aaafe 100644 --- a/www/plugins-dist/revisions/formulaires/configurer_revisions_objets.php +++ b/www/plugins-dist/revisions/formulaires/configurer_revisions_objets.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/formulaires/reviser.php b/www/plugins-dist/revisions/formulaires/reviser.php index ccc5eb15..205b3a28 100644 --- a/www/plugins-dist/revisions/formulaires/reviser.php +++ b/www/plugins-dist/revisions/formulaires/reviser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/genie/optimiser_revisions.php b/www/plugins-dist/revisions/genie/optimiser_revisions.php index f22e703a..9d75618c 100644 --- a/www/plugins-dist/revisions/genie/optimiser_revisions.php +++ b/www/plugins-dist/revisions/genie/optimiser_revisions.php @@ -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. * diff --git a/www/plugins-dist/revisions/inc/diff.php b/www/plugins-dist/revisions/inc/diff.php index 941d1d99..c6691209 100644 --- a/www/plugins-dist/revisions/inc/diff.php +++ b/www/plugins-dist/revisions/inc/diff.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/inc/revisions.php b/www/plugins-dist/revisions/inc/revisions.php index 1b9f24b3..3427eb3b 100644 --- a/www/plugins-dist/revisions/inc/revisions.php +++ b/www/plugins-dist/revisions/inc/revisions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/inc/revisions_autoriser.php b/www/plugins-dist/revisions/inc/revisions_autoriser.php index 22cf2b74..91ef0561 100644 --- a/www/plugins-dist/revisions/inc/revisions_autoriser.php +++ b/www/plugins-dist/revisions/inc/revisions_autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/inc/revisions_pipeline.php b/www/plugins-dist/revisions/inc/revisions_pipeline.php index b2fd1acb..7e94e7b1 100644 --- a/www/plugins-dist/revisions/inc/revisions_pipeline.php +++ b/www/plugins-dist/revisions/inc/revisions_pipeline.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/inc/suivi_versions.php b/www/plugins-dist/revisions/inc/suivi_versions.php index 5fe0d59a..3186367b 100644 --- a/www/plugins-dist/revisions/inc/suivi_versions.php +++ b/www/plugins-dist/revisions/inc/suivi_versions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/paquet.xml b/www/plugins-dist/revisions/paquet.xml index 999f5c61..40d0c9c0 100644 --- a/www/plugins-dist/revisions/paquet.xml +++ b/www/plugins-dist/revisions/paquet.xml @@ -1,7 +1,7 @@ [(#INFO_STATUT{#OBJET,#ID_OBJET}|puce_statut{#OBJET})] [(#OBJET|objet_icone{16})] - #SET{diff,#ID_OBJET|revisions_diff{#OBJET,#ID_VERSION}} + [(#REM) desactive/ perf issue #SET{diff,#ID_OBJET|revisions_diff{#OBJET,#ID_VERSION}} ] [[(#CHEMIN_IMAGE{diff-16.png}|balise_img{<:revisions:voir_differences:>})] (#GET{diff}|oui)] diff --git a/www/plugins-dist/revisions/prive/rss/revisions_fonctions.php b/www/plugins-dist/revisions/prive/rss/revisions_fonctions.php index a1751a8d..13a005cb 100644 --- a/www/plugins-dist/revisions/prive/rss/revisions_fonctions.php +++ b/www/plugins-dist/revisions/prive/rss/revisions_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/revisions/revisions_administrations.php b/www/plugins-dist/revisions/revisions_administrations.php index a740db6b..454ede51 100644 --- a/www/plugins-dist/revisions/revisions_administrations.php +++ b/www/plugins-dist/revisions/revisions_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/safehtml/inc/safehtml.php b/www/plugins-dist/safehtml/inc/safehtml.php index c75575ce..c2c71f9a 100644 --- a/www/plugins-dist/safehtml/inc/safehtml.php +++ b/www/plugins-dist/safehtml/inc/safehtml.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/editer_site.php b/www/plugins-dist/sites/action/editer_site.php index 80981142..36797707 100644 --- a/www/plugins-dist/sites/action/editer_site.php +++ b/www/plugins-dist/sites/action/editer_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/exporter_bookmarks.php b/www/plugins-dist/sites/action/exporter_bookmarks.php index 6d8c6358..c4418b21 100644 --- a/www/plugins-dist/sites/action/exporter_bookmarks.php +++ b/www/plugins-dist/sites/action/exporter_bookmarks.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/importer_bookmarks_netscape.php b/www/plugins-dist/sites/action/importer_bookmarks_netscape.php index 2fd54642..8e6788f2 100644 --- a/www/plugins-dist/sites/action/importer_bookmarks_netscape.php +++ b/www/plugins-dist/sites/action/importer_bookmarks_netscape.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/instituer_syndic_article.php b/www/plugins-dist/sites/action/instituer_syndic_article.php index 364b54ed..47fe722d 100644 --- a/www/plugins-dist/sites/action/instituer_syndic_article.php +++ b/www/plugins-dist/sites/action/instituer_syndic_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/purger_site.php b/www/plugins-dist/sites/action/purger_site.php index 66c23e6e..417a4a92 100644 --- a/www/plugins-dist/sites/action/purger_site.php +++ b/www/plugins-dist/sites/action/purger_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/action/syndiquer_site.php b/www/plugins-dist/sites/action/syndiquer_site.php index fcaca81b..6f906fd0 100644 --- a/www/plugins-dist/sites/action/syndiquer_site.php +++ b/www/plugins-dist/sites/action/syndiquer_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/balise/formulaire_site.php b/www/plugins-dist/sites/balise/formulaire_site.php index 71f9cf87..8aedc3ac 100644 --- a/www/plugins-dist/sites/balise/formulaire_site.php +++ b/www/plugins-dist/sites/balise/formulaire_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/base/sites.php b/www/plugins-dist/sites/base/sites.php index fe007de3..29dfef83 100644 --- a/www/plugins-dist/sites/base/sites.php +++ b/www/plugins-dist/sites/base/sites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/configurer_sites.php b/www/plugins-dist/sites/formulaires/configurer_sites.php index d5bceb7c..44fe8743 100644 --- a/www/plugins-dist/sites/formulaires/configurer_sites.php +++ b/www/plugins-dist/sites/formulaires/configurer_sites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/editer_site.php b/www/plugins-dist/sites/formulaires/editer_site.php index baf63b23..2ee3e4a2 100644 --- a/www/plugins-dist/sites/formulaires/editer_site.php +++ b/www/plugins-dist/sites/formulaires/editer_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/editer_site_fonctions.php b/www/plugins-dist/sites/formulaires/editer_site_fonctions.php index fce3588f..0f995d80 100644 --- a/www/plugins-dist/sites/formulaires/editer_site_fonctions.php +++ b/www/plugins-dist/sites/formulaires/editer_site_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/exporter_sites.php b/www/plugins-dist/sites/formulaires/exporter_sites.php index 38ff0bac..d07005e7 100644 --- a/www/plugins-dist/sites/formulaires/exporter_sites.php +++ b/www/plugins-dist/sites/formulaires/exporter_sites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/importer_sites.php b/www/plugins-dist/sites/formulaires/importer_sites.php index be54831e..302df4cc 100644 --- a/www/plugins-dist/sites/formulaires/importer_sites.php +++ b/www/plugins-dist/sites/formulaires/importer_sites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/regler_moderation_site.php b/www/plugins-dist/sites/formulaires/regler_moderation_site.php index 8c4d3c33..9d7d685a 100644 --- a/www/plugins-dist/sites/formulaires/regler_moderation_site.php +++ b/www/plugins-dist/sites/formulaires/regler_moderation_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/formulaires/site.php b/www/plugins-dist/sites/formulaires/site.php index 19f05746..df3d9240 100644 --- a/www/plugins-dist/sites/formulaires/site.php +++ b/www/plugins-dist/sites/formulaires/site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/genie/syndic.php b/www/plugins-dist/sites/genie/syndic.php index eb474373..ed8b5f15 100644 --- a/www/plugins-dist/sites/genie/syndic.php +++ b/www/plugins-dist/sites/genie/syndic.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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', diff --git a/www/plugins-dist/sites/inc/site.php b/www/plugins-dist/sites/inc/site.php index 66775d3a..2593d362 100644 --- a/www/plugins-dist/sites/inc/site.php +++ b/www/plugins-dist/sites/inc/site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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(',]*>(.*),i', $head, $regs)) - $result['nom_site'] = filtrer_entites(supprimer_tags(preg_replace(',.*,i', '', $regs[1]))); + + if (preg_match(',]*>(.*),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(',.*$,ims', '', $titre))); + } + if ($a = array_merge( extraire_balises($head, 'meta'), extraire_balises($head, 'http-equiv') diff --git a/www/plugins-dist/sites/inc/syndic.php b/www/plugins-dist/sites/inc/syndic.php index 56d0e2d1..f7bbc63c 100644 --- a/www/plugins-dist/sites/inc/syndic.php +++ b/www/plugins-dist/sites/inc/syndic.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 et ) if (preg_match_all( ',]+[[:space:]])?rel=[^>]+>.*,Uims', diff --git a/www/plugins-dist/sites/liens/implicite_site.php b/www/plugins-dist/sites/liens/implicite_site.php index 233a5c4e..66dc7206 100644 --- a/www/plugins-dist/sites/liens/implicite_site.php +++ b/www/plugins-dist/sites/liens/implicite_site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/paquet.xml b/www/plugins-dist/sites/paquet.xml index 7894bd71..c34ec289 100644 --- a/www/plugins-dist/sites/paquet.xml +++ b/www/plugins-dist/sites/paquet.xml @@ -1,7 +1,7 @@ -[] +[] @@ -25,7 +25,8 @@ - + diff --git a/www/plugins-dist/urls_etendues/prive/squelettes/navigation/controler_urls.html b/www/plugins-dist/urls_etendues/prive/squelettes/navigation/controler_urls.html index 63abdeb7..a1f14845 100644 --- a/www/plugins-dist/urls_etendues/prive/squelettes/navigation/controler_urls.html +++ b/www/plugins-dist/urls_etendues/prive/squelettes/navigation/controler_urls.html @@ -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 diff --git a/www/plugins-dist/urls_etendues/urls/arbo.php b/www/plugins-dist/urls_etendues/urls/arbo.php index ecd85ea4..e5eea98b 100644 --- a/www/plugins-dist/urls_etendues/urls/arbo.php +++ b/www/plugins-dist/urls_etendues/urls/arbo.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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); } diff --git a/www/plugins-dist/urls_etendues/urls/html.php b/www/plugins-dist/urls_etendues/urls/html.php index 1864338a..ab1a5658 100644 --- a/www/plugins-dist/urls_etendues/urls/html.php +++ b/www/plugins-dist/urls_etendues/urls/html.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/libres.php b/www/plugins-dist/urls_etendues/urls/libres.php index 693d74ea..85d82df2 100644 --- a/www/plugins-dist/urls_etendues/urls/libres.php +++ b/www/plugins-dist/urls_etendues/urls/libres.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/propres.php b/www/plugins-dist/urls_etendues/urls/propres.php index 3ce5d55a..360b8f01 100644 --- a/www/plugins-dist/urls_etendues/urls/propres.php +++ b/www/plugins-dist/urls_etendues/urls/propres.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/propres2.php b/www/plugins-dist/urls_etendues/urls/propres2.php index e32a5f52..f1254aed 100644 --- a/www/plugins-dist/urls_etendues/urls/propres2.php +++ b/www/plugins-dist/urls_etendues/urls/propres2.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/propres_qs.php b/www/plugins-dist/urls_etendues/urls/propres_qs.php index b173fb48..07a86829 100644 --- a/www/plugins-dist/urls_etendues/urls/propres_qs.php +++ b/www/plugins-dist/urls_etendues/urls/propres_qs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/simple.php b/www/plugins-dist/urls_etendues/urls/simple.php index 62b87df9..7bfd202c 100644 --- a/www/plugins-dist/urls_etendues/urls/simple.php +++ b/www/plugins-dist/urls_etendues/urls/simple.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls/standard.php b/www/plugins-dist/urls_etendues/urls/standard.php index 5bb69c44..b9d519d6 100644 --- a/www/plugins-dist/urls_etendues/urls/standard.php +++ b/www/plugins-dist/urls_etendues/urls/standard.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls_administrations.php b/www/plugins-dist/urls_etendues/urls_administrations.php index 90d93579..024013dc 100644 --- a/www/plugins-dist/urls_etendues/urls_administrations.php +++ b/www/plugins-dist/urls_etendues/urls_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/urls_etendues/urls_pipeline.php b/www/plugins-dist/urls_etendues/urls_pipeline.php index eeb1b30c..bf64ede1 100644 --- a/www/plugins-dist/urls_etendues/urls_pipeline.php +++ b/www/plugins-dist/urls_etendues/urls_pipeline.php @@ -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 +?> diff --git a/www/plugins-dist/vertebres/public/vertebrer.php b/www/plugins-dist/vertebres/public/vertebrer.php index fc713cc0..ee7b17d4 100644 --- a/www/plugins-dist/vertebres/public/vertebrer.php +++ b/www/plugins-dist/vertebres/public/vertebrer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/aide_body.css b/www/prive/aide_body.css index 7f7e5217..a39ead12 100644 --- a/www/prive/aide_body.css +++ b/www/prive/aide_body.css @@ -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. */ diff --git a/www/prive/aide_menu.html b/www/prive/aide_menu.html index 48d5d3e9..4bb2a524 100644 --- a/www/prive/aide_menu.html +++ b/www/prive/aide_menu.html @@ -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. */ diff --git a/www/prive/echafaudage/hierarchie/objet_fonctions.php b/www/prive/echafaudage/hierarchie/objet_fonctions.php index bc987164..96a12f69 100644 --- a/www/prive/echafaudage/hierarchie/objet_fonctions.php +++ b/www/prive/echafaudage/hierarchie/objet_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_annonces.php b/www/prive/formulaires/configurer_annonces.php index cd7a49b6..c68b8c9f 100644 --- a/www/prive/formulaires/configurer_annonces.php +++ b/www/prive/formulaires/configurer_annonces.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_articles.php b/www/prive/formulaires/configurer_articles.php index ca6d5b88..0ff47b35 100644 --- a/www/prive/formulaires/configurer_articles.php +++ b/www/prive/formulaires/configurer_articles.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_avertisseur.php b/www/prive/formulaires/configurer_avertisseur.php index b1d675e4..68e81250 100644 --- a/www/prive/formulaires/configurer_avertisseur.php +++ b/www/prive/formulaires/configurer_avertisseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_flux.php b/www/prive/formulaires/configurer_flux.php index 4c501318..90793b1a 100644 --- a/www/prive/formulaires/configurer_flux.php +++ b/www/prive/formulaires/configurer_flux.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_identite.php b/www/prive/formulaires/configurer_identite.php index d6f084c0..83e2ee96 100644 --- a/www/prive/formulaires/configurer_identite.php +++ b/www/prive/formulaires/configurer_identite.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_langage.php b/www/prive/formulaires/configurer_langage.php index a27c02f1..6e37ee33 100644 --- a/www/prive/formulaires/configurer_langage.php +++ b/www/prive/formulaires/configurer_langage.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_langue.php b/www/prive/formulaires/configurer_langue.php index 3190877d..d00f70c6 100644 --- a/www/prive/formulaires/configurer_langue.php +++ b/www/prive/formulaires/configurer_langue.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_logos.php b/www/prive/formulaires/configurer_logos.php index 899ebee4..6982337f 100644 --- a/www/prive/formulaires/configurer_logos.php +++ b/www/prive/formulaires/configurer_logos.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_metas.php b/www/prive/formulaires/configurer_metas.php index 5b13e919..86021a8b 100644 --- a/www/prive/formulaires/configurer_metas.php +++ b/www/prive/formulaires/configurer_metas.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_moderniseur.php b/www/prive/formulaires/configurer_moderniseur.php index beede935..e4927511 100644 --- a/www/prive/formulaires/configurer_moderniseur.php +++ b/www/prive/formulaires/configurer_moderniseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_multilinguisme.php b/www/prive/formulaires/configurer_multilinguisme.php index a15523a4..4e703e02 100644 --- a/www/prive/formulaires/configurer_multilinguisme.php +++ b/www/prive/formulaires/configurer_multilinguisme.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_preferences.php b/www/prive/formulaires/configurer_preferences.php index ef6f3f3b..15f680e0 100644 --- a/www/prive/formulaires/configurer_preferences.php +++ b/www/prive/formulaires/configurer_preferences.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_previsualiseur.php b/www/prive/formulaires/configurer_previsualiseur.php index 55a639da..1cc1d23a 100644 --- a/www/prive/formulaires/configurer_previsualiseur.php +++ b/www/prive/formulaires/configurer_previsualiseur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_redacteurs.php b/www/prive/formulaires/configurer_redacteurs.php index e29582d0..560901fe 100644 --- a/www/prive/formulaires/configurer_redacteurs.php +++ b/www/prive/formulaires/configurer_redacteurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_reducteur.php b/www/prive/formulaires/configurer_reducteur.php index 11ebe7ad..7120eb74 100644 --- a/www/prive/formulaires/configurer_reducteur.php +++ b/www/prive/formulaires/configurer_reducteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_relayeur.php b/www/prive/formulaires/configurer_relayeur.php index 6b8f5bf6..539f1dd4 100644 --- a/www/prive/formulaires/configurer_relayeur.php +++ b/www/prive/formulaires/configurer_relayeur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_rubriques.php b/www/prive/formulaires/configurer_rubriques.php index c986540c..c73dbca2 100644 --- a/www/prive/formulaires/configurer_rubriques.php +++ b/www/prive/formulaires/configurer_rubriques.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_transcodeur.php b/www/prive/formulaires/configurer_transcodeur.php index 31c5cd19..346ed192 100644 --- a/www/prive/formulaires/configurer_transcodeur.php +++ b/www/prive/formulaires/configurer_transcodeur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/configurer_visiteurs.php b/www/prive/formulaires/configurer_visiteurs.php index 9eff5eae..b8438ff3 100644 --- a/www/prive/formulaires/configurer_visiteurs.php +++ b/www/prive/formulaires/configurer_visiteurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/dater.php b/www/prive/formulaires/dater.php index 230063ed..f8aebccd 100644 --- a/www/prive/formulaires/dater.php +++ b/www/prive/formulaires/dater.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/declarer_bases.php b/www/prive/formulaires/declarer_bases.php index 405f72e0..11683dc6 100644 --- a/www/prive/formulaires/declarer_bases.php +++ b/www/prive/formulaires/declarer_bases.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/editer_article.php b/www/prive/formulaires/editer_article.php index 794c27a8..531ee339 100644 --- a/www/prive/formulaires/editer_article.php +++ b/www/prive/formulaires/editer_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/editer_liens.php b/www/prive/formulaires/editer_liens.php index d75c3e4e..b027b995 100644 --- a/www/prive/formulaires/editer_liens.php +++ b/www/prive/formulaires/editer_liens.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/editer_logo.php b/www/prive/formulaires/editer_logo.php index d50ac643..0e5abaa5 100644 --- a/www/prive/formulaires/editer_logo.php +++ b/www/prive/formulaires/editer_logo.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/editer_rubrique.php b/www/prive/formulaires/editer_rubrique.php index 16ff8650..0fcea528 100644 --- a/www/prive/formulaires/editer_rubrique.php +++ b/www/prive/formulaires/editer_rubrique.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/instituer_objet.php b/www/prive/formulaires/instituer_objet.php index e7fc0f87..20f03b6f 100644 --- a/www/prive/formulaires/instituer_objet.php +++ b/www/prive/formulaires/instituer_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/login.php b/www/prive/formulaires/login.php index fe914a53..ef2d6c89 100644 --- a/www/prive/formulaires/login.php +++ b/www/prive/formulaires/login.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/recherche_ecrire.php b/www/prive/formulaires/recherche_ecrire.php index f314484f..596dfc46 100644 --- a/www/prive/formulaires/recherche_ecrire.php +++ b/www/prive/formulaires/recherche_ecrire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/rediriger_article.php b/www/prive/formulaires/rediriger_article.php index a210408e..29ede2c6 100644 --- a/www/prive/formulaires/rediriger_article.php +++ b/www/prive/formulaires/rediriger_article.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/formulaires/selecteur/inc-nav-rubriques.html b/www/prive/formulaires/selecteur/inc-nav-rubriques.html index 822b2704..d49e0407 100644 --- a/www/prive/formulaires/selecteur/inc-nav-rubriques.html +++ b/www/prive/formulaires/selecteur/inc-nav-rubriques.html @@ -1,7 +1,7 @@ #SET{p,pr_#ID_RUBRIQUE} [

(#PAGINATION)

]
    -
  • [(#ENV{rubriques,0}|oui)<:bouton_choisir:>]
  • diff --git a/www/prive/formulaires/selecteur/lister-racine-rubriques.html b/www/prive/formulaires/selecteur/lister-racine-rubriques.html index e204d6a2..e6067660 100644 --- a/www/prive/formulaires/selecteur/lister-racine-rubriques.html +++ b/www/prive/formulaires/selecteur/lister-racine-rubriques.html @@ -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:>] diff --git a/www/prive/formulaires/selecteur/lister-rubriques-articles.html b/www/prive/formulaires/selecteur/lister-rubriques-articles.html index d92cc0de..f392b8bf 100644 --- a/www/prive/formulaires/selecteur/lister-rubriques-articles.html +++ b/www/prive/formulaires/selecteur/lister-rubriques-articles.html @@ -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:>] diff --git a/www/prive/formulaires/selecteur/lister-rubriques-rubriques.html b/www/prive/formulaires/selecteur/lister-rubriques-rubriques.html index 0f3666de..23c235a4 100644 --- a/www/prive/formulaires/selecteur/lister-rubriques-rubriques.html +++ b/www/prive/formulaires/selecteur/lister-rubriques-rubriques.html @@ -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:>] diff --git a/www/prive/formulaires/selecteur/lister.html b/www/prive/formulaires/selecteur/lister.html index 01929dea..7c1d7949 100644 --- a/www/prive/formulaires/selecteur/lister.html +++ b/www/prive/formulaires/selecteur/lister.html @@ -12,8 +12,8 @@ <:bouton_choisir:> ] diff --git a/www/prive/formulaires/traduire.php b/www/prive/formulaires/traduire.php index cbf0473e..998afaac 100644 --- a/www/prive/formulaires/traduire.php +++ b/www/prive/formulaires/traduire.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/informer_auteur_fonctions.php b/www/prive/informer_auteur_fonctions.php index c5b2efa1..c12d3eed 100644 --- a/www/prive/informer_auteur_fonctions.php +++ b/www/prive/informer_auteur_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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) diff --git a/www/prive/javascript/jquery.autosave.js b/www/prive/javascript/jquery.autosave.js index 64ef2d24..70dddd6b 100644 --- a/www/prive/javascript/jquery.autosave.js +++ b/www/prive/javascript/jquery.autosave.js @@ -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 diff --git a/www/prive/objets/liste/auteurs_associer_fonctions.php b/www/prive/objets/liste/auteurs_associer_fonctions.php index ffe7af04..89bca2af 100644 --- a/www/prive/objets/liste/auteurs_associer_fonctions.php +++ b/www/prive/objets/liste/auteurs_associer_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/objets/liste/auteurs_fonctions.php b/www/prive/objets/liste/auteurs_fonctions.php index cabf9070..584608c9 100644 --- a/www/prive/objets/liste/auteurs_fonctions.php +++ b/www/prive/objets/liste/auteurs_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/objets/liste/auteurs_lies_fonctions.php b/www/prive/objets/liste/auteurs_lies_fonctions.php index ffe7af04..89bca2af 100644 --- a/www/prive/objets/liste/auteurs_lies_fonctions.php +++ b/www/prive/objets/liste/auteurs_lies_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/objets/liste/objets-en-edition_fonctions.php b/www/prive/objets/liste/objets-en-edition_fonctions.php index 2a855c9f..dcc68bc4 100644 --- a/www/prive/objets/liste/objets-en-edition_fonctions.php +++ b/www/prive/objets/liste/objets-en-edition_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/objets/liste/objets-trad_fonctions.php b/www/prive/objets/liste/objets-trad_fonctions.php index 832b52f8..8bd75d7a 100644 --- a/www/prive/objets/liste/objets-trad_fonctions.php +++ b/www/prive/objets/liste/objets-trad_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/objets/liste/visiteurs_fonctions.php b/www/prive/objets/liste/visiteurs_fonctions.php index 6e5528e4..c9822a28 100644 --- a/www/prive/objets/liste/visiteurs_fonctions.php +++ b/www/prive/objets/liste/visiteurs_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/prive/spip_admin.css b/www/prive/spip_admin.css index 1d8e1d21..a24afbf0 100644 --- a/www/prive/spip_admin.css +++ b/www/prive/spip_admin.css @@ -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; diff --git a/www/prive/squelettes/inclure/barre-nav.html b/www/prive/squelettes/inclure/barre-nav.html index 8892cc78..67316ab8 100644 --- a/www/prive/squelettes/inclure/barre-nav.html +++ b/www/prive/squelettes/inclure/barre-nav.html @@ -5,7 +5,7 @@ diff --git a/www/prive/themes/spip/forms.css.html b/www/prive/themes/spip/forms.css.html index 6198bc2f..4e8d250d 100644 --- a/www/prive/themes/spip/forms.css.html +++ b/www/prive/themes/spip/forms.css.html @@ -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;} diff --git a/www/prive/themes/spip/icons.css.html b/www/prive/themes/spip/icons.css.html index cbddc504..c0d16c1a 100644 --- a/www/prive/themes/spip/icons.css.html +++ b/www/prive/themes/spip/icons.css.html @@ -112,7 +112,7 @@ .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;} diff --git a/www/prive/themes/spip/typo.css.html b/www/prive/themes/spip/typo.css.html index b1fc774b..25cf1645 100644 --- a/www/prive/themes/spip/typo.css.html +++ b/www/prive/themes/spip/typo.css.html @@ -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; } diff --git a/www/spip.php b/www/spip.php index 20c2d5bc..d22dd83b 100644 --- a/www/spip.php +++ b/www/spip.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes-dist/formulaires/ecrire_auteur.php b/www/squelettes-dist/formulaires/ecrire_auteur.php index d3f563f5..be267719 100644 --- a/www/squelettes-dist/formulaires/ecrire_auteur.php +++ b/www/squelettes-dist/formulaires/ecrire_auteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes-dist/formulaires/inscription.php b/www/squelettes-dist/formulaires/inscription.php index 5fb3267c..2f5908aa 100644 --- a/www/squelettes-dist/formulaires/inscription.php +++ b/www/squelettes-dist/formulaires/inscription.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes-dist/formulaires/mot_de_passe.php b/www/squelettes-dist/formulaires/mot_de_passe.php index c00b0b5e..f5db8f80 100644 --- a/www/squelettes-dist/formulaires/mot_de_passe.php +++ b/www/squelettes-dist/formulaires/mot_de_passe.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes-dist/formulaires/oubli.php b/www/squelettes-dist/formulaires/oubli.php index 48ba0eab..32ec2085 100644 --- a/www/squelettes-dist/formulaires/oubli.php +++ b/www/squelettes-dist/formulaires/oubli.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes-dist/formulaires/recherche.php b/www/squelettes-dist/formulaires/recherche.php index 5d02a1e4..c501605e 100644 --- a/www/squelettes-dist/formulaires/recherche.php +++ b/www/squelettes-dist/formulaires/recherche.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/svn.revision b/www/svn.revision index 18a77d5f..dc0e7c85 100644 --- a/www/svn.revision +++ b/www/svn.revision @@ -1,10 +1,10 @@ -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 -svn://trac.rezo.net/spip/tags/spip-3.0.21 -22462 -2015-10-31 22:17:30 +0100 +svn://trac.rezo.net/spip/tags/spip-3.0.22 +22914 +2016-03-10 15:00:32 +0100 \ No newline at end of file -- 2.20.1
(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{info_1_article_syndique,info_nb_articles_syndiques}})(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{sites:info_1_article_syndique,sites:info_nb_articles_syndiques}})
[(#TRI{statut,#,ajax})]
[(#STATUT|puce_statut{syndic_article})] [#SET{a,''}]#TITRE[(#GET{a})] ([(#LESAUTEURS), ][(#DATE|affdate_court)]) [(#TAGS|afficher_enclosures)] diff --git a/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php b/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php index 0098c764..0843b3ca 100644 --- a/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php +++ b/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/prive/squelettes/contenu/site.html b/www/plugins-dist/sites/prive/squelettes/contenu/site.html index f14defa3..ba587fa9 100644 --- a/www/plugins-dist/sites/prive/squelettes/contenu/site.html +++ b/www/plugins-dist/sites/prive/squelettes/contenu/site.html @@ -58,6 +58,7 @@ [(#AUTORISER{purger,site,#ID_SITE}|oui) + ,par=date,ajax} />
[(#BOUTON_ACTION{<:sites:lien_purger_syndication:>,#URL_ACTION_AUTEUR{purger_site,#ID_SYNDIC,#SELF},ajax,<:sites:confirmer_purger_syndication:>})]
diff --git a/www/plugins-dist/sites/puce_statut/site.php b/www/plugins-dist/sites/puce_statut/site.php index b62a2d31..7c24ddfc 100644 --- a/www/plugins-dist/sites/puce_statut/site.php +++ b/www/plugins-dist/sites/puce_statut/site.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/sites_administrations.php b/www/plugins-dist/sites/sites_administrations.php index 71863788..4082c6a0 100644 --- a/www/plugins-dist/sites/sites_administrations.php +++ b/www/plugins-dist/sites/sites_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/sites_autoriser.php b/www/plugins-dist/sites/sites_autoriser.php index 83a775e0..af068a83 100644 --- a/www/plugins-dist/sites/sites_autoriser.php +++ b/www/plugins-dist/sites/sites_autoriser.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/sites_fonctions.php b/www/plugins-dist/sites/sites_fonctions.php index e6ddbcbf..3f49f090 100644 --- a/www/plugins-dist/sites/sites_fonctions.php +++ b/www/plugins-dist/sites/sites_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/sites/sites_pipelines.php b/www/plugins-dist/sites/sites_pipelines.php index 700c2f6d..4f9a24d4 100644 --- a/www/plugins-dist/sites/sites_pipelines.php +++ b/www/plugins-dist/sites/sites_pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/squelettes_par_rubrique/squelettes_par_rubrique_options.php b/www/plugins-dist/squelettes_par_rubrique/squelettes_par_rubrique_options.php index d7481c5e..2cb1fdcc 100644 --- a/www/plugins-dist/squelettes_par_rubrique/squelettes_par_rubrique_options.php +++ b/www/plugins-dist/squelettes_par_rubrique/squelettes_par_rubrique_options.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/base/delete_referers.php b/www/plugins-dist/statistiques/base/delete_referers.php index b27a19a6..4466bf71 100644 --- a/www/plugins-dist/statistiques/base/delete_referers.php +++ b/www/plugins-dist/statistiques/base/delete_referers.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/base/delete_stats.php b/www/plugins-dist/statistiques/base/delete_stats.php index d0d86fc4..cb52016d 100644 --- a/www/plugins-dist/statistiques/base/delete_stats.php +++ b/www/plugins-dist/statistiques/base/delete_stats.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/base/stats.php b/www/plugins-dist/statistiques/base/stats.php index c4c5b1f9..ae7d771e 100644 --- a/www/plugins-dist/statistiques/base/stats.php +++ b/www/plugins-dist/statistiques/base/stats.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/engines-list.txt b/www/plugins-dist/statistiques/engines-list.txt index cb58c605..d5e381bb 100644 --- a/www/plugins-dist/statistiques/engines-list.txt +++ b/www/plugins-dist/statistiques/engines-list.txt @@ -207,6 +207,10 @@ www\.lemmefind\.fr query= arianna\.libero\.it +[Lilo] +q= +(.*\.|)uselilo\.org + [Lost] x_query= (www\.)?lo\.st diff --git a/www/plugins-dist/statistiques/exec/base_delete_referers.php b/www/plugins-dist/statistiques/exec/base_delete_referers.php index d99d1fc0..efd02151 100644 --- a/www/plugins-dist/statistiques/exec/base_delete_referers.php +++ b/www/plugins-dist/statistiques/exec/base_delete_referers.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/exec/base_delete_stats.php b/www/plugins-dist/statistiques/exec/base_delete_stats.php index 703ca870..e698e8df 100644 --- a/www/plugins-dist/statistiques/exec/base_delete_stats.php +++ b/www/plugins-dist/statistiques/exec/base_delete_stats.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/formulaires/configurer_compteur.php b/www/plugins-dist/statistiques/formulaires/configurer_compteur.php index 605bfb73..5cc03871 100644 --- a/www/plugins-dist/statistiques/formulaires/configurer_compteur.php +++ b/www/plugins-dist/statistiques/formulaires/configurer_compteur.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/genie/popularites.php b/www/plugins-dist/statistiques/genie/popularites.php index 80b070b9..7f1f1e07 100644 --- a/www/plugins-dist/statistiques/genie/popularites.php +++ b/www/plugins-dist/statistiques/genie/popularites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/genie/visites.php b/www/plugins-dist/statistiques/genie/visites.php index 8e789abc..36e3471d 100644 --- a/www/plugins-dist/statistiques/genie/visites.php +++ b/www/plugins-dist/statistiques/genie/visites.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/inc/referenceurs.php b/www/plugins-dist/statistiques/inc/referenceurs.php index d9497e8f..51a82ab8 100644 --- a/www/plugins-dist/statistiques/inc/referenceurs.php +++ b/www/plugins-dist/statistiques/inc/referenceurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/inc/statistiques.php b/www/plugins-dist/statistiques/inc/statistiques.php index fab7ffad..c98e9f63 100644 --- a/www/plugins-dist/statistiques/inc/statistiques.php +++ b/www/plugins-dist/statistiques/inc/statistiques.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/inc/stats_referers_to_array.php b/www/plugins-dist/statistiques/inc/stats_referers_to_array.php index 9f60f3ac..92e67592 100644 --- a/www/plugins-dist/statistiques/inc/stats_referers_to_array.php +++ b/www/plugins-dist/statistiques/inc/stats_referers_to_array.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/inc/stats_visites_to_array.php b/www/plugins-dist/statistiques/inc/stats_visites_to_array.php index b7a8eee4..8166001f 100644 --- a/www/plugins-dist/statistiques/inc/stats_visites_to_array.php +++ b/www/plugins-dist/statistiques/inc/stats_visites_to_array.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/paquet.xml b/www/plugins-dist/statistiques/paquet.xml index 8128e744..1ff2fd80 100644 --- a/www/plugins-dist/statistiques/paquet.xml +++ b/www/plugins-dist/statistiques/paquet.xml @@ -1,9 +1,9 @@ diff --git a/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_lang_fonctions.php b/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_lang_fonctions.php index ea7fda59..39170221 100644 --- a/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_lang_fonctions.php +++ b/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_lang_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/prive/squelettes/contenu/stats_repartition_fonctions.php b/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_repartition_fonctions.php index 70effbec..99a6b4b4 100644 --- a/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_repartition_fonctions.php +++ b/www/plugins-dist/statistiques/prive/squelettes/contenu/stats_repartition_fonctions.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/public/stats.php b/www/plugins-dist/statistiques/public/stats.php index 4cb6d1a2..27f3cd35 100644 --- a/www/plugins-dist/statistiques/public/stats.php +++ b/www/plugins-dist/statistiques/public/stats.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/statistiques/stats_administrations.php b/www/plugins-dist/statistiques/stats_administrations.php index 11a15c4b..3aaa7ec4 100644 --- a/www/plugins-dist/statistiques/stats_administrations.php +++ b/www/plugins-dist/statistiques/stats_administrations.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/svp/action/editer_depot.php b/www/plugins-dist/svp/action/editer_depot.php index dbfdc39c..b19ed870 100644 --- a/www/plugins-dist/svp/action/editer_depot.php +++ b/www/plugins-dist/svp/action/editer_depot.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/svp/exec/admin_plugin.php b/www/plugins-dist/svp/exec/admin_plugin.php index 07e2b8fe..e1295e6b 100644 --- a/www/plugins-dist/svp/exec/admin_plugin.php +++ b/www/plugins-dist/svp/exec/admin_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/svp/formulaires/admin_plugin.html b/www/plugins-dist/svp/formulaires/admin_plugin.html index 1bcc058b..a2725fef 100644 --- a/www/plugins-dist/svp/formulaires/admin_plugin.html +++ b/www/plugins-dist/svp/formulaires/admin_plugin.html @@ -46,7 +46,7 @@ ] diff --git a/www/plugins-dist/svp/formulaires/inc-admin_plugin.html b/www/plugins-dist/svp/formulaires/inc-admin_plugin.html index 17ad64da..96d2206f 100644 --- a/www/plugins-dist/svp/formulaires/inc-admin_plugin.html +++ b/www/plugins-dist/svp/formulaires/inc-admin_plugin.html @@ -92,7 +92,7 @@ +/*]]>*/ + \ No newline at end of file diff --git a/www/plugins-dist/svp/formulaires/inc-confirmer_actions.html b/www/plugins-dist/svp/formulaires/inc-confirmer_actions.html index 16fb81bc..88db73bc 100644 --- a/www/plugins-dist/svp/formulaires/inc-confirmer_actions.html +++ b/www/plugins-dist/svp/formulaires/inc-confirmer_actions.html @@ -19,7 +19,7 @@

- ] diff --git a/www/plugins-dist/svp/formulaires/inc-plugins_trouves.html b/www/plugins-dist/svp/formulaires/inc-plugins_trouves.html index 7c7d5622..d50a3e40 100644 --- a/www/plugins-dist/svp/formulaires/inc-plugins_trouves.html +++ b/www/plugins-dist/svp/formulaires/inc-plugins_trouves.html @@ -51,7 +51,7 @@ diff --git a/www/plugins-dist/svp/inc/svp_decider.php b/www/plugins-dist/svp/inc/svp_decider.php index a3dcc185..73770cbd 100644 --- a/www/plugins-dist/svp/inc/svp_decider.php +++ b/www/plugins-dist/svp/inc/svp_decider.php @@ -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 : diff --git a/www/plugins-dist/svp/paquet.xml b/www/plugins-dist/svp/paquet.xml index e48afe4e..d1851cd8 100644 --- a/www/plugins-dist/svp/paquet.xml +++ b/www/plugins-dist/svp/paquet.xml @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/www/plugins-dist/svp/teleporter/http.php b/www/plugins-dist/svp/teleporter/http.php index 02fc3f64..3da95892 100644 --- a/www/plugins-dist/svp/teleporter/http.php +++ b/www/plugins-dist/svp/teleporter/http.php @@ -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); diff --git a/www/plugins-dist/textwheel/inc/lien.php b/www/plugins-dist/textwheel/inc/lien.php index 854e29b3..d5a98049 100644 --- a/www/plugins-dist/textwheel/inc/lien.php +++ b/www/plugins-dist/textwheel/inc/lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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 index 0b6852bf..00000000 --- a/www/plugins-dist/textwheel/inc/memoization-mini.php +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/www/plugins-dist/textwheel/inc/notes.php b/www/plugins-dist/textwheel/inc/notes.php index cfafc569..83d03ed7 100644 --- a/www/plugins-dist/textwheel/inc/notes.php +++ b/www/plugins-dist/textwheel/inc/notes.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/texte.php b/www/plugins-dist/textwheel/inc/texte.php index 3ec42c85..8f438e62 100644 --- a/www/plugins-dist/textwheel/inc/texte.php +++ b/www/plugins-dist/textwheel/inc/texte.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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/textwheel.php b/www/plugins-dist/textwheel/inc/textwheel.php index 23acd7e1..089d9dce 100644 --- a/www/plugins-dist/textwheel/inc/textwheel.php +++ b/www/plugins-dist/textwheel/inc/textwheel.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * 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)); +} diff --git a/www/plugins-dist/textwheel/paquet.xml b/www/plugins-dist/textwheel/paquet.xml index 7a661be9..e792fd91 100644 --- a/www/plugins-dist/textwheel/paquet.xml +++ b/www/plugins-dist/textwheel/paquet.xml @@ -1,7 +1,7 @@ [ - #SET{auth,#AUTORISER{modifier,#OBJET,#ID_OBJET}} + #SET{auth,#AUTORISER{modifierurl,#OBJET,#ID_OBJET}} [(#GET{auth}) [(#TYPE|objet_info{texte_objet}|_T)] #ID_OBJET
[(#ID_PARENT|?{#ID_PARENT})] [(#DATE|affdate_jourcourt)][(#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})]][(#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})]]