From: Ludovic CHEVALIER Date: Wed, 5 Jun 2013 09:38:12 +0000 (+0200) Subject: [SPIP] ~version 3.0.7-->3.0.10 X-Git-Tag: 3.0.0~48 X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=commitdiff_plain;h=f489d45ae677afde12ba9c9f70f463ea34787b45 [SPIP] ~version 3.0.7-->3.0.10 --- diff --git a/www/CHANGELOG.txt b/www/CHANGELOG.txt index aa30793..cc8c9dc 100644 --- a/www/CHANGELOG.txt +++ b/www/CHANGELOG.txt @@ -1,3 +1,153 @@ +SPIP-Core spip-3.0.8 -> spip-3.0.9 24 mai 2013 +------------------------------------------------------------- +r20427 | kent1 | (jeu. 18 avril 2013) | report de c20426Du texte en dur dans le privé qui se transforme en chaînes de langue. +r20428 | b_b | (jeu. 18 avril 2013) | une accolade de trop dans r20427 +r20430 | kent1 | (sam. 20 avril 2013) | les link opensearch ne sont pas des feeds, ils ne fournissent rien donc évitons de les récupérer +r20432 | kent1 | (sam. 20 avril 2013) | Petit refactoring avant dispartion de ce fichier +r20435 | kent1 | (sam. 20 avril 2013) | Report de c20434Fichier devenu non nécessaire depuis longtemps => déplacé dans le plugin sites +r20441 | kent1 | (mer. 24 avril 2013) | Report de c20440On concatène les deux js obligatoires du login en 1 que l'on minifie pour éviter deux requètes +r20443 | b_b | (jeu. 25 avril 2013) | report de r20442 / retour sur r18418 : SPIP 3 premium, le SPIP qui vous permet d'utiliser plus de 100 plugins ! +r20452 | marcimat | (sam. 27 avril 2013) | Report de r20451 : Proposer la clé 'texte_definir_comme_traduction_objet' dans la déclaration de l'objet éditorial pour définir la chaîne «Ce X est une traduction du X numéro :» qui pour l'instant s'affichait systématiquement avec le texte 'article' erroné. On mappe pour les articles la chaîne de langue déjà existante.Ainsi «tradrub» ou d'autres plugins ayant des objets éditoriaux avec traductions peuvent définir les bons textes (fa_b, denisb) +r20456 | cedric | (dim. 28 avril 2013) | chargement non bloquant en utilisant getScript +r20457 | cedric | (dim. 28 avril 2013) | Chargement non bloquant (utiliser getScript qui est asynchrone) +r20458 | denisb | (lun. 29 avril 2013) | abstract_sql.php : report de r20438 (esj). éviter quelques logs d'erreur. +r20460 | denisb | (lun. 29 avril 2013) | debusquer.php : évitons d'interpréter les critères de boucle
(comme par exemple  : {"
"} )
+r20467 | cedric | (mer. 01 mai 2013) | quand on cree un objet, prendre le premier statut declare si dispo, sinon prepa (plus generique) +r20468 | cedric | (ven. 03 mai 2013) | Optimiser #PRODUIRE :- on ne reecrit le fichier que quand il change effectivement en passant par un fichier intermediaire .last (evite le renouvellement inutile des timestamp, qui produisent des feuilles compilees inutilement)- quand on reecrit le fichier il faut appeler clearstatcache() sur ce fichier, sinon PHP ressert le vieux timestamp jusqu'a la fin du hit, et il faut recharger 2 fois la page pour avoir la mise a jour(realet,ne0futur) +r20476 | cedric | (ven. 03 mai 2013) | Ferme #2960 : comparer le nom du cookie avant remplacement du prefixe pour determiner httponly +r20477 | cedric | (ven. 03 mai 2013) | ferme #2877 : r19544 avait mal interprete le test sur le define, qui sert a interdire l'utilisation de CONVERT ou PBM, pas a l'autoriser +r20478 | cedric | (ven. 03 mai 2013) | Ferme #2912 : ne pas casser un critere {annee=2013} sur une table avec un champ année+ notice PHP potentielle +r20479 | rasta | (ven. 03 mai 2013) | L'icône d'un objet peut avoir été déclarée explicitement, donc c'est cette info qu'on utilise. +r20481 | cedric | (ven. 03 mai 2013) | Ferme #2953 : puce dans le plan de site +r20482 | cedric | (ven. 03 mai 2013) | Ferme #2949. Report de r20232 r20233 r20235 r20236 : support de IF NOT EXISTS en fonction de la bonne version de SQLite +r20484 | denisb | (lun. 06 mai 2013) | chercher_rubrique.php : accessibilité ; ajouter un alt explicite sur la loupe qui affiche la liste des rubriques ; ajout de la chaîne de langue correspondante (résout #2990). +r20486 | fil | (lun. 06 mai 2013) | profiler les boucles dans tmp/profiler.log si leur temps de calcul depasse un certain seuil (a fixer avec define('_BOUCLE_PROFILER', 5000); par exemple pour 5 secondes).report de http://zone.spip.org/trac/spip-zone/changeset/72578 +r20488 | fil | (lun. 06 mai 2013) | report de [20483] : si un login n'existe pas, plutot que de piocher les infos sur un autre login (au risque de fournir la photo d'un auteur sans lien lorsqu'on se trompe dans son email), inventer une reponse credible a base de secret_du_site(), de la date du jour, et du login +r20489 | fil | (lun. 06 mai 2013) | ajouter un debug utile dans log/mysql-slow.log ; avec {{{define('_DEBUG_SLOW_QUERIES', true);}}} dans mes_optionsreport de [20487] +r20490 | denisb | (mar. 07 mai 2013) | suite de r20484 : soyons plus générique, le sélecteur peut servir pour autre chose que des rubriques. +r20494 | cedric | (mar. 07 mai 2013) | Articles virtuels : faire une redirection propre via la fonction redirige_par_entetes(), qui explicite le status 302 par defaut (il etait indetermine dans le code precedent).La constante _STATUS_REDIRECTION_VIRTUEL permet par ailleurs de personaliser ce status en le passant en 301 systématique par exemple. +r20495 | denisb | (mar. 07 mai 2013) | inc/actions.php : Le paramètre optionnel "public", forçant la construction d'URL dans l'espace public, apparu dans generer_action_auteur lors de r12798 et r13014, doit être aussi proposé dans la redirige_action_auteur qui appelle celle-ci, autrement ça oblige à la réécrire à chaque fois.. report de r20462 (esj) +r20497 | denisb | (mar. 07 mai 2013) | inc/actions.php : oupsss. report du oupsss r20463 (esj) +r20499 | b_b | (mer. 08 mai 2013) | report de r20498 : icône cfg en 24px, ferme #2992 +r20509 | cedric | (sam. 11 mai 2013) | ferme #2913 : zone clicable sur l'icone "Modifier ce.." lorsque la configuration des urls est activée +r20512 | cedric | (sam. 11 mai 2013) | Ferme #2910 : quand l'url courante est profonde (url arbo) les redirections relatives étaient ambigues.Il se trouve que le Location était "souvent" bien interprété sur les forums mais c'était un coup de chance et foirait dans d'autres cas. Le lien http fournit dans le HTML était lui toujours mal interprété.On lève l'ambiguité en transformant en url absolue dès que la profondeur courante est supérieure à la normale et que l'url de redirection est relative. Il faudrait généraliser ce passage en absolu en branche 3.1 +r20515 | cedric | (dim. 12 mai 2013) | chaine de langue manquante sur l'upgrade des plugins +r20516 | cedric | (dim. 12 mai 2013) | Ferme #2948 : quand une rubrique est selectionnée, il faut l'afficher dans le select, même si on a pas le droit d'y déplacer un article +r20518 | denisb | (dim. 12 mai 2013) | typographie/fr.php : ne pas ajouter d'insécable devant : si ce : est suivi de : (cas des adresses ipv6). résout #2931 +r20519 | cedric | (dim. 12 mai 2013) | Ferme #2804 : les post AJAX sur un site iso-truc sont présumés en utf et importés dans le charset local par _request(). Mais ce n'est pas forcément le cas et le test de la preg n'est pas fiable, ce qui supprime des accents bien encodés a tort. On complète le test par un is_utf8() plus fiable ce qui résoud mon cas test sur edition d'un document, titre : "titre avé un accent"A noter que le bug n'était pas systématique sur un même site (certains post passant sans problème, d'autres non). Cela peut venir du type de formulaire qui est posté parfois par une iframe en cas d'upload. +r20520 | cedric | (lun. 13 mai 2013) | #2999 et http://forum.spip.net/fr_247990.html : liste plus exhaustive et complete des UA des bots, car ceux qu'on laisse passer faussent les stats (surestimées) Source : commentaires en bas de http://wanderr.com/jay/detect-crawlers-with-php-faster/2009/04/08/ (version optimisée/factorée, on ne garde que les UA qui ne matchent pas les mots-clés génériques en début de liste) +r20521 | cedric | (lun. 13 mai 2013) | et incrémenter l'écran +r20522 | ben | (mar. 14 mai 2013) | ferme #3003 +r20523 | cedric | (mar. 14 mai 2013) | #2999 : la definition de _IS_BOT par le core est un fall-back si l'ecran de securite n'a pas ete appelé. C'est la definition de l'ecran, plus a jour, qui est prioritaire. +r20525 | denisb | (ven. 17 mai 2013) | prive/formulaires/login.html : ajout de la variable lang dans le lien vers le formulaire de rappel du mot de passe. ferme #3005 +r20529 | denisb | (ven. 17 mai 2013) | prive/spip_pass.html : report de r20528 (suite de r20526) +r20531 | denisb | (sam. 18 mai 2013) | prive/squelettes/inclure/head.html : report de r20530 - ne pas casser l'affichage du plan de site dans le privé. +r20534 | cedric | (lun. 20 mai 2013) | Ferme #3002 : lorsque la table des rubriques est mal formée et contient une branche morte ou une reference circulaire dans les parents, la fonction propager_les_secteurs() tourne en boucle infinie.Correction :- proteger de ce risque par un maxiter initialisé par le nombre de rubriques de la table- revoir l'algo de mise a jour en procedant de proche en proche, par profondeur croissante et non pas "tant qu'il y a une rubrique mal rangee".Cela permet de plus de detecter le cas d'une table rubrique mal formee et de produire un log en consequence +r20535 | cedric | (mar. 21 mai 2013) | complement a r20534 : optimiser les updates en les faisant par groupe de rubriques de meme secteur poser un id_secteur=0 sur toutes les rubriques hors hierarchie si il y en a (references circulaires, parents qui n'existent plus) +r20536 | cedric | (mar. 21 mai 2013) | Ferme #3004 : se proteger des references circulaires dans la table des rubriques dans la boucle HIERARCHIEPlutot qu'un code specifique, on utilise la fonction generique calcul_hierarchie_in() que l'on modifie pour tenir compte de ce cas limite. Pour etre homogene, on inverse l'ordre des rubriques qu'elle renvoie. +r20538 | ben | (mar. 21 mai 2013) | Langues (pre 3.0.9) +r20539 | ben | (mar. 21 mai 2013) | preparation SPIP 3.0.9 +r20540 | cedric | (mer. 22 mai 2013) | Inscription d'un auteur : le commentaire dit "Si mode inconnu laisser faire, c'est une extension non std", mais passer quand meme par une autorisation, qui par défaut sera a false (puisque l'auteur est non connu, donc non identifié, il n'a aucun droit par defaut).Il suffit que autoriser("inscrireauteur","xxx") renvoie true pour permettre l'inscription d'un auteur avec le statut xxx +r20544 | cedric | (mer. 22 mai 2013) | Revert de r20389 car TIMESTAMPDIFF pas supporte par Mysql 4.x, on garde l'optimisation dans la branche 3.1 +r20545 | cedric | (mer. 22 mai 2013) | si on utilise un plugin avec 'use strict mode;' $.ajax plante dedans car .caller n'est pas disponible. Proteger avec un try.catch +r20547 | marcimat | (mer. 22 mai 2013) | Report de r20546 : La fonction «concat» de sql peut avoir plus de 2 arguments. Indiquons cela aussi à SQLite. +r20562 | cedric | (ven. 24 mai 2013) | Report adapté de r20552, r20555 et r20560 : deleguer dans tous les cas l'autorisation de s'inscrire à autoriser("inscrireauteur",$mode,$id), Mais si aucun mode n'est fourni sur le #FORMULAIRE_INSCRIPTION, on choisit le meilleur possible parmi 1comite ou 6forum. +r20568 | ben | (ven. 24 mai 2013) | report de lang + +SPIP-plugins-dist spip-3.0.8 -> spip-3.0.9 24 mai 2013 +------------------------------------------------------------- +r72198 | kent1 | (sam. 20 avril 2013) | report de z72197Permettre à un plugin utilisant les révisions à spécifier les labels des champs sous révision via un nouveau pipeline "revisions_chercher_label"La valeur par défaut sera toujours la même qu'auparavantVersion 1.7.4 +r72205 | kent1 | (sam. 20 avril 2013) | Report de z72204Déplacement du fichier depuis le core, il n'est utile que via ce plugin +r72287 | suske | (mer. 24 avril 2013) | Aérer la navigation dans la thickbox (permet d'avoir plus de 100 images). Ferme http://core.spip.org/issues/2983 . Report de r72286 +r72335 | kent1 | (jeu. 25 avril 2013) | Report de z72334Ajout de la prise en compte de l'extension ".tar"Version 2.7.45Version de schéma 1.2.4 +r72422 | cedric | (lun. 29 avril 2013) | eviter un notice/warning +r72555 | cedric | (ven. 03 mai 2013) | Ferme http://core.spip.org/issues/2955 : certains criteres ne se compilent pas bien {logo}, {recherche}... les ajouters aux exceptions+ utiliser #CHAMP_SQL{} systématiquement pour eviter homonymie malheureuse +r72557 | cedric | (ven. 03 mai 2013) | Ferme #2912 : ne pas casser un critere {annee=2013} sur une table avec un champ année +r72562 | cedric | (ven. 03 mai 2013) | clear_stat_cache pour que le timestamp soit a jour dans la page construite dans ce hit +r72609 | denisb | (mar. 07 mai 2013) | signature.html : permettre aux pétitions de bénéficier d'un permalink pour s'y retrouver malgré les paginations +r72715 | cedric | (ven. 10 mai 2013) | Lisibilité et ergo des statistiques (Tetue)- echelle axe des Y à droite (près des mesures les plus récentes)- legende en dessous des graphes, en ligne- Titre en fer a gauche, regroupé avec les actions de pagination- graphe des mois depuis l'origine du site par defaut (graphe des jours inchangé sur 90jours)- axe des X : date humainement lisible (15 janvier au lieu de 15/01/2013)- eviter les effets de gradients sur les barres ça gene le lisibilité. On met en plein avec une très légere transparence pour ne presque pas distinguer border et background- le gris des weekend était a peine visible sur certains ecrans, on le fonce- la barre des changement d'année est de largeur 1 mois sur le graphe des mois- ne pas masquer l'explication car elle n'est pas visible- hierarchie de l'info dans le tableau des résumésUn peu de refactoring js en utilisant closest('.graphique') au lieu d'enchainer les .parent() qui rendent le code peu robuste +r72716 | cedric | (ven. 10 mai 2013) | Lisibilité et ergo des statistiques- page des referers : reduire la largeur de la colonne gauche pour eviter cette impression de texte centré (Tetue)- mettre la miniature en float:right, et reduire sa taille +r72717 | cedric | (ven. 10 mai 2013) | Lisibilité et ergo des statistiques : reparer l'affichage de la repartition par rubrique qui etait tout cassé car construit avec des table dans des tables dans des tables... heritant toutes des styles par defaut (Tetue) +r72733 | cedric | (sam. 11 mai 2013) | http://core.spip.org/issues/2889 :Certaines dates de flux ont formatees dans la langue du flux et non en anglais. On essaye de remplacer le nom des mois par le nom anglais pour interpreter la dateCertaines dates finissent par UT au lieu de UTC qui bloque la conversion par strtotime, on corrige si necessaireQuand on a pas reussi a lire la date, il faut forcer a la date du jour et pas laisser 1970 +r72744 | cedric | (sam. 11 mai 2013) | Reparer la largeur totale de la barre dans les sous rubriques : elle reprend la largeur correspondant au nombre de visites de la branche parente+ ajustements de style sur la page +r72763 | cedric | (dim. 12 mai 2013) | mise a jour de la librairie Minify_HTML +r72767 | cedric | (dim. 12 mai 2013) | Ferme https://core.spip.org/issues/2787 : la librairie Minify_HTML note en TODO qu'elle doit prendre en compte les attributs avec multiples retour ligne. En attendant une solution générale, on echappe les pour ne pas fausser ce qui est posté en hidden lors de la previsu +r72774 | denisb | (dim. 12 mai 2013) | textwheel : ne pas ajouter d'insécable devant : si ce : est suivi de : (cas des adresses ipv6). +r72909 | kent1 | (mar. 21 mai 2013) | Indentation +r72917 | cedric | (mar. 21 mai 2013) | http://core.spip.org/issues/3004 : se proteger des references circulaires dans les rubriques lorsqu'on stylise (et on protege avec une profondeur maxi de 10000 dans tous les cas) +r72918 | cedric | (mar. 21 mai 2013) | nettoyer_raccourcis_typo() supprime les raccourcis d'ancres +r72925 | ben | (mar. 21 mai 2013) | Langues (pre 3.0.9) +r72967 | b_b | (jeu. 23 mai 2013) | report de r72966 : déjà retrouve ses accents +r72978 | cedric | (ven. 24 mai 2013) | Comme pour apple-touch-icon, pousser dans le cache stocké au format texte du binaire issu d'un fichier image est perilleux et casse parfois. On remplace par un readfile PHP. +r72982 | cedric | (ven. 24 mai 2013) | Report adapté de r20552, r20555 et r20560 : deleguer dans tous les cas l'autorisation de s'inscrire à autoriser("inscrireauteur",$mode,$id), Mais si aucun mode n'est fourni sur le #FORMULAIRE_INSCRIPTION, on choisit le meilleur possible parmi 1comite ou 6forum.Complément à http://core.spip.org/projects/spip/repository/revisions/20562 +r72983 | cedric | (ven. 24 mai 2013) | oups erreur dans r72982, je revert a la version precedente +r72987 | ben | (ven. 24 mai 2013) | report de lang + + +SPIP-Core spip-3.0.7 -> spip-3.0.8 17 avril 2013 +------------------------------------------------------------- +r20355 | cedric | (sam. 23 mars 2013) | 1sReport oublie et tardif de r15574 : nettoyer_uri() cache son resultat dans une static. On introduit un argument permettant de la reseter a une valeur fournieurl_de_base() cache son resultat dans un tableau static, indexe en fonction de la globale profondeur_url :on introduit un argument qui permet :- en passant une valeur entiere, de calculer l'url pour cette profondeur- en passant un array(), de reinitialiser la static en cache a cette valeur- en passant false, de recuperer la staticsi aucune valeur n'est fournie, c'est la globale profondeur_url qui est utilisee, comme auparavant.Ces deux modifications permettent de sauvegarder/restaurer le contexte de l'url dans laquelle une page est calculee (pour un calcul differe)+ PHPDoc sur les deux fonctions +r20359 | suske | (mer. 27 mars 2013) | report de 20358 - le rédac ne peut plus mettre une redirection quand l'article est publié +r20361 | suske | (mer. 27 mars 2013) | report de 20360 +r20363 | suske | (mer. 27 mars 2013) | report de 20362 - pfff +r20365 | b_b | (mer. 27 mars 2013) | report de r20364 : indentation +r20367 | guytarr | (mer. 27 mars 2013) | report de r20366 (chankalan) +r20369 | kent1 | (mer. 27 mars 2013) | report de r20368On met à jour, on n'installe pas si on a déjà une meta du même nomC'est un peu moins ambigue du genre "Installation réussie" pour un plugin qui est là depuis 2 ans alors qu'il est juste mis à jour +r20378 | cedric | (ven. 29 mars 2013) | optimisation des ecritures disque : pour les bots on utilise tous les caches disponibles même si périmés, et quand il faut calculer un cache on ne l'écrit pas sur le disque (cela évite de générer un flux d'écriture pour des caches qui ne servent pas aux vrais visiteurs, et cela évite aussi de faire gonfler les caches de manière deraisonable) +r20388 | cedric | (ven. 29 mars 2013) | Suport SQLite de la fonction mysql TIMESTAMPDIFFhttps://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_timestampdiff +r20389 | cedric | (ven. 29 mars 2013) | Optimisation du critere {age} : utiliser la fonction SQL TIMESTAMPDIFF plutot qu'une expression compliquee. On doit pouvoir optimiser aussi les xxx_relatifs mais c'est à creuser +r20390 | marcimat | (ven. 29 mars 2013) | Autoriser `#_contenu_article:LESAUTEURS` lorsqu'on demande les auteurs d'une boucle parente. +r20392 | kent1 | (ven. 29 mars 2013) | On est en 3.0.7 maintenantDéclaration du pipeline traduire appelé dans le formulaire prive/traduire.php (http://core.spip.org/projects/spip/repository/entry/branches/spip-3.0/prive/formulaires/traduire.php#L73)Du coup encore une raison de logguer moins ;) +r20397 | denisb | (lun. 01 avril 2013) | debusquer.php : ôter le tableau des erreurs par un clic sur sa barre de titre. résout #2968. +r20400 | cedric | (mar. 02 avril 2013) | simplification de jour_relatif : la fonction SQL TO_DAYS donne exactement le bon resultat, inutile d'y ajouter un calcul basé sur le mois et l'année qui donne un résultat approximatif dès que les dates sont à cheval sur des mois différents. +r20401 | denisb | (mer. 03 avril 2013) | debusquer.php : cosmétique (apparition du 'toogle-bug') ; r20397 cassait la navigation du var_profile : on répare. +r20402 | denisb | (mer. 03 avril 2013) | tracer.php, spip_admin.css : suite (indispensable) de r20401. +r20404 | denisb | (jeu. 04 avril 2013) | debusquer.php :- on revient sur l'utilisation de jQuery qui n'est pas toujours fonctionnelle.- highlight_string ne pose plus de tags obsolètes en PHP5.- un peu de cosmétique. +r20406 | denisb | (lun. 08 avril 2013) | ecrire/inc/filtres.php : on ajoute subrepticement un troisième argument à la fonction appliquer_filtre. si ce troisième argument est fourni et que la fonction ne trouve pas le filtre demandé, elle renvoit quand même la balise non filtrée.si ce troisième argument n'est pas fourni (par défaut) et que la fonction ne trouve pas le filtre demandé, elle ne renvoit rien (compatibilité avec l'utilisation actuelle). +r20408 | b_b | (mar. 09 avril 2013) | report des commentaires de r20243 +r20410 | marcimat | (mar. 09 avril 2013) | Coquille dans r18955 : créer un index nécessite le mot clé 'INDEX', pas seulement 'ADD'. +r20416 | suske | (dim. 14 avril 2013) | report de 18952 - il y a environ un an: Pouvoir appeler la fonction Bouton_spip_rss en lui précisant l'info-bulle +r20419 | ben | (mer. 17 avril 2013) | report de langues Pre 3.0.8 + +SPIP-plugins-dist spip-3.0.7 -> spip-3.0.8 17 avril 2013 +------------------------------------------------------------- +r71097 | guytarr | (mar. 26 mars 2013) | report de r71094 et r71096 (Suske, denisb) +r71135 | kent1 | (mer. 27 mars 2013) | Report de r71134Ne pas pouvoir ajouter des libs dans _DIR_LIB si on n'est pas autorisé à "plugins_ajouter"Bien éviter l'affichage des boutons d'ajouts dans le formulaireVersion 0.80.13 (par contre) +r71263 | guytarr | (ven. 29 mars 2013) | include manquant (_Eric_) +r71267 | guytarr | (ven. 29 mars 2013) | collecter_request vidait $c, du coup on avait plus d'objet pour forum_insert_statut et seule la configuration globale du site était prise en compte, ce qui ennuyait Suske. +r71270 | guytarr | (ven. 29 mars 2013) | r71263 n'est pas utile et ne resout rien, on vire (bis) +r71272 | rasta | (ven. 29 mars 2013) | Tester si le parent a bien une URL non-vide avant de concaténer, sinon on se retrouve avec une URL ayant un "/" *devant*. Ce qui produit des bugs sur les installations en sous-dossier.Par contre je n'ai pas compris pourquoi il y a un traitement différent entre parent "null" et parent "0". +r71391 | kent1 | (lun. 01 avril 2013) | Report de r71390Evitera de faire parler les logs +r71394 | kent1 | (lun. 01 avril 2013) | Report de r71392Evitera de faire parler les logs +r71396 | kent1 | (lun. 01 avril 2013) | Report de r71395Donner une action vide aux pipelines internes du pluginEvitera de faire parler les logsversion 0.4.11 +r71398 | kent1 | (lun. 01 avril 2013) | Report de r71397Donner une action vide aux pipelines internes du pluginEvitera de faire parler les logs +r71408 | teddy | (lun. 01 avril 2013) | Report de c68328 +r71453 | kent1 | (mar. 02 avril 2013) | Report de z71452Si c'est une lib ce n'est pas _DIR_PLUGINS_AUTO mais _DIR_LIB et avoir un plugin non activable à cause d'une lib mise à jour et plugin mis à jour autrement que via svp c'est un peu nulversion 0.80.14 +r71578 | denisb | (jeu. 04 avril 2013) | controler_forum.html, controler_petition.html : le filtre 'minifier' est une fonction fournie par le plugin 'compresseur' (qui n'est pas en necessite) ; s'il n'est pas disponible, on s'en passe. résout #2971 +r71579 | denisb | (jeu. 04 avril 2013) | petitions : ajout (et utilisation) d'un item de langue. +r71661 | b_b | (ven. 05 avril 2013) | report de r65256 : ft_tu n'est pas une langue (taffit) +r71662 | b_b | (ven. 05 avril 2013) | report de r65257 : ft_tu n'est pas une langue (taffit) +r71704 | denisb | (sam. 06 avril 2013) | medias,portfolio-documents.html : cette action (définitive) mérite bien une confirmation ! (http://forum.spip.net/fr_251453.html) +r71757 | kent1 | (lun. 08 avril 2013) | Pourquoi imposer un mode document ou choix pour l'upload ftp alors que l'on veut juste ne pas le montrer lorsque le mode est image ou vignette.En gros ce commit permet d'avoir la partie ftp pour des modes pas forcément par défaut dans SPIP (conversions ...) +r71758 | kent1 | (lun. 08 avril 2013) | Indentation et utilisation similaire un peu partout des {} (ok on n'a pas de conventions de code mais bon) +r71768 | kent1 | (lun. 08 avril 2013) | Indentation et espaces +r71771 | kent1 | (lun. 08 avril 2013) | Répertoire vide +r71772 | kent1 | (lun. 08 avril 2013) | Répertoires vides +r71775 | kent1 | (lun. 08 avril 2013) | Répertoires vides finalisés (David Prévot) +r71777 | kent1 | (lun. 08 avril 2013) | Pas nécessaire +r71779 | kent1 | (lun. 08 avril 2013) | Un petit incrément du coup +r71782 | kent1 | (lun. 08 avril 2013) | On a déjà du mal avec nos propres tests... on va pas se tapper ceux des autres +r71783 | denisb | (lun. 08 avril 2013) | controler_forum, controler_petition : prise en compte de la nouvelle écriture de appliquer_filtre (http://core.spip.org/projects/spip/repository/revisions/20406). résout (enfin) http://core.spip.org/issues/2972. +r71789 | kent1 | (lun. 08 avril 2013) | ne pas utiliser / pour les délimiteurs pour éviter un bug sur les / +r71848 | marcimat | (mar. 09 avril 2013) | Sur les traces de http://core.spip.org/projects/spip/repository/revisions/20410 , ajouter un index nécessite ADD INDEX, pas seulement ADD. +r72003 | b_b | (sam. 13 avril 2013) | report de r72002 : afficher le nom du jour dans le title des barres du graph de visites par jour +r72031 | b_b | (dim. 14 avril 2013) | report de r72030 : #2963 toujours, fermer la balise rss pour avoir un flux valide +r72033 | b_b | (dim. 14 avril 2013) | report de r72032 : http://core.spip.org/issues/2963 jointure sur la table auteurs pour bien renseigner dc:creator dans le flux +r72035 | b_b | (dim. 14 avril 2013) | report de r72034 : http://core.spip.org/issues/2976 un rédacteur ne doit pas pouvroi créer d'annonce +r72067 | marcimat | (mar. 16 avril 2013) | Report de r72066. Nom incorrect du fichier d'un compagnon, et en plus un var_dump trainait dedans. +r72121 | ben | (mer. 17 avril 2013) | report de langues Pre 3.0.8 +r72123 | b_b | (mer. 17 avril 2013) | report de r72040 : tentons de fixer http://core.spip.org/issues/2977 : mapper sur la bonne autorisation pour la supression de message + fix du critère destinataire pour ne pas afficher les messages de l'auteur dans sa boite de réception + SPIP-Core spip-3.0.6 -> spip-3.0.7 22 mars 2013 ------------------------------------------------------------- diff --git a/www/config/ecran_securite.php b/www/config/ecran_securite.php index 51e48df..63ee299 100644 --- a/www/config/ecran_securite.php +++ b/www/config/ecran_securite.php @@ -5,7 +5,7 @@ * ------------------ */ -define('_ECRAN_SECURITE', '1.1.5'); // 8 mars 2013 +define('_ECRAN_SECURITE', '1.1.7'); // 24 mai 2013 /* * Documentation : http://www.spip.net/fr_article4200.html @@ -23,8 +23,12 @@ if (isset($_GET['test_ecran_securite'])) if (!defined('_IS_BOT')) define('_IS_BOT', isset($_SERVER['HTTP_USER_AGENT']) - AND preg_match(',bot|slurp|crawler|spider|webvac|yandex|INA dlweb|EC2LinkFinder|80legs,i', - (string) $_SERVER['HTTP_USER_AGENT']) + AND preg_match( + // mots generiques + ',bot|slurp|crawler|spider|webvac|yandex|' + // UA plus cibles + . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|Google|INA dlweb|Java VM|LiteFinder|Lycos|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti' + . ',i',(string) $_SERVER['HTTP_USER_AGENT']) ); /* @@ -66,6 +70,14 @@ if (preg_match(',^(.*/)?spip_acces_doc\.,', (string)$_SERVER['REQUEST_URI'])) { $file = addslashes((string)$_GET['file']); } +/* + * Pas d'inscription abusive + */ +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 */ @@ -304,4 +316,4 @@ if ( } -?> +?> \ No newline at end of file diff --git a/www/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index cc5658f..7fcf0f4 100644 --- a/www/ecrire/action/editer_objet.php +++ b/www/ecrire/action/editer_objet.php @@ -178,8 +178,14 @@ function objet_inserer($objet, $id_parent=null, $set=null) { $champs['langue_choisie'] = 'non'; } - if (isset($desc['field']['statut'])) - $champs['statut'] = 'prepa'; + if (isset($desc['field']['statut'])){ + if (isset($desc['statut_textes_instituer'])){ + $champs['statut'] = reset(array_keys($desc['statut_textes_instituer'])); + } + else + $champs['statut'] = 'prepa'; + } + if ((isset($desc['date']) AND $d=$desc['date']) OR isset($desc['field'][$d='date'])) $champs[$d] = date('Y-m-d H:i:s'); diff --git a/www/ecrire/action/inscrire_auteur.php b/www/ecrire/action/inscrire_auteur.php index 6f0d22b..d7de112 100644 --- a/www/ecrire/action/inscrire_auteur.php +++ b/www/ecrire/action/inscrire_auteur.php @@ -241,37 +241,16 @@ function creer_pass_pour_auteur($id_auteur) { } /** - * Un filtre pour determiner le nom du mode des librement inscrits, - * a l'aide de la liste globale des statuts (tableau mode => nom du mode) - * Utile pour le formulaire d'inscription. - * Si un mode est fourni, verifier que la configuration l'accepte. - * Si mode inconnu laisser faire, c'est une extension non std - * mais verifier que la syntaxe est compatible avec SQL + * @deprecated a virer en 3.1 car pas utilise dans les squelettes * - * http://doc.spip.org/@tester_config + * voir l'autorisation correspondante * * @param string $statut_tmp * @return string */ function tester_statut_inscription($statut_tmp){ - $s = array_search($statut_tmp, $GLOBALS['liste_des_statuts']); - switch ($s) { - - case 'info_redacteurs' : - return (($GLOBALS['meta']['accepter_inscriptions'] == 'oui') ? $statut_tmp : ''); - - case 'info_visiteurs' : - return (($GLOBALS['meta']['accepter_visiteurs'] == 'oui' OR $GLOBALS['meta']['forums_publics'] == 'abo') ? $statut_tmp : ''); - - default: - if ($statut_tmp AND $statut_tmp == addslashes($statut_tmp)) - return $statut_tmp; - if ($GLOBALS['meta']["accepter_inscriptions"] == "oui") - return $GLOBALS['liste_des_statuts']['info_redacteurs']; - if ($GLOBALS['meta']["accepter_visiteurs"] == "oui") - return $GLOBALS['liste_des_statuts']['info_visiteurs']; - return ''; - } + include_spip('inc/autoriser'); + return autoriser('inscrireauteur', $statut_tmp) ? $statut_tmp : ''; } @@ -290,8 +269,10 @@ function confirmer_statut_inscription($auteur){ // securite if ($auteur['statut'] != 'nouveau') return $auteur; - if (!($s = tester_statut_inscription($auteur['prefs']))) + include_spip('inc/autoriser'); + if (!autoriser('inscrireauteur', $auteur['prefs'])) return $auteur; + $s = $auteur['prefs']; include_spip('inc/autoriser'); // accorder l'autorisation de modif du statut auteur diff --git a/www/ecrire/action/logout.php b/www/ecrire/action/logout.php index 6a9e968..a76d287 100644 --- a/www/ecrire/action/logout.php +++ b/www/ecrire/action/logout.php @@ -14,10 +14,17 @@ if (!defined('_ECRIRE_INC_VERSION')) return; include_spip('inc/cookie'); -// http://doc.spip.org/@action_logout_dist + +/** + * Se deloger + * Pour eviter les CSRF on passe par une etape de confirmation si pas de jeton fourni + * avec un autosubmit js pour ne pas compliquer l'experience utilisateur + * + * http://doc.spip.org/@action_logout_dist + * + */ function action_logout_dist() { - global $visiteur_session, $ignore_auth_http; $logout =_request('logout'); $url = securiser_redirect_action(_request('url')); // cas particulier, logout dans l'espace public @@ -25,18 +32,41 @@ function action_logout_dist() $url = url_de_base(); // seul le loge peut se deloger (mais id_auteur peut valoir 0 apres une restauration avortee) - if (is_numeric($visiteur_session['id_auteur'])) { + if (isset($GLOBALS['visiteur_session']['id_auteur']) + AND is_numeric($GLOBALS['visiteur_session']['id_auteur']) + // des sessions anonymes avec id_auteur=0 existent, mais elle n'ont pas de statut : double check + AND isset($GLOBALS['visiteur_session']['statut'])) { + + // il faut un jeton pour fermer la session (eviter les CSRF) + if (!$jeton = _request('jeton') + OR !verifier_jeton_logout($jeton,$GLOBALS['visiteur_session'])){ + $jeton = generer_jeton_logout($GLOBALS['visiteur_session']); + $action = generer_url_action("logout","jeton=$jeton"); + $action = parametre_url($action,'logout',_request('logout')); + $action = parametre_url($action,'url',_request('url')); + include_spip("inc/minipres"); + include_spip("inc/filtres"); + $texte = bouton_action(_T('spip:icone_deconnecter'),$action); + $texte = "
$texte
"; + $texte .= ''; + $res = minipres(_T('spip:icone_deconnecter'),$texte,'',true); + echo $res; + return; + } + include_spip('inc/auth'); - auth_trace($visiteur_session, '0000-00-00 00:00:00'); + auth_trace($GLOBALS['visiteur_session'], '0000-00-00 00:00:00'); // le logout explicite vaut destruction de toutes les sessions if (isset($_COOKIE['spip_session'])) { $session = charger_fonction('session', 'inc'); - $session($visiteur_session['id_auteur']); + $session($GLOBALS['visiteur_session']['id_auteur']); spip_setcookie('spip_session', $_COOKIE['spip_session'], time()-3600); } // si authentification http, et que la personne est loge, // pour se deconnecter, il faut proposer un nouveau formulaire de connexion http - if (isset($_SERVER['PHP_AUTH_USER']) AND !$ignore_auth_http AND $GLOBALS['auth_can_disconnect']) { + if (isset($_SERVER['PHP_AUTH_USER']) + AND !$GLOBALS['ignore_auth_http'] + AND $GLOBALS['auth_can_disconnect']) { ask_php_auth(_T('login_deconnexion_ok'), _T('login_verifiez_navigateur'), _T('login_retour_public'), @@ -54,4 +84,47 @@ function action_logout_dist() : generer_url_public('login')); } -?> +/** + * Generer un jeton de logout personnel et ephemere + * @param array $session + * @param null|string $alea + * @return string + */ +function generer_jeton_logout($session,$alea=null){ + if (is_null($alea)){ + if (!isset($GLOBALS['meta']['alea_ephemere'])){ + include_spip('base/abstract_sql'); + $GLOBALS['meta']['alea_ephemere'] = sql_getfetsel('valeur', 'spip_meta', "nom='alea_ephemere'"); + } + $alea = $GLOBALS['meta']['alea_ephemere']; + } + + $jeton = md5($session['date_session'] + .$session['id_auteur'] + .$session['statut'] + .$alea + ); + return $jeton; +} + +/** + * Verifier que le jeton de logout est bon + * il faut verifier avec alea_ephemere_ancien si pas bon avec alea_ephemere + * pour gerer le cas de la rotation d'alea + * @param string $jeton + * @param array $session + * @return bool + */ +function verifier_jeton_logout($jeton,$session){ + if (generer_jeton_logout($session)===$jeton) + return true; + if (!isset($GLOBALS['meta']['alea_ephemere_ancien'])){ + include_spip('base/abstract_sql'); + $GLOBALS['meta']['alea_ephemere_ancien'] = sql_getfetsel('valeur', 'spip_meta', "nom='alea_ephemere_ancien'"); + } + if (generer_jeton_logout($session,$GLOBALS['meta']['alea_ephemere_ancien'])===$jeton) + return true; + return false; +} + +?> \ No newline at end of file diff --git a/www/ecrire/auth/spip.php b/www/ecrire/auth/spip.php index 7bc8f62..cdbdba5 100644 --- a/www/ecrire/auth/spip.php +++ b/www/ecrire/auth/spip.php @@ -97,8 +97,7 @@ function auth_spip_formulaire_login($flux){ // javascript qui gere la securite du login en evitant de faire circuler le pass en clair $flux['data'].= ($compat_md5?'':'') - . '' - .'' + .'' .'', '', $texte), true); - - $s = str_replace('/@@@@@', '/script', // bug de highlight_string - str_replace('', '', - str_replace(''){ $s = substr($s, 6); $res = ''; @@ -407,8 +406,8 @@ function ancre_texte($texte, $fautifs = array(), $nocpt = false){ // tentative de pointer sur la colonne fautive; // marche pas car highlight_string rajoute des entites. A revoir. // $m = $flignes[$i][0]; - // $ligne = substr($ligne, 0, $m-1) . - // sprintf($formaterr, substr($ligne,$m)); + // $ligne = substr($ligne, 0, $m-1) . + // sprintf($formaterr, substr($ligne,$m)); $bg = $formaterr; } else { $indexmesg = $ancre; @@ -419,8 +418,8 @@ function ancre_texte($texte, $fautifs = array(), $nocpt = false){ } return "
" - . '
' @@ -456,7 +455,7 @@ function debusquer_squelette($fonc, $mode, $self){ } else return strlen(trim($res)) - ? "
$res
" + ? "afficher-masquer le debug
$res
" // cas de l'appel sur erreur: montre la page : $GLOBALS['debug_objets']['resultat']['tout']; } @@ -476,7 +475,7 @@ function debusquer_squelette($fonc, $mode, $self){ $res = $id = ''; } return !trim($texte) ? '' : ( - "
$res" + "afficher-masquer le debug
$res" . "
" . " ↑ " . ($legend ? $legend : $mode) @@ -647,7 +646,7 @@ function debusquer_navigation_boucles($boucles, $nom_skel, $self, $nom_source){ "\n" . $req . "\n" . - $crit . + htmlspecialchars($crit) . ""; } } @@ -738,10 +737,7 @@ function debusquer_entete($titre, $corps){ . "' type='text/css' />" . "\n" . "\n" . - "" . - "
" . + "
" . $corps . inclure_balise_dynamique(balise_FORMULAIRE_ADMIN_dyn('spip-admin-float', $debug_objets), false) . '
'; diff --git a/www/ecrire/public/parametrer.php b/www/ecrire/public/parametrer.php index 28d21f2..2617ff5 100644 --- a/www/ecrire/public/parametrer.php +++ b/www/ecrire/public/parametrer.php @@ -217,18 +217,21 @@ function tester_redirection($fond, $contexte, $connect) // passer en url absolue car cette redirection pourra // etre utilisee dans un contexte d'url qui change // y compris url arbo + $status = 302; + if (defined('_STATUS_REDIRECTION_VIRTUEL')) + $status=_STATUS_REDIRECTION_VIRTUEL; if (!preg_match(',^\w+:,', $url)) { include_spip('inc/filtres_mini'); $url = url_absolue($url); } $url = str_replace('&', '&', $url); return array('texte' => "<" - . "?php header('Location: " + . "?php include_spip('inc/headers');redirige_par_entete('" . texte_script($url) - . "'); echo '" - . addslashes($url) - . "'.\"\n\"?" . ">", - 'process_ins' => 'php'); + . "','',$status);" + . "?" . ">", + 'process_ins' => 'php', + 'status' => $status); } } } diff --git a/www/ecrire/public/tracer.php b/www/ecrire/public/tracer.php index 94cdccc..9d316de 100644 --- a/www/ecrire/public/tracer.php +++ b/www/ecrire/public/tracer.php @@ -134,15 +134,13 @@ function chrono_requete($temps) . join('',$t[$k]); } - $navigation = - _T('zbug_statistiques') - . "\n\n" . (# _request('var_mode_objet') ? '' : - ("")) - . "
" + $navigation = array(_T('zbug_statistiques'), + "
" . join("
", $d) . "
" . count($temps) . "" . _T('info_total') . '' . $total . "
"; - + ("" . count($temps) . "" . _T('info_total') . '' . $total . ""))); + return array($temps, $navigation); } diff --git a/www/ecrire/req/mysql.php b/www/ecrire/req/mysql.php index b485cd8..3bbd435 100644 --- a/www/ecrire/req/mysql.php +++ b/www/ecrire/req/mysql.php @@ -178,7 +178,17 @@ function spip_mysql_query($query, $serveur='',$requeter=true) { } else $t = 0 ; $connexion['last'] = $query; - $r = $link ? mysql_query($query, $link) : mysql_query($query); + + // ajouter un debug utile dans log/mysql-slow.log ? + $debug = (!defined('_DEBUG_SLOW_QUERIES') || !_DEBUG_SLOW_QUERIES) + ? '' + : ' /* ' + .str_replace('*/','@/', + $_SERVER['REQUEST_URI'].' + '.$GLOBALS['ip'] + ) + .' */'; + + $r = $link ? mysql_query($query.$debug, $link) : mysql_query($query.$debug); if ($e = spip_mysql_errno($serveur)) // Log de l'erreur eventuelle $e .= spip_mysql_error($query, $serveur); // et du fautif diff --git a/www/ecrire/req/sqlite_fonctions.php b/www/ecrire/req/sqlite_fonctions.php index ea08827..14708b8 100644 --- a/www/ecrire/req/sqlite_fonctions.php +++ b/www/ecrire/req/sqlite_fonctions.php @@ -27,7 +27,7 @@ function _sqlite_init_functions(&$sqlite){ $fonctions = array( - 'CONCAT' => array( '_sqlite_func_concat' ,2), + 'CONCAT' => array( '_sqlite_func_concat' ,-1), 'CEIL' => array( '_sqlite_func_ceil', 1), // absent de sqlite2 'DATE_FORMAT' => array( '_sqlite_func_strftime' ,2), @@ -69,6 +69,8 @@ function _sqlite_init_functions(&$sqlite){ 'TO_DAYS' => array( '_sqlite_func_to_days' ,1), # 'TRIM' => array( 'trim' ,1), // present en theorie + 'TIMESTAMPDIFF' => array('_sqlite_timestampdiff' /*,3*/), + 'UNIX_TIMESTAMP'=> array( '_sqlite_func_unix_timestamp' ,1), # 'UPPER' => array( 'strtoupper' ,1), // present v2.4 @@ -273,6 +275,75 @@ function _sqlite_func_substring($string,$start,$len=null){ return substr($string,$start,$len); } +/** + * Calcul de la difference entre 2 timestamp, exprimes dans l'unite fournie en premier argument + * emule https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_timestampdiff + * @param string $unit + * @param string $date1 + * @param string $date2 + * @return int + */ +function _sqlite_timestampdiff($unit,$date1,$date2){ + // PHP >= 5.3 + if (function_exists("date_diff")){ + $d1 = date_create($date1); + $d2 = date_create($date2); + $diff = date_diff($d1,$d2); + $inv = $diff->invert?-1:1; + switch($unit){ + case "YEAR": + return $inv*$diff->y; + case "QUARTER": + return $inv*(4*$diff->y+intval(floor($diff->m/3))); + case "MONTH": + return $inv*(12*$diff->y+$diff->m); + case "WEEK": + return $inv*intval(floor($diff->days/7)); + case "DAY": + #var_dump($inv*$diff->days); + return $inv*$diff->days; + case "HOUR": + return $inv*(24*$diff->days+$diff->h); + case "MINUTE": + return $inv*((24*$diff->days+$diff->h)*60+$diff->i); + case "SECOND": + return $inv*(((24*$diff->days+$diff->h)*60+$diff->i)*60+$diff->s); + case "MICROSECOND": + return $inv*(((24*$diff->days+$diff->h)*60+$diff->i)*60+$diff->s)*1000000; + } + return 0; + } + // PHP < 5.3 + else { + $d1 = strtotime($date1); + $d2 = strtotime($date2); + $diff = $d2 - $d1; + $sign = ($diff<0?-1:1); + $diff = $sign * $diff; + switch($unit){ + case "YEAR": + $diff = $d2-$d1; + return $sign*(date('Y',abs($diff))-date('Y',0)); + case "QUARTER": + return $sign*(4*(date('Y',abs($diff))-date('Y',0))+intval(floor((date('m',$diff)-1)/3))); + case "MONTH": + return $sign*((date('Y',$diff)-date('Y',0))*12+date('m',$diff)-1); + case "WEEK": + return intval(floor(($d2-$d1)/3600/7)); + case "DAY": + return intval(floor(($d2-$d1)/3600/24)); + case "HOUR": + return intval(floor(($d2-$d1)/3600)); + case "MINUTE": + return intval(floor(($d2-$d1)/60)); + case "SECOND": + return $d2-$d1; + case "MICROSECOND": + return $d2-$d1*1000000; + } + } +} + // http://doc.spip.org/@_sqlite_func_unix_timestamp function _sqlite_func_unix_timestamp($d) { //2005-12-02 20:53:53 diff --git a/www/ecrire/req/sqlite_generique.php b/www/ecrire/req/sqlite_generique.php index f596141..17c0969 100644 --- a/www/ecrire/req/sqlite_generique.php +++ b/www/ecrire/req/sqlite_generique.php @@ -512,12 +512,15 @@ function spip_sqlite_create_index($nom, $table, $champs, $unique='', $serveur = } $ifnotexists = ""; - if (_sqlite_is_version(2, '', $serveur)){ - /* simuler le IF EXISTS - version 2 */ + $version = spip_sqlite_fetch(spip_sqlite_query("select sqlite_version() AS sqlite_version",$serveur),'',$serveur); + if (!function_exists('spip_version_compare')) include_spip('plugins/installer'); + + if ($version AND spip_version_compare($version['sqlite_version'],'3.3.0','>=')) { + $ifnotexists = ' IF NOT EXISTS'; + } else { + /* simuler le IF EXISTS - version 2 et sqlite < 3.3a */ $a = spip_sqlite_showtable($table, $serveur); if (isset($a['key']['KEY '.$nom])) return true; - } else { - $ifnotexists = ' IF NOT EXISTS'; } $query = "CREATE ".($unique?"UNIQUE ":"")."INDEX$ifnotexists $nom ON $table (".join(',', $champs).")"; @@ -1957,15 +1960,18 @@ function _sqlite_requete_create($nom, $champs, $cles, $autoinc = false, $tempora $ifnotexists = ""; if ($_ifnotexists){ - // simuler le IF NOT EXISTS - version 2 - if (_sqlite_is_version(2, '', $serveur)){ - $a = spip_sqlite_showtable($nom, $serveur); - if ($a) return false; - } - // sinon l'ajouter en version 3 - else { + + $version = spip_sqlite_fetch(spip_sqlite_query("select sqlite_version() AS sqlite_version",$serveur),'',$serveur); + if (!function_exists('spip_version_compare')) include_spip('plugins/installer'); + + if ($version AND spip_version_compare($version['sqlite_version'],'3.3.0','>=')) { $ifnotexists = ' IF NOT EXISTS'; + } else { + /* simuler le IF EXISTS - version 2 et sqlite < 3.3a */ + $a = spip_sqlite_showtable($table, $serveur); + if (isset($a['key']['KEY '.$nom])) return true; } + } $temporary = $temporary ? ' TEMPORARY' : ''; @@ -2273,6 +2279,11 @@ class sqlite_traducteur { $this->query = str_replace('LEFT(','_LEFT(',$this->query); } + if (strpos($this->query, 'TIMESTAMPDIFF(')!==false){ + $this->query = preg_replace('/TIMESTAMPDIFF\(\s*([^,]*)\s*,/Uims',"TIMESTAMPDIFF('\\1',",$this->query); + } + + // Correction Using // USING (non reconnu en sqlite2) // problematique car la jointure ne se fait pas du coup. diff --git a/www/ecrire/typographie/fr.php b/www/ecrire/typographie/fr.php index 4e1d058..1288a62 100644 --- a/www/ecrire/typographie/fr.php +++ b/www/ecrire/typographie/fr.php @@ -44,7 +44,7 @@ function typographie_fr_dist($letexte) { $cherche1 = array( /* 1 */ '/((?:^|[^\#0-9a-zA-Z\&])[\#0-9a-zA-Z]*)\;/S', - /* 2 */ '/»| --?,|(?::| %)(?:\W|$)/S', + /* 2 */ '/»| --?,|(?::(?!:)| %)(?:\W|$)/S', /* 3 */ '/([^[<(!?.])([!?][!?\.]*)/iS', /* 4 */ '/«|(?:M(?:M?\.|mes?|r\.?)|[MnN]°) /S' ); diff --git a/www/plugins-dist/breves/lang/breves.xml b/www/plugins-dist/breves/lang/breves.xml index d7ea692..25662f4 100644 --- a/www/plugins-dist/breves/lang/breves.xml +++ b/www/plugins-dist/breves/lang/breves.xml @@ -3,8 +3,8 @@ - + @@ -29,8 +29,8 @@ - + @@ -75,8 +75,8 @@ - + diff --git a/www/plugins-dist/breves/lang/breves_ft_tu.php b/www/plugins-dist/breves/lang/breves_ft_tu.php deleted file mode 100644 index ace3c28..0000000 --- a/www/plugins-dist/breves/lang/breves_ft_tu.php +++ /dev/null @@ -1,52 +0,0 @@ - 'Brève', - 'breves' => 'Brèves', - - // E - 'entree_breve_publiee' => 'Cette brève est :', # NEW - 'entree_texte_breve' => 'Texte de la brève', # NEW - - // I - 'icone_breves' => 'Brèves', # NEW - 'icone_ecrire_nouvel_article' => 'Les brèves contenues dans cette rubrique', # NEW - 'icone_modifier_breve' => 'Modifier cette brève', # NEW - 'icone_nouvelle_breve' => 'Écrire une nouvelle brève', # NEW - 'info_1_breve' => '1 brève', # NEW - 'info_aucun_breve' => 'Aucune brève', # NEW - 'info_breves' => 'Votre site utilise-t-il le système de brèves ?', # NEW - 'info_breves_02' => 'Brèves', # NEW - 'info_breves_valider' => 'Brèves à valider', # NEW - 'info_gauche_numero_breve' => 'Brève numéro', # NEW - 'info_nb_breves' => '@nb@ brèves', # NEW - 'item_breve_proposee' => 'proposée à l\'évaluation', # NEW - 'item_breve_refusee' => 'refusée', # NEW - 'item_breve_validee' => 'validée', # NEW - 'item_non_utiliser_breves' => 'Ne pas utiliser les brèves', # NEW - 'item_utiliser_breves' => 'Utiliser les brèves', # NEW - - // L - 'logo_breve' => 'Logo de la brève', # NEW - - // T - 'texte_breves' => 'Les brèves sont des textes courts et simples permettant de - mettre en ligne rapidement des informations concises, de gérer - une revue de presse, un calendrier d\'événements...', # NEW - 'titre_breve_proposee' => 'Brève proposée', # NEW - 'titre_breve_publiee' => 'Brève publiée', # NEW - 'titre_breve_refusee' => 'Brève refusée', # NEW - 'titre_breves' => 'Les brèves', # NEW - 'titre_langue_breve' => 'Langue de la brève', # NEW - 'titre_nouvelle_breve' => 'Nouvelle brève', # NEW - 'titre_page_breves' => 'Brèves' # NEW -); - -?> diff --git a/www/plugins-dist/compagnon/compagnon/article_redaction _redacteur.html b/www/plugins-dist/compagnon/compagnon/article_redaction _redacteur.html deleted file mode 100644 index 002bbd1..0000000 --- a/www/plugins-dist/compagnon/compagnon/article_redaction _redacteur.html +++ /dev/null @@ -1,11 +0,0 @@ -[(#ENV{fermer}|non) -[
(#ENV**|unserialize|print_r{1})
] -#BOITE_OUVRIR{'<:compagnon:c_article_redaction:>',compagnon} - -<:compagnon:c_article_redaction_texte:> - -#BOITE_PIED - - [(#BOUTON_ACTION{[(#VAL|ok_aleatoire)],#URL_ACTION_AUTEUR{compagnon,compris/#ID,#SELF|parametre_url{fermer,oui}},ajax})] -#BOITE_FERMER -] diff --git a/www/plugins-dist/compagnon/compagnon/article_redaction_redacteur.html b/www/plugins-dist/compagnon/compagnon/article_redaction_redacteur.html new file mode 100644 index 0000000..52b372d --- /dev/null +++ b/www/plugins-dist/compagnon/compagnon/article_redaction_redacteur.html @@ -0,0 +1,10 @@ +[(#ENV{fermer}|non) +[(#BOITE_OUVRIR{<:compagnon:c_article_redaction:>,compagnon})] + +<:compagnon:c_article_redaction_texte:> + +#BOITE_PIED + + [(#BOUTON_ACTION{[(#VAL|ok_aleatoire)],#URL_ACTION_AUTEUR{compagnon,compris/#ID,#SELF|parametre_url{fermer,oui}},ajax})] +#BOITE_FERMER +] diff --git a/www/plugins-dist/compagnon/lang/compagnon_eo.php b/www/plugins-dist/compagnon/lang/compagnon_eo.php index e547658..1e63c9a 100644 --- a/www/plugins-dist/compagnon/lang/compagnon_eo.php +++ b/www/plugins-dist/compagnon/lang/compagnon_eo.php @@ -12,7 +12,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'c_accueil_configurer_site' => 'Agordi vian retejon', 'c_accueil_configurer_site_texte' => 'Unu el la unuaj aferoj por fari estas doni nomon al via retejo. Ĝi nuntempe nomiĝas « @nom@ ». La retejnomo estas montrita supre de ĉi paĝo. -Klakante sur tio, vi povas ŝanĝi lian nomon, sed ankaŭ donas al ĝi vigneton kaj devizon.', +Klakante sur tio, vi povas ŝanĝi lian nomon, sed ankaŭ donas al ĝi vinjeton kaj devizon.', 'c_accueil_publication' => 'Publikigu !', 'c_accueil_publication_texte' => 'Por publikigi paĝon, vi devas krei artikolon. Por tio, estas necesa krei almenaŭ unu rubrikon. Vi povas fari tion en la menuo «Eldono» per klako sur «Rubrikoj».', diff --git a/www/plugins-dist/compagnon/paquet.xml b/www/plugins-dist/compagnon/paquet.xml index 1a0bb1c..e2db746 100644 --- a/www/plugins-dist/compagnon/paquet.xml +++ b/www/plugins-dist/compagnon/paquet.xml @@ -1,7 +1,7 @@
- - + + @@ -38,9 +38,9 @@ - + diff --git a/www/plugins-dist/compresseur/lib/csstidy/css_optimiser.php b/www/plugins-dist/compresseur/lib/csstidy/css_optimiser.php deleted file mode 100644 index b282062..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/css_optimiser.php +++ /dev/null @@ -1,478 +0,0 @@ -. - * - * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License - * @package csstidy - * @author Florian Schmitz (floele at gmail dot com) 2005-2007 - * @author Brett Zamir (brettz9 at yahoo dot com) 2007 - */ - -require('class.csstidy.php'); -require('lang.inc.php'); - - -if (get_magic_quotes_gpc()) { - if (isset($_REQUEST['css_text'])) { - $_REQUEST['css_text'] = stripslashes($_REQUEST['css_text']); - } - if (isset($_REQUEST['custom'])) { - $_REQUEST['custom'] = stripslashes($_REQUEST['custom']); - } - if (isset($_COOKIE['custom_template'])) { - $_COOKIE['custom_template'] = stripslashes($_COOKIE['custom_template']); - } -} - -function rmdirr($dirname,$oc=0) -{ - // Sanity check - if (!file_exists($dirname)) { - return false; - } - // Simple delete for a file - if (is_file($dirname) && (time()-fileatime($dirname))>3600) { - return unlink($dirname); - } - // Loop through the folder - if(is_dir($dirname)) - { - $dir = dir($dirname); - while (false !== $entry = $dir->read()) { - // Skip pointers - if ($entry === '.' || $entry === '..') { - continue; - } - // Recurse - rmdirr($dirname.'/'.$entry,$oc); - } - $dir->close(); - } - // Clean up - if ($oc==1) - { - return rmdir($dirname); - } -} - -function options($options, $selected = null, $labelIsValue = false) -{ - $html = ''; - - settype($selected, 'array'); - settype($options, 'array'); - - foreach ($options as $value=>$label) - { - if (is_array($label)) { - $value = $label[0]; - $label = $label[1]; - } - $label = htmlspecialchars($label, ENT_QUOTES, 'utf-8'); - $value = $labelIsValue ? $label - : htmlspecialchars($value, ENT_QUOTES, 'utf-8'); - - $html .= ''; - } - - return $html; -} - -$css = new csstidy(); -$is_custom = isset($_REQUEST['custom']) && !empty($_REQUEST['custom']) && isset($_REQUEST['template']) && ($_REQUEST['template'] === '4'); -if($is_custom) -{ - setcookie ('custom_template', $_REQUEST['custom'], time()+360000); -} - -rmdirr('temp'); - -if(isset($_REQUEST['case_properties'])) $css->set_cfg('case_properties',$_REQUEST['case_properties']); -if(isset($_REQUEST['lowercase'])) $css->set_cfg('lowercase_s',true); -if(!isset($_REQUEST['compress_c']) && isset($_REQUEST['post'])) $css->set_cfg('compress_colors',false); -if(!isset($_REQUEST['compress_fw']) && isset($_REQUEST['post'])) $css->set_cfg('compress_font-weight',false); -if(isset($_REQUEST['merge_selectors'])) $css->set_cfg('merge_selectors', $_REQUEST['merge_selectors']); -if(isset($_REQUEST['optimise_shorthands'])) $css->set_cfg('optimise_shorthands',$_REQUEST['optimise_shorthands']); -if(!isset($_REQUEST['rbs']) && isset($_REQUEST['post'])) $css->set_cfg('remove_bslash',false); -if(isset($_REQUEST['preserve_css'])) $css->set_cfg('preserve_css',true); -if(isset($_REQUEST['sort_sel'])) $css->set_cfg('sort_selectors',true); -if(isset($_REQUEST['sort_de'])) $css->set_cfg('sort_properties',true); -if(isset($_REQUEST['remove_last_sem'])) $css->set_cfg('remove_last_;',true); -if(isset($_REQUEST['discard'])) $css->set_cfg('discard_invalid_properties',true); -if(isset($_REQUEST['css_level'])) $css->set_cfg('css_level',$_REQUEST['css_level']); -if(isset($_REQUEST['timestamp'])) $css->set_cfg('timestamp',true); - - -// This by itself is enough since our scripts don't use DOM to create elements (in which case the namespace aware ones -// should be used when serving as application/xhtml+xml but not when served as text/html ; -// also, case will be different when retrieving element names, as HTML DOM returns in upper case, -// genuine XHTML DOM (when XHTML served as such) as lower -if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml')) { - $http_accept = 'application/xhtml+xml'; -} -elseif (stristr($_SERVER['HTTP_ACCEPT'], 'application/xml')) { - $http_accept = 'application/xml'; -} -elseif (stristr($_SERVER['HTTP_ACCEPT'], 'text/xml')) { - $http_accept = 'text/xml'; -} -elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'Opera ') || stristr($_SERVER['HTTP_USER_AGENT'], 'Opera/')) { - preg_match('@Opera/(\d)@', $_SERVER['HTTP_USER_AGENT'], $matches); - if (isset($matches[1]) && $matches[1] >= 7) { - $http_accept = 'application/xhtml+xml'; - } - else { - $http_accept = 'text/html'; - } -} -else { - $http_accept = 'text/html'; -} - -header('Content-Type: '.$http_accept.'; charset=utf-8'); - -if ($http_accept === 'text/html') { -?> - - - - - - - - - <?php echo $lang[$l][0]; echo $css->version; ?>) - - - - - -

- -

- csstidy version; ?>) -

- : English Deutsch French Chinese

-

- -

- -
-
-
- - - size="35" />
- -
-
-
-
- -
-
- - - get_cfg('preserve_css')) echo 'checked="checked"'; ?> /> -
- - - get_cfg('sort_selectors')) echo 'checked="checked"'; ?> /> -
- - - get_cfg('sort_properties')) echo 'checked="checked"'; ?> /> -
- - - -
- - -
- - - get_cfg('compress_colors')) echo 'checked="checked"';?> /> -
- - - get_cfg('compress_font-weight')) echo 'checked="checked"';?> /> -
- - - get_cfg('lowercase_s')) echo 'checked="checked"'; ?> /> -
- - -
- get_cfg('case_properties') === 0) echo 'checked="checked"'; ?> /> - - get_cfg('case_properties') === 1) echo 'checked="checked"'; ?> /> - - get_cfg('case_properties') === 2) echo 'checked="checked"'; ?> /> -
- - get_cfg('remove_bslash')) echo 'checked="checked"'; ?> /> -
- - - get_cfg('remove_last_;')) echo 'checked="checked"'; ?> /> -
- - - get_cfg('discard_invalid_properties')) echo 'checked="checked"'; ?> /> - -
- - - get_cfg('timestamp')) echo 'checked="checked"'; ?> /> -
- - /> -
- - - /> -
- -
- -
-
-
- load_template($_REQUEST['custom'],false); - } - break; - - case 3: - $css->load_template('highest_compression'); - break; - - case 2: - $css->load_template('high_compression'); - break; - - case 0: - $css->load_template('low_compression'); - break; - } - } - - if($url) - { - if(substr($_REQUEST['url'],0,7) !== 'http://') - { - $_REQUEST['url'] = 'http://'.$_REQUEST['url']; - } - $result = $css->parse_from_url($_REQUEST['url'],0); - } - elseif(isset($_REQUEST['css_text']) && strlen($_REQUEST['css_text'])>5) - { - $result = $css->parse($_REQUEST['css_text']); - } - - if($result) - { - $ratio = $css->print->get_ratio(); - $diff = $css->print->get_diff(); - if(isset($_REQUEST['file_output'])) - { - $filename = md5(mt_rand().time().mt_rand()); - if (!is_dir('temp')) { - $madedir = mkdir('temp'); - if (!$madedir) { - print 'Could not make directory "temp" in '.dirname(__FILE__); - exit; - } - } - $handle = fopen('temp/'.$filename.'.css','w'); - if($handle) { - if(fwrite($handle,$css->print->plain())) - { - $file_ok = true; - } - } - fclose($handle); - } - if($ratio>0) $ratio = ''.$ratio.'% - ('.$diff.' Bytes)'; else $ratio = ''.$ratio.'% ('.$diff.' Bytes)'; - if(count($css->log) > 0): ?> -
Messages -
log as $line => $array) - { - echo '
',$line,'
'; - $array_size = count($array); - for($i = 0; $i < $array_size; ++$i) - { - echo '
',$array[$i]['m'],'
'; - } - } - ?>
-
- ',$lang[$l][37],': ',$css->print->size('input'),'KB, ',$lang[$l][38],':',$css->print->size('output'),'KB, ',$lang[$l][36],': ',$ratio; - if($file_ok) - { - echo ' - Download'; - } - echo ' - ',$lang[$l][58],''; - echo ''; - echo ''; - echo $css->print->formatted(); - echo '

'; - - echo '
',$lang[$l][64],''; - echo '
'; - echo '
',$lang[$l][65],''; - echo ''; - - echo '

↑ ',$lang[$l][59],'

'; - - } - elseif(isset($_REQUEST['css_text']) || isset($_REQUEST['url'])) { - echo '

',$lang[$l][28],'

'; - } - ?> -

- . -

- - diff --git a/www/plugins-dist/compresseur/lib/csstidy/lang.inc.php b/www/plugins-dist/compresseur/lib/csstidy/lang.inc.php deleted file mode 100644 index 6452b42..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/lang.inc.php +++ /dev/null @@ -1,311 +0,0 @@ -. - * - * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License - * @package csstidy - * @author Florian Schmitz (floele at gmail dot com) 2005-2007 - * @author Brett Zamir (brettz9 at yahoo dot com) 2007 - */ - - -if(isset($_GET['lang'])) { - $l = $_GET['lang']; -} -else if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { - $l = $_SERVER['HTTP_ACCEPT_LANGUAGE']; - $l = strtolower(substr($l, 0, 2)); -} -else { - $l = ''; -} - -$l = (in_array($l, array('de', 'fr', 'zh'))) ? $l : 'en'; - -// note 5 in all but French, and 40 in all are orphaned - -$lang = array(); -$lang['en'][0] = 'CSS Formatter and Optimiser/Optimizer (based on CSSTidy '; -$lang['en'][1] = 'CSS Formatter and Optimiser'; -$lang['en'][2] = '(based on'; -$lang['en'][3] = '(plaintext)'; -$lang['en'][4] = 'Important Note:'; -$lang['en'][6] = 'Your code should be well-formed. This is not a validator which points out errors in your CSS code. To make sure that your code is valid, use the W3C Validator.'; -$lang['en'][7] = 'all comments are removed'; -$lang['en'][8] = 'CSS Input:'; -$lang['en'][9] = 'CSS-Code:'; -$lang['en'][10] = 'CSS from URL:'; -$lang['en'][11] = 'Code Layout:'; -$lang['en'][12] = 'Compression (code layout):'; -$lang['en'][13] = 'Highest (no readability, smallest size)'; -$lang['en'][14] = 'High (moderate readability, smaller size)'; -$lang['en'][15] = 'Standard (balance between readability and size)'; -$lang['en'][16] = 'Low (higher readability)'; -$lang['en'][17] = 'Custom (enter below)'; -$lang['en'][18] = 'Custom template'; -$lang['en'][19] = 'Options'; -$lang['en'][20] = 'Sort Selectors (caution)'; -$lang['en'][21] = 'Sort Properties'; -$lang['en'][22] = 'Regroup selectors'; -$lang['en'][23] = 'Optimise shorthands'; -$lang['en'][24] = 'Compress colors'; -$lang['en'][25] = 'Lowercase selectors'; -$lang['en'][26] = 'Case for properties:'; -$lang['en'][27] = 'Lowercase'; -$lang['en'][28] = 'No or invalid CSS input or wrong URL!'; -$lang['en'][29] = 'Uppercase'; -$lang['en'][30] = 'lowercase elementnames needed for XHTML'; -$lang['en'][31] = 'Remove unnecessary backslashes'; -$lang['en'][32] = 'convert !important-hack'; -$lang['en'][33] = 'Output as file'; -$lang['en'][34] = 'Bigger compression because of smaller newlines (copy & paste doesn\'t work)'; -$lang['en'][35] = 'Process CSS'; -$lang['en'][36] = 'Compression Ratio'; -$lang['en'][37] = 'Input'; -$lang['en'][38] = 'Output'; -$lang['en'][39] = 'Language'; -$lang['en'][41] = 'Attention: This may change the behaviour of your CSS Code!'; -$lang['en'][42] = 'Remove last ;'; -$lang['en'][43] = 'Discard invalid properties'; -$lang['en'][44] = 'Only safe optimisations'; -$lang['en'][45] = 'Compress font-weight'; -$lang['en'][46] = 'Save comments'; -$lang['en'][47] = 'Do not change anything'; -$lang['en'][48] = 'Only seperate selectors (split at ,)'; -$lang['en'][49] = 'Merge selectors with the same properties (fast)'; -$lang['en'][50] = 'Merge selectors intelligently (slow)'; -$lang['en'][51] = 'Preserve CSS'; -$lang['en'][52] = 'Save comments, hacks, etc. Most optimisations can *not* be applied if this is enabled.'; -$lang['en'][53] = 'None'; -$lang['en'][54] = 'Don\'t optimise'; -$lang['en'][55] = 'Safe optimisations'; -$lang['en'][56] = 'All optimisations'; -$lang['en'][57] = 'Add timestamp'; -$lang['en'][58] = 'Copy to clipboard'; -$lang['en'][59] = 'Back to top'; -$lang['en'][60] = 'Your browser doesn\'t support copy to clipboard.'; -$lang['en'][61] = 'For bugs and suggestions feel free to'; -$lang['en'][62] = 'contact me'; -$lang['en'][63] = 'Output CSS code as complete HTML document'; -$lang['en'][64] = 'Code'; -$lang['en'][65] = 'CSS to style CSS output'; -$lang['en'][66] = 'You need to go to about:config in your URL bar, select \'signed.applets.codebase_principal_support\' in the filter field, and set its value to true in order to use this feature; however, be aware that doing so increases security risks.'; - - -$lang['de'][0] = 'CSS Formatierer und Optimierer (basierend auf CSSTidy '; -$lang['de'][1] = 'CSS Formatierer und Optimierer'; -$lang['de'][2] = '(basierend auf'; -$lang['de'][3] = '(Textversion)'; -$lang['de'][4] = 'Wichtiger Hinweis:'; -$lang['de'][6] = 'Der CSS Code sollte wohlgeformt sein. Der CSS Code wird nicht auf Gültigkeit überprüft. Um sicherzugehen dass dein Code valide ist, benutze den W3C Validierungsservice.'; -$lang['de'][7] = 'alle Kommentare werden entfernt'; -$lang['de'][8] = 'CSS Eingabe:'; -$lang['de'][9] = 'CSS-Code:'; -$lang['de'][10] = 'CSS von URL:'; -$lang['de'][11] = 'Code Layout:'; -$lang['de'][12] = 'Komprimierung (Code Layout):'; -$lang['de'][13] = 'Höchste (keine Lesbarkeit, niedrigste Größe)'; -$lang['de'][14] = 'Hoch (mittelmäßige Lesbarkeit, geringe Größe)'; -$lang['de'][15] = 'Standard (Kompromiss zwischen Lesbarkeit und Größe)'; -$lang['de'][16] = 'Niedrig (höhere Lesbarkeit)'; -$lang['de'][17] = 'Benutzerdefiniert (unten eingeben)'; -$lang['de'][18] = 'Benutzerdefinierte Vorlage'; -$lang['de'][19] = 'Optionen'; -$lang['de'][20] = 'Selektoren sortieren (Vorsicht)'; -$lang['de'][21] = 'Eigenschaften sortieren'; -$lang['de'][22] = 'Selektoren umgruppieren'; -$lang['de'][23] = 'Shorthands optimieren'; -$lang['de'][24] = 'Farben komprimieren'; -$lang['de'][25] = 'Selektoren in Kleinbuchstaben'; -$lang['de'][26] = 'Groß-/Kleinschreibung für Eigenschaften'; -$lang['de'][27] = 'Kleinbuchstaben'; -$lang['de'][28] = 'Keine oder ungültige CSS Eingabe oder falsche URL!'; -$lang['de'][29] = 'Großbuchstaben'; -$lang['de'][30] = 'kleingeschriebene Elementnamen benötigt für XHTML'; -$lang['de'][31] = 'Unnötige Backslashes entfernen'; -$lang['de'][32] = '!important-Hack konvertieren'; -$lang['de'][33] = 'Als Datei ausgeben'; -$lang['de'][34] = 'Größere Komprimierung augrund von kleineren Neuezeile-Zeichen'; -$lang['de'][35] = 'CSS verarbeiten'; -$lang['de'][36] = 'Komprimierungsrate'; -$lang['de'][37] = 'Eingabe'; -$lang['de'][38] = 'Ausgabe'; -$lang['de'][39] = 'Sprache'; -$lang['de'][41] = 'Achtung: Dies könnte das Verhalten ihres CSS-Codes verändern!'; -$lang['de'][42] = 'Letztes ; entfernen'; -$lang['de'][43] = 'Ungültige Eigenschaften entfernen'; -$lang['de'][44] = 'Nur sichere Optimierungen'; -$lang['de'][45] = 'font-weight komprimieren'; -$lang['de'][46] = 'Kommentare beibehalten'; -$lang['de'][47] = 'Nichts ändern'; -$lang['de'][48] = 'Selektoren nur trennen (am Komma)'; -$lang['de'][49] = 'Selektoren mit gleichen Eigenschaften zusammenfassen (schnell)'; -$lang['de'][50] = 'Selektoren intelligent zusammenfassen (langsam!)'; -$lang['de'][51] = 'CSS erhalten'; -$lang['de'][52] = 'Kommentare, Hacks, etc. speichern. Viele Optimierungen sind dann aber nicht mehr möglich.'; -$lang['de'][53] = 'Keine'; -$lang['de'][54] = 'Nicht optimieren'; -$lang['de'][55] = 'Sichere Optimierungen'; -$lang['de'][56] = 'Alle Optimierungen'; -$lang['de'][57] = 'Zeitstempel hinzufügen'; -$lang['de'][58] = 'Copy to clipboard'; -$lang['de'][59] = 'Back to top'; -$lang['de'][60] = 'Your browser doesn\'t support copy to clipboard.'; -$lang['de'][61] = 'For bugs and suggestions feel free to'; -$lang['de'][62] = 'contact me'; -$lang['de'][63] = 'Output CSS code as complete HTML document'; -$lang['de'][64] = 'Code'; -$lang['de'][65] = 'CSS to style CSS output'; -$lang['de'][66] = 'You need to go to about:config in your URL bar, select \'signed.applets.codebase_principal_support\' in the filter field, and set its value to true in order to use this feature; however, be aware that doing so increases security risks.'; - - -$lang['fr'][0] = 'CSS Formatteur et Optimiseur (basé sur CSSTidy '; -$lang['fr'][1] = 'CSS Formatteur et Optimiseur'; -$lang['fr'][2] = '(basé sur '; -$lang['fr'][3] = '(Version texte)'; -$lang['fr'][4] = 'Note Importante :'; -$lang['fr'][6] = 'Votre code doit être valide. Ce n’est pas un validateur qui signale les erreurs dans votre code CSS. Pour être sûr que votre code est correct, utilisez le validateur : W3C Validator.'; -$lang['fr'][7] = 'tous les commentaires sont enlevés'; -$lang['fr'][8] = 'Champ CSS :'; -$lang['fr'][9] = 'Code CSS :'; -$lang['fr'][10] = 'CSS en provenance d’une URL :
'; -$lang['fr'][11] = 'Mise en page du code :'; -$lang['fr'][12] = 'Compression (mise en page du code) :'; -$lang['fr'][13] = 'La plus élevée (aucune lisibilité, taille minimale)'; -$lang['fr'][14] = 'Élevée (lisibilité modérée, petite taille)'; -$lang['fr'][15] = 'Normale (équilibre entre lisibilité et taille)'; -$lang['fr'][16] = 'Faible (lisibilité élevée)'; -$lang['fr'][17] = 'Sur mesure (entrer ci-dessous)'; -$lang['fr'][18] = 'Gabarit sur mesure'; -$lang['fr'][19] = 'Options'; -$lang['fr'][20] = 'Trier les sélecteurs (attention)'; -$lang['fr'][21] = 'Trier les propriétés'; -$lang['fr'][22] = 'Regrouper les sélecteurs'; -$lang['fr'][23] = 'Propriétés raccourcies'; -$lang['fr'][24] = 'Compresser les couleurs'; -$lang['fr'][25] = 'Sélecteurs en minuscules'; -$lang['fr'][26] = 'Case pour les propriétés :'; -$lang['fr'][27] = 'Minuscule'; -$lang['fr'][28] = 'CSS non valide ou URL incorrecte !'; -$lang['fr'][29] = 'Majuscule'; -$lang['fr'][30] = 'les noms des éléments en minuscules (indispensables pour XHTML)'; -$lang['fr'][31] = 'enlever les antislashs inutiles'; -$lang['fr'][32] = 'convertir !important-hack'; -$lang['fr'][33] = 'Sauver en tant que fichier'; -$lang['fr'][34] = 'Meilleure compression grâce aux caractères de saut de ligne plus petits (copier & coller ne marche pas)'; -$lang['fr'][35] = 'Compresser la CSS'; -$lang['fr'][36] = 'Facteur de Compression'; -$lang['fr'][37] = 'Entrée'; -$lang['fr'][38] = 'Sortie'; -$lang['fr'][39] = 'Langue'; -$lang['fr'][41] = 'Attention : ceci peut changer le comportement de votre code CSS !'; -$lang['fr'][42] = 'Enlever le dernier ;'; -$lang['fr'][43] = 'Supprimer les propriétés non valide'; -$lang['fr'][44] = 'Seulement les optimisations sûres'; -$lang['fr'][45] = 'Compresser font-weight'; -$lang['fr'][46] = 'Sauvegarder les commentaires '; -$lang['fr'][47] = 'Ne rien changer'; -$lang['fr'][48] = 'Sépare les sélecteurs (sépare au niveau de ,)'; -$lang['fr'][49] = 'Fusionne les sélecteurs avec les mêmes propriétés (rapide)'; -$lang['fr'][50] = 'Fusionne les sélecteurs intelligemment (lent)'; -$lang['fr'][51] = 'Préserver la CSS'; -$lang['fr'][52] = 'Sauvegarder les commentaires, hacks, etc. La plupart des optimisations ne peuvent *pas* être appliquées si cela est activé.'; -$lang['fr'][53] = 'Aucun'; -$lang['fr'][54] = 'Ne pas optimiser'; -$lang['fr'][55] = 'Optimisations sûres'; -$lang['fr'][56] = 'Toutes les optimisations'; -$lang['fr'][57] = 'Ajouter un timestamp'; -$lang['fr'][58] = 'Copier dans le presse-papiers'; -$lang['fr'][59] = 'Retour en haut'; -$lang['fr'][60] = 'Votre navigateur ne suporte pas la copie vers le presse-papiers.'; -$lang['fr'][61] = 'Pour signaler des bugs ou pour des suggestions,'; -$lang['fr'][62] = 'contactez-moi'; -$lang['fr'][63] = 'Sauver le code CSS comme document complet HTML'; -$lang['fr'][64] = 'Code'; -$lang['fr'][65] = 'CSS pour colorier la sortie CSS'; -$lang['fr'][66] = 'Vous devez aller dans about:config dans votre barre d’adresse, selectionner \'signed.applets.codebase_principal_support\' dans le champ Filtre et attribuez-lui la valeur \'true\' pour utiliser cette fonctionnalité; toutefois, soyez conscient que cela augmente les risques de sécurité.'; - - -$lang['zh'][0] = 'CSS整形與最佳化工具(使用 CSSTidy '; -$lang['zh'][1] = 'CSS整形與最佳化工具'; -$lang['zh'][2] = '(使用'; -$lang['zh'][3] = '(純文字)'; -$lang['zh'][4] = '重要事項:'; -$lang['zh'][6] = '你的原始碼必須是良構的(well-formed). 這個工具沒有內建驗證器(validator). 驗證器能夠指出你CSS原始碼裡的錯誤. 請使用 W3C 驗證器, 確保你的原始碼合乎規範.'; -$lang['zh'][7] = '所有註解都移除了'; -$lang['zh'][8] = 'CSS 輸入:'; -$lang['zh'][9] = 'CSS 原始碼:'; -$lang['zh'][10] = 'CSS 檔案網址(URL):'; -$lang['zh'][11] = '原始碼規劃:'; -$lang['zh'][12] = '壓縮程度(原始碼規劃):'; -$lang['zh'][13] = '最高 (沒有辦法讀, 檔案最小)'; -$lang['zh'][14] = '高 (適度的可讀性, 檔案小)'; -$lang['zh'][15] = '標準 (兼顧可讀性與檔案大小)'; -$lang['zh'][16] = '低 (注重可讀性)'; -$lang['zh'][17] = '自訂 (在下方設定)'; -$lang['zh'][18] = '自訂樣板'; -$lang['zh'][19] = '選項'; -$lang['zh'][20] = '整理選擇符(請謹慎使用)'; -$lang['zh'][21] = '整理屬性'; -$lang['zh'][22] = '重組選擇符'; -$lang['zh'][23] = '速記法(shorthand)最佳化'; -$lang['zh'][24] = '壓縮色彩語法'; -$lang['zh'][25] = '改用小寫選擇符'; -$lang['zh'][26] = '屬性的字形:'; -$lang['zh'][27] = '小寫'; -$lang['zh'][28] = '沒有輸入CSS, 語法不符合規定, 或是網址錯誤!'; -$lang['zh'][29] = '大寫'; -$lang['zh'][30] = 'XHTML必須使用小寫的元素名稱'; -$lang['zh'][31] = '移除不必要的反斜線'; -$lang['zh'][32] = '轉換 !important-hack'; -$lang['zh'][33] = '輸出成檔案形式'; -$lang['zh'][34] = '由於比較少換行字元, 會有更大的壓縮比率(複製&貼上沒有用)'; -$lang['zh'][35] = '執行'; -$lang['zh'][36] = '壓縮比率'; -$lang['zh'][37] = '輸入'; -$lang['zh'][38] = '輸出'; -$lang['zh'][39] = '語言'; -$lang['zh'][41] = '注意: 這或許會變更你CSS原始碼的行為!'; -$lang['zh'][42] = '除去最後一個分號'; -$lang['zh'][43] = '拋棄不符合規定的屬性'; -$lang['zh'][44] = '只安全地最佳化'; -$lang['zh'][45] = '壓縮 font-weight'; -$lang['zh'][46] = '保留註解'; -$lang['zh'][47] = '什麼都不要改'; -$lang['zh'][48] = '只分開原本用逗號分隔的選擇符'; -$lang['zh'][49] = '合併有相同屬性的選擇符(快速)'; -$lang['zh'][50] = '聰明地合併選擇符(慢速)'; -$lang['zh'][51] = '保護CSS'; -$lang['zh'][52] = '保留註解與 hack 等等. 如果啟用這個選項, 大多數的最佳化程序都不會執行.'; -$lang['zh'][53] = '不改變'; -$lang['zh'][54] = '不做最佳化'; -$lang['zh'][55] = '安全地最佳化'; -$lang['zh'][56] = '全部最佳化'; -$lang['zh'][57] = '加上時間戳記'; -$lang['zh'][58] = '复制到剪贴板'; -$lang['zh'][59] = '回到页面上方'; -$lang['zh'][60] = '你的浏览器不支持复制到剪贴板。'; -$lang['zh'][61] = '如果程序有错误或你有建议,欢迎'; -$lang['zh'][62] = '和我联系'; -$lang['zh'][63] = 'Output CSS code as complete HTML document'; -$lang['zh'][64] = '代码'; -$lang['zh'][65] = 'CSS to style CSS output'; -$lang['zh'][66] = 'You need to go to about:config in your URL bar, select \'signed.applets.codebase_principal_support\' in the filter field, and set its value to true in order to use this feature; however, be aware that doing so increases security risks.'; diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests.inc b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests.inc deleted file mode 100644 index 4982a38..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests.inc +++ /dev/null @@ -1,35 +0,0 @@ - - * - * Required - * unit-tets/Text : http://download.pear.php.net/package/Text_Diff-1.1.1.tgz - * unit-tests/simpletest/ : http://downloads.sourceforge.net/project/simpletest/simpletest/simpletest_1.0.1/simpletest_1.0.1.tar.gz?r=&ts=1289748853&use_mirror=freefr - * - */ - -error_reporting(E_ALL ^ 8192/*E_DEPRECATED*/); - -// Configuration -$simpletest_location = 'simpletest/'; -if (file_exists('../test-settings.php')) include_once '../test-settings.php'; - -// Includes -require_once '../class.csstidy.php'; -require_once 'Text/Diff.php'; -require_once 'Text/Diff/Renderer.php'; -require_once $simpletest_location . 'unit_tester.php'; -require_once $simpletest_location . 'reporter.php'; -require_once 'unit-tests/class.csstidy_reporter.php'; -require_once 'unit-tests/class.csstidy_harness.php'; -require_once 'unit-tests.inc'; - -// Test files -$test_files = array(); -require 'unit-tests/_files.php'; - -// Setup test files -$test = new GroupTest('CSSTidy unit tests'); -foreach ($test_files as $test_file) { - require_once "unit-tests/$test_file"; - list($x, $class_suffix) = explode('.', $test_file); - $test->addTestClass("csstidy_test_$class_suffix"); -} - -if (SimpleReporter::inCli()) $reporter = new TextReporter(); -else $reporter = new csstidy_reporter('UTF-8'); - -$test->run($reporter); diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/_files.php b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/_files.php deleted file mode 100644 index 076d63e..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/_files.php +++ /dev/null @@ -1,4 +0,0 @@ -'. $this->original .''. $this->final .''; - } - function _endDiff() { - return ''; - } - function _context($lines) { - return '
'. htmlspecialchars(implode("\n", $lines)) .'
-
'. htmlspecialchars(implode("\n", $lines)) .'
'; - } - function _added($lines) { - return ' 
'. htmlspecialchars(implode("\n", $lines)) .'
'; - } - function _deleted($lines) { - return '
'. htmlspecialchars(implode("\n", $lines)) .'
 '; - } - function _changed($orig, $final) { - return '
'. htmlspecialchars(implode("\n", $orig)) .'
-
'. htmlspecialchars(implode("\n", $final)) .'
'; - } -} diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_csst.php b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_csst.php deleted file mode 100644 index 6d8ddad..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_csst.php +++ /dev/null @@ -1,135 +0,0 @@ -css[41] (no at block) */ - var $expect = ''; - - /** Boolean whether or not to use $css->css instead for $expect */ - var $fullexpect = false; - - /** Print form of CSS that can be tested **/ - var $print = false; - var $default_media = ""; - - /** Actual result */ - var $actual; - - /** - * Loads this class from a file. - * @param $filename String filename to load - */ - function load($filename) { - $this->filename = $filename; - $fh = fopen($filename, 'r'); - $state = ''; - while (($line = fgets($fh)) !== false) { - $line = rtrim($line, "\n\r"); // normalize newlines - if (substr($line, 0, 2) == '--') { - // detected section - $state = $line; - continue; - } - if ($state === null) continue; - switch ($state) { - case '--TEST--': - $this->test = trim($line); - break; - case '--CSS--': - $this->css .= $line . "\n"; - break; - case '--FULLEXPECT--': - $this->fullexpect = true; - $this->expect .= $line . "\n"; - break; - case '--EXPECT--': - $this->expect .= $line . "\n"; - break; - case '--SETTINGS--': - list($n, $v) = array_map('trim',explode('=', $line, 2)); - $v = eval("return $v;"); - if ($n=="default_media" AND $this->print) - $this->default_media = $v; - else - $this->settings[$n] = $v; - break; - case '--PRINT--': - $this->print = true; - $this->expect .= $line . "\n"; - break; - } - } - if ($this->print) { - $this->expect = trim($this->expect); - } - else { - if ($this->expect) - $this->expect = eval("return ".$this->expect.";"); - if (!$this->fullexpect) - $this->expect = array(41=>$this->expect); - } - fclose($fh); - } - - /** - * Implements SimpleExpectation::test(). - * @param $filename Filename of test file to test. - */ - function test($filename = false) { - if ($filename) $this->load($filename); - $css = new csstidy(); - $css->set_cfg($this->settings); - $css->parse($this->css); - if ($this->print){ - $this->actual = $css->print->plain($this->default_media); - } - else{ - $this->actual = $css->css; - } - return $this->expect === $this->actual; - } - - /** - * Implements SimpleExpectation::testMessage(). - */ - function testMessage() { - $message = $this->test . ' test at '. htmlspecialchars($this->filename); - return $message; - } - - /** - * Renders the test with an HTML diff table. - */ - function render() { - $message = '
'. htmlspecialchars($this->css) .'
'; - $diff = new Text_Diff( - 'auto', - array( - explode("\n", $this->print?$this->expect:var_export($this->expect,true)), - explode("\n", $this->print?$this->actual:var_export($this->actual,true)) - ) - ); - $renderer = new Text_Diff_Renderer_parallel(); - $renderer->original = 'Expected'; - $renderer->final = 'Actual'; - $message .= $renderer->render($diff); - return $message; - } -} diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_harness.php b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_harness.php deleted file mode 100644 index eb6d2af..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/class.csstidy_harness.php +++ /dev/null @@ -1,21 +0,0 @@ -css[41] - -Note carefully that EXPECT is for csstidy->css[41], not csstidy->css. This -is because, by default, all declarations are placed inside the -DEFAULT_AT section. For tests that need to make use of at selectors, use - ---FULLEXPECT-- -var_export() representation of csstidy->css - -...instead. - -See also: class.csstidy_csst.php (the implementation of these tests) and -test.csst.php (the caller stub for SimpleTest) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/atvalues.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/atvalues.csst deleted file mode 100644 index e5ee74b..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/atvalues.csst +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Test @import directive ---CSS-- -@import url('../thematic/library/styles/reset.css'); -@namespace foo url("http://www.example.com/"); -@charset "Shift-JIS"; - -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - -/* begin suggest post */ -.float-l { - float : left ; -} ---PRINT-- -@charset "Shift-JIS"; -@import "../thematic/library/styles/reset.css"; -@namespace foo "http://www.example.com/"; -@media screen { -.float-l{float:left} -} ---SETTINGS-- -template='high' -sort_properties=false -sort_selectors=false -default_media="@media screen" \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia-2.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia-2.csst deleted file mode 100644 index fd15fde..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia-2.csst +++ /dev/null @@ -1,39 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/** **/ -@font-face { - font-family: 'GenerikaRegular'; - src: url('../fonts/generikaregular-webfont.eot'); - src: url('../fonts/generikaregular-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/generikaregular-webfont.woff') format('woff'), - url('../fonts/generikaregular-webfont.ttf') format('truetype'), - url('../fonts/generikaregular-webfont.svg#GenerikaRegular') format('svg'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'GenerikaLight'; - src: url('../fonts/generikalight-webfont.eot'); - src: url('../fonts/generikalight-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/generikalight-webfont.woff') format('woff'), - url('../fonts/generikalight-webfont.ttf') format('truetype'), - url('../fonts/generikalight-webfont.svg#GenerikaLight') format('svg'); - font-weight: normal; - font-style: normal; -} - -p { border: none;} - ---PRINT-- -@font-face{font-family:'GenerikaRegular';src:url(../fonts/generikaregular-webfont.eot);src:url(../fonts/generikaregular-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/generikaregular-webfont.woff) format("woff"),url(../fonts/generikaregular-webfont.ttf) format("truetype"),url(../fonts/generikaregular-webfont.svg#GenerikaRegular) format("svg");font-weight:400;font-style:normal} -@font-face{font-family:'GenerikaLight';src:url(../fonts/generikalight-webfont.eot);src:url(../fonts/generikalight-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/generikalight-webfont.woff) format("woff"),url(../fonts/generikalight-webfont.ttf) format("truetype"),url(../fonts/generikalight-webfont.svg#GenerikaLight) format("svg");font-weight:400;font-style:normal} -@media screen { -p{border:none} -} ---SETTINGS-- -template='high' -sort_properties=false -sort_selectors=false -default_media="@media screen" \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia.csst deleted file mode 100644 index 5a17feb..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/font-face-atmedia.csst +++ /dev/null @@ -1,56 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - -/* begin suggest post */ -.float-l { - float : left ; -} - -@font-face { -font-family: GillSans; -src:url("/generic/fonts/GillSansC.otf") format('opentype'); -font-style: normal; -font-weight: bold; -} - -.font-9{ - font-size: 11px; - } - -@media print { -.font-9{ - font-size: 9px; - } -} - -.form-suggest { -height : 200px ; -background : #DEE2D0 ; -vertical-align : top; -} - - ---PRINT-- -@media screen { -.float-l{float:left} -} -@font-face{font-family:GillSans;src:url(/generic/fonts/GillSansC.otf) format("opentype");font-style:normal;font-weight:700} -@media screen { -.font-9{font-size:11px} -} -@media print { -.font-9{font-size:9px} -} -@media screen { -.form-suggest{height:200px;background:#DEE2D0;vertical-align:top} -} ---SETTINGS-- -template='high' -sort_properties=false -sort_selectors=false -default_media="@media screen" \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/ie-hacks.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/ie-hacks.csst deleted file mode 100644 index 18ac246..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/ie-hacks.csst +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -IE Hacks Issue/5 ---SETTINGS-- -discard_invalid_properties = 0 ---CSS-- -fakeList a { -width: 100%; -display: block; -height: 30px; -padding-top: 2px; --padding-top: 0; -line-height:18px; -*line-height:17; -/line-height:none; -// background-image: url(images/cellpic3.gif); /* should be ignored */ -_background-image: url(/ttt/gf.gif); -} ---PRINT-- -fakeList a { -width:100%; -display:block; -height:30px; -padding-top:2px; --padding-top:0; -line-height:18px; -*line-height:17; -/line-height:none; -_background-image:url(/ttt/gf.gif) -} ---SETTINGS-- \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-default.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-default.csst deleted file mode 100644 index 299f276..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-default.csst +++ /dev/null @@ -1,77 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - - /* begin suggest post */ - .float-l { - float : left ; - } - - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - - .form-input input{ - font-size: 10px; - } - - .form-input textarea{ - font-size: 11px; - width: 350px; - } - - .form-label{ - font-size: 10px; - font-weight: bold; - line-height: 25px; - padding-right: 10px; - text-align: right; - width: 100px; - color: #39738F; - } - - .font-9{ - font-size: 9px; - } ---PRINT-- -.float-l { -float:left -} - -.form-suggest { -height:200px; -background:#DEE2D0; -vertical-align:top -} - -.form-input input { -font-size:10px -} - -.form-input textarea { -font-size:11px; -width:350px -} - -.form-label { -font-size:10px; -font-weight:700; -line-height:25px; -padding-right:10px; -text-align:right; -width:100px; -color:#39738F -} - -.font-9 { -font-size:9px -} ---SETTINGS-- -sort_properties=false -sort_selectors=false \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-high.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-high.csst deleted file mode 100644 index e31c778..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-high.csst +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - - /* begin suggest post */ - .float-l { - float : left ; - } - - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - - .form-input input{ - font-size: 10px; - } - - .form-input textarea{ - font-size: 11px; - width: 350px; - } - - .form-label{ - font-size: 10px; - font-weight: bold; - line-height: 25px; - padding-right: 10px; - text-align: right; - width: 100px; - color: #39738F; - } - - .font-9{ - font-size: 9px; - } ---PRINT-- -.float-l{float:left} -.form-suggest{height:200px;background:#DEE2D0;vertical-align:top} -.form-input input{font-size:10px} -.form-input textarea{font-size:11px;width:350px} -.form-label{font-size:10px;font-weight:700;line-height:25px;padding-right:10px;text-align:right;width:100px;color:#39738F} -.font-9{font-size:9px} ---SETTINGS-- -template='high' -sort_properties=false -sort_selectors=false \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-highest.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-highest.csst deleted file mode 100644 index abae483..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-highest.csst +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - - /* begin suggest post */ - .float-l { - float : left ; - } - - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - - .form-input input{ - font-size: 10px; - } - - .form-input textarea{ - font-size: 11px; - width: 350px; - } - - .form-label{ - font-size: 10px; - font-weight: bold; - line-height: 25px; - padding-right: 10px; - text-align: right; - width: 100px; - color: #39738F; - } - - .font-9{ - font-size: 9px; - } ---PRINT-- -.float-l{float:left}.form-suggest{height:200px;background:#DEE2D0;vertical-align:top}.form-input input{font-size:10px}.form-input textarea{font-size:11px;width:350px}.form-label{font-size:10px;font-weight:700;line-height:25px;padding-right:10px;text-align:right;width:100px;color:#39738F}.font-9{font-size:9px} ---SETTINGS-- -template='highest' -sort_properties=false -sort_selectors=false \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-low.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-low.csst deleted file mode 100644 index 122d53d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/print-plain/simple-low.csst +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - - /* begin suggest post */ - .float-l { - float : left ; - } - - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - - .form-input input{ - font-size: 10px; - } - - .form-input textarea{ - font-size: 11px; - width: 350px; - } - - .form-label{ - font-size: 10px; - font-weight: bold; - line-height: 25px; - padding-right: 10px; - text-align: right; - width: 100px; - color: #39738F; - } - - .font-9{ - font-size: 9px; - } ---PRINT-- -.float-l -{ - float:left -} - -.form-suggest -{ - height:200px; - background:#DEE2D0; - vertical-align:top -} - -.form-input input -{ - font-size:10px -} - -.form-input textarea -{ - font-size:11px; - width:350px -} - -.form-label -{ - font-size:10px; - font-weight:700; - line-height:25px; - padding-right:10px; - text-align:right; - width:100px; - color:#39738F -} - -.font-9 -{ - font-size:9px -} ---SETTINGS-- -template='low' -sort_properties=false -sort_selectors=false \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css1.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css1.csst deleted file mode 100644 index 8d0d450..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css1.csst +++ /dev/null @@ -1,138 +0,0 @@ ---TEST-- -Test CSS1 properties ---CSS-- -a { - foo:rgb(0,0,0); - bar:black; - baz:#ffaabb; - qux:#f00; - quux:blanchedalmond; - quuux:rgb(0,0,1); - background:1; - background-color:1; - background-image:1; - background-repeat:1; - background-attachment:1; - background-position:1; - border:1; - border-top:1; - border-right:1; - border-bottom:1; - border-left:1; - border-color:1; - border-style:1; - border-width:1; - border-top-width:1; - border-right-width:1; - border-left-width:1; - border-bottom-width:1; - clear:1; - clip:1; - color:1; - display:1; - float:1; - font:1; - font-family:1; - font-style:1; - font-variant:1; - font-weight:1; - font-size:1; - height:1; - left:1; - line-height:1; - list-style:1; - list-style-type:1; - list-style-image:1; - list-style-position:1; - margin:1; - margin-top:1; - margin-right:1; - margin-bottom:1; - margin-left:1; - marks:1; - overflow:1; - padding:1; - padding-top:1; - padding-right:1; - padding-bottom:1; - padding-left:1; - page-break-before:1; - page-break-after:1; - position:1; - size:1; - top:1; - text-indent:1; - text-align:1; - text-decoration:1; - letter-spacing:1; - word-spacing:1; - text-transform:1; - white-space:1; - vertical-align:1; - visibility:1; - width:1; - z-index:1; -} ---EXPECT-- -array ( - 'a' => - array ( - 'background' => '1px', - 'background-color' => '#1', - 'background-image' => '1', - 'background-repeat' => '1', - 'background-attachment' => '1', - 'background-position' => '1px', - 'border' => '1px', - 'border-top' => '1px', - 'border-right' => '1px', - 'border-bottom' => '1px', - 'border-left' => '1px', - 'border-color' => '#1', - 'border-style' => '1', - 'border-width' => '1px', - 'border-top-width' => '1px', - 'border-right-width' => '1px', - 'border-left-width' => '1px', - 'border-bottom-width' => '1px', - 'clear' => '1', - 'color' => '#1', - 'display' => '1', - 'float' => '1', - 'font' => '1', - 'font-family' => '1', - 'font-style' => '1', - 'font-variant' => '1', - 'font-weight' => '1', - 'font-size' => '1px', - 'height' => '1px', - 'line-height' => '1', - 'list-style' => '1', - 'list-style-type' => '1', - 'list-style-image' => '1', - 'list-style-position' => '1', - 'margin' => '1px', - 'margin-top' => '1px', - 'margin-right' => '1px', - 'margin-bottom' => '1px', - 'margin-left' => '1px', - 'padding' => '1px', - 'padding-top' => '1px', - 'padding-right' => '1px', - 'padding-bottom' => '1px', - 'padding-left' => '1px', - 'text-indent' => '1px', - 'text-align' => '1', - 'text-decoration' => '1', - 'letter-spacing' => '1px', - 'word-spacing' => '1px', - 'text-transform' => '1', - 'white-space' => '1', - 'vertical-align' => '1', - 'width' => '1px', - ), -) ---SETTINGS-- -discard_invalid_properties=true -optimise_shorthands=0 -css_level='CSS1' diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css2.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css2.csst deleted file mode 100644 index 1c8fdf8..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css2.csst +++ /dev/null @@ -1,265 +0,0 @@ ---TEST-- -Test CSS1 properties ---CSS-- -a { - foo:rgb(0,0,0); - bar:black; - baz:#ffaabb; - qux:#f00; - quux:blanchedalmond; - quuux:rgb(0,0,1); - background:1; - background-color:1; - background-image:1; - background-repeat:1; - background-attachment:1; - background-position:1; - border:1; - border-top:1; - border-right:1; - border-bottom:1; - border-left:1; - border-color:1; - border-top-color:1; - border-bottom-color:1; - border-left-color:1; - border-right-color:1; - border-style:1; - border-top-style:1; - border-right-style:1; - border-left-style:1; - border-bottom-style:1; - border-width:1; - border-top-width:1; - border-right-width:1; - border-left-width:1; - border-bottom-width:1; - border-collapse:1; - border-spacing:1; - bottom:1; - caption-side:1; - content:1; - clear:1; - clip:1; - color:1; - counter-reset:1; - counter-increment:1; - cursor:1; - empty-cells:1; - display:1; - direction:1; - float:1; - font:1; - font-family:1; - font-style:1; - font-variant:1; - font-weight:1; - font-stretch:1; - font-size-adjust:1; - font-size:1; - height:1; - left:1; - line-height:1; - list-style:1; - list-style-type:1; - list-style-image:1; - list-style-position:1; - margin:1; - margin-top:1; - margin-right:1; - margin-bottom:1; - margin-left:1; - marks:1; - marker-offset:1; - max-height:1; - max-width:1; - min-height:1; - min-width:1; - overflow:1; - orphans:1; - outline:1; - outline-width:1; - outline-style:1; - outline-color:1; - padding:1; - padding-top:1; - padding-right:1; - padding-bottom:1; - padding-left:1; - page-break-before:1; - page-break-after:1; - page-break-inside:1; - page:1; - position:1; - quotes:1; - right:1; - size:1; - speak-header:1; - table-layout:1; - top:1; - text-indent:1; - text-align:1; - text-decoration:1; - text-shadow:1; - letter-spacing:1; - word-spacing:1; - text-transform:1; - white-space:1; - unicode-bidi:1; - vertical-align:1; - visibility:1; - width:1; - widows:1; - z-index:1; - volume:1; - speak:1; - pause:1; - pause-before:1; - pause-after:1; - cue:1; - cue-before:1; - cue-after:1; - play-during:1; - azimuth:1; - elevation:1; - speech-rate:1; - voice-family:1; - pitch:1; - pitch-range:1; - stress:1; - richness:1; - speak-punctuation:1; - speak-numeral:1; -} ---EXPECT-- -array ( - 'a' => - array ( - 'background' => '1px', - 'background-color' => '#1', - 'background-image' => '1', - 'background-repeat' => '1', - 'background-attachment' => '1', - 'background-position' => '1px', - 'border' => '1px', - 'border-top' => '1px', - 'border-right' => '1px', - 'border-bottom' => '1px', - 'border-left' => '1px', - 'border-color' => '#1', - 'border-top-color' => '#1', - 'border-bottom-color' => '#1', - 'border-left-color' => '#1', - 'border-right-color' => '#1', - 'border-style' => '1', - 'border-top-style' => '1', - 'border-right-style' => '1', - 'border-left-style' => '1', - 'border-bottom-style' => '1', - 'border-width' => '1px', - 'border-top-width' => '1px', - 'border-right-width' => '1px', - 'border-left-width' => '1px', - 'border-bottom-width' => '1px', - 'border-collapse' => '1', - 'border-spacing' => '1px', - 'bottom' => '1px', - 'caption-side' => '1', - 'content' => '1', - 'clear' => '1', - 'clip' => '1', - 'color' => '#1', - 'counter-reset' => '1', - 'counter-increment' => '1', - 'cursor' => '1', - 'empty-cells' => '1', - 'display' => '1', - 'direction' => '1', - 'float' => '1', - 'font' => '1', - 'font-family' => '1', - 'font-style' => '1', - 'font-variant' => '1', - 'font-weight' => '1', - 'font-stretch' => '1', - 'font-size-adjust' => '1', - 'font-size' => '1px', - 'height' => '1px', - 'left' => '1px', - 'line-height' => '1', - 'list-style' => '1', - 'list-style-type' => '1', - 'list-style-image' => '1', - 'list-style-position' => '1', - 'margin' => '1px', - 'margin-top' => '1px', - 'margin-right' => '1px', - 'margin-bottom' => '1px', - 'margin-left' => '1px', - 'marks' => '1', - 'marker-offset' => '1', - 'max-height' => '1px', - 'max-width' => '1px', - 'min-height' => '1px', - 'min-width' => '1px', - 'overflow' => '1', - 'orphans' => '1', - 'outline' => '1px', - 'outline-width' => '1px', - 'outline-style' => '1', - 'outline-color' => '#1', - 'padding' => '1px', - 'padding-top' => '1px', - 'padding-right' => '1px', - 'padding-bottom' => '1px', - 'padding-left' => '1px', - 'page-break-before' => '1', - 'page-break-after' => '1', - 'page-break-inside' => '1', - 'page' => '1', - 'position' => '1', - 'quotes' => '1', - 'right' => '1px', - 'size' => '1', - 'speak-header' => '1', - 'table-layout' => '1', - 'top' => '1px', - 'text-indent' => '1px', - 'text-align' => '1', - 'text-decoration' => '1', - 'text-shadow' => '1', - 'letter-spacing' => '1px', - 'word-spacing' => '1px', - 'text-transform' => '1', - 'white-space' => '1', - 'unicode-bidi' => '1', - 'vertical-align' => '1', - 'visibility' => '1', - 'width' => '1px', - 'widows' => '1', - 'z-index' => '1', - 'volume' => '1', - 'speak' => '1', - 'pause' => '1', - 'pause-before' => '1', - 'pause-after' => '1', - 'cue' => '1', - 'cue-before' => '1', - 'cue-after' => '1', - 'play-during' => '1', - 'azimuth' => '1', - 'elevation' => '1', - 'speech-rate' => '1', - 'voice-family' => '1', - 'pitch' => '1', - 'pitch-range' => '1', - 'stress' => '1', - 'richness' => '1', - 'speak-punctuation' => '1', - 'speak-numeral' => '1', - ), -) ---SETTINGS-- -discard_invalid_properties=true -optimise_shorthands=0 -css_level='CSS2.0' \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css21.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css21.csst deleted file mode 100644 index 7d5c9f2..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css21.csst +++ /dev/null @@ -1,258 +0,0 @@ ---TEST-- -Test CSS1 properties ---CSS-- -a { - foo:rgb(0,0,0); - bar:black; - baz:#ffaabb; - qux:#f00; - quux:blanchedalmond; - quuux:rgb(0,0,1); - background:1; - background-color:1; - background-image:1; - background-repeat:1; - background-attachment:1; - background-position:1; - border:1; - border-top:1; - border-right:1; - border-bottom:1; - border-left:1; - border-color:1; - border-top-color:1; - border-bottom-color:1; - border-left-color:1; - border-right-color:1; - border-style:1; - border-top-style:1; - border-right-style:1; - border-left-style:1; - border-bottom-style:1; - border-width:1; - border-top-width:1; - border-right-width:1; - border-left-width:1; - border-bottom-width:1; - border-collapse:1; - border-spacing:1; - bottom:1; - caption-side:1; - content:1; - clear:1; - clip:1; - color:1; - counter-reset:1; - counter-increment:1; - cursor:1; - empty-cells:1; - display:1; - direction:1; - float:1; - font:1; - font-family:1; - font-style:1; - font-variant:1; - font-weight:1; - font-stretch:1; - font-size-adjust:1; - font-size:1; - height:1; - left:1; - line-height:1; - list-style:1; - list-style-type:1; - list-style-image:1; - list-style-position:1; - margin:1; - margin-top:1; - margin-right:1; - margin-bottom:1; - margin-left:1; - marks:1; - marker-offset:1; - max-height:1; - max-width:1; - min-height:1; - min-width:1; - overflow:1; - orphans:1; - outline:1; - outline-width:1; - outline-style:1; - outline-color:1; - padding:1; - padding-top:1; - padding-right:1; - padding-bottom:1; - padding-left:1; - page-break-before:1; - page-break-after:1; - page-break-inside:1; - page:1; - position:1; - quotes:1; - right:1; - size:1; - speak-header:1; - table-layout:1; - top:1; - text-indent:1; - text-align:1; - text-decoration:1; - text-shadow:1; - letter-spacing:1; - word-spacing:1; - text-transform:1; - white-space:1; - unicode-bidi:1; - vertical-align:1; - visibility:1; - width:1; - widows:1; - z-index:1; - volume:1; - speak:1; - pause:1; - pause-before:1; - pause-after:1; - cue:1; - cue-before:1; - cue-after:1; - play-during:1; - azimuth:1; - elevation:1; - speech-rate:1; - voice-family:1; - pitch:1; - pitch-range:1; - stress:1; - richness:1; - speak-punctuation:1; - speak-numeral:1; -} ---EXPECT-- -array ( - 'a' => - array ( - 'background' => '1px', - 'background-color' => '#1', - 'background-image' => '1', - 'background-repeat' => '1', - 'background-attachment' => '1', - 'background-position' => '1px', - 'border' => '1px', - 'border-top' => '1px', - 'border-right' => '1px', - 'border-bottom' => '1px', - 'border-left' => '1px', - 'border-color' => '#1', - 'border-top-color' => '#1', - 'border-bottom-color' => '#1', - 'border-left-color' => '#1', - 'border-right-color' => '#1', - 'border-style' => '1', - 'border-top-style' => '1', - 'border-right-style' => '1', - 'border-left-style' => '1', - 'border-bottom-style' => '1', - 'border-width' => '1px', - 'border-top-width' => '1px', - 'border-right-width' => '1px', - 'border-left-width' => '1px', - 'border-bottom-width' => '1px', - 'border-collapse' => '1', - 'border-spacing' => '1px', - 'bottom' => '1px', - 'caption-side' => '1', - 'content' => '1', - 'clear' => '1', - 'clip' => '1', - 'color' => '#1', - 'counter-reset' => '1', - 'counter-increment' => '1', - 'cursor' => '1', - 'empty-cells' => '1', - 'display' => '1', - 'direction' => '1', - 'float' => '1', - 'font' => '1', - 'font-family' => '1', - 'font-style' => '1', - 'font-variant' => '1', - 'font-weight' => '1', - 'font-size' => '1px', - 'height' => '1px', - 'left' => '1px', - 'line-height' => '1', - 'list-style' => '1', - 'list-style-type' => '1', - 'list-style-image' => '1', - 'list-style-position' => '1', - 'margin' => '1px', - 'margin-top' => '1px', - 'margin-right' => '1px', - 'margin-bottom' => '1px', - 'margin-left' => '1px', - 'max-height' => '1px', - 'max-width' => '1px', - 'min-height' => '1px', - 'min-width' => '1px', - 'overflow' => '1', - 'orphans' => '1', - 'outline' => '1px', - 'outline-width' => '1px', - 'outline-style' => '1', - 'outline-color' => '#1', - 'padding' => '1px', - 'padding-top' => '1px', - 'padding-right' => '1px', - 'padding-bottom' => '1px', - 'padding-left' => '1px', - 'page-break-before' => '1', - 'page-break-after' => '1', - 'page-break-inside' => '1', - 'position' => '1', - 'quotes' => '1', - 'right' => '1px', - 'speak-header' => '1', - 'table-layout' => '1', - 'top' => '1px', - 'text-indent' => '1px', - 'text-align' => '1', - 'text-decoration' => '1', - 'letter-spacing' => '1px', - 'word-spacing' => '1px', - 'text-transform' => '1', - 'white-space' => '1', - 'unicode-bidi' => '1', - 'vertical-align' => '1', - 'visibility' => '1', - 'width' => '1px', - 'widows' => '1', - 'z-index' => '1', - 'volume' => '1', - 'speak' => '1', - 'pause' => '1', - 'pause-before' => '1', - 'pause-after' => '1', - 'cue' => '1', - 'cue-before' => '1', - 'cue-after' => '1', - 'play-during' => '1', - 'azimuth' => '1', - 'elevation' => '1', - 'speech-rate' => '1', - 'voice-family' => '1', - 'pitch' => '1', - 'pitch-range' => '1', - 'stress' => '1', - 'richness' => '1', - 'speak-punctuation' => '1', - 'speak-numeral' => '1', - ), -) ---SETTINGS-- -discard_invalid_properties=true -optimise_shorthands=0 -css_level='CSS2.1' \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css3.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css3.csst deleted file mode 100644 index 239c24c..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/css3.csst +++ /dev/null @@ -1,592 +0,0 @@ ---TEST-- -Test CSS1 properties ---CSS-- -a { - foo:rgb(0,0,0); - bar:black; - baz:#ffaabb; - qux:#f00; - quux:blanchedalmond; - quuux:rgb(0,0,1); - alignment-adjust:1; - alignment-baseline:1; - animation:1; - animation-delay:1; - animation-direction:1; - animation-duration:1; - animation-iteration-count:1; - animation-name:1; - animation-play-state:1; - animation-timing-function:1; - appearance:1; - azimuth:1; - backface-visibility:1; - background:1; - background-attachment:1; - background-clip:1; - background-color:1; - background-image:1; - background-origin:1; - background-position:1; - background-repeat:1; - background-size:1; - baseline-shift:1; - binding:1; - bleed:1; - bookmark-label:1; - bookmark-level:1; - bookmark-state:1; - bookmark-target:1; - border:1; - border-bottom:1; - border-bottom-color:1; - border-bottom-left-radius:1; - border-bottom-right-radius:1; - border-bottom-style:1; - border-bottom-width:1; - border-collapse:1; - border-color:1; - border-image:1; - border-image-outset:1; - border-image-repeat:1; - border-image-slice:1; - border-image-source:1; - border-image-width:1; - border-left:1; - border-left-color:1; - border-left-style:1; - border-left-width:1; - border-radius:1; - border-right:1; - border-right-color:1; - border-right-style:1; - border-right-width:1; - border-spacing:1; - border-style:1; - border-top:1; - border-top-color:1; - border-top-left-radius:1; - border-top-right-radius:1; - border-top-style:1; - border-top-width:1; - border-width:1; - bottom:1; - box-decoration-break:1; - box-shadow:1; - box-sizing:1; - break-after:1; - break-before:1; - break-inside:1; - caption-side:1; - clear:1; - clip:1; - color:1; - color-profile:1; - column-count:1; - column-fill:1; - column-gap:1; - column-rule:1; - column-rule-color:1; - column-rule-style:1; - column-rule-width:1; - column-span:1; - column-width:1; - columns:1; - content:1; - counter-increment:1; - counter-reset:1; - crop:1; - cue:1; - cue-after:1; - cue-before:1; - cursor:1; - direction:1; - display:1; - dominant-baseline:1; - drop-initial-after-adjust:1; - drop-initial-after-align:1; - drop-initial-before-adjust:1; - drop-initial-before-align:1; - drop-initial-size:1; - drop-initial-value:1; - elevation:1; - empty-cells:1; - fit:1; - fit-position:1; - flex-align:1; - flex-flow:1; - flex-line-pack:1; - flex-order:1; - flex-pack:1; - float:1; - float-offset:1; - font:1; - font-family:1; - font-size:1; - font-size-adjust:1; - font-stretch:1; - font-style:1; - font-variant:1; - font-weight:1; - grid-columns:1; - grid-rows:1; - hanging-punctuation:1; - height:1; - hyphenate-after:1; - hyphenate-before:1; - hyphenate-character:1; - hyphenate-lines:1; - hyphenate-resource:1; - hyphens:1; - icon:1; - image-orientation:1; - image-rendering:1; - image-resolution:1; - inline-box-align:1; - left:1; - letter-spacing:1; - line-break:1; - line-height:1; - line-stacking:1; - line-stacking-ruby:1; - line-stacking-shift:1; - line-stacking-strategy:1; - list-style:1; - list-style-image:1; - list-style-position:1; - list-style-type:1; - margin:1; - margin-bottom:1; - margin-left:1; - margin-right:1; - margin-top:1; - marker-offset:1; - marks:1; - marquee-direction:1; - marquee-loop:1; - marquee-play-count:1; - marquee-speed:1; - marquee-style:1; - max-height:1; - max-width:1; - min-height:1; - min-width:1; - move-to:1; - nav-down:1; - nav-index:1; - nav-left:1; - nav-right:1; - nav-up:1; - opacity:1; - orphans:1; - outline:1; - outline-color:1; - outline-offset:1; - outline-style:1; - outline-width:1; - overflow:1; - overflow-style:1; - overflow-wrap:1; - overflow-x:1; - overflow-y:1; - padding:1; - padding-bottom:1; - padding-left:1; - padding-right:1; - padding-top:1; - page:1; - page-break-after:1; - page-break-before:1; - page-break-inside:1; - page-policy:1; - pause:1; - pause-after:1; - pause-before:1; - perspective:1; - perspective-origin:1; - phonemes:1; - pitch:1; - pitch-range:1; - play-during:1; - position:1; - presentation-level:1; - punctuation-trim:1; - quotes:1; - rendering-intent:1; - resize:1; - rest:1; - rest-after:1; - rest-before:1; - richness:1; - right:1; - rotation:1; - rotation-point:1; - ruby-align:1; - ruby-overhang:1; - ruby-position:1; - ruby-span:1; - size:1; - speak:1; - speak-header:1; - speak-numeral:1; - speak-punctuation:1; - speech-rate:1; - src:1; - stress:1; - string-set:1; - tab-size:1; - table-layout:1; - target:1; - target-name:1; - target-new:1; - target-position:1; - text-align:1; - text-align-last:1; - text-decoration:1; - text-decoration-color:1; - text-decoration-line:1; - text-decoration-skip:1; - text-decoration-style:1; - text-emphasis:1; - text-emphasis-color:1; - text-emphasis-position:1; - text-emphasis-style:1; - text-height:1; - text-indent:1; - text-justify:1; - text-outline:1; - text-shadow:1; - text-space-collapse:1; - text-transform:1; - text-underline-position:1; - text-wrap:1; - top:1; - transform:1; - transform-origin:1; - transform-style:1; - transition:1; - transition-delay:1; - transition-duration:1; - transition-property:1; - transition-timing-function:1; - unicode-bidi:1; - vertical-align:1; - visibility:1; - voice-balance:1; - voice-duration:1; - voice-family:1; - voice-pitch:1; - voice-pitch-range:1; - voice-rate:1; - voice-stress:1; - voice-volume:1; - volume:1; - white-space:1; - widows:1; - width:1; - word-break:1; - word-spacing:1; - word-wrap:1; - z-index:1; -} ---EXPECT-- -array ( - 'a' => - array ( - 'alignment-adjust' => '1', - 'alignment-baseline' => '1', - 'animation' => '1', - 'animation-delay' => '1', - 'animation-direction' => '1', - 'animation-duration' => '1', - 'animation-iteration-count' => '1', - 'animation-name' => '1', - 'animation-play-state' => '1', - 'animation-timing-function' => '1', - 'appearance' => '1', - 'azimuth' => '1', - 'backface-visibility' => '1', - 'background' => '1px', - 'background-attachment' => '1', - 'background-clip' => '1', - 'background-color' => '#1', - 'background-image' => '1', - 'background-origin' => '1', - 'background-position' => '1px', - 'background-repeat' => '1', - 'background-size' => '1px', - 'baseline-shift' => '1', - 'binding' => '1', - 'bleed' => '1', - 'bookmark-label' => '1', - 'bookmark-level' => '1', - 'bookmark-state' => '1', - 'bookmark-target' => '1', - 'border' => '1px', - 'border-bottom' => '1px', - 'border-bottom-color' => '#1', - 'border-bottom-left-radius' => '1', - 'border-bottom-right-radius' => '1', - 'border-bottom-style' => '1', - 'border-bottom-width' => '1px', - 'border-collapse' => '1', - 'border-color' => '#1', - 'border-image' => '1', - 'border-image-outset' => '1', - 'border-image-repeat' => '1', - 'border-image-slice' => '1', - 'border-image-source' => '1', - 'border-image-width' => '1', - 'border-left' => '1px', - 'border-color' => '#1', - 'border-bottom-color' => '#1', - 'border-left-color' => '#1', - 'border-left-style' => '1', - 'border-left-width' => '1px', - 'border-radius' => '1', - 'border-right' => '1px', - 'border-right-color' => '#1', - 'border-right-style' => '1', - 'border-right-style' => '1', - 'border-right-width' => '1px', - 'border-spacing' => '1px', - 'border-style' => '1', - 'border-top' => '1px', - 'border-top-color' => '#1', - 'border-top-left-radius' => '1', - 'border-top-right-radius' => '1', - 'border-top-style' => '1', - 'border-left-style' => '1', - 'border-bottom-style' => '1', - 'border-top-width' => '1px', - 'border-width' => '1px', - 'border-right-width' => '1px', - 'border-left-width' => '1px', - 'border-bottom-width' => '1px', - 'border-collapse' => '1', - 'border-spacing' => '1px', - 'bottom' => '1px', - 'box-decoration-break' => '1', - 'box-shadow' => '1', - 'box-sizing' => '1', - 'break-after' => '1', - 'break-before' => '1', - 'break-inside' => '1', - 'caption-side' => '1', - 'clear' => '1', - 'clip' => '1', - 'color' => '#1', - 'color-profile' => '1', - 'column-count' => '1', - 'column-fill' => '1', - 'column-gap' => '1px', - 'column-rule' => '1', - 'column-rule-color' => '#1', - 'column-rule-style' => '1', - 'column-rule-width' => '1', - 'column-span' => '1', - 'column-width' => '1px', - 'columns' => '1', - 'content' => '1', - 'counter-increment' => '1', - 'counter-reset' => '1', - 'crop' => '1', - 'cue' => '1', - 'cue-after' => '1', - 'cue-before' => '1', - 'cursor' => '1', - 'direction' => '1', - 'display' => '1', - 'dominant-baseline' => '1', - 'drop-initial-after-adjust' => '1', - 'drop-initial-after-align' => '1', - 'drop-initial-before-adjust' => '1', - 'drop-initial-before-align' => '1', - 'drop-initial-size' => '1', - 'drop-initial-value' => '1', - 'elevation' => '1', - 'empty-cells' => '1', - 'fit' => '1', - 'fit-position' => '1', - 'flex-align' => '1', - 'flex-flow' => '1', - 'flex-line-pack' => '1', - 'flex-order' => '1', - 'flex-pack' => '1', - 'float' => '1', - 'float-offset' => '1', - 'font' => '1', - 'font-family' => '1', - 'font-size' => '1px', - 'font-size-adjust' => '1', - 'font-stretch' => '1', - 'font-style' => '1', - 'font-variant' => '1', - 'font-weight' => '1', - 'grid-columns' => '1', - 'grid-rows' => '1', - 'hanging-punctuation' => '1', - 'height' => '1px', - 'hyphenate-after' => '1', - 'hyphenate-before' => '1', - 'hyphenate-character' => '1', - 'hyphenate-lines' => '1', - 'hyphenate-resource' => '1', - 'hyphens' => '1', - 'icon' => '1', - 'image-orientation' => '1', - 'image-rendering' => '1', - 'image-resolution' => '1', - 'inline-box-align' => '1', - 'left' => '1px', - 'letter-spacing' => '1px', - 'line-break' => '1', - 'line-height' => '1', - 'line-stacking' => '1', - 'line-stacking-ruby' => '1', - 'line-stacking-shift' => '1', - 'line-stacking-strategy' => '1', - 'list-style' => '1', - 'list-style-image' => '1', - 'list-style-position' => '1', - 'list-style-type' => '1', - 'margin' => '1px', - 'margin-bottom' => '1px', - 'margin-left' => '1px', - 'margin-right' => '1px', - 'margin-top' => '1px', - 'marker-offset' => '1', - 'marks' => '1', - 'marquee-direction' => '1', - 'marquee-loop' => '1', - 'marquee-play-count' => '1', - 'marquee-speed' => '1', - 'marquee-style' => '1', - 'max-height' => '1px', - 'max-width' => '1px', - 'min-height' => '1px', - 'min-width' => '1px', - 'move-to' => '1', - 'nav-down' => '1', - 'nav-index' => '1', - 'nav-left' => '1', - 'nav-right' => '1', - 'nav-up' => '1', - 'opacity' => '1', - 'orphans' => '1', - 'outline' => '1px', - 'outline-color' => '#1', - 'outline-offset' => '1', - 'outline-style' => '1', - 'outline-width' => '1px', - 'overflow' => '1', - 'overflow-style' => '1', - 'overflow-wrap' => '1', - 'overflow-x' => '1', - 'overflow-y' => '1', - 'padding' => '1px', - 'padding-bottom' => '1px', - 'padding-left' => '1px', - 'padding-right' => '1px', - 'padding-top' => '1px', - 'page' => '1', - 'page-break-after' => '1', - 'page-break-before' => '1', - 'page-break-inside' => '1', - 'page-policy' => '1', - 'pause' => '1', - 'pause-after' => '1', - 'pause-before' => '1', - 'perspective' => '1px', - 'perspective-origin' => '1', - 'phonemes' => '1', - 'pitch' => '1', - 'pitch-range' => '1', - 'play-during' => '1', - 'position' => '1', - 'presentation-level' => '1', - 'punctuation-trim' => '1', - 'quotes' => '1', - 'rendering-intent' => '1', - 'resize' => '1', - 'rest' => '1', - 'rest-after' => '1', - 'rest-before' => '1', - 'richness' => '1', - 'right' => '1px', - 'rotation' => '1', - 'rotation-point' => '1', - 'ruby-align' => '1', - 'ruby-overhang' => '1', - 'ruby-position' => '1', - 'ruby-span' => '1', - 'size' => '1', - 'speak' => '1', - 'speak-header' => '1', - 'speak-numeral' => '1', - 'speak-punctuation' => '1', - 'speech-rate' => '1', - 'src' => '1', - 'stress' => '1', - 'string-set' => '1', - 'tab-size' => '1', - 'table-layout' => '1', - 'target' => '1', - 'target-name' => '1', - 'target-new' => '1', - 'target-position' => '1', - 'text-align' => '1', - 'text-align-last' => '1', - 'text-decoration' => '1', - 'text-decoration-color' => '1', - 'text-decoration-line' => '1', - 'text-decoration-skip' => '1', - 'text-decoration-style' => '1', - 'text-emphasis' => '1', - 'text-emphasis-color' => '1', - 'text-emphasis-position' => '1', - 'text-emphasis-style' => '1', - 'text-height' => '1', - 'text-indent' => '1px', - 'text-justify' => '1', - 'text-outline' => '1', - 'text-shadow' => '1', - 'text-space-collapse' => '1', - 'letter-spacing' => '1px', - 'text-transform' => '1', - 'text-underline-position' => '1', - 'text-wrap' => '1', - 'top' => '1px', - 'transform' => '1', - 'transform-origin' => '1', - 'transform-style' => '1', - 'transition' => '1', - 'transition-delay' => '1', - 'transition-duration' => '1', - 'transition-property' => '1', - 'transition-timing-function' => '1', - 'unicode-bidi' => '1', - 'vertical-align' => '1', - 'visibility' => '1', - 'voice-balance' => '1', - 'voice-duration' => '1', - 'voice-family' => '1', - 'voice-pitch' => '1', - 'voice-pitch-range' => '1', - 'voice-rate' => '1', - 'voice-stress' => '1', - 'voice-volume' => '1', - 'volume' => '1', - 'white-space' => '1', - 'widows' => '1', - 'width' => '1px', - 'word-break' => '1', - 'word-spacing' => '1px', - 'word-wrap' => '1', - 'z-index' => '1', - ), -) ---SETTINGS-- -discard_invalid_properties=true -optimise_shorthands=0 -css_level='CSS3.0' \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/importance.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/importance.csst deleted file mode 100644 index fa39274..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/importance.csst +++ /dev/null @@ -1,81 +0,0 @@ ---TEST-- -Testing proper parsing of importance. ---CSS-- -a { - width: 100px; - height: 200px; -} - -a { - width: 400px !important; - height: 300px; -} - -b { - width: 100px !important; - height: 200px; -} - -b { - width: 400px; - height: 300px !important; -} - -c { - width: 100px!important; -} - -d { - width: 100px; -} - -d { - width: 200px !IMPORTANT; -} - -d { - width: 300px ! important; -} - -e { - background-image: url(http://example.com/test.png) !importANT; -} - -f { - background-image: url(http://example.com/test.png)!imPORTant; -} ---EXPECT-- -array ( - 'a' => - array ( - 'width' => '100px', - 'height' => '200px', - 'width ' => '400px!important', - 'height ' => '300px', - ), - 'b' => - array ( - 'width' => '100px!important', - 'height' => '200px', - 'width ' => '400px', - 'height ' => '300px!important', - ), - 'c' => - array ( - 'width' => '100px!important', - ), - 'd' => - array ( - 'width' => '100px', - 'width ' => '200px!important', - 'width ' => '300px!important', - ), - 'e' => - array ( - 'background-image' => 'url(http://example.com/test.png)!important', - ), - 'f' => - array ( - 'background-image' => 'url(http://example.com/test.png)!important', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/multiple-properties.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/multiple-properties.csst deleted file mode 100644 index 31283f1..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/multiple-properties.csst +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Support for multiple background properties. ---CSS-- -body { - background: linear-gradient(bottom, rgb(153,102,51) 0%, rgb(51,153,102) 30%, rgb(102,51,153) 100%); - background: -o-linear-gradient(bottom, rgb(153,102,51) 0%, rgb(51,153,102) 30%, rgb(102,51,153) 100%); - background: -moz-linear-gradient(bottom, rgb(153,102,51) 0%, rgb(51,153,102) 30%, rgb(102,51,153) 100%); - background: -webkit-linear-gradient(bottom, rgb(153,102,51) 0%, rgb(51,153,102) 30%, rgb(102,51,153) 100%); - background: -ms-linear-gradient(bottom, rgb(153,102,51) 0%, rgb(51,153,102) 30%, rgb(102,51,153) 100%); -} ---EXPECT-- -array ( - 'body' => - array ( - 'background' => 'linear-gradient(bottom,#963 0%,#396 30%,#639 100%)', - 'background ' => '-o-linear-gradient(bottom,#963 0%,#396 30%,#639 100%)', - 'background ' => '-moz-linear-gradient(bottom,#963 0%,#396 30%,#639 100%)', - 'background ' => '-webkit-linear-gradient(bottom,#963 0%,#396 30%,#639 100%)', - 'background ' => '-ms-linear-gradient(bottom,#963 0%,#396 30%,#639 100%)', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/preserve-merging.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/preserve-merging.csst deleted file mode 100644 index 67cc6cc..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/properties/preserve-merging.csst +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Preserve merging of properties issue/2 ---CSS-- -div { - display:block; - display:inline-block; -} -.gradient { - background-image:-webkit-gradient(linear, left bottom, left top, color-stop(0.15, rgba(215,240,240,0.9)), color-stop(0.5, rgba(235,250,250,0))); - background-image: -moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9; -} ---EXPECT-- -array ( - 'div' => - array ( - 'display' => 'block', - 'display ' => 'inline-block', - ), - '.gradient' => - array ( - 'background-image' => '-webkit-gradient(linear,left bottom,left top,color-stop(0.15,rgba(215,240,240,0.9)),color-stop(0.5,rgba(235,250,250,0)))', - 'background-image ' => '-moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9', - ), -) ---SETTINGS-- -discard_invalid_properties=false -optimise_shorthands=0 -css_level='CSS21' diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/active.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/active.csst deleted file mode 100644 index 157e5ab..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/active.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Dynamic active selector ---CSS-- -a:active {display: inherit;} ---EXPECT-- -array ( - 'a:active' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/adjacent.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/adjacent.csst deleted file mode 100644 index f5113b1..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/adjacent.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Adjacent selector ---CSS-- -a + b {display: inherit;} ---EXPECT-- -array ( - 'a + b' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-begins.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-begins.csst deleted file mode 100644 index e84344b..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-begins.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Begins hyphen-separated attribute list selector ---CSS-- -a[foo|="en"] {display: inherit;} ---EXPECT-- -array ( - 'a[foo|="en"]' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-contains.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-contains.csst deleted file mode 100644 index 397edf2..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-contains.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Contained in space-separated attribute list selector ---CSS-- -a[foo~="warning"] {display: inherit;} ---EXPECT-- -array ( - 'a[foo~="warning"]' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-equals.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-equals.csst deleted file mode 100644 index 0d2e98a..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-equals.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Attribute equals selector ---CSS-- -a[foo="warning"] {display: inherit;} ---EXPECT-- -array ( - 'a[foo="warning"]' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-set.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-set.csst deleted file mode 100644 index cd749fd..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/attribute-set.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Attribute selector ---CSS-- -a[foo] {display: inherit;} ---EXPECT-- -array ( - 'a[foo]' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/chain.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/chain.csst deleted file mode 100644 index 1e3b639..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/chain.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Chained selector ---CSS-- -a * > div[attr="value"].class + div#id:hover {display: inherit;} ---EXPECT-- -array ( - 'a * > div[attr="value"].class + div#id:hover' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/child.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/child.csst deleted file mode 100644 index 1e80118..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/child.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Child selector ---CSS-- -table > tr {display: inherit;} ---EXPECT-- -array ( - 'table > tr' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/class.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/class.csst deleted file mode 100644 index 4cc6d20..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/class.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Class selector ---CSS-- -a.foo {display: inherit;} ---EXPECT-- -array ( - 'a.foo' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/combinator-compressed.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/combinator-compressed.csst deleted file mode 100644 index ed51bfb..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/combinator-compressed.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Combinator selector ---CSS-- -a>b {display: inherit;} ---EXPECT-- -array ( - 'a>b' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/descendant.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/descendant.csst deleted file mode 100644 index 5667aee..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/descendant.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Descendant selector ---CSS-- -table tr {display: inherit;} ---EXPECT-- -array ( - 'table tr' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/dangling-combinator.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/dangling-combinator.csst deleted file mode 100644 index c7ff919..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/dangling-combinator.csst +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -Dangling combinator selector ---CSS-- -+ b {display: inherit;} -b > {font-family: inherit;} -asdf {font-size: inherit;} ---EXPECT-- -array ( -) ---SETTINGS-- -optimise_shorthands=0 -discard_invalid_selectors=1 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/duplicate-combinator.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/duplicate-combinator.csst deleted file mode 100644 index 5415e23..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/errors/duplicate-combinator.csst +++ /dev/null @@ -1,9 +0,0 @@ ---TEST-- -Duplicate combinator selector ---CSS-- -div + + b {display: inherit;} ---EXPECT-- -array ( -) ---SETTINGS-- -discard_invalid_selectors=1 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/first-child.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/first-child.csst deleted file mode 100644 index eaffb77..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/first-child.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -First child selector ---CSS-- -p:first-child {display: inherit;} ---EXPECT-- -array ( - 'p:first-child' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/focus.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/focus.csst deleted file mode 100644 index 1779496..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/focus.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Dynamic focus selector ---CSS-- -a:focus {display: inherit;} ---EXPECT-- -array ( - 'a:focus' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/grouping.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/grouping.csst deleted file mode 100644 index 78f3599..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/grouping.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Grouped selectors ---CSS-- -h1,h2,h3 {display: inherit;} ---EXPECT-- -array ( - 'h1,h2,h3' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/hover.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/hover.csst deleted file mode 100644 index 9766d5f..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/hover.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Dynamic hover selector ---CSS-- -a:hover {display: inherit;} ---EXPECT-- -array ( - 'a:hover' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/id.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/id.csst deleted file mode 100644 index e9c9e5d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/id.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -ID selector ---CSS-- -a#foo {display: inherit;} ---EXPECT-- -array ( - 'a#foo' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/lang.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/lang.csst deleted file mode 100644 index c709f2f..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/lang.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Language selector ---CSS-- -div:lang(en) {display: inherit;} ---EXPECT-- -array ( - 'div:lang(en)' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/link.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/link.csst deleted file mode 100644 index 22f763b..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/link.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Not-visited link selector ---CSS-- -a:link {display: inherit;} ---EXPECT-- -array ( - 'a:link' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-optimization.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-optimization.csst deleted file mode 100644 index 5827db9..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-optimization.csst +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -Merge selectors optimization ---CSS-- -h1 {display: inherit;} -h2 {display: inherit;} -h3 {display: inherit;} ---EXPECT-- -array ( - 'h1,h2,h3' => - array ( - 'display' => 'inherit', - ), -) ---SETTINGS-- -merge_selectors=2 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-preserve.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-preserve.csst deleted file mode 100644 index dc7d80a..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/merge-preserve.csst +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Merge selectors optimization off ---SETTINGS-- -merge_selectors = 0 ---CSS-- -h1 {display: inherit;} -h2 {display: inherit;} -h3 {display: inherit;} ---EXPECT-- -array ( - 'h1' => - array ( - 'display' => 'inherit', - ), - 'h2' => - array ( - 'display' => 'inherit', - ), - 'h3' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/pseudo-elements.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/pseudo-elements.csst deleted file mode 100644 index 7885fda..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/pseudo-elements.csst +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Pseudo elements selectors ---CSS-- -P:first-line { display: inherit; } -P:first-letter { font-size: inherit; } -H1:before { font-family: inherit; } -H1:after { font-weight: inherit; } ---EXPECT-- -array ( - 'P:first-line' => - array ( - 'display' => 'inherit', - ), - 'P:first-letter' => - array ( - 'font-size' => 'inherit', - ), - 'H1:before' => - array ( - 'font-family' => 'inherit', - ), - 'H1:after' => - array ( - 'font-weight' => 'inherit', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-merge-siblings.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-merge-siblings.csst deleted file mode 100644 index abfdff5..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-merge-siblings.csst +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -merge multiples siblings occurences of same seletor ---SETTINGS-- -merge_selectors = 0 ---CSS-- -h1,h2 {font-size:1em;} -h1 {display: inherit;} -h1 {font-size:2em;} ---EXPECT-- -array ( - 'h1,h2' => - array ( - 'font-size' => '1em', - ), - 'h1' => - array ( - 'display' => 'inherit', - 'font-size' => '2em', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-nomerge.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-nomerge.csst deleted file mode 100644 index 6af8493..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/same-nomerge.csst +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Don't merge multiples occurences of same seletor ---SETTINGS-- -merge_selectors = 0 ---CSS-- -h1 {display: inherit;} -h1,h2 {font-size:1em;} -h1 {font-size:2em;} ---EXPECT-- -array ( - 'h1' => - array ( - 'display' => 'inherit', - ), - 'h1,h2' => - array ( - 'font-size' => '1em', - ), - 'h1 ' => - array ( - 'font-size' => '2em', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/simple.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/simple.csst deleted file mode 100644 index c0f637b..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/simple.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Simple selector ---CSS-- -a[foo="bar"].class#id:hover {display: inherit;} ---EXPECT-- -array ( - 'a[foo="bar"].class#id:hover' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/type.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/type.csst deleted file mode 100644 index a175b7d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/type.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Type selector ---CSS-- -a {display: inherit;} ---EXPECT-- -array ( - 'a' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-optimization.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-optimization.csst deleted file mode 100644 index cade2b8..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-optimization.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Universal selector optimization ---CSS-- -*.foo {display: inherit;} ---EXPECT-- -array ( - '.foo' => - array ( - 'display' => 'inherit', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-shorthand.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-shorthand.csst deleted file mode 100644 index 4bc3873..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal-shorthand.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Universal selector shorthand ---CSS-- -.foo {display: inherit;} ---EXPECT-- -array ( - '.foo' => - array ( - 'display' => 'inherit', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal.csst deleted file mode 100644 index ccb8db2..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/universal.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Universal selector ---CSS-- -* {display: inherit;} ---EXPECT-- -array ( - '*' => - array ( - 'display' => 'inherit', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/visited.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/visited.csst deleted file mode 100644 index fe3dce1..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/selectors/visited.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Visited link selector ---CSS-- -a:visited {display: inherit;} ---EXPECT-- -array ( - 'a:visited' => - array ( - 'display' => 'inherit', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-general.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-general.csst deleted file mode 100644 index fe78a61..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-general.csst +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -Test general background optimization ---CSS-- -a { - background-color: white; - background-image: url(123); - background-repeat: no-repeat; - background-position: 1px 1px; - background-attachment: scroll; -} ---EXPECT-- -array ( - 'a' => - array ( - 'background' => 'url(123) no-repeat 1px 1px #fff', - ), -) ---SETTINGS-- -optimise_shorthands=3 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-noopt.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-noopt.csst deleted file mode 100644 index 8f5191f..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/background-noopt.csst +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Test general background optimization ---CSS-- -a { - background-color: white; - background-image: url(123); - background-repeat: no-repeat; - background-position: 1px 1px; - background-attachment: scroll; -} ---EXPECT-- -array ( - 'a' => - array ( - 'background-color' => '#fff', - 'background-image' => 'url(123)', - 'background-repeat' => 'no-repeat', - 'background-position' => '1px 1px', - 'background-attachment' => 'scroll', - ), -) ---SETTINGS-- -optimise_shorthands=1 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand1.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand1.csst deleted file mode 100644 index f9d517d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand1.csst +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test general font optimization ---CSS-- - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - -body{ - color: #000000; - font : 11px Verdana, Arial, Helvetica, sans-serif ; - margin: 0 10px 10px 10px; - padding: 0; - overflow:auto; -} ---EXPECT-- -array ( - '.form-suggest' => - array ( - 'height' => '200px', - 'background' => '#DEE2D0', - 'vertical-align' => 'top', - ), - 'body' => - array ( - 'color' => '#000', - 'font' => '11px Verdana,Arial,Helvetica,sans-serif', - 'margin' => '0 10px 10px', - 'padding' => '0', - 'overflow' => 'auto', - ), -) ---SETTINGS-- -optimise_shorthands=1 -sort_selectors=0 -sort_properties=0 diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand2.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand2.csst deleted file mode 100644 index 6b0a703..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand2.csst +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test general font optimization ---CSS-- - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - -body{ - color: #000000; - font : 11px Verdana, Arial, Helvetica, sans-serif ; - margin: 0 10px 10px 10px; - padding: 0; - overflow:auto; -} ---EXPECT-- -array ( - '.form-suggest' => - array ( - 'height' => '200px', - 'background' => '#DEE2D0', - 'vertical-align' => 'top', - ), - 'body' => - array ( - 'color' => '#000', - 'font' => '11px Verdana,Arial,Helvetica,sans-serif', - 'margin' => '0 10px 10px', - 'padding' => '0', - 'overflow' => 'auto', - ), -) ---SETTINGS-- -optimise_shorthands=2 -sort_selectors=0 -sort_properties=0 diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand3.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand3.csst deleted file mode 100644 index 778adce..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/bugshorthand3.csst +++ /dev/null @@ -1,56 +0,0 @@ ---TEST-- -Test general font optimization ---CSS-- - .form-suggest { - height : 200px ; - background : #DEE2D0 ; - vertical-align : top; - } - -body{ - color: #000000; - font : 11px Verdana, Arial, Helvetica, sans-serif ; - margin: 0 10px 10px 10px; - padding: 0; - overflow:auto; -} -.degrade{ - background-color:#777777; - background:-webkit-gradient(linear,left top,left bottom,from(#999999),to(#666666)); - background-image:-moz-linear-gradient(top,#999999,#666666); -} - -.sans {background:none;} ---EXPECT-- -array ( -'.form-suggest' => - array ( - 'height' => '200px', - 'background' => '#DEE2D0', - 'vertical-align' => 'top', - ), - - 'body' => - array ( - 'color' => '#000', - 'font' => '11px Verdana,Arial,Helvetica,sans-serif', - 'margin' => '0 10px 10px', - 'padding' => '0', - 'overflow' => 'auto', - ), - '.degrade' => - array ( - 'background-color' => '#777', - 'background' => '-webkit-gradient(linear,left top,left bottom,from(#999),to(#666))', - 'background-image' => '-moz-linear-gradient(top,#999,#666)', -), - '.sans' => - array ( - 'background' => 'none', - ), - -) ---SETTINGS-- -optimise_shorthands=3 -sort_selectors=0 -sort_properties=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-face.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-face.csst deleted file mode 100644 index 1b7ff59..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-face.csst +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -Test font-face optimization (no optimization) ---CSS-- -@font-face { - src: url("fonts/share.ttf") format("truetype"); -} ---FULLEXPECT-- -array ( - ' '=> array( - '@font-face' => - array ( - 'src' => 'url(fonts/share.ttf) format("truetype")', - ), - ), -) ---SETTINGS-- -optimise_shorthands=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-general.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-general.csst deleted file mode 100644 index 26ac096..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-general.csst +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Test general font optimization ---CSS-- -a { - font-weight: bold; - font-size: 12px; - line-height: 2em; - font-family: Arial, "Trebuchet MS", serif; -} -b { - font: 14px/1.25 Trebuchet MS, Arial, Tahoma, sans-serif; -} ---EXPECT-- -array ( - 'a' => - array ( - 'font' => '700 12px/2em Arial,"Trebuchet MS",serif', - ), - 'b' => - array ( - 'font' => '14px/1.25 "Trebuchet MS",Arial,Tahoma,sans-serif', - ), -) ---SETTINGS-- -optimise_shorthands=2 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-noopt.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-noopt.csst deleted file mode 100644 index 8bbc3a7..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-noopt.csst +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Test general font optimization (no optimization) ---CSS-- -a { - font-weight: bold; - font-size: 12px; - line-height: 2em; - font-family: Arial, sans-serif; -} ---EXPECT-- -array ( - 'a' => - array ( - 'font-weight' => '700', - 'font-size' => '12px', - 'line-height' => '2em', - 'font-family' => 'Arial,sans-serif', - ), -) ---SETTINGS-- -optimise_shorthands=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-general.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-general.csst deleted file mode 100644 index f1f9b84..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-general.csst +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Test font-weight optimization (full) ---CSS-- -a { - font-weight: bold; -} -b { - font-weight: normal; -} ---EXPECT-- -array ( - 'a' => - array ( - 'font-weight' => '700', - ), - 'b' => - array ( - 'font-weight' => '400', - ), -) ---SETTINGS-- -compress_font-weight=true \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-noopt.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-noopt.csst deleted file mode 100644 index e0ff5ee..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/font-weight-noopt.csst +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Test font-weight optimization (no optimization) ---CSS-- -a { - font-weight: bold; -} -b { - font-weight: normal; -} ---EXPECT-- -array ( - 'a' => - array ( - 'font-weight' => 'bold', - ), - 'b' => - array ( - 'font-weight' => 'normal', - ), -) ---SETTINGS-- -compress_font-weight=false \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-general.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-general.csst deleted file mode 100644 index e6ac2b8..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-general.csst +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test margin optimization ---CSS-- -a { - margin-left: 10px; - margin-right: 10px; - margin-top: 10px; - margin-bottom: 10px; -} -b { - margin-left: 6px; - margin-right: 6px; - margin-top: 10px; - margin-bottom: 10px; -} -c { - margin-left: 6px; - margin-right: 6px; - margin-top: 10px; - margin-bottom: 1px; -} -d { - margin-left: 1px; - margin-right: 6px; - margin-top: 10px; - margin-bottom: 3px; -} ---EXPECT-- -array ( - 'a' => - array ( - 'margin' => '10px', - ), - 'b' => - array ( - 'margin' => '10px 6px', - ), - 'c' => - array ( - 'margin' => '10px 6px 1px', - ), - 'd' => - array ( - 'margin' => '10px 6px 3px 1px', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-noopt.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-noopt.csst deleted file mode 100644 index 60b5800..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/margin-noopt.csst +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Test margin optimization ---CSS-- -a { - margin-left: 10px; - margin-right: 10px; - margin-top: 10px; - margin-bottom: 10px; -} ---EXPECT-- -array ( - 'a' => - array ( - 'margin-left' => '10px', - 'margin-right' => '10px', - 'margin-top' => '10px', - 'margin-bottom' => '10px', - ), -) ---SETTINGS-- -optimise_shorthands=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-general.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-general.csst deleted file mode 100644 index 3260a5f..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-general.csst +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test padding optimization ---CSS-- -a { - padding-left: 10px; - padding-right: 10px; - padding-top: 10px; - padding-bottom: 10px; -} -b { - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -c { - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - padding-bottom: 3px; -} -d { - padding-left: 1px; - padding-right: 10px; - padding-top: 2px; - padding-bottom: 3px; -} ---EXPECT-- -array ( - 'a' => - array ( - 'padding' => '10px', - ), - 'b' => - array ( - 'padding' => '2px 10px', - ), - 'c' => - array ( - 'padding' => '2px 10px 3px', - ), - 'd' => - array ( - 'padding' => '2px 10px 3px 1px', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-noopt.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-noopt.csst deleted file mode 100644 index b992d76..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/shorthands/padding-noopt.csst +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Test padding optimization (no optimization) ---CSS-- -a { - padding-left: 10px; - padding-right: 10px; - padding-top: 10px; - padding-bottom: 10px; -} ---EXPECT-- -array ( - 'a' => - array ( - 'padding-left' => '10px', - 'padding-right' => '10px', - 'padding-top' => '10px', - 'padding-bottom' => '10px', - ), -) ---SETTINGS-- -optimise_shorthands=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/atmedia-decimals.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/atmedia-decimals.csst deleted file mode 100644 index f40d041..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/atmedia-decimals.csst +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Decimal values in @media selectors should be maintained. ---CSS-- -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { - #browserHigh { - background-image: url(http://design5279.files.wordpress.com/2012/04/browser-128.png); - } - - #internetHigh { - background-image: url(http://design5279.files.wordpress.com/2012/04/internet-128.png); - } -} ---FULLEXPECT-- -array ( - '@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) ' => - array ( - '#browserHigh' => - array ( - 'background-image' => 'url(http://design5279.files.wordpress.com/2012/04/browser-128.png)', - ), - '#internetHigh' => - array ( - 'background-image' => 'url(http://design5279.files.wordpress.com/2012/04/internet-128.png)', - ), - ), -) ---SETTINGS-- diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/complex-gradient.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/complex-gradient.csst deleted file mode 100644 index 7ba3493..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/complex-gradient.csst +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -multiples cursor rules ---CSS-- -.degrade{ - background-color:#777777; - background:-webkit-gradient(linear,left top, left bottom,from(#999999),to(#666666)); - background-image:-moz-linear-gradient(top, #999999, #666666); - /* ne pas remplacer les couleurs ci-apres */ - filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#999999', endColorstr='#666666'); - filter:progid:DXImageTransform.Microsoft.Shadow(color=#666666, direction=146, Strength=5); - -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#999999', endColorstr='#666666')"; - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#ff999999',endColorstr='#ff666666'); -} ---EXPECT-- -array ( -'.degrade' => - array ( - 'background-color' => '#777', - 'background' => '-webkit-gradient(linear,left top,left bottom,from(#999),to(#666))', - 'background-image' => '-moz-linear-gradient(top,#999,#666)', - 'filter' => 'progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\'#999999\',endColorstr=\'#666666\')', - 'filter ' => 'progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=146,Strength=5)', - '-ms-filter' => '"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\'#999999\',endColorstr=\'#666666\')"', - 'filter ' => 'progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\'#ff999999\',endColorstr=\'#ff666666\')', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/cursor.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/cursor.csst deleted file mode 100644 index 4365532..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/cursor.csst +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -multiples cursor rules ---CSS-- -a { - cursor: pointer; - cursor: hand; -} ---EXPECT-- -array ( - 'a' => - array ( - 'cursor' => 'pointer', - 'cursor ' => 'hand', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia-2.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia-2.csst deleted file mode 100644 index c4fea89..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia-2.csst +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/** **/ -@font-face { - font-family: 'GenerikaRegular'; - src: url('../fonts/generikaregular-webfont.eot'); - src: url('../fonts/generikaregular-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/generikaregular-webfont.woff') format('woff'), - url('../fonts/generikaregular-webfont.ttf') format('truetype'), - url('../fonts/generikaregular-webfont.svg#GenerikaRegular') format('svg'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'GenerikaLight'; - src: url('../fonts/generikalight-webfont.eot'); - src: url('../fonts/generikalight-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/generikalight-webfont.woff') format('woff'), - url('../fonts/generikalight-webfont.ttf') format('truetype'), - url('../fonts/generikalight-webfont.svg#GenerikaLight') format('svg'); - font-weight: normal; - font-style: normal; -} - -p { border: none;} - ---FULLEXPECT-- -array( - ' ' => array ( - '@font-face' => - array ( - 'font-family' => '\'GenerikaRegular\'', - 'src' => 'url(../fonts/generikaregular-webfont.eot)', - 'src ' => 'url(../fonts/generikaregular-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/generikaregular-webfont.woff) format("woff"),url(../fonts/generikaregular-webfont.ttf) format("truetype"),url(../fonts/generikaregular-webfont.svg#GenerikaRegular) format("svg")', - 'font-weight' => '400', - 'font-style' => 'normal', - ), - '@font-face ' => - array ( - 'font-family' => '\'GenerikaLight\'', - 'src' => 'url(../fonts/generikalight-webfont.eot)', - 'src ' => 'url(../fonts/generikalight-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/generikalight-webfont.woff) format("woff"),url(../fonts/generikalight-webfont.ttf) format("truetype"),url(../fonts/generikalight-webfont.svg#GenerikaLight) format("svg")', - 'font-weight' => '400', - 'font-style' => 'normal', - ), - ), - 41 => array ( - 'p' => - array ( - 'border' => 'none', - ), - ), -) ---SETTINGS-- -sort_properties=false -sort_selectors=false diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia.csst deleted file mode 100644 index a656864..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-atmedia.csst +++ /dev/null @@ -1,76 +0,0 @@ ---TEST-- -Test simple CSS print ---CSS-- -/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+ -Edited by Daz - http://www.forumimages.com - last updated 26-06-03 */ -/* The content of the posts (body of text) */ -/* General page style */ - -/* begin suggest post */ -.float-l { - float : left ; -} - -@font-face { -font-family: GillSans; -src:url("/generic/fonts/GillSansC.otf") format('opentype'); -font-style: normal; -font-weight: bold; -} - -.font-9{ - font-size: 11px; - } - -@media print { -.font-9{ - font-size: 9px; - } -} - -.form-suggest { -height : 200px ; -background : #DEE2D0 ; -vertical-align : top; -} - - ---FULLEXPECT-- -array ( - 41 => array ( - '.float-l' => - array ( - 'float' => 'left', - ), - ), - ' ' => array ( - '@font-face' => array ( - 'font-family' => 'GillSans', - 'src' => 'url(/generic/fonts/GillSansC.otf) format("opentype")', - 'font-style' => 'normal', - 'font-weight' => '700', - ), - ), - 42 => array ( - '.font-9' => - array ( - 'font-size' => '11px', - ), - ), - '@media print ' => array ( - '.font-9' => - array ( - 'font-size' => '9px', - ), - ), - 43 => - array ( - '.form-suggest' => - array ( - 'height' => '200px', - 'background' => '#DEE2D0', - 'vertical-align' => 'top', - ), - ), -) ---SETTINGS-- \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-simple.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-simple.csst deleted file mode 100644 index 52ddb0e..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face-simple.csst +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -@font-face rules ---CSS-- -@font-face { - font-family: GillSans; - src:url("/generic/fonts/GillSansLightC.otf") format('opentype'); - font-style: normal; - font-weight: normal; -} - -@font-face { - font-family: GillSans; - src:url("/generic/fonts/GillSansC.otf") format('opentype'); - font-style: normal; - font-weight: bold; -} ---FULLEXPECT-- -array ( - ' ' => array( - '@font-face' => - array ( - 'font-family' => 'GillSans', - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype")', - 'font-style' => 'normal', - 'font-weight' => '400', - ), - '@font-face ' => - array ( - 'font-family' => 'GillSans', - 'src' => 'url(/generic/fonts/GillSansC.otf) format("opentype")', - 'font-style' => 'normal', - 'font-weight' => '700', - ), - ) -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face.csst deleted file mode 100644 index 1c6e5dc..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face.csst +++ /dev/null @@ -1,109 +0,0 @@ ---TEST-- -@font-face rules ---CSS-- -@font-face { - font-family: GillSans; - src:url("/generic/fonts/GillSansLightC.otf") format("opentype"); - font-style: normal; - font-weight: normal; -} - -@font-face { - font-family: GillSans; - src:url("/generic/fonts/GillSansC.otf") format('opentype'); - font-style: normal; - font-weight: bold; -} - -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format("opentype", "woff"); -} - -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(); -} - -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format("opentype" "svg"); -} - -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format("opentype", 'woff', 'svg'); -} -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(opentype); -} -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(opentype woff); -} -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(opentype, woff); -} -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(opentype, woff, "svg"); -} -@font-face { - src:url("/generic/fonts/GillSansLightC.otf") format(opentype woff, "svg"); -} -@font-face { - src:url("/generic/fonts/GillSans LightC.otf") format(opentype,woff); -} ---FULLEXPECT-- -array ( - ' ' => array( - '@font-face' => - array ( - 'font-family' => 'GillSans', - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype")', - 'font-style' => 'normal', - 'font-weight' => '400', - ), - '@font-face ' => - array ( - 'font-family' => 'GillSans', - 'src' => 'url(/generic/fonts/GillSansC.otf) format("opentype")', - 'font-style' => 'normal', - 'font-weight' => '700', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf)', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","svg")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")', - ), - '@font-face ' => - array ( - 'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")', - ), - '@font-face ' => - array ( - 'src' => 'url("/generic/fonts/GillSans LightC.otf") format("opentype","woff")', - ), - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face_woff.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face_woff.csst deleted file mode 100644 index 6555c5c..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face_woff.csst +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -@font-face rules with woff https://github.com/Cerdic/CSSTidy/issues/issue/1 ---CSS-- -@font-face { - font-family: "Unibody8SmallCaps Regular"; - src:url('fonts/unibody_8-smallcaps-webfont.woff') format('woff'); -} ---FULLEXPECT-- -array ( - ' ' => array( - '@font-face' => - array ( - 'font-family' => '"Unibody8SmallCaps Regular"', - 'src' => 'url(fonts/unibody_8-smallcaps-webfont.woff) format("woff")', - ), - ) -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/hex.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/hex.csst deleted file mode 100644 index e39892d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/hex.csst +++ /dev/null @@ -1,10 +0,0 @@ ---TEST-- ---CSS-- -li:before { content: "\00BB \0020"; } ---EXPECT-- -array ( - 'li:before' => - array ( - 'content' => '"\\00BB \\0020"', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks-sort.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks-sort.csst deleted file mode 100644 index ca7d5e3..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks-sort.csst +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -IE Hacks Sort Issue/6 ---SETTINGS-- -discard_invalid_properties = 0 -sort_properties = true ---CSS-- -fakeList a { -width: 100%; -display: block; -height: 30px; -padding-top: 2px; --padding-top: 0; -line-height:18px; --moz-border-radius:10px; -*line-height:17; -/line-height:none; -_background-image: url(/ttt/gf.gif); -} ---EXPECT-- -array ( -'fakeList a' => - array ( - 'width' => '100%', - 'display' => 'block', - 'height' => '30px', - 'padding-top' => '2px', - '-padding-top' => '0', - 'line-height' => '18px', - '-moz-border-radius' => '10px', - '*line-height' => '17', - '/line-height' => 'none', - '_background-image' => 'url(/ttt/gf.gif)', - ), -) \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks.csst deleted file mode 100644 index b6904cc..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/ie-hacks.csst +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -IE Hacks Issue/5 ---SETTINGS-- -discard_invalid_properties = 0 ---CSS-- -fakeList a { -width: 100%; -display: block; -height: 30px; -padding-top: 2px; --padding-top: 0; -line-height:18px; -*line-height:17; -/line-height:none; -// background-image: url(images/cellpic3.gif); /* should be ignored in print version*/ -_background-image: url(/ttt/gf.gif); -} ---EXPECT-- -array ( - 'fakeList a' => - array ( - 'width' => '100%', - 'display' => 'block', - 'height' => '30px', - 'padding-top' => '2px', - '-padding-top' => '0', - 'line-height' => '18px', - '*line-height' => '17', - '/line-height' => 'none', - '//background-image' => 'url(images/cellpic3.gif)', - '_background-image' => 'url(/ttt/gf.gif)', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/iezoom.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/iezoom.csst deleted file mode 100644 index b3e469b..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/iezoom.csst +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -IE Zoom ---CSS-- -#content { -zoom: 1; -} ---EXPECT-- -array ( - '#content' => - array ( - 'zoom' => '1', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/newlines.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/newlines.csst deleted file mode 100644 index 866a6fc..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/newlines.csst +++ /dev/null @@ -1,77 +0,0 @@ ---TEST-- -@font-face rules ---CSS-- -a { - background: -webkit-gradient( - linear, - left bottom, - left top, - color-stop(0, rgb(153,102,51)), - color-stop(0.3, rgb(51,153,102)), - color-stop(1, rgb(102,51,153)) - ); - content: "ABC -123 -DEF -GHI"; -} -b { - content: "ABC\A123"; -} -i { - content: 'ABC -123\ADEF'; -} - -u { - background: parenthetical( - "string 1", - "string -2", - 'string 3', - 'string "4', - 'string "5"', - "string '6", - "string (7)", - "string 8)", - ( - ( - ( - ( - ("boo") - ) - ) - ) - ), - ( - ( - ( - ( - ("boo ba") - ) - ) - ) - ) - -); -} ---EXPECT-- -array ( - 'a' => - array ( - 'background' => '-webkit-gradient(linear,left bottom,left top,color-stop(0,#963),color-stop(0.3,#396),color-stop(1,#639))', - 'content' => '"ABC\\A123\\ADEF\\AGHI"', - ), - 'b' => - array ( - 'content' => '"ABC\\A123"', - ), - 'i' => - array ( - 'content' => '\'ABC\\A123\\ADEF\'', - ), - 'u' => - array ( - 'background' => 'parenthetical("string 1","string\\A2",\'string 3\',\'string "4\',\'string "5"\',"string \'6","string (7)","string 8)",(((((boo))))),((((("boo ba"))))))', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-merge.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-merge.csst deleted file mode 100644 index daa92a5..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-merge.csst +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -Don't merge multiples occurences of same @media ---SETTINGS-- -merge_selectors = 0 ---CSS-- -BODY { -color: black; -} - -@media screen, tv, projection { -BODY { -background-color: red; -} -} - -@media screen, tv, projection { -BODY { -color: green; -} -} - -BODY { -background-color: white; -} - ---FULLEXPECT-- -array ( - 41 => - array ( - 'BODY' => - array ( - 'color' => '#000', - ), - ), - '@media screen,tv,projection ' => - array ( - 'BODY' => - array ( - 'background-color' => 'red', - 'color' => 'green', - ), - ), - 42 => - array ( - 'BODY' => - array ( - 'background-color' => '#fff', - ), - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-nomerge.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-nomerge.csst deleted file mode 100644 index c754838..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/same-atmedia-nomerge.csst +++ /dev/null @@ -1,56 +0,0 @@ ---TEST-- -Don't merge multiples occurences of same @media ---SETTINGS-- -merge_selectors = 0 ---CSS-- -@media screen, tv, projection { -BODY { -background-color: red; -} -} - -BODY { -color: black; -} - -@media screen, tv, projection { -BODY { -color: green; -} -} - -BODY { -background-color: white; -} - ---FULLEXPECT-- -array ( - '@media screen,tv,projection ' => - array ( - 'BODY' => - array ( - 'background-color' => 'red', - ), - ), - 41 => - array ( - 'BODY' => - array ( - 'color' => '#000', - ), - ), - '@media screen,tv,projection ' => - array ( - 'BODY' => - array ( - 'color' => 'green', - ), - ), - 42 => - array ( - 'BODY' => - array ( - 'background-color' => '#fff', - ), - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/colors.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/colors.csst deleted file mode 100644 index a4e3da1..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/colors.csst +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Test color optimisation ---CSS-- -a { - foo:rgb(0,0,0); - bar:black; - baz:#ffaabb; - qux:#f00; - quux:blanchedalmond; - quuux:rgb(0,0,1); -} ---EXPECT-- -array ( - 'a' => - array ( - 'foo' => '#000', - 'bar' => '#000', - 'baz' => '#fab', - 'qux' => 'red', - 'quux' => '#ffebcd', - 'quuux' => '#000001', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/font-family.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/font-family.csst deleted file mode 100644 index f7b02d7..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/font-family.csst +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Tests numeric values: Floating point ---CSS-- -a { font:10px Arial, sans-serif} -b { font:10px "Arial", "Trebuchet MS","sans-serif"} -em { font:10px/normal "Arial", "Trebuchet MS","sans-serif"} -i { font:10px/1.5em "Arial", "Trebuchet MS","sans-serif"} ---EXPECT-- -array ( - 'a' => - array ( - 'font' => '10px Arial,sans-serif', - ), - 'b' => - array ( - 'font' => '10px Arial,"Trebuchet MS",sans-serif', - ), - 'em' => - array ( - 'font' => '10px/normal Arial,"Trebuchet MS",sans-serif', - ), - 'i' => - array ( - 'font' => '10px/1.5em Arial,"Trebuchet MS",sans-serif', - ), -) ---SETTINGS-- -optimise_shorthands=2 diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/important.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/important.csst deleted file mode 100644 index 032ab70..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/important.csst +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -Tests !important ---CSS-- -a { - color:red !important; - size:2 ! important; - foo:2! important; - bar:2!important; -} ---EXPECT-- -array ( - 'a' => - array ( - 'color' => 'red!important', - 'size' => '2!important', - 'foo' => '2!important', - 'bar' => '2!important', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-float.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-float.csst deleted file mode 100644 index 6805c5a..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-float.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Tests numeric values: Floating point ---CSS-- -a { font-size:01.5010em } ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '1.501em', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-leadingzero.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-leadingzero.csst deleted file mode 100644 index 5dfd9e1..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-leadingzero.csst +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -Tests numeric values: Leading zeros ---CSS-- -a { font-size:0001em; foo:00.1em; line-height:00.1; bar:-00.1;} ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '1em', - 'foo' => '.1em', - 'line-height' => '.1', - 'bar' => '-.1', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingunit.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingunit.csst deleted file mode 100644 index b43e3aa..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingunit.csst +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Tests numeric values: Missing unit ---CSS-- -a { -font-size:1.0; -line-height:1.0; -color:123456; -font:1em/1.0 verdana; -} ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '1px', - 'line-height' => '1', - 'color' => '#123456', - 'font' => '1em/1 verdana', - ), -) ---SETTINGS-- -optimise_shorthands=0 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingzero.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingzero.csst deleted file mode 100644 index 6e7ef2e..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-missingzero.csst +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -Tests numeric values: Missing zero ---CSS-- -a { font-size:0.1em } -b { font-size:.1em } ---EXPECT-- -array ( - 'a,b' => - array ( - 'font-size' => '.1em', - ), -) ---SETTINGS-- -merge_selectors=2 \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-signed.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-signed.csst deleted file mode 100644 index 0659ea3..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-signed.csst +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -Tests numeric values: Signed ---CSS-- -a { font-size:-1em } -b { font-size:+1em } ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '-1em', - ), - 'b' => - array ( - 'font-size' => '1em', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-trailingzero.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-trailingzero.csst deleted file mode 100644 index 24287c9..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-trailingzero.csst +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Tests numeric values: Trailing zeros ---CSS-- -a { font-size:1.000em } ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '1em', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-zero.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-zero.csst deleted file mode 100644 index 620e36d..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/number-zero.csst +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -Tests numeric values: Zero ---CSS-- -a { font-size:0px; line-height:00.00 } ---EXPECT-- -array ( - 'a' => - array ( - 'font-size' => '0', - 'line-height' => '0', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/quoted-strings.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/quoted-strings.csst deleted file mode 100644 index 61ccc8f..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/values/quoted-strings.csst +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Ensure that quoted strings are left unchanged. ---CSS-- -a:after { - content: "This is a typical string with words, commas, and a period."; -} - -b:after { - content: "This string has CSS-like content: foo { color: rgb(0, 0, 0); }."; -} - -c:after { - content: 'This string uses single quotes, not double (").'; -} ---EXPECT-- -array ( - 'a:after' => - array ( - 'content' => '"This is a typical string with words, commas, and a period."', - ), - 'b:after' => - array ( - 'content' => '"This string has CSS-like content: foo { color: rgb(0, 0, 0); }."', - ), - 'c:after' => - array ( - 'content' => '\'This string uses single quotes, not double (").\'', - ), -) diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/vendor-prefixed/webkit-gradient.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/vendor-prefixed/webkit-gradient.csst deleted file mode 100644 index 3ddf50c..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/vendor-prefixed/webkit-gradient.csst +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- --webkit-gradient properties issue/3 ---CSS-- -.linear { - background: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)); -} -.radial { - background: -webkit-gradient(radial, 45 45, 10, 52 50, 30, from(#A7D30C), to(rgba(1,159,98,0)), color-stop(90%, #019F62)); -} ---EXPECT-- -array ( - '.linear' => - array ( - 'background' => '-webkit-gradient(linear,left top,left bottom,from(#00abeb),to(#fff),color-stop(0.5,#fff),color-stop(0.5,#6c0))', - ), - '.radial' => - array ( - 'background' => '-webkit-gradient(radial,45 45,10,52 50,30,from(#A7D30C),to(rgba(1,159,98,0)),color-stop(90%,#019F62))', - ), -) ---SETTINGS-- -discard_invalid_properties=false -optimise_shorthands=0 -css_level='CSS21' \ No newline at end of file diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/test.csst.php b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/test.csst.php deleted file mode 100644 index 3b007ac..0000000 --- a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/test.csst.php +++ /dev/null @@ -1,21 +0,0 @@ -assert($expectation, $filename, '%s'); - // this is necessary because SimpleTest doesn't support - // HTML messages; this probably should be in the reporter. - // This is *not* compatible with XmlReporter - if (!$result) echo $expectation->render(); - } - } -} diff --git a/www/plugins-dist/compresseur/lib/minify_html/class.minify_html.php b/www/plugins-dist/compresseur/lib/minify_html/class.minify_html.php index 4cb01aa..e088887 100644 --- a/www/plugins-dist/compresseur/lib/minify_html/class.minify_html.php +++ b/www/plugins-dist/compresseur/lib/minify_html/class.minify_html.php @@ -67,14 +67,18 @@ class Minify_HTML_SPIP extends Minify_HTML { * This is a heavy regex-based removal of whitespace, unnecessary comments and * tokens. IE conditional comments are preserved. There are also options to have * STYLE and SCRIPT blocks compressed by callback functions. + * https://github.com/mrclay/minify/blob/master/min/lib/Minify/HTML.php * * A test suite is available. - * http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/HTML.php - * + * * @package Minify * @author Stephen Clay */ class Minify_HTML { + /** + * @var boolean + */ + protected $_jsCleanComments = true; /** * "Minify" an HTML page @@ -95,7 +99,7 @@ class Minify_HTML { * @return string */ public static function minify($html, $options = array()) { - $min = new Minify_HTML($html, $options); + $min = new self($html, $options); return $min->process(); } @@ -113,6 +117,8 @@ class Minify_HTML { * 'jsMinifier' : (optional) callback function to process content of SCRIPT * elements. Note: the type attribute is ignored. * + * 'jsCleanComments' : (optional) whether to remove HTML comments beginning and end of script block + * * 'xhtml' : (optional boolean) should content be treated as XHTML1.0? If * unset, minify will sniff for an XHTML doctype. * @@ -130,6 +136,9 @@ class Minify_HTML { if (isset($options['jsMinifier'])) { $this->_jsMinifier = $options['jsMinifier']; } + if (isset($options['jsCleanComments'])) { + $this->_jsCleanComments = (bool)$options['jsCleanComments']; + } } @@ -149,13 +158,13 @@ class Minify_HTML { // replace SCRIPTs (and minify) with placeholders $this->_html = preg_replace_callback( - '/(\\s*)(]*?>)([\\s\\S]*?)<\\/script>(\\s*)/i' + '/(\\s*)]*?>)([\\s\\S]*?)<\\/script>(\\s*)/i' ,array($this, '_removeScriptCB') ,$this->_html); // replace STYLEs (and minify) with placeholders $this->_html = preg_replace_callback( - '/\\s*(]*?>)([\\s\\S]*?)<\\/style>\\s*/i' + '/\\s*]*>)([\\s\\S]*?)<\\/style>\\s*/i' ,array($this, '_removeStyleCB') ,$this->_html); @@ -166,16 +175,22 @@ class Minify_HTML { ,$this->_html); // replace PREs with placeholders - $this->_html = preg_replace_callback('/\\s*(]*?>[\\s\\S]*?<\\/pre>)\\s*/i' + $this->_html = preg_replace_callback('/\\s*]*?>[\\s\\S]*?<\\/pre>)\\s*/i' ,array($this, '_removePreCB') ,$this->_html); // replace TEXTAREAs with placeholders $this->_html = preg_replace_callback( - '/\\s*(]*?>[\\s\\S]*?<\\/textarea>)\\s*/i' + '/\\s*]*?>[\\s\\S]*?<\\/textarea>)\\s*/i' ,array($this, '_removeTextareaCB') ,$this->_html); + // replace INPUTs with placeholders + $this->_html = preg_replace_callback( + '/\\s*]*?>)\\s*/i' + ,array($this, '_removeInputCB') + ,$this->_html); + // trim each line. // @todo take into account attribute values that span multiple lines. // 2 regexp because merging un /^\\s+|\\s+$/m also del a lot of newline chars ??? @@ -190,9 +205,9 @@ class Minify_HTML { .'|ul)\\b[^>]*>)/i', '$1', $this->_html); // remove ws outside of all elements - $this->_html = preg_replace_callback( - '/>([^<]+)_html = preg_replace( + '/>(\\s(?:\\s*))?([^<]+)(\\s(?:\s*))?$1$2$3<' ,$this->_html); // use newlines before 1st attribute in open tags (to limit line lengths) @@ -204,6 +219,12 @@ class Minify_HTML { ,array_values($this->_placeholders) ,$this->_html ); + // issue 229: multi-pass to catch scripts that didn't get replaced in textareas + $this->_html = str_replace( + array_keys($this->_placeholders) + ,array_values($this->_placeholders) + ,$this->_html + ); return $this->_html; } @@ -227,24 +248,24 @@ class Minify_HTML { protected $_cssMinifier = null; protected $_jsMinifier = null; - protected function _outsideTagCB($m) - { - return '>' . preg_replace('/^\\s+|\\s+$/', ' ', $m[1]) . '<'; - } - protected function _removePreCB($m) { - return $this->_reservePlace($m[1]); + return $this->_reservePlace("_reservePlace("_reservePlace($m[1]); + return $this->_reservePlace("\\s*$)/', '', $css); @@ -266,7 +287,7 @@ class Minify_HTML { protected function _removeScriptCB($m) { - $openScript = $m[2]; + $openScript = "\\s*$)/', '', $js); + if ($this->_jsCleanComments) { + $js = preg_replace('/(?:^\\s*\\s*$)/', '', $js); + } // remove CDATA section markers $js = $this->_removeCdata($js); @@ -302,4 +325,4 @@ class Minify_HTML { { return ($this->_isXhtml && preg_match('/(?:[<&]|\\-\\-|\\]\\]>)/', $str)); } -} +} \ No newline at end of file diff --git a/www/plugins-dist/compresseur/paquet.xml b/www/plugins-dist/compresseur/paquet.xml index 86c2a50..dc084d8 100644 --- a/www/plugins-dist/compresseur/paquet.xml +++ b/www/plugins-dist/compresseur/paquet.xml @@ -1,7 +1,7 @@
- + diff --git a/www/plugins-dist/filtres_images/favicon.ico.html b/www/plugins-dist/filtres_images/favicon.ico.html index 03004d8..a670679 100644 --- a/www/plugins-dist/filtres_images/favicon.ico.html +++ b/www/plugins-dist/filtres_images/favicon.ico.html @@ -1,7 +1,13 @@ #HTTP_HEADER{Content-Type: image/x-icon} -[(#CHEMIN{favicon.ico}|sinon{[(#LOGO_SITE_SPIP +#HTTP_HEADER{Content-Transfer-Encoding: binary} + \ No newline at end of file diff --git a/www/plugins-dist/filtres_images/paquet.xml b/www/plugins-dist/filtres_images/paquet.xml index 309b309..99015d5 100644 --- a/www/plugins-dist/filtres_images/paquet.xml +++ b/www/plugins-dist/filtres_images/paquet.xml @@ -1,7 +1,7 @@ '', #ne sert pas dans ce cas, on la vide pour mutualiser le cache 'editable' => false, diff --git a/www/plugins-dist/forum/inc/forum_insert.php b/www/plugins-dist/forum/inc/forum_insert.php index 85b8473..32b90ed 100644 --- a/www/plugins-dist/forum/inc/forum_insert.php +++ b/www/plugins-dist/forum/inc/forum_insert.php @@ -63,15 +63,16 @@ function inc_forum_insert_dist($objet, $id_objet, $id_forum, $force_statut = NUL } spip_log("insertion de forum $force_statut sur $objet $id_objet (+$id_forum)", 'forum'); - $c = array('statut'=>'off'); - $c['objet'] = $objet; - $c['id_objet'] = $id_objet; + include_spip('inc/filtres'); include_spip('inc/modifier'); $champs = objet_info('forum','champs_editables'); $c = collecter_requests($champs, array()); - + + $c['statut'] = 'off'; + $c['objet'] = $objet; + $c['id_objet'] = $id_objet; $c['auteur'] = sinon($GLOBALS['visiteur_session']['nom'], $GLOBALS['visiteur_session']['session_nom']); $c['email_auteur'] = sinon($GLOBALS['visiteur_session']['email'], diff --git a/www/plugins-dist/forum/lang/forum.xml b/www/plugins-dist/forum/lang/forum.xml index eeeb5fa..df57ccd 100644 --- a/www/plugins-dist/forum/lang/forum.xml +++ b/www/plugins-dist/forum/lang/forum.xml @@ -17,14 +17,14 @@ - + - - - + + + @@ -34,7 +34,9 @@ - + + + @@ -58,8 +60,8 @@ - + diff --git a/www/plugins-dist/forum/lang/forum_eu.php b/www/plugins-dist/forum/lang/forum_eu.php index 247d913..972d077 100644 --- a/www/plugins-dist/forum/lang/forum_eu.php +++ b/www/plugins-dist/forum/lang/forum_eu.php @@ -8,103 +8,103 @@ if (!defined('_ECRIRE_INC_VERSION')) return; $GLOBALS[$GLOBALS['idx_lang']] = array( // A - 'aucun_message_forum' => 'Aucun message de forum', # NEW + 'aucun_message_forum' => 'Iruzkinik ez', // B - 'bouton_radio_articles_futurs' => 'geroko artikulueisoilik (ez du aldatzen datu-basea).', - 'bouton_radio_articles_tous' => 'artikulu guztieisalbuespenik gabe.', + 'bouton_radio_articles_futurs' => 'geroko artikuluei soilik (ez du aldatzen datu-basea).', + 'bouton_radio_articles_tous' => 'artikulu guztiei, salbuespenik gabe.', 'bouton_radio_articles_tous_sauf_forum_desactive' => 'artikuluguztiei, desaktibatutako foroan daudenei izan ezik.', - 'bouton_radio_enregistrement_obligatoire' => 'Izena ematea derrigorrezkoa da (foroanparte hartu ahal izateko, inskripzioa egin behar da posta elektronikoaren helbideaemanez).', - 'bouton_radio_moderation_priori' => 'Aurretiaz moderatua (ekarpenak agerian egongodira lekuaren administrazio-eskubideak dituen pertsona batek onartu eta gero).', # MODIF + 'bouton_radio_enregistrement_obligatoire' => 'Izena ematea derrigorrezkoa da (foroan parte hartu ahal izateko, inskripzioa egin behar da posta elektronikoaren helbidea emanez).', + 'bouton_radio_moderation_priori' => 'Aurretiaz moderatua (ekarpenak agerian egongodira lekuaren administrazio-eskubideak dituen pertsona batek onartu eta gero).', 'bouton_radio_modere_abonnement' => 'Moderatua (harpidedunentzat soilik)', - 'bouton_radio_modere_posteriori' => 'gerora moderatua', # MODIF - 'bouton_radio_modere_priori' => 'aurretiaz moderatua', # MODIF - 'bouton_radio_publication_immediate' => 'Mezuen bat-batekoargitaratzea (erakarpenak agerian egongo dira igorri bezain laister, gero administraziotikkendu daitezke).', + 'bouton_radio_modere_posteriori' => 'gerora moderatua', + 'bouton_radio_modere_priori' => 'aurretiaz moderatua', + 'bouton_radio_publication_immediate' => 'Mezuen bat-bateko argitaratzea (erakarpenak agerian egongo dira igorri bezain laister, gero administraziotik kendu daitezke).', // D 'documents_interdits_forum' => 'Dokumentuak debekatuak dira foroetan', // E - 'erreur_enregistrement_message' => 'Votre message n\'a pas pu être enregistré en raison d\'un problème technique', # NEW + 'erreur_enregistrement_message' => 'Zure mezuaren garbaketak huts egin du, akats tekniko batengatik', // F 'form_pet_message_commentaire' => 'Mezurik, azalpenik ?', 'forum' => 'Foroa', 'forum_acces_refuse' => 'Dagoeneko ezin zara foro hauetan sartu.', 'forum_attention_dix_caracteres' => 'Adi! zure mezuak hamar karaktere baino gutxiago ditu', - 'forum_attention_message_non_poste' => 'Attention, vous n\'avez pas posté votre message !', # NEW - 'forum_attention_nb_caracteres_mini' => 'Attention ! votre message doit contenir au moins @min@ caractères.', # NEW + 'forum_attention_message_non_poste' => 'Kontuz, mezua ez duzu igorria !', + 'forum_attention_nb_caracteres_mini' => 'Kontuz ! zure mezuak @min@ karaketre bederen eduki behar ditu.', 'forum_attention_trois_caracteres' => 'Adi! zure izenburuak hiru karaktere baino gutxiago ditu.', - 'forum_attention_trop_caracteres' => 'kontuz ! zure mezua luzeegi da (@compte@ caractères) : grabatua izateko, ez ditu @max@ karaktero baino gehiago izan behar.', # MODIF + 'forum_attention_trop_caracteres' => 'kontuz ! zure mezua luzeegi da (@compte@ caractères) : grabatua izateko, ez ditu @max@ karaktero baino gehiago izan behar.', 'forum_avez_selectionne' => 'Aukeratu egin duzu:', 'forum_cliquer_retour' => 'Jarraitzeko hemen klik egin.', 'forum_forum' => 'foroa', 'forum_info_modere' => 'Foro hau aurretiaz moderaturik dago : -Zure ekarpena gunearen administratzaileak onartu ondoren soilik agerian izango da.', # MODIF - 'forum_lien_hyper' => 'Hipertestu lotura (aukeratzekoa)', # MODIF - 'forum_message' => 'Votre message', # NEW +Zure ekarpena gunearen administratzaileak onartu ondoren soilik agerian izango da.', + 'forum_lien_hyper' => 'Hiperesteka (aukeratzekoa)', + 'forum_message' => 'Zure mezua', 'forum_message_definitif' => 'Behin-betiko mezua : gunera igorri', - 'forum_message_trop_long' => 'Zure mezua luzeegia da. Gehienez ere 20000 karaktere onartzen dira.', # MODIF + 'forum_message_trop_long' => 'Zure mezua luzeegia da. 20 000 karaktere gehienez onartzen dira.', 'forum_ne_repondez_pas' => 'Ez erantzun mezu elektroniko honi, baizik eta hurrengo helbidean dagoen foroan:', 'forum_page_url' => '(Zure mezua interneten argitaratutako artikulu bati buruzkoa baldin bada, edo informazio gehiago duen orrialde bati buruzkoa, adieraz itzazu jarraian orrialdearen izena bai eta URL helbidea ere).', - 'forum_permalink' => 'Lien permanent vers le commentaire', # NEW - 'forum_poste_par' => '« @titre@ » artikuluaren ondotik @parauteur@-k bidalitako mezua.', # MODIF - 'forum_poste_par_court' => 'Message posté@parauteur@.', # NEW - 'forum_poste_par_generique' => 'Message posté@parauteur@ (@objet@ « @titre@ »).', # NEW - 'forum_qui_etes_vous' => 'Nor zara zu? (aukeratzekoa)', # MODIF - 'forum_saisie_texte_info' => 'Ce formulaire accepte les raccourcis SPIP [->url] {{gras}} {italique} <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.', # NEW - 'forum_texte' => 'Zure mezuaren testua:', # MODIF - 'forum_titre' => 'Izenburua :', # MODIF - 'forum_url' => 'URL :', # MODIF + 'forum_permalink' => 'Iruzkinari lotura iraunkorra', + 'forum_poste_par' => '« @titre@ » artikuluaren ondotik @parauteur@-k bidalitako mezua.', + 'forum_poste_par_court' => 'Mezu igorlea @parauteur@.', + 'forum_poste_par_generique' => 'Iruzkina igorria @parauteur@ (@objet@ « @titre@ »).', + 'forum_qui_etes_vous' => 'Nor zara ? (aukerazkoa)', + 'forum_saisie_texte_info' => 'Inprimaki honek Spip lasterbideak onartzen ditu [->url] {{gizena}} {etzana} <quote> <code> eta HTML kodeak <q> <del> <ins>. Paragrafoak sortzeko, lerro bat hutsik utz.', + 'forum_texte' => 'Zure mezuaren testua:', + 'forum_titre' => 'Izenburua', + 'forum_url' => 'Zure gunea', 'forum_valider' => 'Aukera hori onartu', - 'forum_voir_avant' => 'Igorri aurretik mezu hau ikusi', # MODIF - 'forum_votre_email' => 'Zure posta-elektronikoaren helbidea :', # MODIF - 'forum_votre_nom' => 'Zure izena (edo goitizena) :', # MODIF + 'forum_voir_avant' => 'Aurreikusi', + 'forum_votre_email' => 'Zure helbide elektronikoa', + 'forum_votre_nom' => 'Zure izena (edo goitizena) :', 'forum_vous_enregistrer' => 'Aurretik inskribatzea beharrezkoa da foro honetan parte hartzeko. Hornitua izan zaizun identifikadore pertsonala jarraian adieraztea eskertuko dizugu. Inskribaturik ez bazaude, aurretik inskribatu behar duzu.', 'forum_vous_inscrire' => 'Aurretik inskriba zaitez.', // I - 'icone_bruler_message' => 'Signaler comme Spam', # NEW - 'icone_bruler_messages' => 'Signaler comme Spam', # NEW - 'icone_legitimer_message' => 'Signaler comme licite', # NEW + 'icone_bruler_message' => 'Spam gisa salatu', + 'icone_bruler_messages' => 'Spam gisa salatu', + 'icone_legitimer_message' => 'Onargarri gisa seinalatu', 'icone_poster_message' => 'Mezu bat igorri', 'icone_suivi_forum' => 'Foro publikoaren gaurkotasuna: @nb_forums@ekarpena(k)', 'icone_suivi_forums' => 'Foroen gestioa', 'icone_supprimer_message' => 'Mezu hau kendu', - 'icone_supprimer_messages' => 'Supprimer ces messages', # NEW + 'icone_supprimer_messages' => 'Mezu hauek ezabatu', 'icone_valider_message' => 'Mezu hau onartu', - 'icone_valider_messages' => 'Valider ces messages', # NEW - 'icone_valider_repondre_message' => 'Valider & Répondre à ce message', # NEW - 'info_1_message_forum' => '1 message de forum', # NEW - 'info_activer_forum_public' => 'Foru publikoak aktibatzeko, aukeratu moderazio erabat', # MODIF + 'icone_valider_messages' => 'Mezu hauek onartu', + 'icone_valider_repondre_message' => 'Mezu hau onartu eta erantzun', + 'info_1_message_forum' => 'Iruzkin bat', + 'info_activer_forum_public' => 'Foru publikoak aktibatzeko, aukeratu lehenetsitako moderazio erabat', 'info_appliquer_choix_moderation' => 'Moderazio mota hau ezarri', - 'info_config_forums_prive' => 'Eremu pribatuan foro mota desberdinak aktibatzen ahal dituzu', # MODIF + 'info_config_forums_prive' => 'Eremu pribatuan foro mota desberdinak aktibatzen ahal dituzu', 'info_config_forums_prive_admin' => 'gunearen administratzaileei erreserbatutako foroa :', 'info_config_forums_prive_global' => 'Foro orokor bat, idazle guziei irekia :', 'info_config_forums_prive_objets' => 'Foro bat artikulu, berri-labur edo erreferentzitutako gune bakoitzaren azpian :', - 'info_desactiver_forum_public' => 'Jendaurrekoforoak desaktibatu. Puntualki aktibatuak izan ahalko dira artikuluetarako, baina ezlaburretarako edo ataletarako.', + 'info_desactiver_forum_public' => 'Foro publikoak desaktibatu. Puntualki aktiba daiteke artikuluendako artikuluetarako, baina ez berri-laburretarako edo ataletarako.', 'info_envoi_forum' => 'Foroen jarraipena', 'info_fonctionnement_forum' => 'Foroarenfuntzionamendua', - 'info_forums_liees_mot' => 'Les messages de forum liés à ce mot', # NEW - 'info_gauche_suivi_forum_2' => 'Foroak jarraitzeko orrialdea zureguneko kudeaketa-tresna bat da (eta ez eztabaida edo idazketa-eremu bat). Guneko foroetako kontribuzio guztiak bistaratzen ditu, bai gune publikokoak bai eremu pribatukoak eta kontribuzio hauek administratzen uzten dizu.', # MODIF + 'info_forums_liees_mot' => 'Hitz honi lotutako iruzkinak', + 'info_gauche_suivi_forum_2' => 'Foroak jarraitzeko orrialdea zureguneko kudeaketa-tresna bat da (eta ez eztabaida edo idazketa-eremu bat). Guneko foroetako kontribuzio guztiak bistaratzen ditu, bai gune publikokoak bai eremu pribatukoak eta kontribuzio hauek administratzen uzten dizu.', 'info_liens_syndiques_3' => 'foroak', 'info_liens_syndiques_4' => 'daude', 'info_liens_syndiques_5' => 'foroa', 'info_liens_syndiques_6' => 'dago', 'info_liens_syndiques_7' => 'balidazioaren zain', - 'info_liens_texte' => 'Lien(s) contenu(s) dans le texte du message', # NEW - 'info_liens_titre' => 'Lien(s) contenu(s) dans le titre du message', # NEW + 'info_liens_texte' => 'Iruzkinak edukitako hiperesteka(k)', + 'info_liens_titre' => 'Iruzkinaren izenburuak edukitako hiperesteka(k)', 'info_mode_fonctionnement_defaut_forum_public' => 'Foro publikoenfuntzionamendua', - 'info_nb_messages_forum' => '@nb@ messages de forum', # NEW + 'info_nb_messages_forum' => '@nb@ iruzkin', 'info_option_email' => 'Guneko bisitari batek artikulu batekin erlazionatutako mezu berri bat bidaltzen duenean foroan, artikuluaren idazleak mezu honetaz abisatuakizan ahal dira e-mailez. Aukera hau erabili nahi duzu ?', 'info_pas_de_forum' => 'fororik ez', - 'info_question_visiteur_ajout_document_forum' => 'Si vous souhaitez autoriser les visiteurs à joindre des documents (images, sons...) à leurs messages de forum, indiquer ci-dessous la liste des extensions de documents autorisés pour les forums (ex: gif, jpg, png, mp3).', # MODIF - 'info_question_visiteur_ajout_document_forum_format' => 'Le cas échéant, indiquer ci-dessous la liste des extensions de documents autorisés pour les forums (ex: gif, jpg, png, mp3).', # MODIF - 'info_selectionner_message' => 'Sélectionner les messages :', # NEW - 'interface_formulaire' => 'Interface formulaire', # NEW - 'interface_onglets' => 'Interface avec onglets', # NEW + 'info_question_visiteur_ajout_document_forum' => 'Foroko mezuei dokumentuen eranstea onartzen baduzu (irudi, soinu..), onartutako fitxategi-luzapenak zehaztu itzazu ((ad : gif, jpg, p,png,mp3).', + 'info_question_visiteur_ajout_document_forum_format' => 'Beharrez, zehaztu izkizu foroetako dokumentu erantsien fitxategi-luzapen onartuak (ad : gif, jpg, png, mp3).', + 'info_selectionner_message' => 'Mezuak hautatu :', + 'interface_formulaire' => 'Inprimaki interfazea', + 'interface_onglets' => 'Fitxekilako interfazea', 'item_activer_forum_administrateur' => 'Administrazio-taldearen foroa aktibatu.', 'item_config_forums_prive_global' => 'Idazleen foroa aktibatu', 'item_config_forums_prive_objets' => 'Foro hauek aktibatu', @@ -113,29 +113,29 @@ Inskribaturik ez bazaude, aurretik inskribatu behar duzu.', 'item_non_config_forums_prive_objets' => 'Foro hauek desaktibatu', // L - 'label_selectionner' => 'Sélectionner :', # NEW + 'label_selectionner' => 'Hautatu :', 'lien_reponse_article' => 'Artikuluari erantzuna', 'lien_reponse_breve_2' => 'Atalari erantzuna', - 'lien_reponse_message' => 'Réponse au message', # NEW + 'lien_reponse_message' => 'Mezuari erantzuna', 'lien_reponse_rubrique' => 'Atalari erantzuna', - 'lien_reponse_site_reference' => 'Aipatutako lekuari erantzuna', # MODIF - 'lien_vider_selection' => 'Vider la selection', # NEW + 'lien_reponse_site_reference' => 'Aipatutako guneari erantzuna', + 'lien_vider_selection' => 'Selekzioa hustu', // M - 'messages_aucun' => 'Aucun', # NEW - 'messages_meme_auteur' => 'Tous les messages de cet auteur', # NEW - 'messages_meme_email' => 'Tous les messages de cet email', # NEW - 'messages_meme_ip' => 'Tous les messages de cette IP', # NEW - 'messages_off' => 'Supprimés', # NEW - 'messages_perso' => 'Personnels', # NEW - 'messages_privadm' => 'Administrateurs', # NEW - 'messages_prive' => 'Privés', # NEW - 'messages_privoff' => 'Supprimés', # NEW - 'messages_privrac' => 'Généraux', # NEW - 'messages_prop' => 'Proposés', # NEW - 'messages_publie' => 'Publiés', # NEW - 'messages_spam' => 'Spam', # NEW - 'messages_tous' => 'Tous', # NEW + 'messages_aucun' => 'Batere', + 'messages_meme_auteur' => 'Autore honen mezu guztiak', + 'messages_meme_email' => 'Helbide elektroniko honen mezu guztia', + 'messages_meme_ip' => 'IP helbide honen mezu guztiak', + 'messages_off' => 'Kenduak', + 'messages_perso' => 'Pertsonala', + 'messages_privadm' => 'Administrazaile', + 'messages_prive' => 'Pribatuak', + 'messages_privoff' => 'Ezabatuak', + 'messages_privrac' => 'Orokorrak', + 'messages_prop' => 'Proposatuak', + 'messages_publie' => 'Argitaratuak', + 'messages_spam' => 'Spam', + 'messages_tous' => 'Guztiak', // O 'onglet_messages_internes' => 'Barne mezuak', @@ -146,28 +146,28 @@ Inskribaturik ez bazaude, aurretik inskribatu behar duzu.', 'repondre_message' => 'Mezuari erantzun', // S - 'statut_off' => 'Supprimé', # NEW + 'statut_off' => 'Ezabatua', 'statut_original' => 'jatorrizkoa', - 'statut_prop' => 'Proposé', # NEW - 'statut_publie' => 'Publié', # NEW - 'statut_spam' => 'Spam', # NEW + 'statut_prop' => 'Proposatuak', + 'statut_publie' => 'Argitaratua', + 'statut_spam' => 'Spam', // T 'text_article_propose_publication_forum' => 'Ez beldurtu zure iritzia emateaz. Artikuluari foro bat lotua zaio (orri beherean).', - 'texte_en_cours_validation' => 'Les articles, brèves, forums ci dessous sont proposés à la publication.', # NEW + 'texte_en_cours_validation' => 'Artikulu, berri-labur eta iruzkin horiek argitalpenarako proposatuak dira.', 'texte_en_cours_validation_forum' => 'Ez izan zalantzarik zure iritzia emateko beraiei erantsitako foroei esker.', - 'texte_messages_publics' => 'Messages publics sur :', # NEW + 'texte_messages_publics' => 'Mezu publikoak hemen  :', 'titre_cadre_forum_administrateur' => 'Administrarien foroa', 'titre_cadre_forum_interne' => 'Barneko foroa', - 'titre_config_forums_prive' => 'Forums de l’espace privé', # NEW + 'titre_config_forums_prive' => 'Eremu pribatuko foroak', 'titre_forum' => 'Barne-foroa', 'titre_forum_suivi' => 'Foruen kudeaketa', 'titre_page_forum_suivi' => 'Foruenjarraipena', - 'titre_selection_action' => 'Sélection', # NEW - 'tout_voir' => 'Voir tous les messages', # NEW + 'titre_selection_action' => 'Hautua', + 'tout_voir' => 'Mezu guztiak ikusi', // V - 'voir_messages_objet' => 'voir les messages' # NEW + 'voir_messages_objet' => 'mezuak ikusi' ); ?> diff --git a/www/plugins-dist/forum/lang/forum_ft_tu.php b/www/plugins-dist/forum/lang/forum_ft_tu.php deleted file mode 100644 index ea81ece..0000000 --- a/www/plugins-dist/forum/lang/forum_ft_tu.php +++ /dev/null @@ -1,176 +0,0 @@ - 'Aucun message de forum', # NEW - - // B - 'bouton_radio_articles_futurs' => 'aux articles futurs uniquement (pas d\'action sur la base de données).', # NEW - 'bouton_radio_articles_tous' => 'à tous les articles sans exception.', # NEW - 'bouton_radio_articles_tous_sauf_forum_desactive' => 'à tous les articles, sauf ceux dont le forum est désactivé.', # NEW - 'bouton_radio_enregistrement_obligatoire' => 'Enregistrement obligatoire (les - utilisateurs doivent s\'abonner en fournissant leur adresse e-mail avant de - pouvoir poster des contributions).', # NEW - 'bouton_radio_moderation_priori' => 'Modération à priori (les - contributions ne s\'affichent publiquement qu\'après validation par les - administrateurs).', # NEW - 'bouton_radio_modere_abonnement' => 'sur abonnement', # NEW - 'bouton_radio_modere_posteriori' => 'modération à posteriori', # NEW - 'bouton_radio_modere_priori' => 'modération à priori', # NEW - 'bouton_radio_publication_immediate' => 'Publication immédiate des messages - (les contributions s\'affichent dès leur envoi, les administrateurs peuvent - les supprimer ensuite).', # NEW - - // D - 'documents_interdits_forum' => 'Documents interdits dans le forum', - - // E - 'erreur_enregistrement_message' => 'Votre message n\'a pas pu être enregistré en raison d\'un problème technique', # NEW - - // F - 'form_pet_message_commentaire' => 'Un message, un commentaire ?', # NEW - 'forum' => 'Forum', - 'forum_acces_refuse' => 'Vous n\'avez plus accès à ces forums.', # NEW - 'forum_attention_dix_caracteres' => 'Attention ! votre message doit contenir au moins dix caractères.', # NEW - 'forum_attention_message_non_poste' => 'Attention, vous n\'avez pas posté votre message !', # NEW - 'forum_attention_trois_caracteres' => 'Attention ! votre titre doit contenir au moins trois caractères.', # NEW - 'forum_attention_trop_caracteres' => 'Attention ! votre message est trop long (@compte@ caractères) : pour pouvoir être enregistré, il ne doit pas dépasser @max@ caractères.', # NEW - 'forum_avez_selectionne' => 'Vous avez sélectionné :', # NEW - 'forum_cliquer_retour' => 'Cliquez ici pour continuer.', # NEW - 'forum_forum' => 'forum', # NEW - 'forum_info_modere' => 'Ce forum est modéré à priori : votre contribution n\'apparaîtra qu\'après avoir été validée par un administrateur du site.', # NEW - 'forum_lien_hyper' => 'Lien hypertexte', # NEW - 'forum_message' => 'Votre message', # NEW - 'forum_message_definitif' => 'Message définitif : envoyer au site', # NEW - 'forum_message_trop_long' => 'Votre message est trop long. La taille maximale est de 20000 caractères.', # NEW - 'forum_ne_repondez_pas' => 'Ne répondez pas à ce mail mais sur le forum à l\'adresse suivante :', # NEW - 'forum_page_url' => '(Si votre message se réfère à un article publié sur le Web, ou à une page fournissant plus d\'informations, vous pouvez indiquer ci-après le titre de la page et son adresse.)', # NEW - 'forum_permalink' => 'Lien permanent vers le commentaire', # NEW - 'forum_poste_par' => 'Message posté@parauteur@ à la suite de l\'article « @titre@ ».', # NEW - 'forum_qui_etes_vous' => 'Qui êtes-vous ?', # NEW - 'forum_saisie_texte_info' => 'Ce formulaire accepte les raccourcis SPIP [->url] {{gras}} {italique} <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.', # NEW - 'forum_texte' => 'Texte de votre message', # NEW - 'forum_titre' => 'Titre', # NEW - 'forum_url' => 'Votre site web', # NEW - 'forum_valider' => 'Valider ce choix', # NEW - 'forum_voir_avant' => 'Prévisualiser', # NEW - 'forum_votre_email' => 'Votre adresse email', # NEW - 'forum_votre_nom' => 'Votre nom', # NEW - 'forum_vous_enregistrer' => 'Pour participer à - ce forum, vous devez vous enregistrer au préalable. Merci - d\'indiquer ci-dessous l\'identifiant personnel qui vous a - été fourni. Si vous n\'êtes pas enregistré, vous devez', # NEW - 'forum_vous_inscrire' => 'vous inscrire.', # NEW - - // I - 'icone_bruler_message' => 'Signaler comme Spam', # NEW - 'icone_bruler_messages' => 'Signaler comme Spam', # NEW - 'icone_legitimer_message' => 'Signaler comme licite', # NEW - 'icone_poster_message' => 'Poster un message', # NEW - 'icone_suivi_forum' => 'Suivi du forum public : @nb_forums@ contribution(s)', # NEW - 'icone_suivi_forums' => 'Suivre/gérer les forums', # NEW - 'icone_supprimer_message' => 'Supprimer ce message', # NEW - 'icone_supprimer_messages' => 'Supprimer ces messages', # NEW - 'icone_valider_message' => 'Valider ce message', # NEW - 'icone_valider_messages' => 'Valider ces messages', # NEW - 'icone_valider_repondre_message' => 'Valider & Répondre à ce message', # NEW - 'info_1_message_forum' => '1 message de forum', # NEW - 'info_activer_forum_public' => 'Pour activer les forums publics, veuillez choisir leur mode - de modération par défaut :', # NEW - 'info_appliquer_choix_moderation' => 'Appliquer ce choix de modération :', # NEW - 'info_config_forums_prive' => 'Dans l’espace privé du site, vous pouvez activer plusieurs types de forums :', # NEW - 'info_config_forums_prive_admin' => 'Un forum réservé aux administrateurs du site :', # NEW - 'info_config_forums_prive_global' => 'Un forum global, ouvert à tous les rédacteurs :', # NEW - 'info_config_forums_prive_objets' => 'Un forum sous chaque article, brève, site référencé, etc. :', # NEW - 'info_desactiver_forum_public' => 'Désactiver l\'utilisation des forums - publics. Les forums publics pourront être autorisés au cas par cas - sur les articles ; ils seront interdits sur les rubriques, brèves, etc.', # NEW - 'info_envoi_forum' => 'Envoi des forums aux auteurs des articles', # NEW - 'info_fonctionnement_forum' => 'Fonctionnement du forum :', # NEW - 'info_forums_liees_mot' => 'Les messages de forum liés à ce mot', # NEW - 'info_gauche_suivi_forum_2' => 'La page de suivi des forums est un outil de gestion de votre site (et non un espace de discussion ou de rédaction). Elle affiche toutes les contributions des forums du site, aussi bien celles du site public que de l\'espace privé et vous permet de gérer ces contributions.', # NEW - 'info_liens_syndiques_3' => 'forums', # NEW - 'info_liens_syndiques_4' => 'sont', # NEW - 'info_liens_syndiques_5' => 'forum', # NEW - 'info_liens_syndiques_6' => 'est', # NEW - 'info_liens_syndiques_7' => 'en attente de validation', # NEW - 'info_liens_texte' => 'Lien(s) contenu(s) dans le texte du message', # NEW - 'info_liens_titre' => 'Lien(s) contenu(s) dans le titre du message', # NEW - 'info_mode_fonctionnement_defaut_forum_public' => 'Mode de fonctionnement par défaut des forums publics', # NEW - 'info_nb_messages_forum' => '@nb@ messages de forum', # NEW - 'info_option_email' => 'Lorsqu\'un visiteur du site poste un nouveau message dans le forum associé à un article, les auteurs de l\'article peuvent être prévenus de ce message par e-mail. Indiquer pour chaque type de forum s\'il faut utiliser cette option.', # NEW - 'info_pas_de_forum' => 'pas de forum', # NEW - 'info_question_visiteur_ajout_document_forum' => 'Si vous souhaitez autoriser les visiteurs à joindre des documents (images, sons...) à leurs messages de forum, indiquez ci-dessous la liste des extensions de documents autorisés pour les forums (ex: gif, jpg, png, mp3).', # NEW - 'info_question_visiteur_ajout_document_forum_format' => 'Si vous souhaitez autoriser tous les types de documents considérés comme fiables par SPIP, mettez une étoile. Pour ne rien autoriser, n\'indiquez rien.', # NEW - 'interface_formulaire' => 'Interface formulaire', # NEW - 'interface_onglets' => 'Interface avec onglets', # NEW - 'item_activer_forum_administrateur' => 'Activer le forum des administrateurs', # NEW - 'item_config_forums_prive_global' => 'Activer le forum des rédacteurs', # NEW - 'item_config_forums_prive_objets' => 'Activer ces forums', # NEW - 'item_desactiver_forum_administrateur' => 'Désactiver le forum des administrateurs', # NEW - 'item_non_config_forums_prive_global' => 'Désactiver le forum des rédacteurs', # NEW - 'item_non_config_forums_prive_objets' => 'Désactiver ces forums', # NEW - - // L - 'lien_reponse_article' => 'Réponse à l\'article', # NEW - 'lien_reponse_breve_2' => 'Réponse à la brève', # NEW - 'lien_reponse_message' => 'Réponse au message', # NEW - 'lien_reponse_rubrique' => 'Réponse à la rubrique', # NEW - 'lien_reponse_site_reference' => 'Réponse au site référencé', # NEW - - // M - 'messages_aucun' => 'Aucun', # NEW - 'messages_meme_auteur' => 'Tous les messages de cet auteur', # NEW - 'messages_meme_email' => 'Tous les messages de cet email', # NEW - 'messages_meme_ip' => 'Tous les messages de cette IP', # NEW - 'messages_off' => 'Supprimés', # NEW - 'messages_perso' => 'Personnels', # NEW - 'messages_privadm' => 'Administrateurs', # NEW - 'messages_prive' => 'Privés', # NEW - 'messages_privoff' => 'Supprimés', # NEW - 'messages_privrac' => 'Généraux', # NEW - 'messages_prop' => 'Proposés', # NEW - 'messages_publie' => 'Publiés', # NEW - 'messages_spam' => 'Spam', # NEW - 'messages_tous' => 'Tous', # NEW - - // O - 'onglet_messages_internes' => 'Messages internes', # NEW - 'onglet_messages_publics' => 'Messages publics', # NEW - 'onglet_messages_vide' => 'Messages sans texte', # NEW - - // R - 'repondre_message' => 'Répondre à ce message', - - // S - 'statut_off' => 'Supprimé', # NEW - 'statut_original' => 'original', # NEW - 'statut_prop' => 'Proposé', # NEW - 'statut_publie' => 'Publié', # NEW - 'statut_spam' => 'Spam', # NEW - - // T - 'text_article_propose_publication_forum' => 'N\'hésitez pas à donner votre avis grâce au forum attaché à cet article (en bas de page).', # NEW - 'texte_en_cours_validation' => 'Les articles, brèves, forums ci dessous sont proposés à la publication.', # NEW - 'texte_en_cours_validation_forum' => 'N\'hésitez pas à donner votre avis grâce aux forums qui leur sont attachés.', # NEW - 'texte_messages_publics' => 'Messages publics sur :', # NEW - 'titre_cadre_forum_administrateur' => 'Forum privé des administrateurs', # NEW - 'titre_cadre_forum_interne' => 'Forum interne', # NEW - 'titre_config_forums_prive' => 'Forums de l’espace privé', # NEW - 'titre_forum' => 'Forum', # NEW - 'titre_forum_suivi' => 'Suivi des forums', # NEW - 'titre_page_forum_suivi' => 'Suivi des forums', # NEW - 'titre_selection_action' => 'Sélection', # NEW - 'tout_voir' => 'Voir tous les messages', # NEW - - // V - 'voir_messages_objet' => 'voir les messages' # NEW -); - -?> diff --git a/www/plugins-dist/forum/lang/forum_ru.php b/www/plugins-dist/forum/lang/forum_ru.php index 0346882..d22b93c 100644 --- a/www/plugins-dist/forum/lang/forum_ru.php +++ b/www/plugins-dist/forum/lang/forum_ru.php @@ -13,13 +13,13 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // B 'bouton_radio_articles_futurs' => 'только для новых материалов (текущие настройки не изменятся).', 'bouton_radio_articles_tous' => 'для всех статей без исключения.', - 'bouton_radio_articles_tous_sauf_forum_desactive' => 'для всех статей, кроме тех, в которых комментирование отключено.', + 'bouton_radio_articles_tous_sauf_forum_desactive' => 'для всех статей, кроме тех, в которых комментарии отключены.', 'bouton_radio_enregistrement_obligatoire' => 'Только для зарегистрированных пользователей. Посетитель должен зарегистрироваться перед тем как оставить комментарий.', 'bouton_radio_moderation_priori' => 'Комментарии публикуются на сайте после проверки администратором (пре-модерация).', 'bouton_radio_modere_abonnement' => 'только пользователи сайта', 'bouton_radio_modere_posteriori' => 'размещать без проверки', 'bouton_radio_modere_priori' => 'проверять перед размещением', - 'bouton_radio_publication_immediate' => 'Новые комментарии сразу публикуются на сайте без проверки (пост-модерация). Администраторы потом могут удалить комментарии.', + 'bouton_radio_publication_immediate' => 'Новые комментарии публикуются на сайте без предварительной проверки (пост-модерация). Администраторы могут удалить комментарии позже.', // D 'documents_interdits_forum' => 'Запрещенно добавлять документы к сообщениям форума', @@ -30,7 +30,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // F 'form_pet_message_commentaire' => 'Комментарии', 'forum' => 'Форум', - 'forum_acces_refuse' => 'Вы больше не имеете доступа к этим форумам.', + 'forum_acces_refuse' => 'У вас больше нет доступа к данным форумам.', 'forum_attention_dix_caracteres' => 'Внимание! Сообщение должно быть не менее десяти символов.', 'forum_attention_message_non_poste' => 'Внимание, ваш комментарий не опубликован на сайте.', 'forum_attention_nb_caracteres_mini' => 'Внимание ! текст сообщения должен содержать не меньше @min@ символов.', @@ -39,7 +39,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'forum_avez_selectionne' => 'Вы выбрали:', 'forum_cliquer_retour' => 'Нажмите сюда для продолжения.', 'forum_forum' => 'комментарий', - 'forum_info_modere' => 'Комментарий проверяется администрацией сайта. Ваше сообщение появится после проверки администратором.', + 'forum_info_modere' => 'Все комментарии проверяются администрацией сайта. Ваше сообщение будет опубликовано после одобрения администратором.', 'forum_lien_hyper' => 'Ссылка', 'forum_message' => 'Ваше сообщение', 'forum_message_definitif' => 'Всё верно. Отправить!', @@ -47,9 +47,9 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'forum_ne_repondez_pas' => 'Не отвечайте на это письмо - перейдите по ссылке:', 'forum_page_url' => '(Если ваше сообщение относится к материалу, размещенному в Интернете, укажите название этой статьи и ссылку на нее).', 'forum_permalink' => 'Постоянная ссылка', - 'forum_poste_par' => '@parauteur@ прокомментировал вашу статью.', # MODIF - 'forum_poste_par_court' => 'Message posté@parauteur@.', # NEW - 'forum_poste_par_generique' => 'Message posté@parauteur@ (@objet@ « @titre@ »).', # NEW + 'forum_poste_par' => '@parauteur@ прокомментировал вашу статью « @titre@ ».', + 'forum_poste_par_court' => 'Комментарий разместил @parauteur@.', + 'forum_poste_par_generique' => 'Комментарий разместил @parauteur@ (@objet@ « @titre@ »).', 'forum_qui_etes_vous' => 'Кто вы?', 'forum_saisie_texte_info' => 'Вы можете использовать следующую разметку текста [->ссылка] {{жирный}} {курсив} и теги HTML . Что бы создать новый абзац два раза нажмите enter.', 'forum_texte' => 'Комментарий:', diff --git a/www/plugins-dist/forum/paquet.xml b/www/plugins-dist/forum/paquet.xml index daff220..b9f1720 100644 --- a/www/plugins-dist/forum/paquet.xml +++ b/www/plugins-dist/forum/paquet.xml @@ -1,7 +1,7 @@ - + diff --git a/www/plugins-dist/forum/prive/squelettes/navigation/controler_forum.html b/www/plugins-dist/forum/prive/squelettes/navigation/controler_forum.html index b316db0..2be0595 100644 --- a/www/plugins-dist/forum/prive/squelettes/navigation/controler_forum.html +++ b/www/plugins-dist/forum/prive/squelettes/navigation/controler_forum.html @@ -33,7 +33,7 @@ ] - + [(#REM) afficher la selection dans un ul class item_picked diff --git a/www/prive/formulaires/selecteur/generique.html b/www/prive/formulaires/selecteur/generique.html index 7889ffa..635c135 100644 --- a/www/prive/formulaires/selecteur/generique.html +++ b/www/prive/formulaires/selecteur/generique.html @@ -1,7 +1,8 @@ #SET{img_unpick, #CHEMIN_IMAGE{supprimer-12.png}} [(#SET{label_supprimer, <:lien_supprimer:>})] - - + [(#REM) afficher la selection dans un ul class item_picked @@ -60,10 +61,9 @@ afficher la selection dans un ul class item_picked
[(#ENV{sortable,'non'}|=={oui}|oui) - ] diff --git a/www/prive/formulaires/selecteur/rubriques.html b/www/prive/formulaires/selecteur/rubriques.html index 3fee833..fa8bccd 100644 --- a/www/prive/formulaires/selecteur/rubriques.html +++ b/www/prive/formulaires/selecteur/rubriques.html @@ -1,5 +1,6 @@ - - + [(#REM) afficher la selection dans un ul class item_picked @@ -26,10 +27,9 @@ afficher la selection dans un ul class item_picked
[(#ENV{sortable,'non'}|=={oui}|oui) - ] \ No newline at end of file diff --git a/www/prive/formulaires/traduire.html b/www/prive/formulaires/traduire.html index 261722b..0e268e7 100644 --- a/www/prive/formulaires/traduire.html +++ b/www/prive/formulaires/traduire.html @@ -42,7 +42,7 @@ ] [(#ENV{_lister_id_trad}|non)
  • - [ + [ (#ENV**{erreurs}|table_valeur{id_trad}) ] diff --git a/www/prive/informer_auteur_fonctions.php b/www/prive/informer_auteur_fonctions.php index ffeabc5..d752b70 100644 --- a/www/prive/informer_auteur_fonctions.php +++ b/www/prive/informer_auteur_fonctions.php @@ -22,25 +22,28 @@ function informer_auteur($bof) include_spip('inc/auth'); $login = strval(_request('var_login')); $row = auth_informer_login($login); - if ($row AND is_array($row)) + if ($row AND is_array($row)) { unset($row['id_auteur']); + } + // permettre d'autoriser l'envoi de password non crypte lorsque + // l'auteur n'est pas (encore) declare dans SPIP, par exemple pour les cas + // de premiere authentification via SPIP a une autre application. + else if (defined('_AUTORISER_AUTH_FAIBLE') and _AUTORISER_AUTH_FAIBLE) { + $row = array(); + } + // generer de fausses infos, mais credibles, pour eviter une attaque + // http://core.spip.org/issues/1758 else { - // permettre d'autoriser l'envoi de password non crypte lorsque - // l'auteur n'est pas (encore) declare dans SPIP, par exemple pour les cas - // de premiere authentification via SPIP a une autre application. - if (defined('_AUTORISER_AUTH_FAIBLE') and _AUTORISER_AUTH_FAIBLE) { - $row = array(); - } - // piocher les infos sur un autre login - elseif ($n = sql_countsel('spip_auteurs',"login<>''")){ - $n = (abs(crc32($login))%$n); - $row = auth_informer_login(sql_getfetsel('login','spip_auteurs',"login<>''",'','',"$n,1")); - if ($row AND is_array($row)){ - unset($row['id_auteur']); - $row['login'] = $login; - } - } - else $row = array(); + include_spip('inc/securiser_action'); + $fauxalea1 = md5('fauxalea'.secret_du_site().$login.floor(date('U')/86400)); + $fauxalea2 = md5('fauxalea'.secret_du_site().$login.ceil(date('U')/86400)); + + $row = array('login' => $login, + 'cnx' => 0, + 'logo' => "", + 'alea_actuel' => substr_replace($fauxalea1,'.',24,0), + 'alea_futur' => substr_replace($fauxalea2,'.',24,0) + ); } return json_export($row); diff --git a/www/prive/javascript/ajaxCallback.js b/www/prive/javascript/ajaxCallback.js index 27bba46..118fc31 100644 --- a/www/prive/javascript/ajaxCallback.js +++ b/www/prive/javascript/ajaxCallback.js @@ -78,8 +78,11 @@ if(!jQuery.spip.load_handlers) { jQuery.ajax = function(type) { var s = jQuery.extend(true, {}, jQuery.ajaxSettings, type); var callbackContext = s.context || s; - if (jQuery.ajax.caller==jQuery.spip.intercepted.load || jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) - return jQuery.spip.intercepted.ajax(type); + try { + if (jQuery.ajax.caller==jQuery.spip.intercepted.load || jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) + return jQuery.spip.intercepted.ajax(type); + } + catch (err){} var orig_complete = s.complete || function() {}; type.complete = function(res,status) { // Do not fire OnAjaxLoad if the dataType is not html diff --git a/www/prive/javascript/login-sha-min.js b/www/prive/javascript/login-sha-min.js new file mode 100644 index 0000000..14738ff --- /dev/null +++ b/www/prive/javascript/login-sha-min.js @@ -0,0 +1,132 @@ +/** + * Fichiers sha256.js et login.js concaténés et minifiés + */ +var chrsz=8; +function safe_add(x,y){ +var lsw=(x&0xFFFF)+(y&0xFFFF); +var msw=(x>>16)+(y>>16)+(lsw>>16); +return(msw<<16)|(lsw&0xFFFF); +} +function S(X,n){return(X>>>n)|(X<<(32-n));} +function R(X,n){return(X>>>n);} +function Ch(x,y,z){return((x&y)^((~x)&z));} +function Maj(x,y,z){return((x&y)^(x&z)^(y&z));} +function Sigma0256(x){return(S(x,2)^S(x,13)^S(x,22));} +function Sigma1256(x){return(S(x,6)^S(x,11)^S(x,25));} +function Gamma0256(x){return(S(x,7)^S(x,18)^R(x,3));} +function Gamma1256(x){return(S(x,17)^S(x,19)^R(x,10));} +function core_sha256(m,l){ +var K=new Array(0x428A2F98,0x71374491,0xB5C0FBCF,0xE9B5DBA5,0x3956C25B,0x59F111F1,0x923F82A4,0xAB1C5ED5,0xD807AA98,0x12835B01,0x243185BE,0x550C7DC3,0x72BE5D74,0x80DEB1FE,0x9BDC06A7,0xC19BF174,0xE49B69C1,0xEFBE4786,0xFC19DC6,0x240CA1CC,0x2DE92C6F,0x4A7484AA,0x5CB0A9DC,0x76F988DA,0x983E5152,0xA831C66D,0xB00327C8,0xBF597FC7,0xC6E00BF3,0xD5A79147,0x6CA6351,0x14292967,0x27B70A85,0x2E1B2138,0x4D2C6DFC,0x53380D13,0x650A7354,0x766A0ABB,0x81C2C92E,0x92722C85,0xA2BFE8A1,0xA81A664B,0xC24B8B70,0xC76C51A3,0xD192E819,0xD6990624,0xF40E3585,0x106AA070,0x19A4C116,0x1E376C08,0x2748774C,0x34B0BCB5,0x391C0CB3,0x4ED8AA4A,0x5B9CCA4F,0x682E6FF3,0x748F82EE,0x78A5636F,0x84C87814,0x8CC70208,0x90BEFFFA,0xA4506CEB,0xBEF9A3F7,0xC67178F2); +var HASH=new Array(0x6A09E667,0xBB67AE85,0x3C6EF372,0xA54FF53A,0x510E527F,0x9B05688C,0x1F83D9AB,0x5BE0CD19); +var W=new Array(64); +var a,b,c,d,e,f,g,h,i,j; +var T1,T2; +m[l>>5]|=0x80<<(24-l%32); +m[((l+32>>9)<<4)+15]=l; +for(var i=0;i0x7F) +chrsz=16; +var mask=(1<>5]|=(str.charCodeAt(i/chrsz)&mask)<<(24-i%32); +return bin; +} +function binb2hex(binarray){ +var hexcase=0; +var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef"; +var str=""; +for(var i=0;i>2]>>((3-i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8))&0xF); +} +return str; +} +function hex_sha256(s){return binb2hex(core_sha256(str2binb(s),s.length*chrsz));} +function sha256_self_test(){ +return hex_sha256("message digest")=="f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650"; +} +function affiche_login_secure(){ +if(alea_actuel) +jQuery('#pass_securise').show(); +else +jQuery('#pass_securise').hide(); +} +function informe_auteur(c){ +informe_auteur_en_cours=false; +eval('c = '+c); +if(c){ +alea_actuel=c.alea_actuel; +alea_futur=c.alea_futur; +jQuery('input#session_remember:not(.modifie)') +.attr('checked',(c.cnx=='1')?'checked':''); +}else{ +alea_actuel=''; +} +if(c.logo) +jQuery('#spip_logo_auteur').html(c.logo); +else +jQuery('#spip_logo_auteur').html(''); +affiche_login_secure(); +} +function calcule_hash_pass(pass){ +if((alea_actuel||alea_futur) +&&!pass.match(/^\{([0-9a-f]{32});([0-9a-f]{32})\}$/i) +&&!pass.match(/^\{([0-9a-f]{64});([0-9a-f]{64});([0-9a-f]{32});([0-9a-f]{32})\}$/i) +&&sha256_self_test() +){ +var hash=""; +hash=hex_sha256(alea_actuel+pass); +hash=hash+';'+hex_sha256(alea_futur+pass); +if(window.calcMD5){ +hash=hash+';'+calcMD5(alea_actuel+pass); +hash=hash+';'+calcMD5(alea_futur+pass); +} +jQuery('input[name=password]').attr('value','{'+hash+'}'); +} +} +function actualise_auteur(){ +if(login!=jQuery('#var_login').attr('value')){ +informe_auteur_en_cours=true; +login=jQuery('#var_login').attr('value'); +var currentTime=new Date(); +jQuery.get(page_auteur,{var_login:login,var_compteur:currentTime.getTime()},informe_auteur); +} +} +function login_submit(){ +actualise_auteur(); +var inputpass=jQuery('input[name=password]'); +pass=inputpass.attr('value'); +if(pass){ +if(informe_auteur_en_cours&&(attente_informe<5)){ +attente_informe++; +jQuery('form#formulaire_login').animeajax().find('p.boutons input').before('.'); +setTimeout(function(){ +jQuery('form#formulaire_login').submit(); +},1000); +return false; +} +if(alea_actuel||alea_futur){ +inputpass.after('').attr('value',pass); +inputpass.attr('name','nothing').attr('value',''); +calcule_hash_pass(pass); +} +else if(informe_auteur_en_cours) +jQuery('input[name=password]').attr('value',''); +} +} \ No newline at end of file diff --git a/www/prive/spip_admin.css b/www/prive/spip_admin.css index 1bc4267..9105c2e 100644 --- a/www/prive/spip_admin.css +++ b/www/prive/spip_admin.css @@ -19,12 +19,11 @@ a:active.spip-admin-boutons, .spip-admin-boutons a:active { background-color: #333; opacity: 1; } /* Style pour le mode debug */ -#spip-debug-hide { background-color: #444; color:white; font-weight:bold;} -#spip-debug-hide a { text-decoration:none; color:white; padding:1px 1em; display:block;} +#spip-debug-toggle {position:absolute; top:4px; right:80px; width:24px;height:20px; cursor:pointer; z-index:1000;} #spip-debug, #spip-debug-header { background-color: #f0f0f0; font-family: Verdana, Geneva, sans-serif; position:absolute;top:30px;left:0;width:100%;height:100%;z-index:10000; font-size:1em; text-align:left; } #spip-debug ul table { font-size: 80%; } #spip-debug fieldset { background-color: #fff; font-family: Courier, "Courier New", monospace; font-size: 12px; margin-bottom: 1em; display: block; padding: .5em; } -#spip-debug fieldset fieldset { background-color: #ccf; font-family: Verdana, Geneva, sans-serif; font-size: 80%; width:100%; margin-left: auto; } +#spip-debug fieldset fieldset { background-color: #ccf; font-family: Verdana, Geneva, sans-serif; font-size: 80%; width:99%; margin-left: auto; } #spip-debug legend { background-color: #fff; border: solid 1px #f00; padding: 1px 1em; font-family: Verdana, Geneva, sans-serif; font-weight: bold; display: block; text-transform: none; } #spip-debug legend a { font-weight: normal; } #spip-debug fieldset fieldset legend { border: solid 1px #00F; font-weight: normal; } diff --git a/www/prive/spip_pass.html b/www/prive/spip_pass.html index ed318a8..ac9c55a 100644 --- a/www/prive/spip_pass.html +++ b/www/prive/spip_pass.html @@ -37,7 +37,7 @@ document.getElementById('oubli').focus() /*#EVAL{chr(93)}[(#EVAL{chr(93)})]>*/
  • diff --git a/www/prive/squelettes/contenu/configurer_multilang.html b/www/prive/squelettes/contenu/configurer_multilang.html deleted file mode 100644 index 7fce2f4..0000000 --- a/www/prive/squelettes/contenu/configurer_multilang.html +++ /dev/null @@ -1,5 +0,0 @@ -[(#AUTORISER{configurer,_multilang}|sinon_interdire_acces)] -

    <:info_langues:>

    -
    - #FORMULAIRE_CONFIGURER_MULTILINGUISME -
    \ No newline at end of file diff --git a/www/prive/squelettes/contenu/configurer_multilinguisme.html b/www/prive/squelettes/contenu/configurer_multilinguisme.html new file mode 100644 index 0000000..596f8b8 --- /dev/null +++ b/www/prive/squelettes/contenu/configurer_multilinguisme.html @@ -0,0 +1,5 @@ +[(#AUTORISER{configurer,_multilinguisme}|sinon_interdire_acces)] +

    <:info_langues:>

    +
    + #FORMULAIRE_CONFIGURER_MULTILINGUISME +
    \ No newline at end of file diff --git a/www/prive/squelettes/inclure/admin_vider_cache.html b/www/prive/squelettes/inclure/admin_vider_cache.html index 96190d8..d8b1a42 100644 --- a/www/prive/squelettes/inclure/admin_vider_cache.html +++ b/www/prive/squelettes/inclure/admin_vider_cache.html @@ -21,16 +21,16 @@ #SET{cache_inhib,#CONFIG{cache_inhib}|sinon{0}|>{#REM|time}|oui} [(#GET{cache_inhib}|oui) -
    Le cache est temporairement désactivé. +
    <:info_cache_desactive:>
    ] #BOITE_PIED [(#GET{cache_inhib}|non) - [(#BOUTON_ACTION{Désactiver temporairement le cache,#URL_ACTION_AUTEUR{purger,inhibe_cache,#SELF},ajax})] + [(#BOUTON_ACTION{<:bouton_cache_desactiver:>,#URL_ACTION_AUTEUR{purger,inhibe_cache,#SELF},ajax})] ] [(#GET{cache_inhib}|oui) - [(#BOUTON_ACTION{Réactiver le cache,#URL_ACTION_AUTEUR{purger,reactive_cache,#SELF},ajax})] + [(#BOUTON_ACTION{<:bouton_cache_activer:>,#URL_ACTION_AUTEUR{purger,reactive_cache,#SELF},ajax})] ] [(#BOUTON_ACTION{<:bouton_vider_cache:>,#URL_ACTION_AUTEUR{purger,cache,#SELF},ajax})] #BOITE_FERMER diff --git a/www/prive/squelettes/inclure/head.html b/www/prive/squelettes/inclure/head.html index eb75840..422f953 100644 --- a/www/prive/squelettes/inclure/head.html +++ b/www/prive/squelettes/inclure/head.html @@ -5,7 +5,7 @@ Appel au script php en attendant de reecrire le head ici ]