@@ -7,478 +7,478 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | $GLOBALS[$GLOBALS['idx_lang']] = array( |
| 9 | 9 | |
| 10 | - // 0 |
|
| 11 | - '0_URL' => 'http://listes.rezo.net/mailman/listinfo/spip-dev', |
|
| 12 | - '0_langue' => 'occitan (provençau) [oc_prv]', |
|
| 13 | - '0_liste' => '[email protected]', |
|
| 14 | - '0_mainteneur' => 'Domergue Sumien: [email protected]', |
|
| 10 | + // 0 |
|
| 11 | + '0_URL' => 'http://listes.rezo.net/mailman/listinfo/spip-dev', |
|
| 12 | + '0_langue' => 'occitan (provençau) [oc_prv]', |
|
| 13 | + '0_liste' => '[email protected]', |
|
| 14 | + '0_mainteneur' => 'Domergue Sumien: [email protected]', |
|
| 15 | 15 | |
| 16 | - // A |
|
| 17 | - 'access_interface_graphique' => 'Tornar a l’interfàcia grafica completa', |
|
| 18 | - 'access_mode_texte' => 'Afichar l’interfàcia textuala simplificada', |
|
| 19 | - 'admin_debug' => 'desbugatge', |
|
| 20 | - 'admin_modifier_article' => 'Modificar aquel article', |
|
| 21 | - 'admin_modifier_auteur' => 'Modificar aquel autor', |
|
| 22 | - 'admin_modifier_breve' => 'Modificar aquela brèva', |
|
| 23 | - 'admin_modifier_mot' => 'Modificar aqueu mot clau', |
|
| 24 | - 'admin_modifier_rubrique' => 'Modificar aquela rubrica', |
|
| 25 | - 'admin_recalculer' => 'Tornar calcular la pagina', |
|
| 26 | - 'alerte_maj_impossible' => '<b>Alèrta!</b> Es impossible d’actualizar la basa SQL vèrs la version @version@; benlèu i a un problèma relatiu au drech de modificar la basa de donadas. Vougatz contactar vòstre aubergador.', |
|
| 27 | - 'analyse_xml' => 'Analisi XML', |
|
| 28 | - 'articles_recents' => 'Leis articles mai recents', |
|
| 29 | - 'avis_archive_incorrect' => 'lo fichier archiu es pas un fichier SPIP', |
|
| 30 | - 'avis_archive_invalide' => 'lo fichier archiu es pas valid', |
|
| 31 | - 'avis_attention' => 'ATENCION!', |
|
| 32 | - 'avis_champ_incorrect_type_objet' => 'Nom de camp incorrècte @name@ per objècte de tipe @type@', |
|
| 33 | - 'avis_colonne_inexistante' => 'La colomna @col@ existís pas', |
|
| 34 | - 'avis_erreur' => 'Error: vejatz çai sota', |
|
| 35 | - 'avis_erreur_connexion' => 'Error de connexion', |
|
| 36 | - 'avis_erreur_cookie' => 'problèma de cookie', |
|
| 37 | - 'avis_erreur_fonction_contexte' => 'Error de programacion. Cau pas apelar aquela foncion dins aqueu contèxt.', |
|
| 38 | - 'avis_erreur_mysql' => 'Error SQL ', |
|
| 39 | - 'avis_erreur_sauvegarde' => 'Error dins la sauvagarda (@type@ @id_objet@)! ', |
|
| 16 | + // A |
|
| 17 | + 'access_interface_graphique' => 'Tornar a l’interfàcia grafica completa', |
|
| 18 | + 'access_mode_texte' => 'Afichar l’interfàcia textuala simplificada', |
|
| 19 | + 'admin_debug' => 'desbugatge', |
|
| 20 | + 'admin_modifier_article' => 'Modificar aquel article', |
|
| 21 | + 'admin_modifier_auteur' => 'Modificar aquel autor', |
|
| 22 | + 'admin_modifier_breve' => 'Modificar aquela brèva', |
|
| 23 | + 'admin_modifier_mot' => 'Modificar aqueu mot clau', |
|
| 24 | + 'admin_modifier_rubrique' => 'Modificar aquela rubrica', |
|
| 25 | + 'admin_recalculer' => 'Tornar calcular la pagina', |
|
| 26 | + 'alerte_maj_impossible' => '<b>Alèrta!</b> Es impossible d’actualizar la basa SQL vèrs la version @version@; benlèu i a un problèma relatiu au drech de modificar la basa de donadas. Vougatz contactar vòstre aubergador.', |
|
| 27 | + 'analyse_xml' => 'Analisi XML', |
|
| 28 | + 'articles_recents' => 'Leis articles mai recents', |
|
| 29 | + 'avis_archive_incorrect' => 'lo fichier archiu es pas un fichier SPIP', |
|
| 30 | + 'avis_archive_invalide' => 'lo fichier archiu es pas valid', |
|
| 31 | + 'avis_attention' => 'ATENCION!', |
|
| 32 | + 'avis_champ_incorrect_type_objet' => 'Nom de camp incorrècte @name@ per objècte de tipe @type@', |
|
| 33 | + 'avis_colonne_inexistante' => 'La colomna @col@ existís pas', |
|
| 34 | + 'avis_erreur' => 'Error: vejatz çai sota', |
|
| 35 | + 'avis_erreur_connexion' => 'Error de connexion', |
|
| 36 | + 'avis_erreur_cookie' => 'problèma de cookie', |
|
| 37 | + 'avis_erreur_fonction_contexte' => 'Error de programacion. Cau pas apelar aquela foncion dins aqueu contèxt.', |
|
| 38 | + 'avis_erreur_mysql' => 'Error SQL ', |
|
| 39 | + 'avis_erreur_sauvegarde' => 'Error dins la sauvagarda (@type@ @id_objet@)! ', |
|
| 40 | 40 | |
| 41 | - // B |
|
| 42 | - 'barre_a_accent_grave' => 'Inserir una A accent grèu majuscula', |
|
| 43 | - 'barre_aide' => 'Utilizar leis acorchas tipograficas per enriquir vòstra compaginacion', |
|
| 44 | - 'barre_e_accent_aigu' => 'Inserir una E accent agut majuscula', |
|
| 45 | - 'barre_eo' => 'Inserir una E dins l’O', |
|
| 46 | - 'barre_eo_maj' => 'Inserir una E dins l’O majuscula', |
|
| 47 | - 'barre_euro' => 'Inserir lo simbèu de l’èuro: €', |
|
| 48 | - 'barre_gras' => 'Metre en {{gras}}', |
|
| 49 | - 'barre_guillemets' => 'Enrodar amb de « verguetas »', |
|
| 50 | - 'barre_guillemets_simples' => 'Enrodar amb de „verguetas“', |
|
| 51 | - 'barre_intertitre' => 'Transformar en {{{intertítol}}}', |
|
| 52 | - 'barre_italic' => 'Metre en {italics}', |
|
| 53 | - 'barre_lien' => 'Transformar en [liame ipertèxt->http://...]', |
|
| 54 | - 'barre_lien_input' => 'Vougatz indicar l’adreiça de vòstre liame (podètz indicar una adreiça web sota la forma http://www.lomieusit.com o simplament indicar lo numèro d’un article d’aqueu sit).', |
|
| 55 | - 'barre_note' => 'Transformar en [[Nòta de pè]]', |
|
| 56 | - 'barre_quote' => '<quote>Citar un messatge</quote>', |
|
| 57 | - 'bouton_changer' => 'Cambiar', |
|
| 58 | - 'bouton_chercher' => 'Cercar', |
|
| 59 | - 'bouton_choisir' => 'Chausir', |
|
| 60 | - 'bouton_enregistrer' => 'Registrar', |
|
| 61 | - 'bouton_radio_desactiver_messagerie_interne' => 'Desactivar la messatjariá intèrna', |
|
| 62 | - 'bouton_radio_envoi_annonces' => 'Mandar leis anoncis editoriaus', |
|
| 63 | - 'bouton_radio_non_envoi_annonces' => 'Pas mandar d’anoncis', |
|
| 64 | - 'bouton_radio_non_envoi_liste_nouveautes' => 'Pas mandar la tiera dei novetats', |
|
| 65 | - 'bouton_recharger_page' => 'tornar cargar aquela pagina', |
|
| 66 | - 'bouton_telecharger' => 'Telecargar', |
|
| 67 | - 'bouton_upload' => 'Telecargar', # MODIF |
|
| 68 | - 'bouton_valider' => 'Validar', |
|
| 41 | + // B |
|
| 42 | + 'barre_a_accent_grave' => 'Inserir una A accent grèu majuscula', |
|
| 43 | + 'barre_aide' => 'Utilizar leis acorchas tipograficas per enriquir vòstra compaginacion', |
|
| 44 | + 'barre_e_accent_aigu' => 'Inserir una E accent agut majuscula', |
|
| 45 | + 'barre_eo' => 'Inserir una E dins l’O', |
|
| 46 | + 'barre_eo_maj' => 'Inserir una E dins l’O majuscula', |
|
| 47 | + 'barre_euro' => 'Inserir lo simbèu de l’èuro: €', |
|
| 48 | + 'barre_gras' => 'Metre en {{gras}}', |
|
| 49 | + 'barre_guillemets' => 'Enrodar amb de « verguetas »', |
|
| 50 | + 'barre_guillemets_simples' => 'Enrodar amb de „verguetas“', |
|
| 51 | + 'barre_intertitre' => 'Transformar en {{{intertítol}}}', |
|
| 52 | + 'barre_italic' => 'Metre en {italics}', |
|
| 53 | + 'barre_lien' => 'Transformar en [liame ipertèxt->http://...]', |
|
| 54 | + 'barre_lien_input' => 'Vougatz indicar l’adreiça de vòstre liame (podètz indicar una adreiça web sota la forma http://www.lomieusit.com o simplament indicar lo numèro d’un article d’aqueu sit).', |
|
| 55 | + 'barre_note' => 'Transformar en [[Nòta de pè]]', |
|
| 56 | + 'barre_quote' => '<quote>Citar un messatge</quote>', |
|
| 57 | + 'bouton_changer' => 'Cambiar', |
|
| 58 | + 'bouton_chercher' => 'Cercar', |
|
| 59 | + 'bouton_choisir' => 'Chausir', |
|
| 60 | + 'bouton_enregistrer' => 'Registrar', |
|
| 61 | + 'bouton_radio_desactiver_messagerie_interne' => 'Desactivar la messatjariá intèrna', |
|
| 62 | + 'bouton_radio_envoi_annonces' => 'Mandar leis anoncis editoriaus', |
|
| 63 | + 'bouton_radio_non_envoi_annonces' => 'Pas mandar d’anoncis', |
|
| 64 | + 'bouton_radio_non_envoi_liste_nouveautes' => 'Pas mandar la tiera dei novetats', |
|
| 65 | + 'bouton_recharger_page' => 'tornar cargar aquela pagina', |
|
| 66 | + 'bouton_telecharger' => 'Telecargar', |
|
| 67 | + 'bouton_upload' => 'Telecargar', # MODIF |
|
| 68 | + 'bouton_valider' => 'Validar', |
|
| 69 | 69 | |
| 70 | - // C |
|
| 71 | - 'cal_apresmidi' => 'tantòst', |
|
| 72 | - 'cal_jour_entier' => 'jorn entier', |
|
| 73 | - 'cal_matin' => 'matin', |
|
| 74 | - 'cal_par_jour' => 'calendier per jorn', |
|
| 75 | - 'cal_par_mois' => 'calendier per mes', |
|
| 76 | - 'cal_par_semaine' => 'calendier per setmana', |
|
| 77 | - 'confirm_changer_statut' => 'Atencion, avètz demandat de cambiar l’estatut d’aquel element. Desiratz de contunhar? ', |
|
| 70 | + // C |
|
| 71 | + 'cal_apresmidi' => 'tantòst', |
|
| 72 | + 'cal_jour_entier' => 'jorn entier', |
|
| 73 | + 'cal_matin' => 'matin', |
|
| 74 | + 'cal_par_jour' => 'calendier per jorn', |
|
| 75 | + 'cal_par_mois' => 'calendier per mes', |
|
| 76 | + 'cal_par_semaine' => 'calendier per setmana', |
|
| 77 | + 'confirm_changer_statut' => 'Atencion, avètz demandat de cambiar l’estatut d’aquel element. Desiratz de contunhar? ', |
|
| 78 | 78 | |
| 79 | - // D |
|
| 80 | - 'date_aujourdhui' => 'uei', |
|
| 81 | - 'date_avant_jc' => 'avans lo Crist', |
|
| 82 | - 'date_dans' => 'd’aquí @delai@', |
|
| 83 | - 'date_de_mois_1' => '@j@ de genier', |
|
| 84 | - 'date_de_mois_10' => '@j@ d’octòbre', |
|
| 85 | - 'date_de_mois_11' => '@j@ de novembre', |
|
| 86 | - 'date_de_mois_12' => '@j@ de decembre', |
|
| 87 | - 'date_de_mois_2' => '@j@ de febrier', |
|
| 88 | - 'date_de_mois_3' => '@j@ de març', |
|
| 89 | - 'date_de_mois_4' => '@j@ d’abriu', |
|
| 90 | - 'date_de_mois_5' => '@j@ de mai', |
|
| 91 | - 'date_de_mois_6' => '@j@ de junh', |
|
| 92 | - 'date_de_mois_7' => '@j@ de julh', |
|
| 93 | - 'date_de_mois_8' => '@j@ d’aost', |
|
| 94 | - 'date_de_mois_9' => '@j@ de setembre', |
|
| 95 | - 'date_demain' => 'deman', |
|
| 96 | - 'date_fmt_heures_minutes' => '@h@h@m@min', |
|
| 97 | - 'date_fmt_jour_heure' => '@jour@ a @heure@', |
|
| 98 | - 'date_fmt_jour_mois' => '@jourmois@', |
|
| 99 | - 'date_fmt_jour_mois_annee' => '@jourmois@ de @annee@', |
|
| 100 | - 'date_fmt_mois_annee' => '@nommois@ de @annee@', |
|
| 101 | - 'date_fmt_nomjour_date' => 'lo @nomjour@ @date@', |
|
| 102 | - 'date_heures' => 'oras', |
|
| 103 | - 'date_hier' => 'ièr', |
|
| 104 | - 'date_il_y_a' => 'fa @delai@', |
|
| 105 | - 'date_jnum1' => '1r', |
|
| 106 | - 'date_jnum10' => '10', |
|
| 107 | - 'date_jnum11' => '11', |
|
| 108 | - 'date_jnum12' => '12', |
|
| 109 | - 'date_jnum13' => '13', |
|
| 110 | - 'date_jnum14' => '14', |
|
| 111 | - 'date_jnum15' => '15', |
|
| 112 | - 'date_jnum16' => '16', |
|
| 113 | - 'date_jnum17' => '17', |
|
| 114 | - 'date_jnum18' => '18', |
|
| 115 | - 'date_jnum19' => '19', |
|
| 116 | - 'date_jnum2' => '2', |
|
| 117 | - 'date_jnum20' => '20', |
|
| 118 | - 'date_jnum21' => '21', |
|
| 119 | - 'date_jnum22' => '22', |
|
| 120 | - 'date_jnum23' => '23', |
|
| 121 | - 'date_jnum24' => '24', |
|
| 122 | - 'date_jnum25' => '25', |
|
| 123 | - 'date_jnum26' => '26', |
|
| 124 | - 'date_jnum27' => '27', |
|
| 125 | - 'date_jnum28' => '28', |
|
| 126 | - 'date_jnum29' => '29', |
|
| 127 | - 'date_jnum3' => '3', |
|
| 128 | - 'date_jnum30' => '30', |
|
| 129 | - 'date_jnum31' => '31', |
|
| 130 | - 'date_jnum4' => '4', |
|
| 131 | - 'date_jnum5' => '5', |
|
| 132 | - 'date_jnum6' => '6', |
|
| 133 | - 'date_jnum7' => '7', |
|
| 134 | - 'date_jnum8' => '8', |
|
| 135 | - 'date_jnum9' => '9', |
|
| 136 | - 'date_jour_1' => 'dimenge', |
|
| 137 | - 'date_jour_2' => 'diluns', |
|
| 138 | - 'date_jour_3' => 'dimars', |
|
| 139 | - 'date_jour_4' => 'dimècres', |
|
| 140 | - 'date_jour_5' => 'dijòus', |
|
| 141 | - 'date_jour_6' => 'divendres', |
|
| 142 | - 'date_jour_7' => 'dissabte', |
|
| 143 | - 'date_jours' => 'jorns', |
|
| 144 | - 'date_minutes' => 'minutas', |
|
| 145 | - 'date_mois' => 'mes', |
|
| 146 | - 'date_mois_1' => 'genier', |
|
| 147 | - 'date_mois_10' => 'octòbre', |
|
| 148 | - 'date_mois_11' => 'novembre', |
|
| 149 | - 'date_mois_12' => 'decembre', |
|
| 150 | - 'date_mois_2' => 'febrier', |
|
| 151 | - 'date_mois_3' => 'març', |
|
| 152 | - 'date_mois_4' => 'abriu', |
|
| 153 | - 'date_mois_5' => 'mai', |
|
| 154 | - 'date_mois_6' => 'junh', |
|
| 155 | - 'date_mois_7' => 'julh', |
|
| 156 | - 'date_mois_8' => 'aost', |
|
| 157 | - 'date_mois_9' => 'setembre', |
|
| 158 | - 'date_saison_1' => 'ivèrn', |
|
| 159 | - 'date_saison_2' => 'prima', |
|
| 160 | - 'date_saison_3' => 'estiu', |
|
| 161 | - 'date_saison_4' => 'auton', |
|
| 162 | - 'date_semaines' => 'setmana(s)', |
|
| 163 | - 'dirs_commencer' => 'per començar vertadierament l’installacion', |
|
| 164 | - 'dirs_preliminaire' => 'Preliminar: <b>Reglar lei drechs d’accès</b>', |
|
| 165 | - 'dirs_probleme_droits' => 'Problèma de drechs d’accès', |
|
| 166 | - 'dirs_repertoires_absents' => '<b>S’es pas trobat lei repertòris seguents: <ul>@bad_dirs@.</ul> </b> |
|
| 79 | + // D |
|
| 80 | + 'date_aujourdhui' => 'uei', |
|
| 81 | + 'date_avant_jc' => 'avans lo Crist', |
|
| 82 | + 'date_dans' => 'd’aquí @delai@', |
|
| 83 | + 'date_de_mois_1' => '@j@ de genier', |
|
| 84 | + 'date_de_mois_10' => '@j@ d’octòbre', |
|
| 85 | + 'date_de_mois_11' => '@j@ de novembre', |
|
| 86 | + 'date_de_mois_12' => '@j@ de decembre', |
|
| 87 | + 'date_de_mois_2' => '@j@ de febrier', |
|
| 88 | + 'date_de_mois_3' => '@j@ de març', |
|
| 89 | + 'date_de_mois_4' => '@j@ d’abriu', |
|
| 90 | + 'date_de_mois_5' => '@j@ de mai', |
|
| 91 | + 'date_de_mois_6' => '@j@ de junh', |
|
| 92 | + 'date_de_mois_7' => '@j@ de julh', |
|
| 93 | + 'date_de_mois_8' => '@j@ d’aost', |
|
| 94 | + 'date_de_mois_9' => '@j@ de setembre', |
|
| 95 | + 'date_demain' => 'deman', |
|
| 96 | + 'date_fmt_heures_minutes' => '@h@h@m@min', |
|
| 97 | + 'date_fmt_jour_heure' => '@jour@ a @heure@', |
|
| 98 | + 'date_fmt_jour_mois' => '@jourmois@', |
|
| 99 | + 'date_fmt_jour_mois_annee' => '@jourmois@ de @annee@', |
|
| 100 | + 'date_fmt_mois_annee' => '@nommois@ de @annee@', |
|
| 101 | + 'date_fmt_nomjour_date' => 'lo @nomjour@ @date@', |
|
| 102 | + 'date_heures' => 'oras', |
|
| 103 | + 'date_hier' => 'ièr', |
|
| 104 | + 'date_il_y_a' => 'fa @delai@', |
|
| 105 | + 'date_jnum1' => '1r', |
|
| 106 | + 'date_jnum10' => '10', |
|
| 107 | + 'date_jnum11' => '11', |
|
| 108 | + 'date_jnum12' => '12', |
|
| 109 | + 'date_jnum13' => '13', |
|
| 110 | + 'date_jnum14' => '14', |
|
| 111 | + 'date_jnum15' => '15', |
|
| 112 | + 'date_jnum16' => '16', |
|
| 113 | + 'date_jnum17' => '17', |
|
| 114 | + 'date_jnum18' => '18', |
|
| 115 | + 'date_jnum19' => '19', |
|
| 116 | + 'date_jnum2' => '2', |
|
| 117 | + 'date_jnum20' => '20', |
|
| 118 | + 'date_jnum21' => '21', |
|
| 119 | + 'date_jnum22' => '22', |
|
| 120 | + 'date_jnum23' => '23', |
|
| 121 | + 'date_jnum24' => '24', |
|
| 122 | + 'date_jnum25' => '25', |
|
| 123 | + 'date_jnum26' => '26', |
|
| 124 | + 'date_jnum27' => '27', |
|
| 125 | + 'date_jnum28' => '28', |
|
| 126 | + 'date_jnum29' => '29', |
|
| 127 | + 'date_jnum3' => '3', |
|
| 128 | + 'date_jnum30' => '30', |
|
| 129 | + 'date_jnum31' => '31', |
|
| 130 | + 'date_jnum4' => '4', |
|
| 131 | + 'date_jnum5' => '5', |
|
| 132 | + 'date_jnum6' => '6', |
|
| 133 | + 'date_jnum7' => '7', |
|
| 134 | + 'date_jnum8' => '8', |
|
| 135 | + 'date_jnum9' => '9', |
|
| 136 | + 'date_jour_1' => 'dimenge', |
|
| 137 | + 'date_jour_2' => 'diluns', |
|
| 138 | + 'date_jour_3' => 'dimars', |
|
| 139 | + 'date_jour_4' => 'dimècres', |
|
| 140 | + 'date_jour_5' => 'dijòus', |
|
| 141 | + 'date_jour_6' => 'divendres', |
|
| 142 | + 'date_jour_7' => 'dissabte', |
|
| 143 | + 'date_jours' => 'jorns', |
|
| 144 | + 'date_minutes' => 'minutas', |
|
| 145 | + 'date_mois' => 'mes', |
|
| 146 | + 'date_mois_1' => 'genier', |
|
| 147 | + 'date_mois_10' => 'octòbre', |
|
| 148 | + 'date_mois_11' => 'novembre', |
|
| 149 | + 'date_mois_12' => 'decembre', |
|
| 150 | + 'date_mois_2' => 'febrier', |
|
| 151 | + 'date_mois_3' => 'març', |
|
| 152 | + 'date_mois_4' => 'abriu', |
|
| 153 | + 'date_mois_5' => 'mai', |
|
| 154 | + 'date_mois_6' => 'junh', |
|
| 155 | + 'date_mois_7' => 'julh', |
|
| 156 | + 'date_mois_8' => 'aost', |
|
| 157 | + 'date_mois_9' => 'setembre', |
|
| 158 | + 'date_saison_1' => 'ivèrn', |
|
| 159 | + 'date_saison_2' => 'prima', |
|
| 160 | + 'date_saison_3' => 'estiu', |
|
| 161 | + 'date_saison_4' => 'auton', |
|
| 162 | + 'date_semaines' => 'setmana(s)', |
|
| 163 | + 'dirs_commencer' => 'per començar vertadierament l’installacion', |
|
| 164 | + 'dirs_preliminaire' => 'Preliminar: <b>Reglar lei drechs d’accès</b>', |
|
| 165 | + 'dirs_probleme_droits' => 'Problèma de drechs d’accès', |
|
| 166 | + 'dirs_repertoires_absents' => '<b>S’es pas trobat lei repertòris seguents: <ul>@bad_dirs@.</ul> </b> |
|
| 167 | 167 | <p>Se pòt que venga d’un problèma de majusculas o minusculas mau mesas. |
| 168 | 168 | Verificatz que lei minusculas e majusculas d’aquelei repertòris correspòndan ben amb çò afichat |
| 169 | 169 | çai subre; s’es pas lo cas, tornatz nommar lei repertòris amb vòstre logiciau FTP en corregissent l’error. |
| 170 | 170 | <p>Un còp qu’auretz fach aquò, poiretz ', |
| 171 | - 'dirs_repertoires_suivants' => '<b>Lei repertòris seguents son pas accessibles en escritura: <ul>@bad_dirs@.</ul> </b> |
|
| 171 | + 'dirs_repertoires_suivants' => '<b>Lei repertòris seguents son pas accessibles en escritura: <ul>@bad_dirs@.</ul> </b> |
|
| 172 | 172 | <p>Per adobar aquò, utilizatz vòstre client FTP per fin de reglar lei drechs d’accès de cadun |
| 173 | 173 | d’aquelei repertòris. La guida d’installacion explica en detalh coma cau procedir. |
| 174 | 174 | </p><p>Tre qu’auretz facha aquela manipulacion, poiretz </p>', |
| 175 | 175 | |
| 176 | - // E |
|
| 177 | - 'envoi_via_le_site' => 'Mandadís amb lo biais dau sit web', |
|
| 176 | + // E |
|
| 177 | + 'envoi_via_le_site' => 'Mandadís amb lo biais dau sit web', |
|
| 178 | 178 | |
| 179 | - // F |
|
| 180 | - 'fichier_introuvable' => 'S’es pas pogut trobar lo fichier @fichier@.', |
|
| 181 | - 'form_deja_inscrit' => 'Siatz ja inscrich(a).', |
|
| 182 | - 'form_email_non_valide' => 'Vòstra adreiça e-mail es pas valida.', |
|
| 183 | - 'form_forum_access_refuse' => 'Podètz pus accedir a aqueu sit.', |
|
| 184 | - 'form_forum_bonjour' => 'Bonjorn @nom@,', |
|
| 185 | - 'form_forum_email_deja_enregistre' => 'Aquela adreiça e-mail ja es registrada, adoncas podètz utilizar vòstre mot de santa Clara costumier.', |
|
| 186 | - 'form_forum_identifiant_mail' => 'Vos avèm mandat vòstre identificant novèu per e-mail.', |
|
| 187 | - 'form_forum_identifiants' => 'Identificants personaus', |
|
| 188 | - 'form_forum_indiquer_nom_email' => 'Indicatz aquí vòstre nom e vòstra adreiça e-mail. Vòstre identificant personau arribarà lèu-lèu, per e-mail.', |
|
| 189 | - 'form_forum_login' => 'login:', |
|
| 190 | - 'form_forum_message_auto' => '(aquò’s un messatge automatic)', |
|
| 191 | - 'form_forum_pass' => 'mot de santa Clara:', |
|
| 192 | - 'form_forum_probleme_mail' => 'Problèma d’e-mail: se pòt pas mandar l’identificant.', |
|
| 193 | - 'form_forum_voici1' => 'Vaicí vòstreis identificants per poder participar ai forums |
|
| 179 | + // F |
|
| 180 | + 'fichier_introuvable' => 'S’es pas pogut trobar lo fichier @fichier@.', |
|
| 181 | + 'form_deja_inscrit' => 'Siatz ja inscrich(a).', |
|
| 182 | + 'form_email_non_valide' => 'Vòstra adreiça e-mail es pas valida.', |
|
| 183 | + 'form_forum_access_refuse' => 'Podètz pus accedir a aqueu sit.', |
|
| 184 | + 'form_forum_bonjour' => 'Bonjorn @nom@,', |
|
| 185 | + 'form_forum_email_deja_enregistre' => 'Aquela adreiça e-mail ja es registrada, adoncas podètz utilizar vòstre mot de santa Clara costumier.', |
|
| 186 | + 'form_forum_identifiant_mail' => 'Vos avèm mandat vòstre identificant novèu per e-mail.', |
|
| 187 | + 'form_forum_identifiants' => 'Identificants personaus', |
|
| 188 | + 'form_forum_indiquer_nom_email' => 'Indicatz aquí vòstre nom e vòstra adreiça e-mail. Vòstre identificant personau arribarà lèu-lèu, per e-mail.', |
|
| 189 | + 'form_forum_login' => 'login:', |
|
| 190 | + 'form_forum_message_auto' => '(aquò’s un messatge automatic)', |
|
| 191 | + 'form_forum_pass' => 'mot de santa Clara:', |
|
| 192 | + 'form_forum_probleme_mail' => 'Problèma d’e-mail: se pòt pas mandar l’identificant.', |
|
| 193 | + 'form_forum_voici1' => 'Vaicí vòstreis identificants per poder participar ai forums |
|
| 194 | 194 | dau sit "@nom_site_spip@" (@adresse_site@):', |
| 195 | - 'form_forum_voici2' => 'Vaquí vòstreis identificants per prepausar d’articles |
|
| 195 | + 'form_forum_voici2' => 'Vaquí vòstreis identificants per prepausar d’articles |
|
| 196 | 196 | sus lo sit "@nom_site_spip@" (@adresse_login@):', |
| 197 | - 'form_indiquer_email' => 'Vougatz indicar vòstra adreiça e-mail.', |
|
| 198 | - 'form_indiquer_nom' => 'Vougatz indicar vòstre nom.', |
|
| 199 | - 'form_indiquer_nom_site' => 'Vougatz indicar lo nom de vòstre sit.', |
|
| 200 | - 'form_pet_deja_enregistre' => 'Ja aqueu sit es registrat', |
|
| 201 | - 'form_pet_signature_pasprise' => 'Vòstra signatura es pas presa en còmpte.', |
|
| 202 | - 'form_prop_confirmer_envoi' => 'Confirmar lo mandadís', |
|
| 203 | - 'form_prop_description' => 'Descripcion/comentari', |
|
| 204 | - 'form_prop_enregistre' => 'Vòstra proposicion es ben registrada, apareisserà en linha tre que lei responsables dau sit l’auràn validada.', |
|
| 205 | - 'form_prop_envoyer' => 'Mandar un messatge', |
|
| 206 | - 'form_prop_indiquer_email' => 'Vougatz indicar una adreiça e-mail valida', |
|
| 207 | - 'form_prop_indiquer_nom_site' => 'Vougatz indicar lo nom dau sit.', |
|
| 208 | - 'form_prop_indiquer_sujet' => 'Vougatz indicar un subjècte', |
|
| 209 | - 'form_prop_message_envoye' => 'Messatge mandat', |
|
| 210 | - 'form_prop_non_enregistre' => 'Vòstra proposicion es pas estada registrada.', |
|
| 211 | - 'form_prop_sujet' => 'Subjècte', |
|
| 212 | - 'form_prop_url_site' => 'Adreiça (URL) dau sit', # MODIF |
|
| 213 | - 'forum_non_inscrit' => 'Siá siatz pas inscrich(a), siá avètz fach una error d’adreiça o de mot de santa Clara. ', |
|
| 214 | - 'forum_par_auteur' => 'per @auteur@', |
|
| 215 | - 'forum_titre_erreur' => 'Error...', |
|
| 197 | + 'form_indiquer_email' => 'Vougatz indicar vòstra adreiça e-mail.', |
|
| 198 | + 'form_indiquer_nom' => 'Vougatz indicar vòstre nom.', |
|
| 199 | + 'form_indiquer_nom_site' => 'Vougatz indicar lo nom de vòstre sit.', |
|
| 200 | + 'form_pet_deja_enregistre' => 'Ja aqueu sit es registrat', |
|
| 201 | + 'form_pet_signature_pasprise' => 'Vòstra signatura es pas presa en còmpte.', |
|
| 202 | + 'form_prop_confirmer_envoi' => 'Confirmar lo mandadís', |
|
| 203 | + 'form_prop_description' => 'Descripcion/comentari', |
|
| 204 | + 'form_prop_enregistre' => 'Vòstra proposicion es ben registrada, apareisserà en linha tre que lei responsables dau sit l’auràn validada.', |
|
| 205 | + 'form_prop_envoyer' => 'Mandar un messatge', |
|
| 206 | + 'form_prop_indiquer_email' => 'Vougatz indicar una adreiça e-mail valida', |
|
| 207 | + 'form_prop_indiquer_nom_site' => 'Vougatz indicar lo nom dau sit.', |
|
| 208 | + 'form_prop_indiquer_sujet' => 'Vougatz indicar un subjècte', |
|
| 209 | + 'form_prop_message_envoye' => 'Messatge mandat', |
|
| 210 | + 'form_prop_non_enregistre' => 'Vòstra proposicion es pas estada registrada.', |
|
| 211 | + 'form_prop_sujet' => 'Subjècte', |
|
| 212 | + 'form_prop_url_site' => 'Adreiça (URL) dau sit', # MODIF |
|
| 213 | + 'forum_non_inscrit' => 'Siá siatz pas inscrich(a), siá avètz fach una error d’adreiça o de mot de santa Clara. ', |
|
| 214 | + 'forum_par_auteur' => 'per @auteur@', |
|
| 215 | + 'forum_titre_erreur' => 'Error...', |
|
| 216 | 216 | |
| 217 | - // I |
|
| 218 | - 'ical_texte_rss_articles' => 'Lo fichier "backend" deis articles d’aquest sit se tròba a l’adreiça:', |
|
| 219 | - 'ical_texte_rss_articles2' => 'Atanben podètz obtenir de fichiers "backend" per leis articles de cada rubrica dau sit:', |
|
| 220 | - 'ical_texte_rss_breves' => 'Existisson mai d’un fichier contenent lei brèvas dau sit. En precisant un numèro de rubrica, obtendretz ren que lei brèvas de la rubrica aquela.', |
|
| 221 | - 'icone_a_suivre' => 'De seguir', |
|
| 222 | - 'icone_admin_site' => 'Administracion dau sit', |
|
| 223 | - 'icone_agenda' => 'Agenda', |
|
| 224 | - 'icone_aide_ligne' => 'Ajuda', |
|
| 225 | - 'icone_articles' => 'Articles', |
|
| 226 | - 'icone_auteurs' => 'Autors', |
|
| 227 | - 'icone_brouteur' => 'Navigacion rapida', |
|
| 228 | - 'icone_configuration_site' => 'Configuracion', |
|
| 229 | - 'icone_configurer_site' => 'Configurar vòstre sit', |
|
| 230 | - 'icone_creer_nouvel_auteur' => 'Crear un autor nòu ', |
|
| 231 | - 'icone_creer_rubrique' => 'Crear una rubrica', |
|
| 232 | - 'icone_creer_sous_rubrique' => 'Crear una sosrubrica', |
|
| 233 | - 'icone_deconnecter' => 'Se desconnectar', |
|
| 234 | - 'icone_discussions' => 'Discussions', |
|
| 235 | - 'icone_doc_rubrique' => 'Documents dei rubricas', |
|
| 236 | - 'icone_ecrire_article' => 'Escriure un article nòu', |
|
| 237 | - 'icone_edition_site' => 'Edicion', |
|
| 238 | - 'icone_gestion_langues' => 'Gestion dei lengas', |
|
| 239 | - 'icone_informations_personnelles' => 'Informacions personalas', |
|
| 240 | - 'icone_interface_complet' => 'Interfàcia completa', |
|
| 241 | - 'icone_interface_simple' => 'Interfàcia simplificada', |
|
| 242 | - 'icone_maintenance_site' => 'Mantenença dau sit', |
|
| 243 | - 'icone_messagerie_personnelle' => 'Messatjariá personala', |
|
| 244 | - 'icone_repartition_debut' => 'Afichar la reparticion dempuei la començança', |
|
| 245 | - 'icone_rubriques' => 'Rubricas', |
|
| 246 | - 'icone_sauver_site' => 'Sauvagarda dau sit', |
|
| 247 | - 'icone_site_entier' => 'Tot lo sit ', |
|
| 248 | - 'icone_sites_references' => 'Sits referenciats', |
|
| 249 | - 'icone_statistiques' => 'Estadisticas dau sit', |
|
| 250 | - 'icone_suivi_activite' => 'Seguir la vida dau sit', |
|
| 251 | - 'icone_suivi_actualite' => 'Evolucion dau sit', |
|
| 252 | - 'icone_suivi_pettions' => 'Seguir/gerir lei peticions', |
|
| 253 | - 'icone_suivi_revisions' => 'Modificacions deis articles', |
|
| 254 | - 'icone_supprimer_document' => 'Suprimir aqueu document', |
|
| 255 | - 'icone_supprimer_image' => 'Suprimir aquel imatge', |
|
| 256 | - 'icone_tous_articles' => 'Totei vòstreis articles ', |
|
| 257 | - 'icone_tous_auteur' => 'Totei leis autors ', |
|
| 258 | - 'icone_visiter_site' => 'Vesitar', # MODIF |
|
| 259 | - 'icone_voir_en_ligne' => 'Veire en linha', |
|
| 260 | - 'img_indisponible' => 'imatge indisponible', |
|
| 261 | - 'impossible' => 'impossible', |
|
| 262 | - 'info_a_suivre' => 'DE SEGUIR>>', |
|
| 263 | - 'info_acces_interdit' => 'Accès proïbit', |
|
| 264 | - 'info_acces_refuse' => 'Accès refusat', |
|
| 265 | - 'info_action' => 'Accion: @action@', |
|
| 266 | - 'info_administrer_rubriques' => 'Podètz administrar aquela rubrica e sei sosrubricas', |
|
| 267 | - 'info_adresse_non_indiquee' => 'Avètz pas indicat l’adreiça de testar!', |
|
| 268 | - 'info_aide' => 'AJUDA:', |
|
| 269 | - 'info_ajouter_mot' => 'Apondre aqueu mot', |
|
| 270 | - 'info_annonce' => 'ANONCI', |
|
| 271 | - 'info_annonces_generales' => 'Anoncis generaus:', |
|
| 272 | - 'info_article_propose' => 'Article prepausat', |
|
| 273 | - 'info_article_publie' => 'Article publicat', |
|
| 274 | - 'info_article_redaction' => 'Article en cors de redaccion', |
|
| 275 | - 'info_article_refuse' => 'Article refusat', |
|
| 276 | - 'info_article_supprime' => 'Article suprimit', |
|
| 277 | - 'info_articles' => 'Articles', |
|
| 278 | - 'info_articles_a_valider' => 'Los articles de validar', |
|
| 279 | - 'info_articles_proposes' => 'Articles prepausats', |
|
| 280 | - 'info_auteurs_nombre' => 'autor(s)', |
|
| 281 | - 'info_authentification_ftp' => 'autentificacion (per FTP).', |
|
| 282 | - 'info_breves_2' => 'brèvas', |
|
| 283 | - 'info_connexion_refusee' => 'Connexion refusada', |
|
| 284 | - 'info_contact_developpeur' => 'Vougatz contactar un desvolopaire.', |
|
| 285 | - 'info_contenance' => 'Aqueu sit conten:', |
|
| 286 | - 'info_contribution' => 'Contribucions de forum', # MODIF |
|
| 287 | - 'info_copyright' => '@spip@ es un logiciau liure distribuit @lien_gpl@.', |
|
| 288 | - 'info_copyright_doc' => 'Per mai d’informacions, veire lo sit <a href="@spipnet@">http://www.spip.net/oc</a>.', # MODIF |
|
| 289 | - 'info_copyright_gpl' => 'sota licéncia GPL', |
|
| 290 | - 'info_cours_edition' => 'Vòstreis articles en cors de redaccion', |
|
| 291 | - 'info_creer_repertoire' => 'Vougatz crear un fichier o un repertòri nommat', |
|
| 292 | - 'info_creer_repertoire_2' => 'dintre lo sosrepertòri <b>@repertoire@</b>, puei:', |
|
| 293 | - 'info_creer_vignette' => 'creacion automatica de la vinheta', |
|
| 294 | - 'info_deplier' => 'Desplegar', |
|
| 295 | - 'info_descriptif_nombre' => 'descriptiu(s):', |
|
| 296 | - 'info_description' => 'Descripcion:', |
|
| 297 | - 'info_description_2' => 'Descripcion:', |
|
| 298 | - 'info_dimension' => 'Dimensions:', |
|
| 299 | - 'info_ecire_message_prive' => 'Escriure un messatge privat', |
|
| 300 | - 'info_email_invalide' => 'Adreiça e-mail invalida', |
|
| 301 | - 'info_en_cours_validation' => 'Vòstreis articles en cors de redaccion', |
|
| 302 | - 'info_en_ligne' => 'Ara en linha:', |
|
| 303 | - 'info_envoyer_message_prive' => 'Mandar un messatge privat a aquel autor', |
|
| 304 | - 'info_erreur_requete' => 'Error dins la requista', |
|
| 305 | - 'info_erreur_squelette2' => 'Ges d’esqueleta <b>@fichier@</b> es disponibla...', |
|
| 306 | - 'info_erreur_systeme' => 'Error sistèma (errno @errsys@)', |
|
| 307 | - 'info_erreur_systeme2' => 'Lo disc dur es benlèu plen, o la basa de donadas degalhada.<br /> |
|
| 217 | + // I |
|
| 218 | + 'ical_texte_rss_articles' => 'Lo fichier "backend" deis articles d’aquest sit se tròba a l’adreiça:', |
|
| 219 | + 'ical_texte_rss_articles2' => 'Atanben podètz obtenir de fichiers "backend" per leis articles de cada rubrica dau sit:', |
|
| 220 | + 'ical_texte_rss_breves' => 'Existisson mai d’un fichier contenent lei brèvas dau sit. En precisant un numèro de rubrica, obtendretz ren que lei brèvas de la rubrica aquela.', |
|
| 221 | + 'icone_a_suivre' => 'De seguir', |
|
| 222 | + 'icone_admin_site' => 'Administracion dau sit', |
|
| 223 | + 'icone_agenda' => 'Agenda', |
|
| 224 | + 'icone_aide_ligne' => 'Ajuda', |
|
| 225 | + 'icone_articles' => 'Articles', |
|
| 226 | + 'icone_auteurs' => 'Autors', |
|
| 227 | + 'icone_brouteur' => 'Navigacion rapida', |
|
| 228 | + 'icone_configuration_site' => 'Configuracion', |
|
| 229 | + 'icone_configurer_site' => 'Configurar vòstre sit', |
|
| 230 | + 'icone_creer_nouvel_auteur' => 'Crear un autor nòu ', |
|
| 231 | + 'icone_creer_rubrique' => 'Crear una rubrica', |
|
| 232 | + 'icone_creer_sous_rubrique' => 'Crear una sosrubrica', |
|
| 233 | + 'icone_deconnecter' => 'Se desconnectar', |
|
| 234 | + 'icone_discussions' => 'Discussions', |
|
| 235 | + 'icone_doc_rubrique' => 'Documents dei rubricas', |
|
| 236 | + 'icone_ecrire_article' => 'Escriure un article nòu', |
|
| 237 | + 'icone_edition_site' => 'Edicion', |
|
| 238 | + 'icone_gestion_langues' => 'Gestion dei lengas', |
|
| 239 | + 'icone_informations_personnelles' => 'Informacions personalas', |
|
| 240 | + 'icone_interface_complet' => 'Interfàcia completa', |
|
| 241 | + 'icone_interface_simple' => 'Interfàcia simplificada', |
|
| 242 | + 'icone_maintenance_site' => 'Mantenença dau sit', |
|
| 243 | + 'icone_messagerie_personnelle' => 'Messatjariá personala', |
|
| 244 | + 'icone_repartition_debut' => 'Afichar la reparticion dempuei la començança', |
|
| 245 | + 'icone_rubriques' => 'Rubricas', |
|
| 246 | + 'icone_sauver_site' => 'Sauvagarda dau sit', |
|
| 247 | + 'icone_site_entier' => 'Tot lo sit ', |
|
| 248 | + 'icone_sites_references' => 'Sits referenciats', |
|
| 249 | + 'icone_statistiques' => 'Estadisticas dau sit', |
|
| 250 | + 'icone_suivi_activite' => 'Seguir la vida dau sit', |
|
| 251 | + 'icone_suivi_actualite' => 'Evolucion dau sit', |
|
| 252 | + 'icone_suivi_pettions' => 'Seguir/gerir lei peticions', |
|
| 253 | + 'icone_suivi_revisions' => 'Modificacions deis articles', |
|
| 254 | + 'icone_supprimer_document' => 'Suprimir aqueu document', |
|
| 255 | + 'icone_supprimer_image' => 'Suprimir aquel imatge', |
|
| 256 | + 'icone_tous_articles' => 'Totei vòstreis articles ', |
|
| 257 | + 'icone_tous_auteur' => 'Totei leis autors ', |
|
| 258 | + 'icone_visiter_site' => 'Vesitar', # MODIF |
|
| 259 | + 'icone_voir_en_ligne' => 'Veire en linha', |
|
| 260 | + 'img_indisponible' => 'imatge indisponible', |
|
| 261 | + 'impossible' => 'impossible', |
|
| 262 | + 'info_a_suivre' => 'DE SEGUIR>>', |
|
| 263 | + 'info_acces_interdit' => 'Accès proïbit', |
|
| 264 | + 'info_acces_refuse' => 'Accès refusat', |
|
| 265 | + 'info_action' => 'Accion: @action@', |
|
| 266 | + 'info_administrer_rubriques' => 'Podètz administrar aquela rubrica e sei sosrubricas', |
|
| 267 | + 'info_adresse_non_indiquee' => 'Avètz pas indicat l’adreiça de testar!', |
|
| 268 | + 'info_aide' => 'AJUDA:', |
|
| 269 | + 'info_ajouter_mot' => 'Apondre aqueu mot', |
|
| 270 | + 'info_annonce' => 'ANONCI', |
|
| 271 | + 'info_annonces_generales' => 'Anoncis generaus:', |
|
| 272 | + 'info_article_propose' => 'Article prepausat', |
|
| 273 | + 'info_article_publie' => 'Article publicat', |
|
| 274 | + 'info_article_redaction' => 'Article en cors de redaccion', |
|
| 275 | + 'info_article_refuse' => 'Article refusat', |
|
| 276 | + 'info_article_supprime' => 'Article suprimit', |
|
| 277 | + 'info_articles' => 'Articles', |
|
| 278 | + 'info_articles_a_valider' => 'Los articles de validar', |
|
| 279 | + 'info_articles_proposes' => 'Articles prepausats', |
|
| 280 | + 'info_auteurs_nombre' => 'autor(s)', |
|
| 281 | + 'info_authentification_ftp' => 'autentificacion (per FTP).', |
|
| 282 | + 'info_breves_2' => 'brèvas', |
|
| 283 | + 'info_connexion_refusee' => 'Connexion refusada', |
|
| 284 | + 'info_contact_developpeur' => 'Vougatz contactar un desvolopaire.', |
|
| 285 | + 'info_contenance' => 'Aqueu sit conten:', |
|
| 286 | + 'info_contribution' => 'Contribucions de forum', # MODIF |
|
| 287 | + 'info_copyright' => '@spip@ es un logiciau liure distribuit @lien_gpl@.', |
|
| 288 | + 'info_copyright_doc' => 'Per mai d’informacions, veire lo sit <a href="@spipnet@">http://www.spip.net/oc</a>.', # MODIF |
|
| 289 | + 'info_copyright_gpl' => 'sota licéncia GPL', |
|
| 290 | + 'info_cours_edition' => 'Vòstreis articles en cors de redaccion', |
|
| 291 | + 'info_creer_repertoire' => 'Vougatz crear un fichier o un repertòri nommat', |
|
| 292 | + 'info_creer_repertoire_2' => 'dintre lo sosrepertòri <b>@repertoire@</b>, puei:', |
|
| 293 | + 'info_creer_vignette' => 'creacion automatica de la vinheta', |
|
| 294 | + 'info_deplier' => 'Desplegar', |
|
| 295 | + 'info_descriptif_nombre' => 'descriptiu(s):', |
|
| 296 | + 'info_description' => 'Descripcion:', |
|
| 297 | + 'info_description_2' => 'Descripcion:', |
|
| 298 | + 'info_dimension' => 'Dimensions:', |
|
| 299 | + 'info_ecire_message_prive' => 'Escriure un messatge privat', |
|
| 300 | + 'info_email_invalide' => 'Adreiça e-mail invalida', |
|
| 301 | + 'info_en_cours_validation' => 'Vòstreis articles en cors de redaccion', |
|
| 302 | + 'info_en_ligne' => 'Ara en linha:', |
|
| 303 | + 'info_envoyer_message_prive' => 'Mandar un messatge privat a aquel autor', |
|
| 304 | + 'info_erreur_requete' => 'Error dins la requista', |
|
| 305 | + 'info_erreur_squelette2' => 'Ges d’esqueleta <b>@fichier@</b> es disponibla...', |
|
| 306 | + 'info_erreur_systeme' => 'Error sistèma (errno @errsys@)', |
|
| 307 | + 'info_erreur_systeme2' => 'Lo disc dur es benlèu plen, o la basa de donadas degalhada.<br /> |
|
| 308 | 308 | <span style="color:red;">Assajatz de <a href=\'@script@\'>reparar la basa</a>, o contactatz vòstre aubergador.</span>', |
| 309 | - 'info_fini' => 'Es acabat!', |
|
| 310 | - 'info_format_image' => 'Formats d’imatges que se pòdon utilizar per crear de vinhetas: @gd_formats@.', |
|
| 311 | - 'info_format_non_defini' => 'format non definit', |
|
| 312 | - 'info_grand_ecran' => 'Ecran grand', |
|
| 313 | - 'info_image_aide' => 'AJUDA', |
|
| 314 | - 'info_image_process_titre' => 'Metòde de fabricacion dei vinhetas', |
|
| 315 | - 'info_impossible_lire_page' => '<b>Error!</b> Impossible de legir la pagina <tt><html>@test_proxy@</html></tt> a travèrs dau proxy <tt>', |
|
| 316 | - 'info_installation_systeme_publication' => 'Installacion dau sistèma de publicacion...', |
|
| 317 | - 'info_installer_documents' => 'Podètz installar automaticament totei lei documents contenguts dins lo repertòri @upload@.', |
|
| 318 | - 'info_installer_ftp' => 'Coma administrator, podètz installar (per FTP) de fichiers dins lo dorsier @upload@, puei lei seleccionar directament aicí.', |
|
| 319 | - 'info_installer_images' => 'Podètz installar d’imatges ai formats JPEG, GIF e PNG.', |
|
| 320 | - 'info_installer_images_dossier' => 'Installar d’imatges dins lo dorsier @upload@ per lei poder seleccionar aicí.', |
|
| 321 | - 'info_interface_complete' => 'Interfàcia completa', |
|
| 322 | - 'info_interface_simple' => 'Interfàcia simplificada', |
|
| 323 | - 'info_joindre_document_article' => 'Podètz jónher a aquel article de documents de la mena de', |
|
| 324 | - 'info_joindre_document_rubrique' => 'Podètz apondre a aquela rubrica de documents de la mena de', |
|
| 325 | - 'info_joindre_documents_article' => 'Podètz jónher a aquel article de documents de la mena de:', |
|
| 326 | - 'info_l_article' => 'l’article', |
|
| 327 | - 'info_la_breve' => 'la brèva', |
|
| 328 | - 'info_la_rubrique' => 'la rubrica', |
|
| 329 | - 'info_langue_principale' => 'Lenga majorala dau sit', |
|
| 330 | - 'info_largeur_vignette' => '@largeur_vignette@ x @hauteur_vignette@ pixèls', |
|
| 331 | - 'info_les_auteurs_1' => 'per @les_auteurs@ ', |
|
| 332 | - 'info_logo_format_interdit' => 'Lei lògos de formats @formats@ son sols autorizats.', |
|
| 333 | - 'info_logo_max_poids' => 'Lei lògos an de far mens de @maxi@ (aquest fichier fa @actuel@).', |
|
| 334 | - 'info_mail_fournisseur' => '[email protected]', |
|
| 335 | - 'info_message_2' => 'MESSATGE', |
|
| 336 | - 'info_message_supprime' => 'MESSATGE SUPRIMIT', |
|
| 337 | - 'info_mise_en_ligne' => 'Data de mesa en linha:', |
|
| 338 | - 'info_modification_parametres_securite' => 'modificacions dei paramètres de seguretat', |
|
| 339 | - 'info_mois_courant' => 'Dins lo corrent dau mes:', |
|
| 340 | - 'info_mot_cle_ajoute' => 'S’es apondut lo mot clau seguent a', |
|
| 341 | - 'info_multi_herit' => 'Lenga predefinida', |
|
| 342 | - 'info_multi_langues_soulignees' => 'Lei <u>lengas solinhadas</u> benefícian d’una revirada de totei lei tèxts de l’interfàcia. Se seleccionatz aquelei lengas, fòrça elements dau sit public (datas, formularis) se reviraràn automaticament. Per lei lengas non solinhadas, aqueleis elements apareisseràn dins la lenga principala dau sit.', # MODIF |
|
| 343 | - 'info_multilinguisme' => 'Multilingüisme', |
|
| 344 | - 'info_nom_non_utilisateurs_connectes' => 'Vòstre nom apareis pas dins la tiera deis utilizaires connectats.', |
|
| 345 | - 'info_nom_utilisateurs_connectes' => 'Vòstre nom apareis dins la tiera deis utilizaires connectats.', |
|
| 346 | - 'info_nombre_en_ligne' => 'Ara en linha:', |
|
| 347 | - 'info_non_resultat' => 'Ges de resultat per "@cherche_mot@"', |
|
| 348 | - 'info_non_utilisation_messagerie' => 'Utilizatz pas la messatjariá intèrna d’aqueu sit.', |
|
| 349 | - 'info_nouveau_message' => 'AVÈTZ UN MESSATGE NÒU', |
|
| 350 | - 'info_nouveaux_messages' => 'AVÈTZ @total_messages@ MESSATGES NÒUS', |
|
| 351 | - 'info_numero_abbreviation' => 'N° ', |
|
| 352 | - 'info_pense_bete' => 'MEMENTO', |
|
| 353 | - 'info_petit_ecran' => 'Ecran pichòt ', |
|
| 354 | - 'info_pixels' => 'pixèls', |
|
| 355 | - 'info_plusieurs_mots_trouves' => 'Mai d’un mot clau trobat per "@cherche_mot@":', |
|
| 356 | - 'info_portfolio_automatique' => 'Pòrtfòlio automatic:', |
|
| 357 | - 'info_premier_resultat' => '[@debut_limit@ primiers resultats de @total@]', |
|
| 358 | - 'info_premier_resultat_sur' => '[@debut_limit@ primiers resultats de @total@]', |
|
| 359 | - 'info_propose_1' => '[@nom_site_spip@] Prepausa: @titre@', |
|
| 360 | - 'info_propose_2' => 'Article prepausat |
|
| 309 | + 'info_fini' => 'Es acabat!', |
|
| 310 | + 'info_format_image' => 'Formats d’imatges que se pòdon utilizar per crear de vinhetas: @gd_formats@.', |
|
| 311 | + 'info_format_non_defini' => 'format non definit', |
|
| 312 | + 'info_grand_ecran' => 'Ecran grand', |
|
| 313 | + 'info_image_aide' => 'AJUDA', |
|
| 314 | + 'info_image_process_titre' => 'Metòde de fabricacion dei vinhetas', |
|
| 315 | + 'info_impossible_lire_page' => '<b>Error!</b> Impossible de legir la pagina <tt><html>@test_proxy@</html></tt> a travèrs dau proxy <tt>', |
|
| 316 | + 'info_installation_systeme_publication' => 'Installacion dau sistèma de publicacion...', |
|
| 317 | + 'info_installer_documents' => 'Podètz installar automaticament totei lei documents contenguts dins lo repertòri @upload@.', |
|
| 318 | + 'info_installer_ftp' => 'Coma administrator, podètz installar (per FTP) de fichiers dins lo dorsier @upload@, puei lei seleccionar directament aicí.', |
|
| 319 | + 'info_installer_images' => 'Podètz installar d’imatges ai formats JPEG, GIF e PNG.', |
|
| 320 | + 'info_installer_images_dossier' => 'Installar d’imatges dins lo dorsier @upload@ per lei poder seleccionar aicí.', |
|
| 321 | + 'info_interface_complete' => 'Interfàcia completa', |
|
| 322 | + 'info_interface_simple' => 'Interfàcia simplificada', |
|
| 323 | + 'info_joindre_document_article' => 'Podètz jónher a aquel article de documents de la mena de', |
|
| 324 | + 'info_joindre_document_rubrique' => 'Podètz apondre a aquela rubrica de documents de la mena de', |
|
| 325 | + 'info_joindre_documents_article' => 'Podètz jónher a aquel article de documents de la mena de:', |
|
| 326 | + 'info_l_article' => 'l’article', |
|
| 327 | + 'info_la_breve' => 'la brèva', |
|
| 328 | + 'info_la_rubrique' => 'la rubrica', |
|
| 329 | + 'info_langue_principale' => 'Lenga majorala dau sit', |
|
| 330 | + 'info_largeur_vignette' => '@largeur_vignette@ x @hauteur_vignette@ pixèls', |
|
| 331 | + 'info_les_auteurs_1' => 'per @les_auteurs@ ', |
|
| 332 | + 'info_logo_format_interdit' => 'Lei lògos de formats @formats@ son sols autorizats.', |
|
| 333 | + 'info_logo_max_poids' => 'Lei lògos an de far mens de @maxi@ (aquest fichier fa @actuel@).', |
|
| 334 | + 'info_mail_fournisseur' => '[email protected]', |
|
| 335 | + 'info_message_2' => 'MESSATGE', |
|
| 336 | + 'info_message_supprime' => 'MESSATGE SUPRIMIT', |
|
| 337 | + 'info_mise_en_ligne' => 'Data de mesa en linha:', |
|
| 338 | + 'info_modification_parametres_securite' => 'modificacions dei paramètres de seguretat', |
|
| 339 | + 'info_mois_courant' => 'Dins lo corrent dau mes:', |
|
| 340 | + 'info_mot_cle_ajoute' => 'S’es apondut lo mot clau seguent a', |
|
| 341 | + 'info_multi_herit' => 'Lenga predefinida', |
|
| 342 | + 'info_multi_langues_soulignees' => 'Lei <u>lengas solinhadas</u> benefícian d’una revirada de totei lei tèxts de l’interfàcia. Se seleccionatz aquelei lengas, fòrça elements dau sit public (datas, formularis) se reviraràn automaticament. Per lei lengas non solinhadas, aqueleis elements apareisseràn dins la lenga principala dau sit.', # MODIF |
|
| 343 | + 'info_multilinguisme' => 'Multilingüisme', |
|
| 344 | + 'info_nom_non_utilisateurs_connectes' => 'Vòstre nom apareis pas dins la tiera deis utilizaires connectats.', |
|
| 345 | + 'info_nom_utilisateurs_connectes' => 'Vòstre nom apareis dins la tiera deis utilizaires connectats.', |
|
| 346 | + 'info_nombre_en_ligne' => 'Ara en linha:', |
|
| 347 | + 'info_non_resultat' => 'Ges de resultat per "@cherche_mot@"', |
|
| 348 | + 'info_non_utilisation_messagerie' => 'Utilizatz pas la messatjariá intèrna d’aqueu sit.', |
|
| 349 | + 'info_nouveau_message' => 'AVÈTZ UN MESSATGE NÒU', |
|
| 350 | + 'info_nouveaux_messages' => 'AVÈTZ @total_messages@ MESSATGES NÒUS', |
|
| 351 | + 'info_numero_abbreviation' => 'N° ', |
|
| 352 | + 'info_pense_bete' => 'MEMENTO', |
|
| 353 | + 'info_petit_ecran' => 'Ecran pichòt ', |
|
| 354 | + 'info_pixels' => 'pixèls', |
|
| 355 | + 'info_plusieurs_mots_trouves' => 'Mai d’un mot clau trobat per "@cherche_mot@":', |
|
| 356 | + 'info_portfolio_automatique' => 'Pòrtfòlio automatic:', |
|
| 357 | + 'info_premier_resultat' => '[@debut_limit@ primiers resultats de @total@]', |
|
| 358 | + 'info_premier_resultat_sur' => '[@debut_limit@ primiers resultats de @total@]', |
|
| 359 | + 'info_propose_1' => '[@nom_site_spip@] Prepausa: @titre@', |
|
| 360 | + 'info_propose_2' => 'Article prepausat |
|
| 361 | 361 | ---------------', |
| 362 | - 'info_propose_3' => 'L’article "@titre@" es prepausat a la publicacion.', |
|
| 363 | - 'info_propose_4' => 'Vos convidam a lo venir consultar e a bailar vòstre vejaire', |
|
| 364 | - 'info_propose_5' => 'dins lo forum que li es estacat. Es disponible a l’adreiça:', |
|
| 365 | - 'info_publie_01' => 'L’article "@titre@" es estat validat per @connect_nom@.', |
|
| 366 | - 'info_publie_1' => '[@nom_site_spip@] PUBLICA: @titre@', |
|
| 367 | - 'info_publie_2' => 'Article publicat |
|
| 362 | + 'info_propose_3' => 'L’article "@titre@" es prepausat a la publicacion.', |
|
| 363 | + 'info_propose_4' => 'Vos convidam a lo venir consultar e a bailar vòstre vejaire', |
|
| 364 | + 'info_propose_5' => 'dins lo forum que li es estacat. Es disponible a l’adreiça:', |
|
| 365 | + 'info_publie_01' => 'L’article "@titre@" es estat validat per @connect_nom@.', |
|
| 366 | + 'info_publie_1' => '[@nom_site_spip@] PUBLICA: @titre@', |
|
| 367 | + 'info_publie_2' => 'Article publicat |
|
| 368 | 368 | --------------', |
| 369 | - 'info_rechercher' => 'Cercar', |
|
| 370 | - 'info_rechercher_02' => 'Cercar:', |
|
| 371 | - 'info_remplacer_vignette' => 'Remplaçar la vinheta predefinida per un lògo personalizat:', |
|
| 372 | - 'info_sans_titre_2' => 'sensa títol', |
|
| 373 | - 'info_selectionner_fichier' => 'Podètz seleccionar un fichier dau dorsier @upload@', |
|
| 374 | - 'info_selectionner_fichier_2' => 'Seleccionar un fichier:', |
|
| 375 | - 'info_supprimer_vignette' => 'suprimir la vinheta', |
|
| 376 | - 'info_symbole_bleu' => 'Lo simbèu <b>blau</b> marca un <b>memento</b>: valent a dire un messatge per vòstre usatge personau.', |
|
| 377 | - 'info_symbole_jaune' => 'Lo simbèu <b>jaune</b> marca un <b>anonci per totei lei redactors </b>: leis administrators lo pòdon modificar, cada redactor lo pòt veire.', |
|
| 378 | - 'info_symbole_vert' => 'Lo simbèu <b>verd</b> marca lei <b>messatges escambiats amb d’autreis utilizaires</b> dau sit.', |
|
| 379 | - 'info_telecharger_nouveau_logo' => 'Telecargar un lògo nòu:', |
|
| 380 | - 'info_telecharger_ordinateur' => 'Telecargar a partir de vòstre ordenador:', |
|
| 381 | - 'info_tous_resultats_enregistres' => '[totei lei resultats son registrats]', |
|
| 382 | - 'info_tout_afficher' => 'Afichar tot', |
|
| 383 | - 'info_travaux_texte' => 'Aqueu sit es pas encara configurat. Tornatz mai tard...', |
|
| 384 | - 'info_travaux_titre' => 'Sit en òbras', |
|
| 385 | - 'info_trop_resultat' => 'Tròp de resultats per "@cherche_mot@"; vougatz afinar la cèrca.', |
|
| 386 | - 'info_utilisation_messagerie_interne' => 'Utilizatz la messatjariá intèrna d’aqueu sit.', |
|
| 387 | - 'info_valider_lien' => 'validar aqueu liame', |
|
| 388 | - 'info_verifier_image' => ', vougatz verificar que leis imatges se sigan ben transferits.', |
|
| 389 | - 'info_vignette_defaut' => 'Vinheta predefinida', |
|
| 390 | - 'info_vignette_personnalisee' => 'Vinheta personalizada', |
|
| 391 | - 'info_visite' => 'vesita:', |
|
| 392 | - 'info_vos_rendez_vous' => 'Vòstrei rendètz-vos venents', |
|
| 393 | - 'infos_vos_pense_bete' => 'Vòstrei mementos', # MODIF |
|
| 369 | + 'info_rechercher' => 'Cercar', |
|
| 370 | + 'info_rechercher_02' => 'Cercar:', |
|
| 371 | + 'info_remplacer_vignette' => 'Remplaçar la vinheta predefinida per un lògo personalizat:', |
|
| 372 | + 'info_sans_titre_2' => 'sensa títol', |
|
| 373 | + 'info_selectionner_fichier' => 'Podètz seleccionar un fichier dau dorsier @upload@', |
|
| 374 | + 'info_selectionner_fichier_2' => 'Seleccionar un fichier:', |
|
| 375 | + 'info_supprimer_vignette' => 'suprimir la vinheta', |
|
| 376 | + 'info_symbole_bleu' => 'Lo simbèu <b>blau</b> marca un <b>memento</b>: valent a dire un messatge per vòstre usatge personau.', |
|
| 377 | + 'info_symbole_jaune' => 'Lo simbèu <b>jaune</b> marca un <b>anonci per totei lei redactors </b>: leis administrators lo pòdon modificar, cada redactor lo pòt veire.', |
|
| 378 | + 'info_symbole_vert' => 'Lo simbèu <b>verd</b> marca lei <b>messatges escambiats amb d’autreis utilizaires</b> dau sit.', |
|
| 379 | + 'info_telecharger_nouveau_logo' => 'Telecargar un lògo nòu:', |
|
| 380 | + 'info_telecharger_ordinateur' => 'Telecargar a partir de vòstre ordenador:', |
|
| 381 | + 'info_tous_resultats_enregistres' => '[totei lei resultats son registrats]', |
|
| 382 | + 'info_tout_afficher' => 'Afichar tot', |
|
| 383 | + 'info_travaux_texte' => 'Aqueu sit es pas encara configurat. Tornatz mai tard...', |
|
| 384 | + 'info_travaux_titre' => 'Sit en òbras', |
|
| 385 | + 'info_trop_resultat' => 'Tròp de resultats per "@cherche_mot@"; vougatz afinar la cèrca.', |
|
| 386 | + 'info_utilisation_messagerie_interne' => 'Utilizatz la messatjariá intèrna d’aqueu sit.', |
|
| 387 | + 'info_valider_lien' => 'validar aqueu liame', |
|
| 388 | + 'info_verifier_image' => ', vougatz verificar que leis imatges se sigan ben transferits.', |
|
| 389 | + 'info_vignette_defaut' => 'Vinheta predefinida', |
|
| 390 | + 'info_vignette_personnalisee' => 'Vinheta personalizada', |
|
| 391 | + 'info_visite' => 'vesita:', |
|
| 392 | + 'info_vos_rendez_vous' => 'Vòstrei rendètz-vos venents', |
|
| 393 | + 'infos_vos_pense_bete' => 'Vòstrei mementos', # MODIF |
|
| 394 | 394 | |
| 395 | - // L |
|
| 396 | - 'lien_afficher_icones_seuls' => 'Afichar ren que leis icònas ', |
|
| 397 | - 'lien_afficher_texte_icones' => 'Afichar leis icònas e lo tèxt', |
|
| 398 | - 'lien_afficher_texte_seul' => 'Afichar ren que lo tèxt ', |
|
| 399 | - 'lien_liberer' => 'liberar', |
|
| 400 | - 'lien_liberer_tous' => 'liberar aqueleis articles', # MODIF |
|
| 401 | - 'lien_nouvea_pense_bete' => 'MEMENTO NÒU', |
|
| 402 | - 'lien_nouveau_message' => 'MESSATGE NÒU', |
|
| 403 | - 'lien_nouvelle_annonce' => 'ANONCI NOVÈU', |
|
| 404 | - 'lien_petitions' => 'PETICION', |
|
| 405 | - 'lien_popularite' => 'popularitat: @popularite@%', |
|
| 406 | - 'lien_racine_site' => 'RAIÇ DAU SIT', |
|
| 407 | - 'lien_reessayer' => 'tornar assajar', |
|
| 408 | - 'lien_repondre_message' => 'Respòndre a aqueu messatge', |
|
| 409 | - 'lien_supprimer' => 'suprimir', |
|
| 410 | - 'lien_tout_afficher' => 'Afichar tot', |
|
| 411 | - 'lien_visite_site' => 'vesitar aqueu sit', |
|
| 412 | - 'lien_visites' => '@visites@ vesitas', |
|
| 413 | - 'lien_voir_auteur' => 'Veire aquel autor', |
|
| 414 | - 'login_acces_prive' => 'accès a l’espaci privat', |
|
| 415 | - 'login_autre_identifiant' => 'se connectar amb un autre identificant', |
|
| 416 | - 'login_cookie_accepte' => 'Vougatz configurar vòstre navigador per que leis accèpte (aumens per aqueu sit).', |
|
| 417 | - 'login_cookie_oblige' => 'Per vos identificar d’un biais segur sus aquest sit, vos cau acceptar lei cookies.', |
|
| 418 | - 'login_deconnexion_ok' => 'Siatz desconnectat/ada.', |
|
| 419 | - 'login_erreur_pass' => 'Error de mot de santa Clara.', |
|
| 420 | - 'login_espace_prive' => 'espaci privat', |
|
| 421 | - 'login_identifiant_inconnu' => 'L’identificant «@login@» es inconegut.', |
|
| 422 | - 'login_login' => 'Login:', |
|
| 423 | - 'login_login2' => 'Login (identificant de connexion au sit):', # MODIF |
|
| 424 | - 'login_login_pass_incorrect' => '(Login o mot de santa Clara incorrècte.)', |
|
| 425 | - 'login_motpasseoublie' => 'mot de santa Clara oblidat?', |
|
| 426 | - 'login_non_securise' => 'Atencion, aqueu formulari es pas securizat. |
|
| 395 | + // L |
|
| 396 | + 'lien_afficher_icones_seuls' => 'Afichar ren que leis icònas ', |
|
| 397 | + 'lien_afficher_texte_icones' => 'Afichar leis icònas e lo tèxt', |
|
| 398 | + 'lien_afficher_texte_seul' => 'Afichar ren que lo tèxt ', |
|
| 399 | + 'lien_liberer' => 'liberar', |
|
| 400 | + 'lien_liberer_tous' => 'liberar aqueleis articles', # MODIF |
|
| 401 | + 'lien_nouvea_pense_bete' => 'MEMENTO NÒU', |
|
| 402 | + 'lien_nouveau_message' => 'MESSATGE NÒU', |
|
| 403 | + 'lien_nouvelle_annonce' => 'ANONCI NOVÈU', |
|
| 404 | + 'lien_petitions' => 'PETICION', |
|
| 405 | + 'lien_popularite' => 'popularitat: @popularite@%', |
|
| 406 | + 'lien_racine_site' => 'RAIÇ DAU SIT', |
|
| 407 | + 'lien_reessayer' => 'tornar assajar', |
|
| 408 | + 'lien_repondre_message' => 'Respòndre a aqueu messatge', |
|
| 409 | + 'lien_supprimer' => 'suprimir', |
|
| 410 | + 'lien_tout_afficher' => 'Afichar tot', |
|
| 411 | + 'lien_visite_site' => 'vesitar aqueu sit', |
|
| 412 | + 'lien_visites' => '@visites@ vesitas', |
|
| 413 | + 'lien_voir_auteur' => 'Veire aquel autor', |
|
| 414 | + 'login_acces_prive' => 'accès a l’espaci privat', |
|
| 415 | + 'login_autre_identifiant' => 'se connectar amb un autre identificant', |
|
| 416 | + 'login_cookie_accepte' => 'Vougatz configurar vòstre navigador per que leis accèpte (aumens per aqueu sit).', |
|
| 417 | + 'login_cookie_oblige' => 'Per vos identificar d’un biais segur sus aquest sit, vos cau acceptar lei cookies.', |
|
| 418 | + 'login_deconnexion_ok' => 'Siatz desconnectat/ada.', |
|
| 419 | + 'login_erreur_pass' => 'Error de mot de santa Clara.', |
|
| 420 | + 'login_espace_prive' => 'espaci privat', |
|
| 421 | + 'login_identifiant_inconnu' => 'L’identificant «@login@» es inconegut.', |
|
| 422 | + 'login_login' => 'Login:', |
|
| 423 | + 'login_login2' => 'Login (identificant de connexion au sit):', # MODIF |
|
| 424 | + 'login_login_pass_incorrect' => '(Login o mot de santa Clara incorrècte.)', |
|
| 425 | + 'login_motpasseoublie' => 'mot de santa Clara oblidat?', |
|
| 426 | + 'login_non_securise' => 'Atencion, aqueu formulari es pas securizat. |
|
| 427 | 427 | Se volètz pas que vòstre mot de santa Clara siá |
| 428 | 428 | interceptat sus la ret, vougatz activar Javascript |
| 429 | 429 | dins vòstre navigador e', |
| 430 | - 'login_nouvelle_tentative' => 'novèl assai', |
|
| 431 | - 'login_par_ici' => 'Siatz registrat/ada... per aquí...', |
|
| 432 | - 'login_pass2' => 'Mot de santa Clara:', |
|
| 433 | - 'login_preferez_refuser' => '<b>Se vos agrada mai de refusar lei cookies</b>, un autre metòde de connexion (mens securizat) es a vòstra disposicion:', |
|
| 434 | - 'login_recharger' => 'tornar cargar aquela pagina', |
|
| 435 | - 'login_rester_identifie' => 'Restar identificat/ada quauquei jorns', |
|
| 436 | - 'login_retour_public' => 'Tornar au sit public', |
|
| 437 | - 'login_retour_site' => 'Tornar au sit public', |
|
| 438 | - 'login_retoursitepublic' => 'tornar au sit public', |
|
| 439 | - 'login_sans_cookiie' => 'Identificacion sensa cookie', |
|
| 440 | - 'login_sinscrire' => 's’inscriure', |
|
| 441 | - 'login_test_navigateur' => 'Assai navigador/tornar connectar', |
|
| 442 | - 'login_verifiez_navigateur' => '(pasmens verificatz que vòstre navigador aga pas servat vòstre mot de santa Clara en memòria...)', |
|
| 430 | + 'login_nouvelle_tentative' => 'novèl assai', |
|
| 431 | + 'login_par_ici' => 'Siatz registrat/ada... per aquí...', |
|
| 432 | + 'login_pass2' => 'Mot de santa Clara:', |
|
| 433 | + 'login_preferez_refuser' => '<b>Se vos agrada mai de refusar lei cookies</b>, un autre metòde de connexion (mens securizat) es a vòstra disposicion:', |
|
| 434 | + 'login_recharger' => 'tornar cargar aquela pagina', |
|
| 435 | + 'login_rester_identifie' => 'Restar identificat/ada quauquei jorns', |
|
| 436 | + 'login_retour_public' => 'Tornar au sit public', |
|
| 437 | + 'login_retour_site' => 'Tornar au sit public', |
|
| 438 | + 'login_retoursitepublic' => 'tornar au sit public', |
|
| 439 | + 'login_sans_cookiie' => 'Identificacion sensa cookie', |
|
| 440 | + 'login_sinscrire' => 's’inscriure', |
|
| 441 | + 'login_test_navigateur' => 'Assai navigador/tornar connectar', |
|
| 442 | + 'login_verifiez_navigateur' => '(pasmens verificatz que vòstre navigador aga pas servat vòstre mot de santa Clara en memòria...)', |
|
| 443 | 443 | |
| 444 | - // M |
|
| 445 | - 'module_fichiers_langues' => 'Fichiers de lenga', |
|
| 444 | + // M |
|
| 445 | + 'module_fichiers_langues' => 'Fichiers de lenga', |
|
| 446 | 446 | |
| 447 | - // N |
|
| 448 | - 'navigateur_pas_redirige' => 'Se vòstre navigador es pas redirigit, clicatz aicí per contunhar.', |
|
| 447 | + // N |
|
| 448 | + 'navigateur_pas_redirige' => 'Se vòstre navigador es pas redirigit, clicatz aicí per contunhar.', |
|
| 449 | 449 | |
| 450 | - // O |
|
| 451 | - 'onglet_affacer_base' => 'Escafar la basa', |
|
| 452 | - 'onglet_auteur' => 'L’autor', |
|
| 453 | - 'onglet_contenu_site' => 'Contengut dau sit', |
|
| 454 | - 'onglet_evolution_visite_mod' => 'Evolucion', |
|
| 455 | - 'onglet_fonctions_avances' => 'Foncions avançadas', |
|
| 456 | - 'onglet_informations_personnelles' => 'Informacions personalas', |
|
| 457 | - 'onglet_interactivite' => 'Interactivitat', |
|
| 458 | - 'onglet_messagerie' => 'Messatjariá', |
|
| 459 | - 'onglet_repartition_rubrique' => 'Reparticion per rubricas', |
|
| 460 | - 'onglet_save_restaur_base' => 'Sauvagardar/restaurar la basa', |
|
| 461 | - 'onglet_vider_cache' => 'Vujar l’escondedor', |
|
| 450 | + // O |
|
| 451 | + 'onglet_affacer_base' => 'Escafar la basa', |
|
| 452 | + 'onglet_auteur' => 'L’autor', |
|
| 453 | + 'onglet_contenu_site' => 'Contengut dau sit', |
|
| 454 | + 'onglet_evolution_visite_mod' => 'Evolucion', |
|
| 455 | + 'onglet_fonctions_avances' => 'Foncions avançadas', |
|
| 456 | + 'onglet_informations_personnelles' => 'Informacions personalas', |
|
| 457 | + 'onglet_interactivite' => 'Interactivitat', |
|
| 458 | + 'onglet_messagerie' => 'Messatjariá', |
|
| 459 | + 'onglet_repartition_rubrique' => 'Reparticion per rubricas', |
|
| 460 | + 'onglet_save_restaur_base' => 'Sauvagardar/restaurar la basa', |
|
| 461 | + 'onglet_vider_cache' => 'Vujar l’escondedor', |
|
| 462 | 462 | |
| 463 | - // P |
|
| 464 | - 'pass_choix_pass' => 'Vougatz chausir vòstre mot de santa Clara novèu:', |
|
| 465 | - 'pass_erreur' => 'Error', |
|
| 466 | - 'pass_erreur_acces_refuse' => '<b>Error :</b> podètz pus accedir a aqueu sit.', |
|
| 467 | - 'pass_erreur_code_inconnu' => '<b>Error :</b> aqueu còde correspònd a ges de vesitaire que pòsca accedir a aqueu sit.', |
|
| 468 | - 'pass_erreur_non_enregistre' => '<b>Error:</b> l’adreiça <tt>@email_oubli@</tt> es pas registrada sus aqueu sit.', |
|
| 469 | - 'pass_erreur_non_valide' => '<b>Error:</b> aquel e-mail <tt>@email_oubli@</tt> es pas valid!', |
|
| 470 | - 'pass_erreur_probleme_technique' => '<b>Error:</b> per amòr d’un problèma tecnic, l’e-mail se pòt pas mandar. ', |
|
| 471 | - 'pass_espace_prive_bla' => 'L’espaci privat d’aquest sit es dobèrt ai |
|
| 463 | + // P |
|
| 464 | + 'pass_choix_pass' => 'Vougatz chausir vòstre mot de santa Clara novèu:', |
|
| 465 | + 'pass_erreur' => 'Error', |
|
| 466 | + 'pass_erreur_acces_refuse' => '<b>Error :</b> podètz pus accedir a aqueu sit.', |
|
| 467 | + 'pass_erreur_code_inconnu' => '<b>Error :</b> aqueu còde correspònd a ges de vesitaire que pòsca accedir a aqueu sit.', |
|
| 468 | + 'pass_erreur_non_enregistre' => '<b>Error:</b> l’adreiça <tt>@email_oubli@</tt> es pas registrada sus aqueu sit.', |
|
| 469 | + 'pass_erreur_non_valide' => '<b>Error:</b> aquel e-mail <tt>@email_oubli@</tt> es pas valid!', |
|
| 470 | + 'pass_erreur_probleme_technique' => '<b>Error:</b> per amòr d’un problèma tecnic, l’e-mail se pòt pas mandar. ', |
|
| 471 | + 'pass_espace_prive_bla' => 'L’espaci privat d’aquest sit es dobèrt ai |
|
| 472 | 472 | vesitaires que se son inscrichs. Un còp registrat/ada, |
| 473 | 473 | poiretz consultar leis articles en cors de redaccion, |
| 474 | 474 | prepausar d’articles novèus e participar a totei lei forums.', |
| 475 | - 'pass_forum_bla' => 'Avètz demandat d’intervenir dins un forum |
|
| 475 | + 'pass_forum_bla' => 'Avètz demandat d’intervenir dins un forum |
|
| 476 | 476 | reservat ai vesitaires registrats.', |
| 477 | - 'pass_indiquez_cidessous' => 'Marcatz çai sota l’adreiça e-mail ont |
|
| 477 | + 'pass_indiquez_cidessous' => 'Marcatz çai sota l’adreiça e-mail ont |
|
| 478 | 478 | vos registreriatz lo còp passat. |
| 479 | 479 | Recebretz un e-mail que vos bailarà lo biais de |
| 480 | 480 | tornar trobar vòstre accès.', |
| 481 | - 'pass_mail_passcookie' => '(aquò’s un messatge automatic) |
|
| 481 | + 'pass_mail_passcookie' => '(aquò’s un messatge automatic) |
|
| 482 | 482 | Per tornar trobar vòstre accès au sit |
| 483 | 483 | @nom_site_spip@ (@adresse_site@) |
| 484 | 484 | |
@@ -490,103 +490,103 @@ discard block |
||
| 490 | 490 | e vos tornar connectar au sit. |
| 491 | 491 | |
| 492 | 492 | ', |
| 493 | - 'pass_mot_oublie' => 'Mot de santa Clara demembrat', |
|
| 494 | - 'pass_nouveau_enregistre' => 'Vòstre mot de santa Clara novèu es estat registrat.', |
|
| 495 | - 'pass_nouveau_pass' => 'Mot de santa Clara novèu', |
|
| 496 | - 'pass_ok' => 'D’acòrdi', |
|
| 497 | - 'pass_oubli_mot' => 'Mot de santa Clara demembrat', |
|
| 498 | - 'pass_quitter_fenetre' => 'Quitar aquesta fenèstra ', |
|
| 499 | - 'pass_rappel_login' => 'Remembrança: vòstre identificant (login) es « @login@ ».', |
|
| 500 | - 'pass_recevoir_mail' => 'Recebretz un e-mail que vos explicarà coma tornar trobar vòstre accès au sit.', |
|
| 501 | - 'pass_retour_public' => 'Tornar au sit public', |
|
| 502 | - 'pass_rien_a_faire_ici' => 'Ren a faire aicí.', |
|
| 503 | - 'pass_vousinscrire' => 'S’inscriure sus aquest sit', |
|
| 504 | - 'precedent' => 'precedent', |
|
| 505 | - 'previsualisation' => 'Previsualizacion', |
|
| 506 | - 'previsualiser' => 'Previsualizar', |
|
| 493 | + 'pass_mot_oublie' => 'Mot de santa Clara demembrat', |
|
| 494 | + 'pass_nouveau_enregistre' => 'Vòstre mot de santa Clara novèu es estat registrat.', |
|
| 495 | + 'pass_nouveau_pass' => 'Mot de santa Clara novèu', |
|
| 496 | + 'pass_ok' => 'D’acòrdi', |
|
| 497 | + 'pass_oubli_mot' => 'Mot de santa Clara demembrat', |
|
| 498 | + 'pass_quitter_fenetre' => 'Quitar aquesta fenèstra ', |
|
| 499 | + 'pass_rappel_login' => 'Remembrança: vòstre identificant (login) es « @login@ ».', |
|
| 500 | + 'pass_recevoir_mail' => 'Recebretz un e-mail que vos explicarà coma tornar trobar vòstre accès au sit.', |
|
| 501 | + 'pass_retour_public' => 'Tornar au sit public', |
|
| 502 | + 'pass_rien_a_faire_ici' => 'Ren a faire aicí.', |
|
| 503 | + 'pass_vousinscrire' => 'S’inscriure sus aquest sit', |
|
| 504 | + 'precedent' => 'precedent', |
|
| 505 | + 'previsualisation' => 'Previsualizacion', |
|
| 506 | + 'previsualiser' => 'Previsualizar', |
|
| 507 | 507 | |
| 508 | - // S |
|
| 509 | - 'squelette' => 'esqueleta', |
|
| 510 | - 'squelette_inclus_ligne' => 'esqueleta inclusa, linha', |
|
| 511 | - 'squelette_ligne' => 'esqueleta, linha', |
|
| 512 | - 'stats_visites_et_popularite' => '@visites@ vesitas; popularitat: @popularite@', |
|
| 513 | - 'suivant' => 'seguent', |
|
| 508 | + // S |
|
| 509 | + 'squelette' => 'esqueleta', |
|
| 510 | + 'squelette_inclus_ligne' => 'esqueleta inclusa, linha', |
|
| 511 | + 'squelette_ligne' => 'esqueleta, linha', |
|
| 512 | + 'stats_visites_et_popularite' => '@visites@ vesitas; popularitat: @popularite@', |
|
| 513 | + 'suivant' => 'seguent', |
|
| 514 | 514 | |
| 515 | - // T |
|
| 516 | - 'taille_ko' => '@taille@ Ko', |
|
| 517 | - 'taille_mo' => '@taille@ Mo', |
|
| 518 | - 'taille_octets' => '@taille@ octets', |
|
| 519 | - 'texte_actualite_site_1' => 'Quand vos seretz familharizat/ada amb l’interfàcia, poiretz clicar sus «', |
|
| 520 | - 'texte_actualite_site_2' => 'Interfàcia completa', |
|
| 521 | - 'texte_actualite_site_3' => '" per dobrir mai de possibilitats.', |
|
| 522 | - 'texte_creation_automatique_vignette' => 'La creacion automatica de vinhetas de previsualizacion es activada sus aqueu sit. S’installatz a partir d’aqueu formulari d’imatges au(ai) format(s) @gd_formats@, s’acompanharàn d’una vinheta d’una talha maximala de @taille_preview@ pixèls.', |
|
| 523 | - 'texte_documents_associes' => 'Lei documents seguents s’assòcian a l’article, |
|
| 515 | + // T |
|
| 516 | + 'taille_ko' => '@taille@ Ko', |
|
| 517 | + 'taille_mo' => '@taille@ Mo', |
|
| 518 | + 'taille_octets' => '@taille@ octets', |
|
| 519 | + 'texte_actualite_site_1' => 'Quand vos seretz familharizat/ada amb l’interfàcia, poiretz clicar sus «', |
|
| 520 | + 'texte_actualite_site_2' => 'Interfàcia completa', |
|
| 521 | + 'texte_actualite_site_3' => '" per dobrir mai de possibilitats.', |
|
| 522 | + 'texte_creation_automatique_vignette' => 'La creacion automatica de vinhetas de previsualizacion es activada sus aqueu sit. S’installatz a partir d’aqueu formulari d’imatges au(ai) format(s) @gd_formats@, s’acompanharàn d’una vinheta d’una talha maximala de @taille_preview@ pixèls.', |
|
| 523 | + 'texte_documents_associes' => 'Lei documents seguents s’assòcian a l’article, |
|
| 524 | 524 | mai s’inserisson pas |
| 525 | 525 | directament. Segon la compaginacion dau sit public, |
| 526 | 526 | poiràn aparéisser sota forma de documents jonchs.', |
| 527 | - 'texte_erreur_mise_niveau_base' => 'Error de basa de donadas pendent la mesa a nivèu. L’imatge <b>@fichier@</b> es pas passat (article @id_article@). |
|
| 527 | + 'texte_erreur_mise_niveau_base' => 'Error de basa de donadas pendent la mesa a nivèu. L’imatge <b>@fichier@</b> es pas passat (article @id_article@). |
|
| 528 | 528 | Notatz ben aquela referéncia, tornatz assajar la mesa a |
| 529 | 529 | nivèu, e verificatz puei que leis imatges aparegan |
| 530 | 530 | encara dins leis articles.', |
| 531 | - 'texte_inc_auth_1' => 'Siatz identificat/ada coma |
|
| 531 | + 'texte_inc_auth_1' => 'Siatz identificat/ada coma |
|
| 532 | 532 | <b>@auth_login@</b>, mai aqueu login existís pas o pus dins la basa. |
| 533 | 533 | Assajatz de vos', # MODIF |
| 534 | - 'texte_inc_auth_2' => 'tornar connectar', |
|
| 535 | - 'texte_inc_auth_3' => ', après qu’auretz quitat eventualament, puei |
|
| 534 | + 'texte_inc_auth_2' => 'tornar connectar', |
|
| 535 | + 'texte_inc_auth_3' => ', après qu’auretz quitat eventualament, puei |
|
| 536 | 536 | tornat lançar vòstre navigador.', |
| 537 | - 'texte_inc_config' => 'Lei modificacions fachas dins aquestei paginas influéncian bravament lo |
|
| 537 | + 'texte_inc_config' => 'Lei modificacions fachas dins aquestei paginas influéncian bravament lo |
|
| 538 | 538 | foncionament de vòstre sit. Vos aconselham de pas i intervenir tant que siatz pas |
| 539 | 539 | acostumat/ada au foncionament dau sistèma SPIP. <br /><br /><b> |
| 540 | 540 | En generau, se conselha fòrt |
| 541 | 541 | de laissar la carga d’aquestei paginas au webmèstre principau de vòstre sit.</b>', |
| 542 | - 'texte_inc_meta_1' => 'Lo sistèma a rescontrat una error dins l’escritura dau fichier <code>@fichier@</code>.Vougatz, coma administrator/tritz dau sit,', |
|
| 543 | - 'texte_inc_meta_2' => 'verificar lei drechs d’escritura', |
|
| 544 | - 'texte_inc_meta_3' => 'dins lo repertòri <code>@repertoire@</code>.', |
|
| 545 | - 'texte_statut_en_cours_redaction' => 'en cors de redaccion', |
|
| 546 | - 'texte_statut_poubelle' => 'au bordilhier', |
|
| 547 | - 'texte_statut_propose_evaluation' => 'prepausat per avaloracion', |
|
| 548 | - 'texte_statut_publie' => 'publicat en linha', |
|
| 549 | - 'texte_statut_refuse' => 'refusat', |
|
| 550 | - 'titre_ajouter_mot_cle' => 'APONDRE UN MOT CLAU:', |
|
| 551 | - 'titre_cadre_raccourcis' => 'ACORCHAS:', |
|
| 552 | - 'titre_changer_couleur_interface' => 'Cambiar la color de l’interfàcia', |
|
| 553 | - 'titre_image_admin_article' => 'Podètz administrar aquest article', |
|
| 554 | - 'titre_image_administrateur' => 'Administrator', |
|
| 555 | - 'titre_image_aide' => 'D’ajuda subre aquel element', |
|
| 556 | - 'titre_image_auteur_supprime' => 'Autor suprimit', |
|
| 557 | - 'titre_image_redacteur' => 'Redactor sens accès', |
|
| 558 | - 'titre_image_redacteur_02' => 'Redactor', |
|
| 559 | - 'titre_image_visiteur' => 'Vesitaire', |
|
| 560 | - 'titre_joindre_document' => 'JÓNHER UN DOCUMENT', |
|
| 561 | - 'titre_mots_cles' => 'MOTS CLAU', |
|
| 562 | - 'titre_probleme_technique' => 'Atencion: un problèma tecnic (servidor SQL) empacha d’accedir a aquela part dau sit. Grandmercé de vòstra indulgéncia.', |
|
| 563 | - 'titre_publier_document' => 'PUBLICAR UN DOCUMENT DINS AQUELA RUBRICA', |
|
| 564 | - 'titre_statistiques' => 'Estadisticas dau sit', |
|
| 565 | - 'titre_titre_document' => 'Títol dau document:', |
|
| 566 | - 'trad_reference' => '(article de referéncia)', # MODIF |
|
| 542 | + 'texte_inc_meta_1' => 'Lo sistèma a rescontrat una error dins l’escritura dau fichier <code>@fichier@</code>.Vougatz, coma administrator/tritz dau sit,', |
|
| 543 | + 'texte_inc_meta_2' => 'verificar lei drechs d’escritura', |
|
| 544 | + 'texte_inc_meta_3' => 'dins lo repertòri <code>@repertoire@</code>.', |
|
| 545 | + 'texte_statut_en_cours_redaction' => 'en cors de redaccion', |
|
| 546 | + 'texte_statut_poubelle' => 'au bordilhier', |
|
| 547 | + 'texte_statut_propose_evaluation' => 'prepausat per avaloracion', |
|
| 548 | + 'texte_statut_publie' => 'publicat en linha', |
|
| 549 | + 'texte_statut_refuse' => 'refusat', |
|
| 550 | + 'titre_ajouter_mot_cle' => 'APONDRE UN MOT CLAU:', |
|
| 551 | + 'titre_cadre_raccourcis' => 'ACORCHAS:', |
|
| 552 | + 'titre_changer_couleur_interface' => 'Cambiar la color de l’interfàcia', |
|
| 553 | + 'titre_image_admin_article' => 'Podètz administrar aquest article', |
|
| 554 | + 'titre_image_administrateur' => 'Administrator', |
|
| 555 | + 'titre_image_aide' => 'D’ajuda subre aquel element', |
|
| 556 | + 'titre_image_auteur_supprime' => 'Autor suprimit', |
|
| 557 | + 'titre_image_redacteur' => 'Redactor sens accès', |
|
| 558 | + 'titre_image_redacteur_02' => 'Redactor', |
|
| 559 | + 'titre_image_visiteur' => 'Vesitaire', |
|
| 560 | + 'titre_joindre_document' => 'JÓNHER UN DOCUMENT', |
|
| 561 | + 'titre_mots_cles' => 'MOTS CLAU', |
|
| 562 | + 'titre_probleme_technique' => 'Atencion: un problèma tecnic (servidor SQL) empacha d’accedir a aquela part dau sit. Grandmercé de vòstra indulgéncia.', |
|
| 563 | + 'titre_publier_document' => 'PUBLICAR UN DOCUMENT DINS AQUELA RUBRICA', |
|
| 564 | + 'titre_statistiques' => 'Estadisticas dau sit', |
|
| 565 | + 'titre_titre_document' => 'Títol dau document:', |
|
| 566 | + 'trad_reference' => '(article de referéncia)', # MODIF |
|
| 567 | 567 | |
| 568 | - // Z |
|
| 569 | - 'zbug_balise_b_aval' => ' : balisa B en avau', |
|
| 570 | - 'zbug_boucle' => 'bloca', |
|
| 571 | - 'zbug_boucle_recursive_undef' => 'bloca recursiva non definida', # MODIF |
|
| 572 | - 'zbug_champ_hors_boucle' => 'Camp @champ@ fòra bloca', |
|
| 573 | - 'zbug_champ_hors_motif' => 'Camp @champ@ en defòra d’una bloca de motiu @motif@', # MODIF |
|
| 574 | - 'zbug_code' => 'còde', |
|
| 575 | - 'zbug_critere_inconnu' => 'critèri inconegut @critere@', # MODIF |
|
| 576 | - 'zbug_distant_interdit' => 'extèrne enebit', # MODIF |
|
| 577 | - 'zbug_erreur_boucle_double' => 'BLOCA@id@: definicion dobla', # MODIF |
|
| 578 | - 'zbug_erreur_boucle_fermant' => 'BLOCA@id@: lo tag barrador manca', # MODIF |
|
| 579 | - 'zbug_erreur_boucle_syntaxe' => 'Sintaxi bloca incorrècta', # MODIF |
|
| 580 | - 'zbug_erreur_execution_page' => 'error d’execucion de la pagina', # MODIF |
|
| 581 | - 'zbug_erreur_filtre' => 'Error: filtre <b>« @filtre@ »</b> non definit', # MODIF |
|
| 582 | - 'zbug_erreur_meme_parent' => '{meme_parent} s’aplica ren qu’ai blocas (FORUMS) o (RUBRIQUES)', # MODIF |
|
| 583 | - 'zbug_erreur_squelette' => 'Error(s) dins l’esqueleta', |
|
| 584 | - 'zbug_info_erreur_squelette' => 'Error subre lo sit', |
|
| 585 | - 'zbug_inversion_ordre_inexistant' => 'inversion d’un òrdre inexistent', # MODIF |
|
| 586 | - 'zbug_parametres_inclus_incorrects' => 'Paramètres d’inclusion incorrèctes', # MODIF |
|
| 587 | - 'zbug_resultat' => 'resultat', |
|
| 588 | - 'zbug_serveur_indefini' => 'servidor SQL indefinit', # MODIF |
|
| 589 | - 'zbug_table_inconnue' => 'Taula SQL «@table@» inconeguda' |
|
| 568 | + // Z |
|
| 569 | + 'zbug_balise_b_aval' => ' : balisa B en avau', |
|
| 570 | + 'zbug_boucle' => 'bloca', |
|
| 571 | + 'zbug_boucle_recursive_undef' => 'bloca recursiva non definida', # MODIF |
|
| 572 | + 'zbug_champ_hors_boucle' => 'Camp @champ@ fòra bloca', |
|
| 573 | + 'zbug_champ_hors_motif' => 'Camp @champ@ en defòra d’una bloca de motiu @motif@', # MODIF |
|
| 574 | + 'zbug_code' => 'còde', |
|
| 575 | + 'zbug_critere_inconnu' => 'critèri inconegut @critere@', # MODIF |
|
| 576 | + 'zbug_distant_interdit' => 'extèrne enebit', # MODIF |
|
| 577 | + 'zbug_erreur_boucle_double' => 'BLOCA@id@: definicion dobla', # MODIF |
|
| 578 | + 'zbug_erreur_boucle_fermant' => 'BLOCA@id@: lo tag barrador manca', # MODIF |
|
| 579 | + 'zbug_erreur_boucle_syntaxe' => 'Sintaxi bloca incorrècta', # MODIF |
|
| 580 | + 'zbug_erreur_execution_page' => 'error d’execucion de la pagina', # MODIF |
|
| 581 | + 'zbug_erreur_filtre' => 'Error: filtre <b>« @filtre@ »</b> non definit', # MODIF |
|
| 582 | + 'zbug_erreur_meme_parent' => '{meme_parent} s’aplica ren qu’ai blocas (FORUMS) o (RUBRIQUES)', # MODIF |
|
| 583 | + 'zbug_erreur_squelette' => 'Error(s) dins l’esqueleta', |
|
| 584 | + 'zbug_info_erreur_squelette' => 'Error subre lo sit', |
|
| 585 | + 'zbug_inversion_ordre_inexistant' => 'inversion d’un òrdre inexistent', # MODIF |
|
| 586 | + 'zbug_parametres_inclus_incorrects' => 'Paramètres d’inclusion incorrèctes', # MODIF |
|
| 587 | + 'zbug_resultat' => 'resultat', |
|
| 588 | + 'zbug_serveur_indefini' => 'servidor SQL indefinit', # MODIF |
|
| 589 | + 'zbug_table_inconnue' => 'Taula SQL «@table@» inconeguda' |
|
| 590 | 590 | ); |
| 591 | 591 | |
| 592 | 592 | ?> |
@@ -7,115 +7,115 @@ |
||
| 7 | 7 | |
| 8 | 8 | $GLOBALS[$GLOBALS['idx_lang']] = array( |
| 9 | 9 | |
| 10 | - // A |
|
| 11 | - 'accueil_site' => 'Arrel de la web', # MODIF |
|
| 12 | - 'article' => 'Article', |
|
| 13 | - 'articles' => 'Articles', |
|
| 14 | - 'articles_auteur' => 'Articles d’aquest autor', |
|
| 15 | - 'articles_populaires' => 'Els articles més populars', |
|
| 16 | - 'articles_rubrique' => 'Articles d’aquesta secció', |
|
| 17 | - 'aucun_article' => 'No hi ha cap article en aquesta adreça', |
|
| 18 | - 'aucun_auteur' => 'No hi ha cap autor/a a aquesta adreça', |
|
| 19 | - 'aucun_site' => 'No hi ha cap lloc web en aquesta adreça', |
|
| 20 | - 'aucune_breve' => 'No hi ha cap breu a aquesta adreça', |
|
| 21 | - 'aucune_rubrique' => 'No hi ha cap secció a aquesta adreça', |
|
| 22 | - 'auteur' => 'Autor', |
|
| 23 | - 'autres' => 'Altres', |
|
| 24 | - 'autres_breves' => 'Altres breus', |
|
| 25 | - 'autres_groupes_mots_clefs' => 'Altres grups de paraules clau', |
|
| 26 | - 'autres_sites' => 'Altres llocs webs', |
|
| 27 | - |
|
| 28 | - // B |
|
| 29 | - 'bonjour' => 'Bon dia', |
|
| 30 | - |
|
| 31 | - // C |
|
| 32 | - 'commenter_site' => 'Comentar aquest lloc web', |
|
| 33 | - 'contact' => 'Contacte', |
|
| 34 | - 'copie_document_impossible' => 'Impossible copiar el document', |
|
| 35 | - |
|
| 36 | - // D |
|
| 37 | - 'date' => ' Data', |
|
| 38 | - 'dernier_ajout' => 'Darrer afegit', |
|
| 39 | - 'dernieres_breves' => 'Darreres breus', |
|
| 40 | - 'derniers_articles' => 'Darrers articles', |
|
| 41 | - 'derniers_commentaires' => 'Darrers comentaris', |
|
| 42 | - 'derniers_messages_forum' => 'Darrers missatges publicats als fòrums', |
|
| 43 | - |
|
| 44 | - // E |
|
| 45 | - 'edition_mode_texte' => 'Edició en mode text de ', |
|
| 46 | - 'en_reponse' => 'En resposta a:', |
|
| 47 | - 'en_resume' => 'En resum', |
|
| 48 | - 'envoyer_message' => 'Enviar un missatge', |
|
| 49 | - 'espace_prive' => 'Espai privat', |
|
| 50 | - |
|
| 51 | - // F |
|
| 52 | - 'formats_acceptes' => 'Formats acceptats: @formats@.', |
|
| 53 | - |
|
| 54 | - // H |
|
| 55 | - 'hierarchie_site' => 'Jerarquia del lloc', |
|
| 56 | - |
|
| 57 | - // J |
|
| 58 | - 'jours' => 'dies', |
|
| 59 | - |
|
| 60 | - // L |
|
| 61 | - 'lien_connecter' => 'Connectar-se', |
|
| 62 | - |
|
| 63 | - // M |
|
| 64 | - 'meme_auteur' => 'Del mateix/a autor/a', |
|
| 65 | - 'meme_rubrique' => 'A la mateixa secció', |
|
| 66 | - 'memes_auteurs' => 'Dels mateixos autors', |
|
| 67 | - 'message' => 'Missatge', |
|
| 68 | - 'messages_forum' => 'Missatges', |
|
| 69 | - 'messages_recents' => 'Els missatges més recents als fòrums', |
|
| 70 | - 'mots_clef' => 'Paraula clau', |
|
| 71 | - 'mots_clefs' => 'Paraules clau', |
|
| 72 | - 'mots_clefs_meme_groupe' => 'Paraules clau al mateix grup', |
|
| 73 | - |
|
| 74 | - // N |
|
| 75 | - 'navigation' => 'Navegació', |
|
| 76 | - 'nom' => 'Nom', |
|
| 77 | - 'nouveautes' => 'Les novetats', |
|
| 78 | - 'nouveautes_web' => 'Novetats a la Web', |
|
| 79 | - 'nouveaux_articles' => 'Articles nous', |
|
| 80 | - 'nouvelles_breves' => 'Noves breus', |
|
| 81 | - |
|
| 82 | - // P |
|
| 83 | - 'page_precedente' => 'pàgina anterior', |
|
| 84 | - 'page_suivante' => 'pàgina següent', |
|
| 85 | - 'par_auteur' => 'per ', |
|
| 86 | - 'participer_site' => 'Podeu participar en la vida d’aquest lloc web i proposar els vostres articles si ompliu la inscripció que hi ha a continuació. Immediatament rebreu un correu electrònic indicant-vos els codis d’accés a l’espai privat de la web.', |
|
| 87 | - 'plan_site' => 'Mapa del lloc Web', |
|
| 88 | - 'popularite' => 'Popularitat', |
|
| 89 | - 'poster_message' => 'Escriure un missatge', |
|
| 90 | - 'proposer_site' => 'Pots proposar un lloc web per afegir-lo a aquesta secció:', |
|
| 91 | - |
|
| 92 | - // R |
|
| 93 | - 'repondre_article' => 'Respondre a aquest article', |
|
| 94 | - 'repondre_breve' => 'Respondre a aquesta breu', |
|
| 95 | - 'resultats_recherche' => 'Resultats de la recerca', |
|
| 96 | - 'retour_debut_forums' => 'Retorn al començament dels fòrums', |
|
| 97 | - 'rubrique' => 'Secció', |
|
| 98 | - 'rubriques' => 'Seccions', |
|
| 99 | - |
|
| 100 | - // S |
|
| 101 | - 'signatures_petition' => 'Signatures', |
|
| 102 | - 'site_realise_avec_spip' => 'Lloc Web fet amb l’SPIP', |
|
| 103 | - 'sites_web' => 'Llocs Web', |
|
| 104 | - 'sous_rubriques' => 'Subseccions', |
|
| 105 | - 'spam' => 'Spam', |
|
| 106 | - 'suite' => 'Segueix', |
|
| 107 | - 'sur_web' => 'Sobre la Web', |
|
| 108 | - 'syndiquer_rubrique' => 'Sindicar aquesta secció', |
|
| 109 | - 'syndiquer_site' => 'Sindicar tot el lloc Web', |
|
| 110 | - |
|
| 111 | - // T |
|
| 112 | - 'texte_lettre_information' => 'Veure la carta de presentació del lloc Web', |
|
| 113 | - 'texte_lettre_information_2' => 'Aquesta carta recull les novetats publicades des de', |
|
| 114 | - |
|
| 115 | - // V |
|
| 116 | - 'ver_imprimer' => 'Versió per imprimir', |
|
| 117 | - 'voir_en_ligne' => 'Veure en línia', |
|
| 118 | - 'voir_squelette' => 'descarregar l’esquelet d’aquesta pàgina' |
|
| 10 | + // A |
|
| 11 | + 'accueil_site' => 'Arrel de la web', # MODIF |
|
| 12 | + 'article' => 'Article', |
|
| 13 | + 'articles' => 'Articles', |
|
| 14 | + 'articles_auteur' => 'Articles d’aquest autor', |
|
| 15 | + 'articles_populaires' => 'Els articles més populars', |
|
| 16 | + 'articles_rubrique' => 'Articles d’aquesta secció', |
|
| 17 | + 'aucun_article' => 'No hi ha cap article en aquesta adreça', |
|
| 18 | + 'aucun_auteur' => 'No hi ha cap autor/a a aquesta adreça', |
|
| 19 | + 'aucun_site' => 'No hi ha cap lloc web en aquesta adreça', |
|
| 20 | + 'aucune_breve' => 'No hi ha cap breu a aquesta adreça', |
|
| 21 | + 'aucune_rubrique' => 'No hi ha cap secció a aquesta adreça', |
|
| 22 | + 'auteur' => 'Autor', |
|
| 23 | + 'autres' => 'Altres', |
|
| 24 | + 'autres_breves' => 'Altres breus', |
|
| 25 | + 'autres_groupes_mots_clefs' => 'Altres grups de paraules clau', |
|
| 26 | + 'autres_sites' => 'Altres llocs webs', |
|
| 27 | + |
|
| 28 | + // B |
|
| 29 | + 'bonjour' => 'Bon dia', |
|
| 30 | + |
|
| 31 | + // C |
|
| 32 | + 'commenter_site' => 'Comentar aquest lloc web', |
|
| 33 | + 'contact' => 'Contacte', |
|
| 34 | + 'copie_document_impossible' => 'Impossible copiar el document', |
|
| 35 | + |
|
| 36 | + // D |
|
| 37 | + 'date' => ' Data', |
|
| 38 | + 'dernier_ajout' => 'Darrer afegit', |
|
| 39 | + 'dernieres_breves' => 'Darreres breus', |
|
| 40 | + 'derniers_articles' => 'Darrers articles', |
|
| 41 | + 'derniers_commentaires' => 'Darrers comentaris', |
|
| 42 | + 'derniers_messages_forum' => 'Darrers missatges publicats als fòrums', |
|
| 43 | + |
|
| 44 | + // E |
|
| 45 | + 'edition_mode_texte' => 'Edició en mode text de ', |
|
| 46 | + 'en_reponse' => 'En resposta a:', |
|
| 47 | + 'en_resume' => 'En resum', |
|
| 48 | + 'envoyer_message' => 'Enviar un missatge', |
|
| 49 | + 'espace_prive' => 'Espai privat', |
|
| 50 | + |
|
| 51 | + // F |
|
| 52 | + 'formats_acceptes' => 'Formats acceptats: @formats@.', |
|
| 53 | + |
|
| 54 | + // H |
|
| 55 | + 'hierarchie_site' => 'Jerarquia del lloc', |
|
| 56 | + |
|
| 57 | + // J |
|
| 58 | + 'jours' => 'dies', |
|
| 59 | + |
|
| 60 | + // L |
|
| 61 | + 'lien_connecter' => 'Connectar-se', |
|
| 62 | + |
|
| 63 | + // M |
|
| 64 | + 'meme_auteur' => 'Del mateix/a autor/a', |
|
| 65 | + 'meme_rubrique' => 'A la mateixa secció', |
|
| 66 | + 'memes_auteurs' => 'Dels mateixos autors', |
|
| 67 | + 'message' => 'Missatge', |
|
| 68 | + 'messages_forum' => 'Missatges', |
|
| 69 | + 'messages_recents' => 'Els missatges més recents als fòrums', |
|
| 70 | + 'mots_clef' => 'Paraula clau', |
|
| 71 | + 'mots_clefs' => 'Paraules clau', |
|
| 72 | + 'mots_clefs_meme_groupe' => 'Paraules clau al mateix grup', |
|
| 73 | + |
|
| 74 | + // N |
|
| 75 | + 'navigation' => 'Navegació', |
|
| 76 | + 'nom' => 'Nom', |
|
| 77 | + 'nouveautes' => 'Les novetats', |
|
| 78 | + 'nouveautes_web' => 'Novetats a la Web', |
|
| 79 | + 'nouveaux_articles' => 'Articles nous', |
|
| 80 | + 'nouvelles_breves' => 'Noves breus', |
|
| 81 | + |
|
| 82 | + // P |
|
| 83 | + 'page_precedente' => 'pàgina anterior', |
|
| 84 | + 'page_suivante' => 'pàgina següent', |
|
| 85 | + 'par_auteur' => 'per ', |
|
| 86 | + 'participer_site' => 'Podeu participar en la vida d’aquest lloc web i proposar els vostres articles si ompliu la inscripció que hi ha a continuació. Immediatament rebreu un correu electrònic indicant-vos els codis d’accés a l’espai privat de la web.', |
|
| 87 | + 'plan_site' => 'Mapa del lloc Web', |
|
| 88 | + 'popularite' => 'Popularitat', |
|
| 89 | + 'poster_message' => 'Escriure un missatge', |
|
| 90 | + 'proposer_site' => 'Pots proposar un lloc web per afegir-lo a aquesta secció:', |
|
| 91 | + |
|
| 92 | + // R |
|
| 93 | + 'repondre_article' => 'Respondre a aquest article', |
|
| 94 | + 'repondre_breve' => 'Respondre a aquesta breu', |
|
| 95 | + 'resultats_recherche' => 'Resultats de la recerca', |
|
| 96 | + 'retour_debut_forums' => 'Retorn al començament dels fòrums', |
|
| 97 | + 'rubrique' => 'Secció', |
|
| 98 | + 'rubriques' => 'Seccions', |
|
| 99 | + |
|
| 100 | + // S |
|
| 101 | + 'signatures_petition' => 'Signatures', |
|
| 102 | + 'site_realise_avec_spip' => 'Lloc Web fet amb l’SPIP', |
|
| 103 | + 'sites_web' => 'Llocs Web', |
|
| 104 | + 'sous_rubriques' => 'Subseccions', |
|
| 105 | + 'spam' => 'Spam', |
|
| 106 | + 'suite' => 'Segueix', |
|
| 107 | + 'sur_web' => 'Sobre la Web', |
|
| 108 | + 'syndiquer_rubrique' => 'Sindicar aquesta secció', |
|
| 109 | + 'syndiquer_site' => 'Sindicar tot el lloc Web', |
|
| 110 | + |
|
| 111 | + // T |
|
| 112 | + 'texte_lettre_information' => 'Veure la carta de presentació del lloc Web', |
|
| 113 | + 'texte_lettre_information_2' => 'Aquesta carta recull les novetats publicades des de', |
|
| 114 | + |
|
| 115 | + // V |
|
| 116 | + 'ver_imprimer' => 'Versió per imprimir', |
|
| 117 | + 'voir_en_ligne' => 'Veure en línia', |
|
| 118 | + 'voir_squelette' => 'descarregar l’esquelet d’aquesta pàgina' |
|
| 119 | 119 | ); |
| 120 | 120 | |
| 121 | 121 | ?> |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
| 11 | 11 | \***************************************************************************/ |
| 12 | 12 | |
| 13 | - // Script pour appeler un squelette apres s'etre authentifie |
|
| 13 | + // Script pour appeler un squelette apres s'etre authentifie |
|
| 14 | 14 | |
| 15 | 15 | include_once 'inc_version.php'; |
| 16 | 16 | |
@@ -20,18 +20,18 @@ discard block |
||
| 20 | 20 | $var_auth = $auth(); |
| 21 | 21 | |
| 22 | 22 | if ($var_auth !== '') { |
| 23 | - if (!is_int($var_auth)) { |
|
| 24 | - // si l'authentifie' n'a pas acces a l'espace de redac |
|
| 25 | - // c'est qu'on voulait forcer sa reconnaissance en tant que visiteur. |
|
| 26 | - // On reexecute pour deboucher sur le include public. |
|
| 27 | - // autrement on insiste |
|
| 28 | - if (is_array($var_auth)) { |
|
| 29 | - $var_auth = '../?' . $_SERVER['QUERY_STRING']; |
|
| 30 | - spip_setcookie('spip_session', $_COOKIE['spip_session'], time() + 3600 * 24 * 14); |
|
| 31 | - } |
|
| 32 | - include_spip('inc/headers'); |
|
| 33 | - redirige_formulaire($var_auth); |
|
| 34 | - } |
|
| 23 | + if (!is_int($var_auth)) { |
|
| 24 | + // si l'authentifie' n'a pas acces a l'espace de redac |
|
| 25 | + // c'est qu'on voulait forcer sa reconnaissance en tant que visiteur. |
|
| 26 | + // On reexecute pour deboucher sur le include public. |
|
| 27 | + // autrement on insiste |
|
| 28 | + if (is_array($var_auth)) { |
|
| 29 | + $var_auth = '../?' . $_SERVER['QUERY_STRING']; |
|
| 30 | + spip_setcookie('spip_session', $_COOKIE['spip_session'], time() + 3600 * 24 * 14); |
|
| 31 | + } |
|
| 32 | + include_spip('inc/headers'); |
|
| 33 | + redirige_formulaire($var_auth); |
|
| 34 | + } |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | // En somme, est prive' ce qui est publiquement nomme'... |
@@ -25,36 +25,36 @@ discard block |
||
| 25 | 25 | // false si erreur |
| 26 | 26 | // http://doc.spip.org/@nombre_de_fichiers_repertoire |
| 27 | 27 | function nombre_de_fichiers_repertoire($dir,$nb_estim_taille = 20) { |
| 28 | - $taille = 0; // mesurer la taille de N fichiers au hasard dans le repertoire |
|
| 29 | - $nb = $nb_estim_taille; |
|
| 30 | - if (!$h = @opendir($dir)) return false; |
|
| 31 | - $total = 0; |
|
| 32 | - while (($fichier = @readdir($h)) !== false) |
|
| 33 | - if ($fichier[0]!='.' AND !is_dir("$dir/$fichier")){ |
|
| 34 | - $total++; |
|
| 35 | - if ($nb AND rand(1,10)==1){ |
|
| 36 | - $taille += filesize("$dir/$fichier"); |
|
| 37 | - $nb--; |
|
| 38 | - } |
|
| 39 | - } |
|
| 40 | - closedir($h); |
|
| 41 | - return array($total,$taille?$taille/($nb_estim_taille-$nb):_TAILLE_MOYENNE_FICHIER_CACHE); |
|
| 28 | + $taille = 0; // mesurer la taille de N fichiers au hasard dans le repertoire |
|
| 29 | + $nb = $nb_estim_taille; |
|
| 30 | + if (!$h = @opendir($dir)) return false; |
|
| 31 | + $total = 0; |
|
| 32 | + while (($fichier = @readdir($h)) !== false) |
|
| 33 | + if ($fichier[0]!='.' AND !is_dir("$dir/$fichier")){ |
|
| 34 | + $total++; |
|
| 35 | + if ($nb AND rand(1,10)==1){ |
|
| 36 | + $taille += filesize("$dir/$fichier"); |
|
| 37 | + $nb--; |
|
| 38 | + } |
|
| 39 | + } |
|
| 40 | + closedir($h); |
|
| 41 | + return array($total,$taille?$taille/($nb_estim_taille-$nb):_TAILLE_MOYENNE_FICHIER_CACHE); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | // Indique la taille du repertoire cache ; pour de gros volumes, |
| 45 | 45 | // impossible d'ouvrir chaque fichier, on y va donc a l'estime |
| 46 | 46 | // http://doc.spip.org/@taille_du_cache |
| 47 | 47 | function taille_du_cache() { |
| 48 | - $total = 0; |
|
| 49 | - $taille = 0; |
|
| 50 | - for ($i=0;$i<16;$i++) { |
|
| 51 | - $l = dechex($i); |
|
| 52 | - $dir = sous_repertoire(_DIR_CACHE, $l); |
|
| 53 | - list($n,$s) = nombre_de_fichiers_repertoire($dir); |
|
| 54 | - $total += $n; |
|
| 55 | - $taille += $s; |
|
| 56 | - } |
|
| 57 | - return $total * $taille / 16; |
|
| 48 | + $total = 0; |
|
| 49 | + $taille = 0; |
|
| 50 | + for ($i=0;$i<16;$i++) { |
|
| 51 | + $l = dechex($i); |
|
| 52 | + $dir = sous_repertoire(_DIR_CACHE, $l); |
|
| 53 | + list($n,$s) = nombre_de_fichiers_repertoire($dir); |
|
| 54 | + $total += $n; |
|
| 55 | + $taille += $s; |
|
| 56 | + } |
|
| 57 | + return $total * $taille / 16; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | // Invalider les caches lies a telle condition |
@@ -63,26 +63,26 @@ discard block |
||
| 63 | 63 | // ici on se contente de noter la date de mise a jour dans les metas |
| 64 | 64 | // http://doc.spip.org/@suivre_invalideur |
| 65 | 65 | function suivre_invalideur($cond, $modif=true) { |
| 66 | - if (!$modif) |
|
| 67 | - return; |
|
| 68 | - |
|
| 69 | - // determiner l'objet modifie : forum, article, etc |
|
| 70 | - if (preg_match(',["\']([a-z_]+)[/"\'],', $cond, $r)) |
|
| 71 | - $objet = objet_type($r[1]); |
|
| 72 | - |
|
| 73 | - // stocker la date_modif_$objet (ne sert a rien pour le moment) |
|
| 74 | - if (isset($objet)) |
|
| 75 | - ecrire_meta('derniere_modif_'.$objet, time()); |
|
| 76 | - |
|
| 77 | - // si $derniere_modif_invalide est un array('article', 'rubrique') |
|
| 78 | - // n'affecter la meta que si un de ces objets est modifie |
|
| 79 | - if (is_array($GLOBALS['derniere_modif_invalide'])) { |
|
| 80 | - if (in_array($objet, $GLOBALS['derniere_modif_invalide'])) |
|
| 81 | - ecrire_meta('derniere_modif', time()); |
|
| 82 | - } |
|
| 83 | - // sinon, cas standard, toujours affecter la meta |
|
| 84 | - else |
|
| 85 | - ecrire_meta('derniere_modif', time()); |
|
| 66 | + if (!$modif) |
|
| 67 | + return; |
|
| 68 | + |
|
| 69 | + // determiner l'objet modifie : forum, article, etc |
|
| 70 | + if (preg_match(',["\']([a-z_]+)[/"\'],', $cond, $r)) |
|
| 71 | + $objet = objet_type($r[1]); |
|
| 72 | + |
|
| 73 | + // stocker la date_modif_$objet (ne sert a rien pour le moment) |
|
| 74 | + if (isset($objet)) |
|
| 75 | + ecrire_meta('derniere_modif_'.$objet, time()); |
|
| 76 | + |
|
| 77 | + // si $derniere_modif_invalide est un array('article', 'rubrique') |
|
| 78 | + // n'affecter la meta que si un de ces objets est modifie |
|
| 79 | + if (is_array($GLOBALS['derniere_modif_invalide'])) { |
|
| 80 | + if (in_array($objet, $GLOBALS['derniere_modif_invalide'])) |
|
| 81 | + ecrire_meta('derniere_modif', time()); |
|
| 82 | + } |
|
| 83 | + // sinon, cas standard, toujours affecter la meta |
|
| 84 | + else |
|
| 85 | + ecrire_meta('derniere_modif', time()); |
|
| 86 | 86 | |
| 87 | 87 | } |
| 88 | 88 | |
@@ -109,38 +109,38 @@ discard block |
||
| 109 | 109 | * Nombre de fichiers supprimés |
| 110 | 110 | **/ |
| 111 | 111 | function purger_repertoire($dir, $options=array()) { |
| 112 | - $handle = @opendir($dir); |
|
| 113 | - if (!$handle) return; |
|
| 114 | - |
|
| 115 | - $total = 0; |
|
| 116 | - |
|
| 117 | - while (($fichier = @readdir($handle)) !== false) { |
|
| 118 | - // Eviter ".", "..", ".htaccess", ".svn" etc. |
|
| 119 | - if ($fichier[0] == '.') continue; |
|
| 120 | - $chemin = "$dir/$fichier"; |
|
| 121 | - if (is_file($chemin)) { |
|
| 122 | - if ( (!isset($options['atime']) OR (@fileatime($chemin) < $options['atime'])) |
|
| 123 | - AND (!isset($options['mtime']) OR (@filemtime($chemin) < $options['mtime'])) |
|
| 124 | - ) { |
|
| 125 | - supprimer_fichier($chemin); |
|
| 126 | - $total ++; |
|
| 127 | - } |
|
| 128 | - } |
|
| 129 | - else if (is_dir($chemin)){ |
|
| 130 | - $opts = $options; |
|
| 131 | - if (isset($otpions['limit'])) |
|
| 132 | - $otps['limit'] = $otpions['limit'] - $total; |
|
| 133 | - $total += purger_repertoire($chemin, $opts); |
|
| 134 | - if (isset($options['subdir']) && $options['subdir']) |
|
| 135 | - spip_unlink($chemin); |
|
| 136 | - } |
|
| 137 | - |
|
| 138 | - if (isset($options['limit']) AND $total>=$options['limit']) |
|
| 139 | - break; |
|
| 140 | - } |
|
| 141 | - closedir($handle); |
|
| 142 | - |
|
| 143 | - return $total; |
|
| 112 | + $handle = @opendir($dir); |
|
| 113 | + if (!$handle) return; |
|
| 114 | + |
|
| 115 | + $total = 0; |
|
| 116 | + |
|
| 117 | + while (($fichier = @readdir($handle)) !== false) { |
|
| 118 | + // Eviter ".", "..", ".htaccess", ".svn" etc. |
|
| 119 | + if ($fichier[0] == '.') continue; |
|
| 120 | + $chemin = "$dir/$fichier"; |
|
| 121 | + if (is_file($chemin)) { |
|
| 122 | + if ( (!isset($options['atime']) OR (@fileatime($chemin) < $options['atime'])) |
|
| 123 | + AND (!isset($options['mtime']) OR (@filemtime($chemin) < $options['mtime'])) |
|
| 124 | + ) { |
|
| 125 | + supprimer_fichier($chemin); |
|
| 126 | + $total ++; |
|
| 127 | + } |
|
| 128 | + } |
|
| 129 | + else if (is_dir($chemin)){ |
|
| 130 | + $opts = $options; |
|
| 131 | + if (isset($otpions['limit'])) |
|
| 132 | + $otps['limit'] = $otpions['limit'] - $total; |
|
| 133 | + $total += purger_repertoire($chemin, $opts); |
|
| 134 | + if (isset($options['subdir']) && $options['subdir']) |
|
| 135 | + spip_unlink($chemin); |
|
| 136 | + } |
|
| 137 | + |
|
| 138 | + if (isset($options['limit']) AND $total>=$options['limit']) |
|
| 139 | + break; |
|
| 140 | + } |
|
| 141 | + closedir($handle); |
|
| 142 | + |
|
| 143 | + return $total; |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | |
@@ -152,47 +152,47 @@ discard block |
||
| 152 | 152 | // |
| 153 | 153 | // http://doc.spip.org/@appliquer_quota_cache |
| 154 | 154 | function appliquer_quota_cache() { |
| 155 | - global $quota_cache; |
|
| 156 | - $encore = false; |
|
| 157 | - |
|
| 158 | - $tour_quota_cache = intval(1+$GLOBALS['meta']['tour_quota_cache'])%16; |
|
| 159 | - ecrire_meta('tour_quota_cache', $tour_quota_cache); |
|
| 160 | - |
|
| 161 | - $l = dechex($tour_quota_cache); |
|
| 162 | - $dir = sous_repertoire(_DIR_CACHE, $l); |
|
| 163 | - list($nombre,$taille) = nombre_de_fichiers_repertoire($dir); |
|
| 164 | - $total_cache = $taille * $nombre; |
|
| 165 | - spip_log("Taille du CACHE estimee ($l): " |
|
| 166 | - .(intval(16*$total_cache/(1024*1024/10))/10)." Mo","invalideur"); |
|
| 167 | - |
|
| 168 | - // Nombre max de fichiers a supprimer |
|
| 169 | - if ($quota_cache > 0 |
|
| 170 | - AND $taille > 0) { |
|
| 171 | - $trop = $total_cache - ($quota_cache/16)*1024*1024; |
|
| 172 | - $trop = 3 * intval($trop / $taille); |
|
| 173 | - if ($trop > 0) { |
|
| 174 | - $n = purger_repertoire($dir, |
|
| 175 | - array( |
|
| 176 | - 'atime' => time() - _AGE_CACHE_ATIME, |
|
| 177 | - 'limit' => $trop, |
|
| 178 | - 'subdir' => true // supprimer les vieux sous repertoire de session (avant [15851]) |
|
| 179 | - ) |
|
| 180 | - ); |
|
| 181 | - spip_log("$dir : $n/$trop caches supprimes [taille moyenne $taille]","invalideur"); |
|
| 182 | - $total_cache = intval(max(0,(16*$total_cache) - $n*$taille)/(1024*1024)*10)/10; |
|
| 183 | - spip_log("cache restant estime : $total_cache Mo, ratio ".$total_cache/$quota_cache,"invalideur"); |
|
| 184 | - |
|
| 185 | - // redemander la main pour eviter que le cache ne gonfle trop |
|
| 186 | - // mais pas si on ne peut pas purger car les fichiers sont trops recents |
|
| 187 | - if ( |
|
| 188 | - $total_cache/$quota_cache>1.5 |
|
| 189 | - AND $n*50>$trop) { |
|
| 190 | - $encore = true; |
|
| 191 | - spip_log("Il faut encore purger","invalideur"); |
|
| 192 | - } |
|
| 193 | - } |
|
| 194 | - } |
|
| 195 | - return $encore; |
|
| 155 | + global $quota_cache; |
|
| 156 | + $encore = false; |
|
| 157 | + |
|
| 158 | + $tour_quota_cache = intval(1+$GLOBALS['meta']['tour_quota_cache'])%16; |
|
| 159 | + ecrire_meta('tour_quota_cache', $tour_quota_cache); |
|
| 160 | + |
|
| 161 | + $l = dechex($tour_quota_cache); |
|
| 162 | + $dir = sous_repertoire(_DIR_CACHE, $l); |
|
| 163 | + list($nombre,$taille) = nombre_de_fichiers_repertoire($dir); |
|
| 164 | + $total_cache = $taille * $nombre; |
|
| 165 | + spip_log("Taille du CACHE estimee ($l): " |
|
| 166 | + .(intval(16*$total_cache/(1024*1024/10))/10)." Mo","invalideur"); |
|
| 167 | + |
|
| 168 | + // Nombre max de fichiers a supprimer |
|
| 169 | + if ($quota_cache > 0 |
|
| 170 | + AND $taille > 0) { |
|
| 171 | + $trop = $total_cache - ($quota_cache/16)*1024*1024; |
|
| 172 | + $trop = 3 * intval($trop / $taille); |
|
| 173 | + if ($trop > 0) { |
|
| 174 | + $n = purger_repertoire($dir, |
|
| 175 | + array( |
|
| 176 | + 'atime' => time() - _AGE_CACHE_ATIME, |
|
| 177 | + 'limit' => $trop, |
|
| 178 | + 'subdir' => true // supprimer les vieux sous repertoire de session (avant [15851]) |
|
| 179 | + ) |
|
| 180 | + ); |
|
| 181 | + spip_log("$dir : $n/$trop caches supprimes [taille moyenne $taille]","invalideur"); |
|
| 182 | + $total_cache = intval(max(0,(16*$total_cache) - $n*$taille)/(1024*1024)*10)/10; |
|
| 183 | + spip_log("cache restant estime : $total_cache Mo, ratio ".$total_cache/$quota_cache,"invalideur"); |
|
| 184 | + |
|
| 185 | + // redemander la main pour eviter que le cache ne gonfle trop |
|
| 186 | + // mais pas si on ne peut pas purger car les fichiers sont trops recents |
|
| 187 | + if ( |
|
| 188 | + $total_cache/$quota_cache>1.5 |
|
| 189 | + AND $n*50>$trop) { |
|
| 190 | + $encore = true; |
|
| 191 | + spip_log("Il faut encore purger","invalideur"); |
|
| 192 | + } |
|
| 193 | + } |
|
| 194 | + } |
|
| 195 | + return $encore; |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | |
@@ -204,13 +204,13 @@ discard block |
||
| 204 | 204 | // http://doc.spip.org/@retire_cache |
| 205 | 205 | function retire_cache($cache) { |
| 206 | 206 | |
| 207 | - if (preg_match( |
|
| 208 | - "|^([0-9a-f]/)?([0-9]+/)?[^.][\-_\%0-9a-z]+--[0-9a-f]+(\.gz)?$|i", |
|
| 209 | - $cache)) { |
|
| 210 | - // supprimer le fichier (de facon propre) |
|
| 211 | - supprimer_fichier(_DIR_CACHE . $cache); |
|
| 212 | - } else |
|
| 213 | - spip_log("Nom de fichier cache incorrect : $cache"); |
|
| 207 | + if (preg_match( |
|
| 208 | + "|^([0-9a-f]/)?([0-9]+/)?[^.][\-_\%0-9a-z]+--[0-9a-f]+(\.gz)?$|i", |
|
| 209 | + $cache)) { |
|
| 210 | + // supprimer le fichier (de facon propre) |
|
| 211 | + supprimer_fichier(_DIR_CACHE . $cache); |
|
| 212 | + } else |
|
| 213 | + spip_log("Nom de fichier cache incorrect : $cache"); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | ####################################################################### |
@@ -225,8 +225,8 @@ discard block |
||
| 225 | 225 | // la meta est toujours false ; mais evitons un bug si elle est appellee |
| 226 | 226 | // http://doc.spip.org/@retire_caches |
| 227 | 227 | function retire_caches($chemin = '') { |
| 228 | - if (isset($GLOBALS['meta']['invalider_caches'])) |
|
| 229 | - effacer_meta('invalider_caches'); # concurrence |
|
| 228 | + if (isset($GLOBALS['meta']['invalider_caches'])) |
|
| 229 | + effacer_meta('invalider_caches'); # concurrence |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | |
@@ -14,162 +14,162 @@ |
||
| 14 | 14 | |
| 15 | 15 | // http://doc.spip.org/@spip_xml_load |
| 16 | 16 | function spip_xml_load($fichier, $strict=true, $clean=true, $taille_max = 1048576, $datas='', $profondeur = -1){ |
| 17 | - $contenu = ""; |
|
| 18 | - if (preg_match(",^(http|ftp)://,",$fichier)){ |
|
| 19 | - include_spip('inc/distant'); |
|
| 20 | - $contenu = recuperer_page($fichier,false,false,$taille_max, $datas); |
|
| 21 | - } |
|
| 22 | - else lire_fichier ($fichier, $contenu); |
|
| 23 | - $arbre = array(); |
|
| 24 | - if ($contenu) |
|
| 25 | - $arbre = spip_xml_parse($contenu, $strict, $clean, $profondeur); |
|
| 17 | + $contenu = ""; |
|
| 18 | + if (preg_match(",^(http|ftp)://,",$fichier)){ |
|
| 19 | + include_spip('inc/distant'); |
|
| 20 | + $contenu = recuperer_page($fichier,false,false,$taille_max, $datas); |
|
| 21 | + } |
|
| 22 | + else lire_fichier ($fichier, $contenu); |
|
| 23 | + $arbre = array(); |
|
| 24 | + if ($contenu) |
|
| 25 | + $arbre = spip_xml_parse($contenu, $strict, $clean, $profondeur); |
|
| 26 | 26 | |
| 27 | - return count($arbre)?$arbre:false; |
|
| 27 | + return count($arbre)?$arbre:false; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if (!defined('_SPIP_XML_TAG_SPLIT')) define('_SPIP_XML_TAG_SPLIT', "{<([^:>][^>]*?)>}sS"); |
| 31 | 31 | // http://doc.spip.org/@spip_xml_parse |
| 32 | 32 | function spip_xml_parse(&$texte, $strict=true, $clean=true, $profondeur = -1){ |
| 33 | - $out = array(); |
|
| 34 | - // enlever les commentaires |
|
| 35 | - $charset = 'AUTO'; |
|
| 36 | - if ($clean===true){ |
|
| 37 | - if (preg_match(",<\?xml\s(.*?)encoding=['\"]?(.*?)['\"]?(\s(.*))?\?>,im",$texte,$regs)) |
|
| 38 | - $charset = $regs[2]; |
|
| 39 | - $texte = preg_replace(',<!--(.*?)-->,is','',$texte); |
|
| 40 | - $texte = preg_replace(',<\?(.*?)\?>,is','',$texte); |
|
| 41 | - include_spip('inc/charsets'); |
|
| 42 | - $clean = $charset; |
|
| 43 | - //$texte = importer_charset($texte,$charset); |
|
| 44 | - } |
|
| 45 | - if (is_string($clean)) $charset = $clean; |
|
| 46 | - $txt = $texte; |
|
| 33 | + $out = array(); |
|
| 34 | + // enlever les commentaires |
|
| 35 | + $charset = 'AUTO'; |
|
| 36 | + if ($clean===true){ |
|
| 37 | + if (preg_match(",<\?xml\s(.*?)encoding=['\"]?(.*?)['\"]?(\s(.*))?\?>,im",$texte,$regs)) |
|
| 38 | + $charset = $regs[2]; |
|
| 39 | + $texte = preg_replace(',<!--(.*?)-->,is','',$texte); |
|
| 40 | + $texte = preg_replace(',<\?(.*?)\?>,is','',$texte); |
|
| 41 | + include_spip('inc/charsets'); |
|
| 42 | + $clean = $charset; |
|
| 43 | + //$texte = importer_charset($texte,$charset); |
|
| 44 | + } |
|
| 45 | + if (is_string($clean)) $charset = $clean; |
|
| 46 | + $txt = $texte; |
|
| 47 | 47 | |
| 48 | - // tant qu'il y a des tags |
|
| 49 | - $chars = preg_split(_SPIP_XML_TAG_SPLIT,$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 50 | - while(count($chars)>=2){ |
|
| 51 | - // tag ouvrant |
|
| 52 | - //$chars = preg_split("{<([^>]*?)>}s",$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 48 | + // tant qu'il y a des tags |
|
| 49 | + $chars = preg_split(_SPIP_XML_TAG_SPLIT,$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 50 | + while(count($chars)>=2){ |
|
| 51 | + // tag ouvrant |
|
| 52 | + //$chars = preg_split("{<([^>]*?)>}s",$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 53 | 53 | |
| 54 | - // $before doit etre vide ou des espaces uniquements! |
|
| 55 | - $before = trim($chars[0]); |
|
| 54 | + // $before doit etre vide ou des espaces uniquements! |
|
| 55 | + $before = trim($chars[0]); |
|
| 56 | 56 | |
| 57 | - if (strlen($before)>0) |
|
| 58 | - return importer_charset($texte,$charset);//$texte; // before non vide, donc on est dans du texte |
|
| 57 | + if (strlen($before)>0) |
|
| 58 | + return importer_charset($texte,$charset);//$texte; // before non vide, donc on est dans du texte |
|
| 59 | 59 | |
| 60 | - $tag = rtrim($chars[1]); |
|
| 61 | - $txt = $chars[2]; |
|
| 60 | + $tag = rtrim($chars[1]); |
|
| 61 | + $txt = $chars[2]; |
|
| 62 | 62 | |
| 63 | - if (strncmp($tag,'![CDATA[',8)==0) return importer_charset($texte,$charset);//$texte; |
|
| 64 | - if(substr($tag,-1)=='/'){ // self closing tag |
|
| 65 | - $tag = rtrim(substr($tag,0,strlen($tag)-1)); |
|
| 66 | - $out[$tag][]=""; |
|
| 67 | - } |
|
| 68 | - else{ |
|
| 69 | - $closing_tag = preg_split(",\s|\t|\n|\r,",trim($tag)); |
|
| 70 | - $closing_tag=reset($closing_tag); |
|
| 71 | - // tag fermant |
|
| 72 | - $ncclos = strlen("</$closing_tag>"); |
|
| 73 | - $p = strpos($txt,"</$closing_tag>"); |
|
| 74 | - if ($p!==FALSE AND (strpos($txt,"<")<$p)){ |
|
| 75 | - $nclose =0; $nopen = 0; |
|
| 76 | - $d = 0; |
|
| 77 | - while ( |
|
| 78 | - $p!==FALSE |
|
| 79 | - AND ($morceau = substr($txt,$d,$p-$d)) |
|
| 80 | - AND (($nopen+=preg_match_all("{<".preg_quote($closing_tag)."(\s*>|\s[^>]*[^/>]>)}is",$morceau,$matches,PREG_SET_ORDER))>$nclose) |
|
| 81 | - ){ |
|
| 82 | - $nclose++; |
|
| 83 | - $d=$p+$ncclos; |
|
| 84 | - $p = strpos($txt,"</$closing_tag>",$d); |
|
| 85 | - } |
|
| 86 | - } |
|
| 87 | - if ($p===FALSE){ |
|
| 88 | - if ($strict){ |
|
| 89 | - $out[$tag][]="erreur : tag fermant $tag manquant::$txt"; |
|
| 90 | - return $out; |
|
| 91 | - } |
|
| 92 | - else return importer_charset($texte,$charset);//$texte // un tag qui constitue du texte a reporter dans $before |
|
| 93 | - } |
|
| 94 | - $content = substr($txt,0,$p); |
|
| 95 | - $txt = substr($txt,$p+$ncclos); |
|
| 96 | - if ($profondeur==0 OR strpos($content,"<")===FALSE) // eviter une recursion si pas utile |
|
| 97 | - $out[$tag][] = importer_charset($content,$charset);//$content; |
|
| 98 | - else |
|
| 99 | - $out[$tag][]=spip_xml_parse($content, $strict, $clean, $profondeur-1); |
|
| 100 | - } |
|
| 101 | - $chars = preg_split(_SPIP_XML_TAG_SPLIT,$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 102 | - } |
|
| 103 | - if (count($out)&&(strlen(trim($txt))==0)) |
|
| 104 | - return $out; |
|
| 105 | - else |
|
| 106 | - return importer_charset($texte,$charset);//$texte; |
|
| 63 | + if (strncmp($tag,'![CDATA[',8)==0) return importer_charset($texte,$charset);//$texte; |
|
| 64 | + if(substr($tag,-1)=='/'){ // self closing tag |
|
| 65 | + $tag = rtrim(substr($tag,0,strlen($tag)-1)); |
|
| 66 | + $out[$tag][]=""; |
|
| 67 | + } |
|
| 68 | + else{ |
|
| 69 | + $closing_tag = preg_split(",\s|\t|\n|\r,",trim($tag)); |
|
| 70 | + $closing_tag=reset($closing_tag); |
|
| 71 | + // tag fermant |
|
| 72 | + $ncclos = strlen("</$closing_tag>"); |
|
| 73 | + $p = strpos($txt,"</$closing_tag>"); |
|
| 74 | + if ($p!==FALSE AND (strpos($txt,"<")<$p)){ |
|
| 75 | + $nclose =0; $nopen = 0; |
|
| 76 | + $d = 0; |
|
| 77 | + while ( |
|
| 78 | + $p!==FALSE |
|
| 79 | + AND ($morceau = substr($txt,$d,$p-$d)) |
|
| 80 | + AND (($nopen+=preg_match_all("{<".preg_quote($closing_tag)."(\s*>|\s[^>]*[^/>]>)}is",$morceau,$matches,PREG_SET_ORDER))>$nclose) |
|
| 81 | + ){ |
|
| 82 | + $nclose++; |
|
| 83 | + $d=$p+$ncclos; |
|
| 84 | + $p = strpos($txt,"</$closing_tag>",$d); |
|
| 85 | + } |
|
| 86 | + } |
|
| 87 | + if ($p===FALSE){ |
|
| 88 | + if ($strict){ |
|
| 89 | + $out[$tag][]="erreur : tag fermant $tag manquant::$txt"; |
|
| 90 | + return $out; |
|
| 91 | + } |
|
| 92 | + else return importer_charset($texte,$charset);//$texte // un tag qui constitue du texte a reporter dans $before |
|
| 93 | + } |
|
| 94 | + $content = substr($txt,0,$p); |
|
| 95 | + $txt = substr($txt,$p+$ncclos); |
|
| 96 | + if ($profondeur==0 OR strpos($content,"<")===FALSE) // eviter une recursion si pas utile |
|
| 97 | + $out[$tag][] = importer_charset($content,$charset);//$content; |
|
| 98 | + else |
|
| 99 | + $out[$tag][]=spip_xml_parse($content, $strict, $clean, $profondeur-1); |
|
| 100 | + } |
|
| 101 | + $chars = preg_split(_SPIP_XML_TAG_SPLIT,$txt,2,PREG_SPLIT_DELIM_CAPTURE); |
|
| 102 | + } |
|
| 103 | + if (count($out)&&(strlen(trim($txt))==0)) |
|
| 104 | + return $out; |
|
| 105 | + else |
|
| 106 | + return importer_charset($texte,$charset);//$texte; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | // http://doc.spip.org/@spip_xml_aplatit |
| 110 | 110 | function spip_xml_aplatit($arbre,$separateur = " "){ |
| 111 | - $s = ""; |
|
| 112 | - if (is_array($arbre)) |
|
| 113 | - foreach($arbre as $tag=>$feuille){ |
|
| 114 | - if (is_array($feuille)){ |
|
| 115 | - if ($tag!==intval($tag)){ |
|
| 116 | - $f = spip_xml_aplatit($feuille, $separateur); |
|
| 117 | - if (strlen($f)) { |
|
| 118 | - $tagf = explode(" ",$tag); |
|
| 119 | - $tagf = $tagf[0]; |
|
| 120 | - $s.="<$tag>$f</$tagf>"; |
|
| 121 | - } |
|
| 122 | - else $s.="<$tag />"; |
|
| 123 | - } |
|
| 124 | - else |
|
| 125 | - $s.=spip_xml_aplatit($feuille); |
|
| 126 | - $s .= $separateur; |
|
| 127 | - } |
|
| 128 | - else |
|
| 129 | - $s.="$feuille$separateur"; |
|
| 130 | - } |
|
| 131 | - return strlen($separateur) ? substr($s, 0, -strlen($separateur)) : $s; |
|
| 111 | + $s = ""; |
|
| 112 | + if (is_array($arbre)) |
|
| 113 | + foreach($arbre as $tag=>$feuille){ |
|
| 114 | + if (is_array($feuille)){ |
|
| 115 | + if ($tag!==intval($tag)){ |
|
| 116 | + $f = spip_xml_aplatit($feuille, $separateur); |
|
| 117 | + if (strlen($f)) { |
|
| 118 | + $tagf = explode(" ",$tag); |
|
| 119 | + $tagf = $tagf[0]; |
|
| 120 | + $s.="<$tag>$f</$tagf>"; |
|
| 121 | + } |
|
| 122 | + else $s.="<$tag />"; |
|
| 123 | + } |
|
| 124 | + else |
|
| 125 | + $s.=spip_xml_aplatit($feuille); |
|
| 126 | + $s .= $separateur; |
|
| 127 | + } |
|
| 128 | + else |
|
| 129 | + $s.="$feuille$separateur"; |
|
| 130 | + } |
|
| 131 | + return strlen($separateur) ? substr($s, 0, -strlen($separateur)) : $s; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | // http://doc.spip.org/@spip_xml_tagname |
| 135 | 135 | function spip_xml_tagname($tag){ |
| 136 | - if (preg_match(',^([a-z][\w:]*),i',$tag,$reg)) |
|
| 137 | - return $reg[1]; |
|
| 138 | - return ""; |
|
| 136 | + if (preg_match(',^([a-z][\w:]*),i',$tag,$reg)) |
|
| 137 | + return $reg[1]; |
|
| 138 | + return ""; |
|
| 139 | 139 | } |
| 140 | 140 | // http://doc.spip.org/@spip_xml_decompose_tag |
| 141 | 141 | function spip_xml_decompose_tag($tag){ |
| 142 | - $tagname = spip_xml_tagname($tag); |
|
| 143 | - $liste = array(); |
|
| 144 | - $p=strpos($tag,' '); |
|
| 145 | - $tag = substr($tag,$p); |
|
| 146 | - $p=strpos($tag,'='); |
|
| 147 | - while($p!==false){ |
|
| 148 | - $attr = trim(substr($tag,0,$p)); |
|
| 149 | - $tag = ltrim(substr($tag,$p+1)); |
|
| 150 | - $quote = $tag{0}; |
|
| 151 | - $p=strpos($tag,$quote,1); |
|
| 152 | - $cont = substr($tag,1,$p-1); |
|
| 153 | - $liste[$attr] = $cont; |
|
| 154 | - $tag = substr($tag,$p+1); |
|
| 155 | - $p=strpos($tag,'='); |
|
| 156 | - } |
|
| 157 | - return array($tagname,$liste); |
|
| 142 | + $tagname = spip_xml_tagname($tag); |
|
| 143 | + $liste = array(); |
|
| 144 | + $p=strpos($tag,' '); |
|
| 145 | + $tag = substr($tag,$p); |
|
| 146 | + $p=strpos($tag,'='); |
|
| 147 | + while($p!==false){ |
|
| 148 | + $attr = trim(substr($tag,0,$p)); |
|
| 149 | + $tag = ltrim(substr($tag,$p+1)); |
|
| 150 | + $quote = $tag{0}; |
|
| 151 | + $p=strpos($tag,$quote,1); |
|
| 152 | + $cont = substr($tag,1,$p-1); |
|
| 153 | + $liste[$attr] = $cont; |
|
| 154 | + $tag = substr($tag,$p+1); |
|
| 155 | + $p=strpos($tag,'='); |
|
| 156 | + } |
|
| 157 | + return array($tagname,$liste); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // http://doc.spip.org/@spip_xml_match_nodes |
| 161 | 161 | function spip_xml_match_nodes($regexp,&$arbre,&$matches,$init=true){ |
| 162 | - if ($init) |
|
| 163 | - $matches = array(); |
|
| 164 | - if(is_array($arbre) && count($arbre)) |
|
| 165 | - foreach(array_keys($arbre) as $tag){ |
|
| 166 | - if (preg_match($regexp,$tag)) |
|
| 167 | - $matches[$tag] = &$arbre[$tag]; |
|
| 168 | - if (is_array($arbre[$tag])) |
|
| 169 | - foreach(array_keys($arbre[$tag]) as $occurences) |
|
| 170 | - spip_xml_match_nodes($regexp,$arbre[$tag][$occurences],$matches,false); |
|
| 171 | - } |
|
| 172 | - return (count($matches)); |
|
| 162 | + if ($init) |
|
| 163 | + $matches = array(); |
|
| 164 | + if(is_array($arbre) && count($arbre)) |
|
| 165 | + foreach(array_keys($arbre) as $tag){ |
|
| 166 | + if (preg_match($regexp,$tag)) |
|
| 167 | + $matches[$tag] = &$arbre[$tag]; |
|
| 168 | + if (is_array($arbre[$tag])) |
|
| 169 | + foreach(array_keys($arbre[$tag]) as $occurences) |
|
| 170 | + spip_xml_match_nodes($regexp,$arbre[$tag][$occurences],$matches,false); |
|
| 171 | + } |
|
| 172 | + return (count($matches)); |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | |
@@ -24,32 +24,32 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | // http://doc.spip.org/@debut_cadre |
| 26 | 26 | function debut_cadre($style, $icone = "", $fonction = "", $titre = "", $id="", $class="", $padding=true) { |
| 27 | - $style_mapping=array('r'=>'simple','e'=>'raccourcis','couleur'=>'basic highlight','couleur-foncee'=>'basic highlight','trait-couleur'=>'important','alerte'=>'notice','info'=>'info','sous_rub'=>'simple sous-rub'); |
|
| 28 | - $style_titre_mapping=array('couleur'=>'topper','trait-couleur'=>'section'); |
|
| 29 | - $c = isset($style_mapping[$style])?$style_mapping[$style]:'simple'; |
|
| 30 | - $class = $c . ($class?" $class":""); |
|
| 31 | - if (!$padding) |
|
| 32 | - $class .= ($class?" ":"")."no-padding"; |
|
| 33 | - |
|
| 34 | - //($id?"id='$id' ":"") |
|
| 35 | - if (strlen($icone) > 1) { |
|
| 36 | - if ($icone_renommer = charger_fonction('icone_renommer','inc',true)) |
|
| 37 | - list($fond,$fonction) = $icone_renommer($icone,$fonction); |
|
| 38 | - $size = 24; |
|
| 39 | - if (preg_match("/-([0-9]{1,3})[.](gif|png)$/i",$fond,$match)) |
|
| 40 | - $size = $match[1]; |
|
| 41 | - if ($fonction){ |
|
| 42 | - // 2 images pour composer l'icone : le fond (article) en background, |
|
| 43 | - // la fonction (new) en image |
|
| 44 | - $icone = http_img_pack($fonction, "", "class='cadre-icone' width='$size' height='$size'\n" . |
|
| 45 | - http_style_background($fond, "no-repeat center center")); |
|
| 46 | - } |
|
| 47 | - else { |
|
| 48 | - $icone = http_img_pack($fond, "", "class='cadre-icone' width='$size' height='$size'"); |
|
| 49 | - } |
|
| 50 | - $titre = $icone . $titre; |
|
| 51 | - } |
|
| 52 | - return boite_ouvrir($titre, $class,isset($style_titre_mapping[$style])?$style_titre_mapping[$style]:'',$id); |
|
| 27 | + $style_mapping=array('r'=>'simple','e'=>'raccourcis','couleur'=>'basic highlight','couleur-foncee'=>'basic highlight','trait-couleur'=>'important','alerte'=>'notice','info'=>'info','sous_rub'=>'simple sous-rub'); |
|
| 28 | + $style_titre_mapping=array('couleur'=>'topper','trait-couleur'=>'section'); |
|
| 29 | + $c = isset($style_mapping[$style])?$style_mapping[$style]:'simple'; |
|
| 30 | + $class = $c . ($class?" $class":""); |
|
| 31 | + if (!$padding) |
|
| 32 | + $class .= ($class?" ":"")."no-padding"; |
|
| 33 | + |
|
| 34 | + //($id?"id='$id' ":"") |
|
| 35 | + if (strlen($icone) > 1) { |
|
| 36 | + if ($icone_renommer = charger_fonction('icone_renommer','inc',true)) |
|
| 37 | + list($fond,$fonction) = $icone_renommer($icone,$fonction); |
|
| 38 | + $size = 24; |
|
| 39 | + if (preg_match("/-([0-9]{1,3})[.](gif|png)$/i",$fond,$match)) |
|
| 40 | + $size = $match[1]; |
|
| 41 | + if ($fonction){ |
|
| 42 | + // 2 images pour composer l'icone : le fond (article) en background, |
|
| 43 | + // la fonction (new) en image |
|
| 44 | + $icone = http_img_pack($fonction, "", "class='cadre-icone' width='$size' height='$size'\n" . |
|
| 45 | + http_style_background($fond, "no-repeat center center")); |
|
| 46 | + } |
|
| 47 | + else { |
|
| 48 | + $icone = http_img_pack($fond, "", "class='cadre-icone' width='$size' height='$size'"); |
|
| 49 | + } |
|
| 50 | + $titre = $icone . $titre; |
|
| 51 | + } |
|
| 52 | + return boite_ouvrir($titre, $class,isset($style_titre_mapping[$style])?$style_titre_mapping[$style]:'',$id); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // http://doc.spip.org/@fin_cadre |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | // Se place a droite si l'ecran est en mode panoramique. |
| 81 | 81 | // http://doc.spip.org/@bloc_des_raccourcis |
| 82 | 82 | function bloc_des_raccourcis($bloc) { |
| 83 | - return creer_colonne_droite() |
|
| 84 | - . boite_ouvrir(_T('titre_cadre_raccourcis'),'raccourcis') . $bloc . boite_fermer(); |
|
| 83 | + return creer_colonne_droite() |
|
| 84 | + . boite_ouvrir(_T('titre_cadre_raccourcis'),'raccourcis') . $bloc . boite_fermer(); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | // Compatibilite |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | // http://doc.spip.org/@afficher_objets |
| 98 | 98 | function afficher_objets($type, $titre_table,$requete,$formater='',$force=false){ |
| 99 | - $afficher_objets = charger_fonction('afficher_objets','inc'); |
|
| 100 | - return $afficher_objets($type, $titre_table,$requete,$formater,$force); |
|
| 99 | + $afficher_objets = charger_fonction('afficher_objets','inc'); |
|
| 100 | + return $afficher_objets($type, $titre_table,$requete,$formater,$force); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | // Fonctions onglets |
@@ -108,36 +108,36 @@ discard block |
||
| 108 | 108 | function fin_onglet(){return "</ul></div>\n";} |
| 109 | 109 | // http://doc.spip.org/@onglet |
| 110 | 110 | function onglet($texte, $lien, $onglet_ref, $onglet, $icone=""){ |
| 111 | - return "<li>" |
|
| 112 | - . ($icone?http_img_pack($icone, '', " class='cadre-icone'"):'') |
|
| 113 | - . lien_ou_expose($lien,$texte,$onglet == $onglet_ref) |
|
| 114 | - . "</li>"; |
|
| 111 | + return "<li>" |
|
| 112 | + . ($icone?http_img_pack($icone, '', " class='cadre-icone'"):'') |
|
| 113 | + . lien_ou_expose($lien,$texte,$onglet == $onglet_ref) |
|
| 114 | + . "</li>"; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | // http://doc.spip.org/@icone_inline |
| 118 | 118 | function icone_verticale($texte, $lien, $fond, $fonction="", $align="", $javascript=""){ |
| 119 | - // cas d'ajax_action_auteur: faut defaire le boulot |
|
| 120 | - // (il faudrait fusionner avec le cas $javascript) |
|
| 121 | - if (preg_match(",^<a\shref='([^']*)'([^>]*)>(.*)</a>$,i",$lien,$r)) { |
|
| 122 | - list($x,$lien,$atts,$texte)= $r; |
|
| 123 | - $javascript .= $atts; |
|
| 124 | - } |
|
| 125 | - |
|
| 126 | - return icone_base($lien, $texte, $fond, $fonction,"verticale $align",$javascript); |
|
| 119 | + // cas d'ajax_action_auteur: faut defaire le boulot |
|
| 120 | + // (il faudrait fusionner avec le cas $javascript) |
|
| 121 | + if (preg_match(",^<a\shref='([^']*)'([^>]*)>(.*)</a>$,i",$lien,$r)) { |
|
| 122 | + list($x,$lien,$atts,$texte)= $r; |
|
| 123 | + $javascript .= $atts; |
|
| 124 | + } |
|
| 125 | + |
|
| 126 | + return icone_base($lien, $texte, $fond, $fonction,"verticale $align",$javascript); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | // http://doc.spip.org/@icone_horizontale |
| 130 | 130 | function icone_horizontale($texte, $lien, $fond, $fonction="", $dummy="", $javascript="") { |
| 131 | - $retour = ''; |
|
| 132 | - // cas d'ajax_action_auteur: faut defaire le boulot |
|
| 133 | - // (il faudrait fusionner avec le cas $javascript) |
|
| 134 | - if (preg_match(",^<a\shref='([^']*)'([^>]*)>(.*)</a>$,i",$lien,$r)) { |
|
| 135 | - list($x,$lien,$atts,$texte)= $r; |
|
| 136 | - $javascript .= $atts; |
|
| 137 | - } |
|
| 138 | - |
|
| 139 | - $retour = icone_base($lien, $texte, $fond, $fonction,"horizontale",$javascript); |
|
| 140 | - return $retour; |
|
| 131 | + $retour = ''; |
|
| 132 | + // cas d'ajax_action_auteur: faut defaire le boulot |
|
| 133 | + // (il faudrait fusionner avec le cas $javascript) |
|
| 134 | + if (preg_match(",^<a\shref='([^']*)'([^>]*)>(.*)</a>$,i",$lien,$r)) { |
|
| 135 | + list($x,$lien,$atts,$texte)= $r; |
|
| 136 | + $javascript .= $atts; |
|
| 137 | + } |
|
| 138 | + |
|
| 139 | + $retour = icone_base($lien, $texte, $fond, $fonction,"horizontale",$javascript); |
|
| 140 | + return $retour; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | ?> |
| 144 | 144 | \ No newline at end of file |
@@ -29,62 +29,62 @@ discard block |
||
| 29 | 29 | * Un tableau des sous rubriques |
| 30 | 30 | */ |
| 31 | 31 | function enfant_rub($collection,$debut=0,$limite=500){ |
| 32 | - $voir_logo = (isset($GLOBALS['meta']['image_process']) AND $GLOBALS['meta']['image_process'] != "non"); |
|
| 33 | - $logo = ""; |
|
| 32 | + $voir_logo = (isset($GLOBALS['meta']['image_process']) AND $GLOBALS['meta']['image_process'] != "non"); |
|
| 33 | + $logo = ""; |
|
| 34 | 34 | |
| 35 | - if ($voir_logo) { |
|
| 36 | - $chercher_logo = charger_fonction('chercher_logo', 'inc'); |
|
| 37 | - include_spip('inc/filtres_images_mini'); |
|
| 38 | - } |
|
| 35 | + if ($voir_logo) { |
|
| 36 | + $chercher_logo = charger_fonction('chercher_logo', 'inc'); |
|
| 37 | + include_spip('inc/filtres_images_mini'); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - $res = array(); |
|
| 40 | + $res = array(); |
|
| 41 | 41 | |
| 42 | - $result = sql_select("id_rubrique, id_parent, titre, descriptif, lang ", "spip_rubriques", "id_parent=$collection",'', '0+titre,titre',"$debut,$limite"); |
|
| 43 | - while($row=sql_fetch($result)){ |
|
| 44 | - $id_rubrique=$row['id_rubrique']; |
|
| 45 | - $id_parent=$row['id_parent']; |
|
| 46 | - $titre=generer_info_entite($id_rubrique,'rubrique','titre'); // pour etre sur de passer par tous les traitements |
|
| 47 | - if ('' !== ($rang = recuperer_numero($row['titre']))) |
|
| 48 | - $rang = "$rang. "; |
|
| 49 | - |
|
| 50 | - if (autoriser('voir','rubrique',$id_rubrique)){ |
|
| 51 | - |
|
| 52 | - $les_sous_enfants = sous_enfant_rub($id_rubrique); |
|
| 53 | - |
|
| 54 | - changer_typo($row['lang']); |
|
| 55 | - $lang_dir = lang_dir($row['lang']); |
|
| 56 | - $descriptif=propre($row['descriptif']); |
|
| 57 | - |
|
| 58 | - if ($voir_logo) { |
|
| 59 | - if ($logo = $chercher_logo($id_rubrique, 'id_rubrique', 'on')) { |
|
| 60 | - list($fid, $dir, $nom, $format) = $logo; |
|
| 61 | - $logo = image_reduire("<img src='$fid' alt='' />", 48, 36); |
|
| 62 | - if ($logo) |
|
| 63 | - $logo = inserer_attribut($logo,'class','logo'); |
|
| 64 | - } |
|
| 65 | - } |
|
| 66 | - |
|
| 67 | - $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? "" : |
|
| 68 | - http_img_pack('auteur-0minirezo-16.png', '', " width='16' height='16'", _T('image_administrer_rubrique'))) . |
|
| 69 | - " <a dir='$lang_dir' href='" . |
|
| 70 | - generer_url_entite($id_rubrique,'rubrique') . |
|
| 71 | - "'>". |
|
| 72 | - $rang . $titre . |
|
| 73 | - "</a>"; |
|
| 74 | - |
|
| 75 | - $titre = (is_string($logo) ? $logo : '') . |
|
| 76 | - bouton_block_depliable($lib_bouton,$les_sous_enfants ?false:-1,"enfants$id_rubrique"); |
|
| 77 | - |
|
| 78 | - $res[] = |
|
| 79 | - debut_cadre_sous_rub(($id_parent ? "rubrique-24.png" : "secteur-24.png"), true, "", $titre) . |
|
| 80 | - (!$descriptif ? '' : "\n<div class='descriptif'>$descriptif</div>") . |
|
| 81 | - $les_sous_enfants . |
|
| 82 | - fin_cadre_sous_rub(true); |
|
| 83 | - } |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - changer_typo($GLOBALS['spip_lang']); # remettre la typo de l'interface pour la suite |
|
| 87 | - return $res; |
|
| 42 | + $result = sql_select("id_rubrique, id_parent, titre, descriptif, lang ", "spip_rubriques", "id_parent=$collection",'', '0+titre,titre',"$debut,$limite"); |
|
| 43 | + while($row=sql_fetch($result)){ |
|
| 44 | + $id_rubrique=$row['id_rubrique']; |
|
| 45 | + $id_parent=$row['id_parent']; |
|
| 46 | + $titre=generer_info_entite($id_rubrique,'rubrique','titre'); // pour etre sur de passer par tous les traitements |
|
| 47 | + if ('' !== ($rang = recuperer_numero($row['titre']))) |
|
| 48 | + $rang = "$rang. "; |
|
| 49 | + |
|
| 50 | + if (autoriser('voir','rubrique',$id_rubrique)){ |
|
| 51 | + |
|
| 52 | + $les_sous_enfants = sous_enfant_rub($id_rubrique); |
|
| 53 | + |
|
| 54 | + changer_typo($row['lang']); |
|
| 55 | + $lang_dir = lang_dir($row['lang']); |
|
| 56 | + $descriptif=propre($row['descriptif']); |
|
| 57 | + |
|
| 58 | + if ($voir_logo) { |
|
| 59 | + if ($logo = $chercher_logo($id_rubrique, 'id_rubrique', 'on')) { |
|
| 60 | + list($fid, $dir, $nom, $format) = $logo; |
|
| 61 | + $logo = image_reduire("<img src='$fid' alt='' />", 48, 36); |
|
| 62 | + if ($logo) |
|
| 63 | + $logo = inserer_attribut($logo,'class','logo'); |
|
| 64 | + } |
|
| 65 | + } |
|
| 66 | + |
|
| 67 | + $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? "" : |
|
| 68 | + http_img_pack('auteur-0minirezo-16.png', '', " width='16' height='16'", _T('image_administrer_rubrique'))) . |
|
| 69 | + " <a dir='$lang_dir' href='" . |
|
| 70 | + generer_url_entite($id_rubrique,'rubrique') . |
|
| 71 | + "'>". |
|
| 72 | + $rang . $titre . |
|
| 73 | + "</a>"; |
|
| 74 | + |
|
| 75 | + $titre = (is_string($logo) ? $logo : '') . |
|
| 76 | + bouton_block_depliable($lib_bouton,$les_sous_enfants ?false:-1,"enfants$id_rubrique"); |
|
| 77 | + |
|
| 78 | + $res[] = |
|
| 79 | + debut_cadre_sous_rub(($id_parent ? "rubrique-24.png" : "secteur-24.png"), true, "", $titre) . |
|
| 80 | + (!$descriptif ? '' : "\n<div class='descriptif'>$descriptif</div>") . |
|
| 81 | + $les_sous_enfants . |
|
| 82 | + fin_cadre_sous_rub(true); |
|
| 83 | + } |
|
| 84 | + } |
|
| 85 | + |
|
| 86 | + changer_typo($GLOBALS['spip_lang']); # remettre la typo de l'interface pour la suite |
|
| 87 | + return $res; |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -97,47 +97,47 @@ discard block |
||
| 97 | 97 | * Le contenu du bloc dépliable |
| 98 | 98 | */ |
| 99 | 99 | function sous_enfant_rub($collection2){ |
| 100 | - $nb = sql_countsel('spip_rubriques',"id_parent=$collection2"); |
|
| 100 | + $nb = sql_countsel('spip_rubriques',"id_parent=$collection2"); |
|
| 101 | 101 | |
| 102 | - $retour = ''; |
|
| 103 | - $pagination = ''; |
|
| 104 | - $debut = 0; |
|
| 105 | - $limite = 500; |
|
| 102 | + $retour = ''; |
|
| 103 | + $pagination = ''; |
|
| 104 | + $debut = 0; |
|
| 105 | + $limite = 500; |
|
| 106 | 106 | |
| 107 | - /** |
|
| 108 | - * On ne va afficher que 500 résultats max |
|
| 109 | - * Si > 500 on affiche une pagination |
|
| 110 | - */ |
|
| 111 | - if($nb > $limite){ |
|
| 112 | - $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 113 | - $pagination = chercher_filtre('pagination'); |
|
| 114 | - $pagination = '<p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, 'prive').'</p>'; |
|
| 115 | - $limite = $debut + $limite; |
|
| 116 | - } |
|
| 107 | + /** |
|
| 108 | + * On ne va afficher que 500 résultats max |
|
| 109 | + * Si > 500 on affiche une pagination |
|
| 110 | + */ |
|
| 111 | + if($nb > $limite){ |
|
| 112 | + $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 113 | + $pagination = chercher_filtre('pagination'); |
|
| 114 | + $pagination = '<p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, 'prive').'</p>'; |
|
| 115 | + $limite = $debut + $limite; |
|
| 116 | + } |
|
| 117 | 117 | |
| 118 | - $result = sql_select("id_rubrique, id_parent, titre, lang", "spip_rubriques", "id_parent=$collection2",'', '0+titre,titre',"$debut,$limite"); |
|
| 118 | + $result = sql_select("id_rubrique, id_parent, titre, lang", "spip_rubriques", "id_parent=$collection2",'', '0+titre,titre',"$debut,$limite"); |
|
| 119 | 119 | |
| 120 | - while($row=sql_fetch($result)){ |
|
| 121 | - $id_rubrique2=$row['id_rubrique']; |
|
| 122 | - $id_parent2=$row['id_parent']; |
|
| 123 | - $titre2=generer_info_entite($id_rubrique2,'rubrique','titre'); // pour etre sur de passer par tous les traitements |
|
| 124 | - if ('' !== ($rang2 = recuperer_numero($row['titre']))) |
|
| 125 | - $rang2 = "$rang2. "; |
|
| 126 | - |
|
| 127 | - changer_typo($row['lang']); |
|
| 128 | - $lang_dir = lang_dir($row['lang']); |
|
| 129 | - if (autoriser('voir','rubrique',$id_rubrique2)) |
|
| 130 | - $retour.="\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite($id_rubrique2,'rubrique') . "'>".$rang2.$titre2."</a></li>\n"; |
|
| 131 | - } |
|
| 120 | + while($row=sql_fetch($result)){ |
|
| 121 | + $id_rubrique2=$row['id_rubrique']; |
|
| 122 | + $id_parent2=$row['id_parent']; |
|
| 123 | + $titre2=generer_info_entite($id_rubrique2,'rubrique','titre'); // pour etre sur de passer par tous les traitements |
|
| 124 | + if ('' !== ($rang2 = recuperer_numero($row['titre']))) |
|
| 125 | + $rang2 = "$rang2. "; |
|
| 126 | + |
|
| 127 | + changer_typo($row['lang']); |
|
| 128 | + $lang_dir = lang_dir($row['lang']); |
|
| 129 | + if (autoriser('voir','rubrique',$id_rubrique2)) |
|
| 130 | + $retour.="\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite($id_rubrique2,'rubrique') . "'>".$rang2.$titre2."</a></li>\n"; |
|
| 131 | + } |
|
| 132 | 132 | |
| 133 | - $retour = $pagination.$retour.$pagination; |
|
| 133 | + $retour = $pagination.$retour.$pagination; |
|
| 134 | 134 | |
| 135 | - if (!$retour) return ''; |
|
| 135 | + if (!$retour) return ''; |
|
| 136 | 136 | |
| 137 | - return debut_block_depliable($debut > 0 ? true : false,"enfants$collection2") |
|
| 138 | - ."\n<ul class='liste-items sous-sous-rub'>\n" |
|
| 139 | - . $retour |
|
| 140 | - . "</ul>\n".fin_block()."\n\n"; |
|
| 137 | + return debut_block_depliable($debut > 0 ? true : false,"enfants$collection2") |
|
| 138 | + ."\n<ul class='liste-items sous-sous-rub'>\n" |
|
| 139 | + . $retour |
|
| 140 | + . "</ul>\n".fin_block()."\n\n"; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
@@ -152,43 +152,43 @@ discard block |
||
| 152 | 152 | * Le contenu textuel affiché, la liste des sous rubriques |
| 153 | 153 | */ |
| 154 | 154 | function afficher_enfant_rub($id_rubrique=0) { |
| 155 | - $pagination = ''; |
|
| 156 | - $debut = 0; |
|
| 157 | - $limite = 500; |
|
| 155 | + $pagination = ''; |
|
| 156 | + $debut = 0; |
|
| 157 | + $limite = 500; |
|
| 158 | 158 | |
| 159 | - $nb = sql_countsel('spip_rubriques',"id_parent=$id_rubrique"); |
|
| 159 | + $nb = sql_countsel('spip_rubriques',"id_parent=$id_rubrique"); |
|
| 160 | 160 | |
| 161 | - if($nb > $limite){ |
|
| 162 | - $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 163 | - $pagination = chercher_filtre('pagination'); |
|
| 164 | - $pagination = '<br class="nettoyeur"><p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, 'prive').'</p>'; |
|
| 165 | - } |
|
| 166 | - |
|
| 167 | - $les_enfants = enfant_rub($id_rubrique,$debut,$limite); |
|
| 168 | - |
|
| 169 | - if (!$n = count($les_enfants)) return ""; |
|
| 170 | - |
|
| 171 | - if ($n==1) { |
|
| 172 | - $les_enfants=reset($les_enfants); |
|
| 173 | - $les_enfants2=""; |
|
| 174 | - } |
|
| 175 | - else{ |
|
| 176 | - $n = ceil($n/2); |
|
| 177 | - $les_enfants2 = implode('',array_slice($les_enfants,$n)); |
|
| 178 | - $les_enfants = implode('',array_slice($les_enfants,0,$n)); |
|
| 179 | - } |
|
| 161 | + if($nb > $limite){ |
|
| 162 | + $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 163 | + $pagination = chercher_filtre('pagination'); |
|
| 164 | + $pagination = '<br class="nettoyeur"><p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, 'prive').'</p>'; |
|
| 165 | + } |
|
| 166 | + |
|
| 167 | + $les_enfants = enfant_rub($id_rubrique,$debut,$limite); |
|
| 168 | + |
|
| 169 | + if (!$n = count($les_enfants)) return ""; |
|
| 170 | + |
|
| 171 | + if ($n==1) { |
|
| 172 | + $les_enfants=reset($les_enfants); |
|
| 173 | + $les_enfants2=""; |
|
| 174 | + } |
|
| 175 | + else{ |
|
| 176 | + $n = ceil($n/2); |
|
| 177 | + $les_enfants2 = implode('',array_slice($les_enfants,$n)); |
|
| 178 | + $les_enfants = implode('',array_slice($les_enfants,0,$n)); |
|
| 179 | + } |
|
| 180 | 180 | |
| 181 | - $res = |
|
| 182 | - $pagination |
|
| 183 | - . "<div class='gauche'>" |
|
| 184 | - . $les_enfants |
|
| 185 | - . "</div>" |
|
| 186 | - . "<div class='droite'>" |
|
| 187 | - . $les_enfants2 |
|
| 188 | - . "</div>" |
|
| 189 | - . $pagination; |
|
| 190 | - |
|
| 191 | - return $res; |
|
| 181 | + $res = |
|
| 182 | + $pagination |
|
| 183 | + . "<div class='gauche'>" |
|
| 184 | + . $les_enfants |
|
| 185 | + . "</div>" |
|
| 186 | + . "<div class='droite'>" |
|
| 187 | + . $les_enfants2 |
|
| 188 | + . "</div>" |
|
| 189 | + . $pagination; |
|
| 190 | + |
|
| 191 | + return $res; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | ?> |
@@ -20,20 +20,20 @@ discard block |
||
| 20 | 20 | // http://doc.spip.org/@definir_puce |
| 21 | 21 | function definir_puce() { |
| 22 | 22 | |
| 23 | - // Attention au sens, qui n'est pas defini de la meme facon dans |
|
| 24 | - // l'espace prive (spip_lang est la langue de l'interface, lang_dir |
|
| 25 | - // celle du texte) et public (spip_lang est la langue du texte) |
|
| 26 | - $dir = _DIR_RESTREINT ? lang_dir() : lang_dir($GLOBALS['spip_lang']); |
|
| 27 | - |
|
| 28 | - $p = 'puce' . (test_espace_prive() ? '_prive' : ''); |
|
| 29 | - if ($dir == 'rtl') $p .= '_rtl'; |
|
| 30 | - |
|
| 31 | - if (!isset($GLOBALS[$p])) { |
|
| 32 | - $img = find_in_path($p.'.gif'); |
|
| 33 | - list(,,,$size) = @getimagesize($img); |
|
| 34 | - $GLOBALS[$p] = '<img src="'.$img.'" '.$size.' class="puce" alt="-" />'; |
|
| 35 | - } |
|
| 36 | - return $GLOBALS[$p]; |
|
| 23 | + // Attention au sens, qui n'est pas defini de la meme facon dans |
|
| 24 | + // l'espace prive (spip_lang est la langue de l'interface, lang_dir |
|
| 25 | + // celle du texte) et public (spip_lang est la langue du texte) |
|
| 26 | + $dir = _DIR_RESTREINT ? lang_dir() : lang_dir($GLOBALS['spip_lang']); |
|
| 27 | + |
|
| 28 | + $p = 'puce' . (test_espace_prive() ? '_prive' : ''); |
|
| 29 | + if ($dir == 'rtl') $p .= '_rtl'; |
|
| 30 | + |
|
| 31 | + if (!isset($GLOBALS[$p])) { |
|
| 32 | + $img = find_in_path($p.'.gif'); |
|
| 33 | + list(,,,$size) = @getimagesize($img); |
|
| 34 | + $GLOBALS[$p] = '<img src="'.$img.'" '.$size.' class="puce" alt="-" />'; |
|
| 35 | + } |
|
| 36 | + return $GLOBALS[$p]; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | // dont on souhaite qu'ils provoquent un saut de paragraphe |
| 42 | 42 | |
| 43 | 43 | if (!defined('_BALISES_BLOCS')) define('_BALISES_BLOCS', |
| 44 | - 'p|div|pre|ul|ol|li|blockquote|h[1-6r]|' |
|
| 45 | - .'t(able|[rdh]|head|body|foot|extarea)|' |
|
| 46 | - .'form|object|center|marquee|address|' |
|
| 47 | - .'applet|iframe|' |
|
| 48 | - .'d[ltd]|script|noscript|map|button|fieldset|style'); |
|
| 44 | + 'p|div|pre|ul|ol|li|blockquote|h[1-6r]|' |
|
| 45 | + .'t(able|[rdh]|head|body|foot|extarea)|' |
|
| 46 | + .'form|object|center|marquee|address|' |
|
| 47 | + .'applet|iframe|' |
|
| 48 | + .'d[ltd]|script|noscript|map|button|fieldset|style'); |
|
| 49 | 49 | |
| 50 | 50 | if (!defined('_BALISES_BLOCS_REGEXP')) |
| 51 | - define('_BALISES_BLOCS_REGEXP',',</?('._BALISES_BLOCS.')[>[:space:]],iS'); |
|
| 51 | + define('_BALISES_BLOCS_REGEXP',',</?('._BALISES_BLOCS.')[>[:space:]],iS'); |
|
| 52 | 52 | |
| 53 | 53 | // |
| 54 | 54 | // Echapper les elements perilleux en les passant en base64 |
@@ -59,23 +59,23 @@ discard block |
||
| 59 | 59 | // echappe est un div ou un span |
| 60 | 60 | // http://doc.spip.org/@code_echappement |
| 61 | 61 | function code_echappement($rempl, $source='', $no_transform=false, $mode=NULL) { |
| 62 | - if (!strlen($rempl)) return ''; |
|
| 62 | + if (!strlen($rempl)) return ''; |
|
| 63 | 63 | |
| 64 | - // Tester si on echappe en span ou en div |
|
| 65 | - if (is_null($mode) OR !in_array($mode,array('div','span'))) |
|
| 66 | - $mode = preg_match(',</?('._BALISES_BLOCS.')[>[:space:]],iS', $rempl) ? 'div' : 'span'; |
|
| 64 | + // Tester si on echappe en span ou en div |
|
| 65 | + if (is_null($mode) OR !in_array($mode,array('div','span'))) |
|
| 66 | + $mode = preg_match(',</?('._BALISES_BLOCS.')[>[:space:]],iS', $rempl) ? 'div' : 'span'; |
|
| 67 | 67 | |
| 68 | - // Decouper en morceaux, base64 a des probleme selon la taille de la pile |
|
| 69 | - $taille = 30000; |
|
| 70 | - $return = ""; |
|
| 71 | - for($i = 0; $i < strlen($rempl); $i += $taille) { |
|
| 72 | - // Convertir en base64 et cacher dans un attribut |
|
| 73 | - // utiliser les " pour eviter le re-encodage de ' et ’ |
|
| 74 | - $base64 = base64_encode(substr($rempl, $i, $taille)); |
|
| 75 | - $return .= "<$mode class=\"base64$source\" title=\"$base64\"></$mode>"; |
|
| 76 | - } |
|
| 68 | + // Decouper en morceaux, base64 a des probleme selon la taille de la pile |
|
| 69 | + $taille = 30000; |
|
| 70 | + $return = ""; |
|
| 71 | + for($i = 0; $i < strlen($rempl); $i += $taille) { |
|
| 72 | + // Convertir en base64 et cacher dans un attribut |
|
| 73 | + // utiliser les " pour eviter le re-encodage de ' et ’ |
|
| 74 | + $base64 = base64_encode(substr($rempl, $i, $taille)); |
|
| 75 | + $return .= "<$mode class=\"base64$source\" title=\"$base64\"></$mode>"; |
|
| 76 | + } |
|
| 77 | 77 | |
| 78 | - return $return; |
|
| 78 | + return $return; |
|
| 79 | 79 | |
| 80 | 80 | } |
| 81 | 81 | |
@@ -83,59 +83,59 @@ discard block |
||
| 83 | 83 | // Echapper les <html>...</ html> |
| 84 | 84 | // http://doc.spip.org/@traiter_echap_html_dist |
| 85 | 85 | function traiter_echap_html_dist($regs) { |
| 86 | - return $regs[3]; |
|
| 86 | + return $regs[3]; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | // Echapper les <code>...</ code> |
| 90 | 90 | // http://doc.spip.org/@traiter_echap_code_dist |
| 91 | 91 | function traiter_echap_code_dist($regs) { |
| 92 | - list(,,$att,$corps) = $regs; |
|
| 93 | - $echap = spip_htmlspecialchars($corps); // il ne faut pas passer dans entites_html, ne pas transformer les &#xxx; du code ! |
|
| 94 | - |
|
| 95 | - // ne pas mettre le <div...> s'il n'y a qu'une ligne |
|
| 96 | - if (is_int(strpos($echap,"\n"))) { |
|
| 97 | - // supprimer les sauts de ligne debut/fin |
|
| 98 | - // (mais pas les espaces => ascii art). |
|
| 99 | - $echap = preg_replace("/^[\n\r]+|[\n\r]+$/s", "", $echap); |
|
| 100 | - $echap = nl2br($echap); |
|
| 101 | - $echap = "<div style='text-align: left;' " |
|
| 102 | - . "class='spip_code' dir='ltr'><code$att>" |
|
| 103 | - .$echap."</code></div>"; |
|
| 104 | - } else { |
|
| 105 | - $echap = "<code$att class='spip_code' dir='ltr'>".$echap."</code>"; |
|
| 106 | - } |
|
| 107 | - |
|
| 108 | - $echap = str_replace("\t", " ", $echap); |
|
| 109 | - $echap = str_replace(" ", " ", $echap); |
|
| 110 | - return $echap; |
|
| 92 | + list(,,$att,$corps) = $regs; |
|
| 93 | + $echap = spip_htmlspecialchars($corps); // il ne faut pas passer dans entites_html, ne pas transformer les &#xxx; du code ! |
|
| 94 | + |
|
| 95 | + // ne pas mettre le <div...> s'il n'y a qu'une ligne |
|
| 96 | + if (is_int(strpos($echap,"\n"))) { |
|
| 97 | + // supprimer les sauts de ligne debut/fin |
|
| 98 | + // (mais pas les espaces => ascii art). |
|
| 99 | + $echap = preg_replace("/^[\n\r]+|[\n\r]+$/s", "", $echap); |
|
| 100 | + $echap = nl2br($echap); |
|
| 101 | + $echap = "<div style='text-align: left;' " |
|
| 102 | + . "class='spip_code' dir='ltr'><code$att>" |
|
| 103 | + .$echap."</code></div>"; |
|
| 104 | + } else { |
|
| 105 | + $echap = "<code$att class='spip_code' dir='ltr'>".$echap."</code>"; |
|
| 106 | + } |
|
| 107 | + |
|
| 108 | + $echap = str_replace("\t", " ", $echap); |
|
| 109 | + $echap = str_replace(" ", " ", $echap); |
|
| 110 | + return $echap; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | // Echapper les <cadre>...</ cadre> aka <frame>...</ frame> |
| 114 | 114 | // http://doc.spip.org/@traiter_echap_cadre_dist |
| 115 | 115 | function traiter_echap_cadre_dist($regs) { |
| 116 | - $echap = trim(entites_html($regs[3])); |
|
| 117 | - // compter les lignes un peu plus finement qu'avec les \n |
|
| 118 | - $lignes = explode("\n",trim($echap)); |
|
| 119 | - $n = 0; |
|
| 120 | - foreach($lignes as $l) |
|
| 121 | - $n+=floor(strlen($l)/60)+1; |
|
| 122 | - $n = max($n,2); |
|
| 123 | - $echap = "\n<textarea readonly='readonly' cols='40' rows='$n' class='spip_cadre' dir='ltr'>$echap</textarea>"; |
|
| 124 | - return $echap; |
|
| 116 | + $echap = trim(entites_html($regs[3])); |
|
| 117 | + // compter les lignes un peu plus finement qu'avec les \n |
|
| 118 | + $lignes = explode("\n",trim($echap)); |
|
| 119 | + $n = 0; |
|
| 120 | + foreach($lignes as $l) |
|
| 121 | + $n+=floor(strlen($l)/60)+1; |
|
| 122 | + $n = max($n,2); |
|
| 123 | + $echap = "\n<textarea readonly='readonly' cols='40' rows='$n' class='spip_cadre' dir='ltr'>$echap</textarea>"; |
|
| 124 | + return $echap; |
|
| 125 | 125 | } |
| 126 | 126 | // http://doc.spip.org/@traiter_echap_frame_dist |
| 127 | 127 | function traiter_echap_frame_dist($regs) { |
| 128 | - return traiter_echap_cadre_dist($regs); |
|
| 128 | + return traiter_echap_cadre_dist($regs); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | // http://doc.spip.org/@traiter_echap_script_dist |
| 132 | 132 | function traiter_echap_script_dist($regs) { |
| 133 | - // rendre joli (et inactif) si c'est un script language=php |
|
| 134 | - if (preg_match(',<script\b[^>]+php,ims', $regs[0])) |
|
| 135 | - return highlight_string($regs[0],true); |
|
| 133 | + // rendre joli (et inactif) si c'est un script language=php |
|
| 134 | + if (preg_match(',<script\b[^>]+php,ims', $regs[0])) |
|
| 135 | + return highlight_string($regs[0],true); |
|
| 136 | 136 | |
| 137 | - // Cas normal : le script passe tel quel |
|
| 138 | - return $regs[0]; |
|
| 137 | + // Cas normal : le script passe tel quel |
|
| 138 | + return $regs[0]; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
@@ -144,12 +144,12 @@ discard block |
||
| 144 | 144 | * @return string |
| 145 | 145 | */ |
| 146 | 146 | function traiter_echap_math_dist($regs) { |
| 147 | - // Gestion du TeX |
|
| 148 | - if (!function_exists('traiter_math')) |
|
| 149 | - include_spip('inc/math'); |
|
| 147 | + // Gestion du TeX |
|
| 148 | + if (!function_exists('traiter_math')) |
|
| 149 | + include_spip('inc/math'); |
|
| 150 | 150 | |
| 151 | - $t = traiter_math($regs[0], ''); |
|
| 152 | - return $t; |
|
| 151 | + $t = traiter_math($regs[0], ''); |
|
| 152 | + return $t; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | define('_PROTEGE_BLOCS', ',<(html|code|cadre|frame|script)(\s[^>]*)?>(.*)</\1>,UimsS'); |
@@ -159,67 +159,67 @@ discard block |
||
| 159 | 159 | // http://doc.spip.org/@echappe_html |
| 160 | 160 | function echappe_html($letexte, $source='', $no_transform=false, |
| 161 | 161 | $preg='') { |
| 162 | - if (!is_string($letexte) or !strlen($letexte)) |
|
| 163 | - return $letexte; |
|
| 164 | - |
|
| 165 | - // si le texte recu est long PCRE risque d'exploser, on |
|
| 166 | - // fait donc un mic-mac pour augmenter pcre.backtrack_limit |
|
| 167 | - if (($len = strlen($letexte)) > 100000) { |
|
| 168 | - if (!$old = @ini_get('pcre.backtrack_limit')) $old = 100000; |
|
| 169 | - if ($len > $old) { |
|
| 170 | - $a = @ini_set('pcre.backtrack_limit', $len); |
|
| 171 | - spip_log("ini_set pcre.backtrack_limit=$len ($old)"); |
|
| 172 | - } |
|
| 173 | - } |
|
| 174 | - |
|
| 175 | - if (($preg OR strpos($letexte,"<")!==false) |
|
| 176 | - AND preg_match_all($preg ? $preg : _PROTEGE_BLOCS, $letexte, $matches, PREG_SET_ORDER)) { |
|
| 177 | - foreach ($matches as $regs) { |
|
| 178 | - // echappements tels quels ? |
|
| 179 | - if ($no_transform) { |
|
| 180 | - $echap = $regs[0]; |
|
| 181 | - } |
|
| 182 | - |
|
| 183 | - // sinon les traiter selon le cas |
|
| 184 | - else if (function_exists($f = 'traiter_echap_'.strtolower($regs[1]))) |
|
| 185 | - $echap = $f($regs); |
|
| 186 | - else if (function_exists($f = $f.'_dist')) |
|
| 187 | - $echap = $f($regs); |
|
| 188 | - |
|
| 189 | - $p = strpos($letexte,$regs[0]); |
|
| 190 | - $letexte = substr_replace($letexte,code_echappement($echap, $source, $no_transform),$p,strlen($regs[0])); |
|
| 191 | - } |
|
| 192 | - } |
|
| 193 | - |
|
| 194 | - if ($no_transform) |
|
| 195 | - return $letexte; |
|
| 196 | - |
|
| 197 | - // Gestion du TeX |
|
| 198 | - // code mort sauf si on a personalise _PROTEGE_BLOCS sans y mettre <math> |
|
| 199 | - // eviter la rupture de compat en branche 3.0 |
|
| 200 | - // a supprimer en branche 3.1 |
|
| 201 | - if (strpos($preg ? $preg : _PROTEGE_BLOCS,'code')!==false){ |
|
| 202 | - if (strpos($letexte, "<math>") !== false) { |
|
| 203 | - include_spip('inc/math'); |
|
| 204 | - $letexte = traiter_math($letexte, $source); |
|
| 205 | - } |
|
| 206 | - } |
|
| 207 | - |
|
| 208 | - // Echapper le php pour faire joli (ici, c'est pas pour la securite) |
|
| 209 | - // seulement si on a echappe les <script> |
|
| 210 | - // (derogatoire car on ne peut pas faire passer < ? ... ? > |
|
| 211 | - // dans une callback autonommee |
|
| 212 | - if (strpos($preg ? $preg : _PROTEGE_BLOCS,'script')!==false){ |
|
| 213 | - if (strpos($letexte,"<"."?")!==false AND preg_match_all(',<[?].*($|[?]>),UisS', |
|
| 214 | - $letexte, $matches, PREG_SET_ORDER)) |
|
| 215 | - foreach ($matches as $regs) { |
|
| 216 | - $letexte = str_replace($regs[0], |
|
| 217 | - code_echappement(highlight_string($regs[0],true), $source), |
|
| 218 | - $letexte); |
|
| 219 | - } |
|
| 220 | - } |
|
| 221 | - |
|
| 222 | - return $letexte; |
|
| 162 | + if (!is_string($letexte) or !strlen($letexte)) |
|
| 163 | + return $letexte; |
|
| 164 | + |
|
| 165 | + // si le texte recu est long PCRE risque d'exploser, on |
|
| 166 | + // fait donc un mic-mac pour augmenter pcre.backtrack_limit |
|
| 167 | + if (($len = strlen($letexte)) > 100000) { |
|
| 168 | + if (!$old = @ini_get('pcre.backtrack_limit')) $old = 100000; |
|
| 169 | + if ($len > $old) { |
|
| 170 | + $a = @ini_set('pcre.backtrack_limit', $len); |
|
| 171 | + spip_log("ini_set pcre.backtrack_limit=$len ($old)"); |
|
| 172 | + } |
|
| 173 | + } |
|
| 174 | + |
|
| 175 | + if (($preg OR strpos($letexte,"<")!==false) |
|
| 176 | + AND preg_match_all($preg ? $preg : _PROTEGE_BLOCS, $letexte, $matches, PREG_SET_ORDER)) { |
|
| 177 | + foreach ($matches as $regs) { |
|
| 178 | + // echappements tels quels ? |
|
| 179 | + if ($no_transform) { |
|
| 180 | + $echap = $regs[0]; |
|
| 181 | + } |
|
| 182 | + |
|
| 183 | + // sinon les traiter selon le cas |
|
| 184 | + else if (function_exists($f = 'traiter_echap_'.strtolower($regs[1]))) |
|
| 185 | + $echap = $f($regs); |
|
| 186 | + else if (function_exists($f = $f.'_dist')) |
|
| 187 | + $echap = $f($regs); |
|
| 188 | + |
|
| 189 | + $p = strpos($letexte,$regs[0]); |
|
| 190 | + $letexte = substr_replace($letexte,code_echappement($echap, $source, $no_transform),$p,strlen($regs[0])); |
|
| 191 | + } |
|
| 192 | + } |
|
| 193 | + |
|
| 194 | + if ($no_transform) |
|
| 195 | + return $letexte; |
|
| 196 | + |
|
| 197 | + // Gestion du TeX |
|
| 198 | + // code mort sauf si on a personalise _PROTEGE_BLOCS sans y mettre <math> |
|
| 199 | + // eviter la rupture de compat en branche 3.0 |
|
| 200 | + // a supprimer en branche 3.1 |
|
| 201 | + if (strpos($preg ? $preg : _PROTEGE_BLOCS,'code')!==false){ |
|
| 202 | + if (strpos($letexte, "<math>") !== false) { |
|
| 203 | + include_spip('inc/math'); |
|
| 204 | + $letexte = traiter_math($letexte, $source); |
|
| 205 | + } |
|
| 206 | + } |
|
| 207 | + |
|
| 208 | + // Echapper le php pour faire joli (ici, c'est pas pour la securite) |
|
| 209 | + // seulement si on a echappe les <script> |
|
| 210 | + // (derogatoire car on ne peut pas faire passer < ? ... ? > |
|
| 211 | + // dans une callback autonommee |
|
| 212 | + if (strpos($preg ? $preg : _PROTEGE_BLOCS,'script')!==false){ |
|
| 213 | + if (strpos($letexte,"<"."?")!==false AND preg_match_all(',<[?].*($|[?]>),UisS', |
|
| 214 | + $letexte, $matches, PREG_SET_ORDER)) |
|
| 215 | + foreach ($matches as $regs) { |
|
| 216 | + $letexte = str_replace($regs[0], |
|
| 217 | + code_echappement(highlight_string($regs[0],true), $source), |
|
| 218 | + $letexte); |
|
| 219 | + } |
|
| 220 | + } |
|
| 221 | + |
|
| 222 | + return $letexte; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | // |
@@ -228,33 +228,33 @@ discard block |
||
| 228 | 228 | // par propre() : exemple dans multi et dans typo() |
| 229 | 229 | // http://doc.spip.org/@echappe_retour |
| 230 | 230 | function echappe_retour($letexte, $source='', $filtre = "") { |
| 231 | - if (strpos($letexte,"base64$source")) { |
|
| 232 | - # spip_log(spip_htmlspecialchars($letexte)); ## pour les curieux |
|
| 233 | - $max_prof = 5; |
|
| 234 | - while (strpos($letexte,"<")!==false |
|
| 235 | - AND |
|
| 236 | - preg_match_all(',<(span|div)\sclass=[\'"]base64'.$source.'[\'"]\s(.*)>\s*</\1>,UmsS', |
|
| 237 | - $letexte, $regs, PREG_SET_ORDER) |
|
| 238 | - AND $max_prof--) { |
|
| 239 | - foreach ($regs as $reg) { |
|
| 240 | - $rempl = base64_decode(extraire_attribut($reg[0], 'title')); |
|
| 241 | - // recherche d'attributs supplementaires |
|
| 242 | - $at = array(); |
|
| 243 | - foreach(array('lang', 'dir') as $attr) { |
|
| 244 | - if ($a = extraire_attribut($reg[0], $attr)) |
|
| 245 | - $at[$attr] = $a; |
|
| 246 | - } |
|
| 247 | - if ($at) { |
|
| 248 | - $rempl = '<'.$reg[1].'>'.$rempl.'</'.$reg[1].'>'; |
|
| 249 | - foreach($at as $attr => $a) |
|
| 250 | - $rempl = inserer_attribut($rempl, $attr, $a); |
|
| 251 | - } |
|
| 252 | - if ($filtre) $rempl = $filtre($rempl); |
|
| 253 | - $letexte = str_replace($reg[0], $rempl, $letexte); |
|
| 254 | - } |
|
| 255 | - } |
|
| 256 | - } |
|
| 257 | - return $letexte; |
|
| 231 | + if (strpos($letexte,"base64$source")) { |
|
| 232 | + # spip_log(spip_htmlspecialchars($letexte)); ## pour les curieux |
|
| 233 | + $max_prof = 5; |
|
| 234 | + while (strpos($letexte,"<")!==false |
|
| 235 | + AND |
|
| 236 | + preg_match_all(',<(span|div)\sclass=[\'"]base64'.$source.'[\'"]\s(.*)>\s*</\1>,UmsS', |
|
| 237 | + $letexte, $regs, PREG_SET_ORDER) |
|
| 238 | + AND $max_prof--) { |
|
| 239 | + foreach ($regs as $reg) { |
|
| 240 | + $rempl = base64_decode(extraire_attribut($reg[0], 'title')); |
|
| 241 | + // recherche d'attributs supplementaires |
|
| 242 | + $at = array(); |
|
| 243 | + foreach(array('lang', 'dir') as $attr) { |
|
| 244 | + if ($a = extraire_attribut($reg[0], $attr)) |
|
| 245 | + $at[$attr] = $a; |
|
| 246 | + } |
|
| 247 | + if ($at) { |
|
| 248 | + $rempl = '<'.$reg[1].'>'.$rempl.'</'.$reg[1].'>'; |
|
| 249 | + foreach($at as $attr => $a) |
|
| 250 | + $rempl = inserer_attribut($rempl, $attr, $a); |
|
| 251 | + } |
|
| 252 | + if ($filtre) $rempl = $filtre($rempl); |
|
| 253 | + $letexte = str_replace($reg[0], $rempl, $letexte); |
|
| 254 | + } |
|
| 255 | + } |
|
| 256 | + } |
|
| 257 | + return $letexte; |
|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | // Reinserer le javascript de confiance (venant des modeles) |
@@ -262,130 +262,130 @@ discard block |
||
| 262 | 262 | // http://doc.spip.org/@echappe_retour_modeles |
| 263 | 263 | function echappe_retour_modeles($letexte, $interdire_scripts=false) |
| 264 | 264 | { |
| 265 | - $letexte = echappe_retour($letexte); |
|
| 265 | + $letexte = echappe_retour($letexte); |
|
| 266 | 266 | |
| 267 | - // Dans les appels directs hors squelette, securiser aussi ici |
|
| 268 | - if ($interdire_scripts) |
|
| 269 | - $letexte = interdire_scripts($letexte); |
|
| 267 | + // Dans les appels directs hors squelette, securiser aussi ici |
|
| 268 | + if ($interdire_scripts) |
|
| 269 | + $letexte = interdire_scripts($letexte); |
|
| 270 | 270 | |
| 271 | - return trim($letexte); |
|
| 271 | + return trim($letexte); |
|
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | |
| 275 | 275 | // http://doc.spip.org/@couper |
| 276 | 276 | function couper($texte, $taille=50, $suite = ' (...)') { |
| 277 | - if (!($length=strlen($texte)) OR $taille <= 0) return ''; |
|
| 278 | - $offset = 400 + 2*$taille; |
|
| 279 | - while ($offset<$length |
|
| 280 | - AND strlen(preg_replace(",<[^>]+>,Uims","",substr($texte,0,$offset)))<$taille) |
|
| 281 | - $offset = 2*$offset; |
|
| 282 | - if ( $offset<$length |
|
| 283 | - && ($p_tag_ouvrant = strpos($texte,'<',$offset))!==NULL){ |
|
| 284 | - $p_tag_fermant = strpos($texte,'>',$offset); |
|
| 285 | - if ($p_tag_fermant && ($p_tag_fermant<$p_tag_ouvrant)) |
|
| 286 | - $offset = $p_tag_fermant+1; // prolonger la coupe jusqu'au tag fermant suivant eventuel |
|
| 287 | - } |
|
| 288 | - $texte = substr($texte, 0, $offset); /* eviter de travailler sur 10ko pour extraire 150 caracteres */ |
|
| 289 | - |
|
| 290 | - // on utilise les \r pour passer entre les gouttes |
|
| 291 | - $texte = str_replace("\r\n", "\n", $texte); |
|
| 292 | - $texte = str_replace("\r", "\n", $texte); |
|
| 293 | - |
|
| 294 | - // sauts de ligne et paragraphes |
|
| 295 | - $texte = preg_replace("/\n\n+/", "\r", $texte); |
|
| 296 | - $texte = preg_replace("/<(p|br)( [^>]*)?".">/", "\r", $texte); |
|
| 297 | - |
|
| 298 | - // supprimer les traits, lignes etc |
|
| 299 | - $texte = preg_replace("/(^|\r|\n)(-[-#\*]*|_ )/", "\r", $texte); |
|
| 300 | - |
|
| 301 | - // supprimer les tags |
|
| 302 | - $texte = supprimer_tags($texte); |
|
| 303 | - $texte = trim(str_replace("\n"," ", $texte)); |
|
| 304 | - $texte .= "\n"; // marquer la fin |
|
| 305 | - |
|
| 306 | - // travailler en accents charset |
|
| 307 | - $texte = unicode2charset(html2unicode($texte, /* secure */ true)); |
|
| 308 | - if (!function_exists('nettoyer_raccourcis_typo')) |
|
| 309 | - include_spip('inc/lien'); |
|
| 310 | - $texte = nettoyer_raccourcis_typo($texte); |
|
| 311 | - |
|
| 312 | - // corriger la longueur de coupe |
|
| 313 | - // en fonction de la presence de caracteres utf |
|
| 314 | - if ($GLOBALS['meta']['charset']=='utf-8'){ |
|
| 315 | - $long = charset2unicode($texte); |
|
| 316 | - $long = spip_substr($long, 0, max($taille,1)); |
|
| 317 | - $nbcharutf = preg_match_all('/(&#[0-9]{3,5};)/S', $long, $matches); |
|
| 318 | - $taille += $nbcharutf; |
|
| 319 | - } |
|
| 320 | - |
|
| 321 | - |
|
| 322 | - // couper au mot precedent |
|
| 323 | - $long = spip_substr($texte, 0, max($taille-4,1)); |
|
| 324 | - $u = $GLOBALS['meta']['pcre_u']; |
|
| 325 | - $court = preg_replace("/([^\s][\s]+)[^\s]*\n?$/".$u, "\\1", $long); |
|
| 326 | - $points = $suite; |
|
| 327 | - |
|
| 328 | - // trop court ? ne pas faire de (...) |
|
| 329 | - if (spip_strlen($court) < max(0.75 * $taille,2)) { |
|
| 330 | - $points = ''; |
|
| 331 | - $long = spip_substr($texte, 0, $taille); |
|
| 332 | - $texte = preg_replace("/([^\s][\s]+)[^\s]*\n?$/".$u, "\\1", $long); |
|
| 333 | - // encore trop court ? couper au caractere |
|
| 334 | - if (spip_strlen($texte) < 0.75 * $taille) |
|
| 335 | - $texte = $long; |
|
| 336 | - } else |
|
| 337 | - $texte = $court; |
|
| 338 | - |
|
| 339 | - if (strpos($texte, "\n")) // la fin est encore la : c'est qu'on n'a pas de texte de suite |
|
| 340 | - $points = ''; |
|
| 341 | - |
|
| 342 | - // remettre les paragraphes |
|
| 343 | - $texte = preg_replace("/\r+/", "\n\n", $texte); |
|
| 344 | - |
|
| 345 | - // supprimer l'eventuelle entite finale mal coupee |
|
| 346 | - $texte = preg_replace('/&#?[a-z0-9]*$/S', '', $texte); |
|
| 347 | - |
|
| 348 | - return quote_amp(trim($texte)).$points; |
|
| 277 | + if (!($length=strlen($texte)) OR $taille <= 0) return ''; |
|
| 278 | + $offset = 400 + 2*$taille; |
|
| 279 | + while ($offset<$length |
|
| 280 | + AND strlen(preg_replace(",<[^>]+>,Uims","",substr($texte,0,$offset)))<$taille) |
|
| 281 | + $offset = 2*$offset; |
|
| 282 | + if ( $offset<$length |
|
| 283 | + && ($p_tag_ouvrant = strpos($texte,'<',$offset))!==NULL){ |
|
| 284 | + $p_tag_fermant = strpos($texte,'>',$offset); |
|
| 285 | + if ($p_tag_fermant && ($p_tag_fermant<$p_tag_ouvrant)) |
|
| 286 | + $offset = $p_tag_fermant+1; // prolonger la coupe jusqu'au tag fermant suivant eventuel |
|
| 287 | + } |
|
| 288 | + $texte = substr($texte, 0, $offset); /* eviter de travailler sur 10ko pour extraire 150 caracteres */ |
|
| 289 | + |
|
| 290 | + // on utilise les \r pour passer entre les gouttes |
|
| 291 | + $texte = str_replace("\r\n", "\n", $texte); |
|
| 292 | + $texte = str_replace("\r", "\n", $texte); |
|
| 293 | + |
|
| 294 | + // sauts de ligne et paragraphes |
|
| 295 | + $texte = preg_replace("/\n\n+/", "\r", $texte); |
|
| 296 | + $texte = preg_replace("/<(p|br)( [^>]*)?".">/", "\r", $texte); |
|
| 297 | + |
|
| 298 | + // supprimer les traits, lignes etc |
|
| 299 | + $texte = preg_replace("/(^|\r|\n)(-[-#\*]*|_ )/", "\r", $texte); |
|
| 300 | + |
|
| 301 | + // supprimer les tags |
|
| 302 | + $texte = supprimer_tags($texte); |
|
| 303 | + $texte = trim(str_replace("\n"," ", $texte)); |
|
| 304 | + $texte .= "\n"; // marquer la fin |
|
| 305 | + |
|
| 306 | + // travailler en accents charset |
|
| 307 | + $texte = unicode2charset(html2unicode($texte, /* secure */ true)); |
|
| 308 | + if (!function_exists('nettoyer_raccourcis_typo')) |
|
| 309 | + include_spip('inc/lien'); |
|
| 310 | + $texte = nettoyer_raccourcis_typo($texte); |
|
| 311 | + |
|
| 312 | + // corriger la longueur de coupe |
|
| 313 | + // en fonction de la presence de caracteres utf |
|
| 314 | + if ($GLOBALS['meta']['charset']=='utf-8'){ |
|
| 315 | + $long = charset2unicode($texte); |
|
| 316 | + $long = spip_substr($long, 0, max($taille,1)); |
|
| 317 | + $nbcharutf = preg_match_all('/(&#[0-9]{3,5};)/S', $long, $matches); |
|
| 318 | + $taille += $nbcharutf; |
|
| 319 | + } |
|
| 320 | + |
|
| 321 | + |
|
| 322 | + // couper au mot precedent |
|
| 323 | + $long = spip_substr($texte, 0, max($taille-4,1)); |
|
| 324 | + $u = $GLOBALS['meta']['pcre_u']; |
|
| 325 | + $court = preg_replace("/([^\s][\s]+)[^\s]*\n?$/".$u, "\\1", $long); |
|
| 326 | + $points = $suite; |
|
| 327 | + |
|
| 328 | + // trop court ? ne pas faire de (...) |
|
| 329 | + if (spip_strlen($court) < max(0.75 * $taille,2)) { |
|
| 330 | + $points = ''; |
|
| 331 | + $long = spip_substr($texte, 0, $taille); |
|
| 332 | + $texte = preg_replace("/([^\s][\s]+)[^\s]*\n?$/".$u, "\\1", $long); |
|
| 333 | + // encore trop court ? couper au caractere |
|
| 334 | + if (spip_strlen($texte) < 0.75 * $taille) |
|
| 335 | + $texte = $long; |
|
| 336 | + } else |
|
| 337 | + $texte = $court; |
|
| 338 | + |
|
| 339 | + if (strpos($texte, "\n")) // la fin est encore la : c'est qu'on n'a pas de texte de suite |
|
| 340 | + $points = ''; |
|
| 341 | + |
|
| 342 | + // remettre les paragraphes |
|
| 343 | + $texte = preg_replace("/\r+/", "\n\n", $texte); |
|
| 344 | + |
|
| 345 | + // supprimer l'eventuelle entite finale mal coupee |
|
| 346 | + $texte = preg_replace('/&#?[a-z0-9]*$/S', '', $texte); |
|
| 347 | + |
|
| 348 | + return quote_amp(trim($texte)).$points; |
|
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | |
| 352 | 352 | // http://doc.spip.org/@protege_js_modeles |
| 353 | 353 | function protege_js_modeles($t) { |
| 354 | - if (isset($GLOBALS['visiteur_session'])){ |
|
| 355 | - if (preg_match_all(',<script.*?($|</script.),isS', $t, $r, PREG_SET_ORDER)){ |
|
| 356 | - if (!defined('_PROTEGE_JS_MODELES')){ |
|
| 357 | - include_spip('inc/acces'); |
|
| 358 | - define('_PROTEGE_JS_MODELES',creer_uniqid()); |
|
| 359 | - } |
|
| 360 | - foreach ($r as $regs) |
|
| 361 | - $t = str_replace($regs[0],code_echappement($regs[0],'javascript'._PROTEGE_JS_MODELES),$t); |
|
| 362 | - } |
|
| 363 | - if (preg_match_all(',<\?php.*?($|\?'.'>),isS', $t, $r, PREG_SET_ORDER)){ |
|
| 364 | - if (!defined('_PROTEGE_PHP_MODELES')){ |
|
| 365 | - include_spip('inc/acces'); |
|
| 366 | - define('_PROTEGE_PHP_MODELES',creer_uniqid()); |
|
| 367 | - } |
|
| 368 | - foreach ($r as $regs) |
|
| 369 | - $t = str_replace($regs[0],code_echappement($regs[0],'php'._PROTEGE_PHP_MODELES),$t); |
|
| 370 | - } |
|
| 371 | - } |
|
| 372 | - return $t; |
|
| 354 | + if (isset($GLOBALS['visiteur_session'])){ |
|
| 355 | + if (preg_match_all(',<script.*?($|</script.),isS', $t, $r, PREG_SET_ORDER)){ |
|
| 356 | + if (!defined('_PROTEGE_JS_MODELES')){ |
|
| 357 | + include_spip('inc/acces'); |
|
| 358 | + define('_PROTEGE_JS_MODELES',creer_uniqid()); |
|
| 359 | + } |
|
| 360 | + foreach ($r as $regs) |
|
| 361 | + $t = str_replace($regs[0],code_echappement($regs[0],'javascript'._PROTEGE_JS_MODELES),$t); |
|
| 362 | + } |
|
| 363 | + if (preg_match_all(',<\?php.*?($|\?'.'>),isS', $t, $r, PREG_SET_ORDER)){ |
|
| 364 | + if (!defined('_PROTEGE_PHP_MODELES')){ |
|
| 365 | + include_spip('inc/acces'); |
|
| 366 | + define('_PROTEGE_PHP_MODELES',creer_uniqid()); |
|
| 367 | + } |
|
| 368 | + foreach ($r as $regs) |
|
| 369 | + $t = str_replace($regs[0],code_echappement($regs[0],'php'._PROTEGE_PHP_MODELES),$t); |
|
| 370 | + } |
|
| 371 | + } |
|
| 372 | + return $t; |
|
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | |
| 376 | 376 | function echapper_faux_tags($letexte){ |
| 377 | - if (strpos($letexte,'<')===false) |
|
| 378 | - return $letexte; |
|
| 379 | - $textMatches = preg_split (',(</?[a-z!][^<>]*>),', $letexte, null, PREG_SPLIT_DELIM_CAPTURE); |
|
| 380 | - |
|
| 381 | - $letexte = ""; |
|
| 382 | - while (count($textMatches)) { |
|
| 383 | - // un texte a echapper |
|
| 384 | - $letexte .= str_replace("<",'<',array_shift($textMatches)); |
|
| 385 | - // un tag html qui a servit a faite le split |
|
| 386 | - $letexte .= array_shift($textMatches); |
|
| 387 | - } |
|
| 388 | - return $letexte; |
|
| 377 | + if (strpos($letexte,'<')===false) |
|
| 378 | + return $letexte; |
|
| 379 | + $textMatches = preg_split (',(</?[a-z!][^<>]*>),', $letexte, null, PREG_SPLIT_DELIM_CAPTURE); |
|
| 380 | + |
|
| 381 | + $letexte = ""; |
|
| 382 | + while (count($textMatches)) { |
|
| 383 | + // un texte a echapper |
|
| 384 | + $letexte .= str_replace("<",'<',array_shift($textMatches)); |
|
| 385 | + // un tag html qui a servit a faite le split |
|
| 386 | + $letexte .= array_shift($textMatches); |
|
| 387 | + } |
|
| 388 | + return $letexte; |
|
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | /** |
@@ -397,17 +397,17 @@ discard block |
||
| 397 | 397 | * @return string |
| 398 | 398 | */ |
| 399 | 399 | function echapper_html_suspect($texte){ |
| 400 | - if (strpos($texte,'<')===false OR strpos($texte,'=')===false) |
|
| 401 | - return $texte; |
|
| 400 | + if (strpos($texte,'<')===false OR strpos($texte,'=')===false) |
|
| 401 | + return $texte; |
|
| 402 | 402 | |
| 403 | - // on teste sur strlen car safehtml supprime le contenu dangereux |
|
| 404 | - // mais il peut aussi changer des ' en " sur les attributs html, |
|
| 405 | - // donc un test d'egalite est trop strict |
|
| 406 | - if (strlen(safehtml($texte))!==strlen($texte)){ |
|
| 407 | - $texte = str_replace("<","<",$texte); |
|
| 408 | - } |
|
| 403 | + // on teste sur strlen car safehtml supprime le contenu dangereux |
|
| 404 | + // mais il peut aussi changer des ' en " sur les attributs html, |
|
| 405 | + // donc un test d'egalite est trop strict |
|
| 406 | + if (strlen(safehtml($texte))!==strlen($texte)){ |
|
| 407 | + $texte = str_replace("<","<",$texte); |
|
| 408 | + } |
|
| 409 | 409 | |
| 410 | - return $texte; |
|
| 410 | + return $texte; |
|
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | |
@@ -428,23 +428,23 @@ discard block |
||
| 428 | 428 | * Texte sécurisé |
| 429 | 429 | **/ |
| 430 | 430 | function safehtml($t) { |
| 431 | - static $safehtml; |
|
| 431 | + static $safehtml; |
|
| 432 | 432 | |
| 433 | - if (!$t OR !is_string($t)) |
|
| 434 | - return $t; |
|
| 435 | - # attention safehtml nettoie deux ou trois caracteres de plus. A voir |
|
| 436 | - if (strpos($t,'<')===false) |
|
| 437 | - return str_replace("\x00", '', $t); |
|
| 433 | + if (!$t OR !is_string($t)) |
|
| 434 | + return $t; |
|
| 435 | + # attention safehtml nettoie deux ou trois caracteres de plus. A voir |
|
| 436 | + if (strpos($t,'<')===false) |
|
| 437 | + return str_replace("\x00", '', $t); |
|
| 438 | 438 | |
| 439 | - $t = interdire_scripts($t); // jolifier le php |
|
| 440 | - $t = echappe_js($t); |
|
| 439 | + $t = interdire_scripts($t); // jolifier le php |
|
| 440 | + $t = echappe_js($t); |
|
| 441 | 441 | |
| 442 | - if (!isset($safehtml)) |
|
| 443 | - $safehtml = charger_fonction('safehtml', 'inc', true); |
|
| 444 | - if ($safehtml) |
|
| 445 | - $t = $safehtml($t); |
|
| 442 | + if (!isset($safehtml)) |
|
| 443 | + $safehtml = charger_fonction('safehtml', 'inc', true); |
|
| 444 | + if ($safehtml) |
|
| 445 | + $t = $safehtml($t); |
|
| 446 | 446 | |
| 447 | - return interdire_scripts($t); // interdire le php (2 precautions) |
|
| 447 | + return interdire_scripts($t); // interdire le php (2 precautions) |
|
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | // TODO: gerer les modeles ? |
| 455 | 455 | // http://doc.spip.org/@supprime_img |
| 456 | 456 | function supprime_img($letexte, $message=NULL) { |
| 457 | - if ($message===NULL) $message = '(' . _T('img_indisponible') . ')'; |
|
| 458 | - return preg_replace(',<(img|doc|emb)([0-9]+)(\|([^>]*))?'.'\s*/?'.'>,i', |
|
| 459 | - $message, $letexte); |
|
| 457 | + if ($message===NULL) $message = '(' . _T('img_indisponible') . ')'; |
|
| 458 | + return preg_replace(',<(img|doc|emb)([0-9]+)(\|([^>]*))?'.'\s*/?'.'>,i', |
|
| 459 | + $message, $letexte); |
|
| 460 | 460 | } |
@@ -30,69 +30,69 @@ discard block |
||
| 30 | 30 | * @return array couples cles / valeurs des champs du formulaire à charger. |
| 31 | 31 | **/ |
| 32 | 32 | function precharger_objet($type, $id_objet, $id_rubrique=0, $lier_trad=0, $champ_titre = 'titre') { |
| 33 | - global $connect_id_rubrique, $spip_lang; |
|
| 33 | + global $connect_id_rubrique, $spip_lang; |
|
| 34 | 34 | |
| 35 | - $table = table_objet_sql($type); |
|
| 36 | - $_id_objet = id_table_objet($table); |
|
| 37 | - |
|
| 38 | - // si l'objet existe deja, on retourne simplement ses valeurs |
|
| 39 | - if (is_numeric($id_objet)) |
|
| 40 | - return sql_fetsel("*", $table, "$_id_objet=$id_objet"); |
|
| 41 | - |
|
| 42 | - // ici, on demande une creation. |
|
| 43 | - // on prerempli certains elements : les champs si traduction, |
|
| 44 | - // les id_rubrique et id_secteur si l'objet a ces champs |
|
| 45 | - $desc = lister_tables_objets_sql($table); |
|
| 46 | - # il faudrait calculer $champ_titre ici |
|
| 47 | - $is_rubrique = isset($desc['field']['id_rubrique']); |
|
| 48 | - $is_secteur = isset($desc['field']['id_secteur']); |
|
| 49 | - |
|
| 50 | - // si demande de traduction |
|
| 51 | - // on recupere les valeurs de la traduction |
|
| 52 | - if ($lier_trad){ |
|
| 53 | - if ($select = charger_fonction("precharger_traduction_" . $type,'inc',true)) |
|
| 54 | - $row = $select($id_objet, $id_rubrique, $lier_trad); |
|
| 55 | - else |
|
| 56 | - $row = precharger_traduction_objet($type, $id_objet, $id_rubrique, $lier_trad, $champ_titre); |
|
| 57 | - } else { |
|
| 58 | - $row[$champ_titre] = ''; |
|
| 59 | - if ($is_rubrique) { |
|
| 60 | - $row['id_rubrique'] = $id_rubrique; |
|
| 61 | - } |
|
| 62 | - } |
|
| 63 | - |
|
| 64 | - // calcul de la rubrique |
|
| 65 | - # note : comment faire pour des traductions sur l'objet rubriques ? |
|
| 66 | - if ($is_rubrique) { |
|
| 67 | - // appel du script a la racine, faut choisir |
|
| 68 | - // admin restreint ==> sa premiere rubrique |
|
| 69 | - // autre ==> la derniere rubrique cree |
|
| 70 | - if (!$row['id_rubrique']) { |
|
| 71 | - if ($connect_id_rubrique) |
|
| 72 | - $row['id_rubrique'] = $id_rubrique = current($connect_id_rubrique); |
|
| 73 | - else { |
|
| 74 | - $row_rub = sql_fetsel("id_rubrique", "spip_rubriques", "", "", "id_rubrique DESC", 1); |
|
| 75 | - $row['id_rubrique'] = $id_rubrique = $row_rub['id_rubrique']; |
|
| 76 | - } |
|
| 77 | - if (!autoriser('creerarticledans','rubrique',$row['id_rubrique'] )){ |
|
| 78 | - // manque de chance, la rubrique n'est pas autorisee, on cherche un des secteurs autorises |
|
| 79 | - $res = sql_select("id_rubrique", "spip_rubriques", "id_parent=0"); |
|
| 80 | - while (!autoriser('creerarticledans','rubrique',$row['id_rubrique'] ) && $row_rub = sql_fetch($res)){ |
|
| 81 | - $row['id_rubrique'] = $row_rub['id_rubrique']; |
|
| 82 | - } |
|
| 83 | - } |
|
| 84 | - } |
|
| 85 | - } |
|
| 35 | + $table = table_objet_sql($type); |
|
| 36 | + $_id_objet = id_table_objet($table); |
|
| 37 | + |
|
| 38 | + // si l'objet existe deja, on retourne simplement ses valeurs |
|
| 39 | + if (is_numeric($id_objet)) |
|
| 40 | + return sql_fetsel("*", $table, "$_id_objet=$id_objet"); |
|
| 41 | + |
|
| 42 | + // ici, on demande une creation. |
|
| 43 | + // on prerempli certains elements : les champs si traduction, |
|
| 44 | + // les id_rubrique et id_secteur si l'objet a ces champs |
|
| 45 | + $desc = lister_tables_objets_sql($table); |
|
| 46 | + # il faudrait calculer $champ_titre ici |
|
| 47 | + $is_rubrique = isset($desc['field']['id_rubrique']); |
|
| 48 | + $is_secteur = isset($desc['field']['id_secteur']); |
|
| 49 | + |
|
| 50 | + // si demande de traduction |
|
| 51 | + // on recupere les valeurs de la traduction |
|
| 52 | + if ($lier_trad){ |
|
| 53 | + if ($select = charger_fonction("precharger_traduction_" . $type,'inc',true)) |
|
| 54 | + $row = $select($id_objet, $id_rubrique, $lier_trad); |
|
| 55 | + else |
|
| 56 | + $row = precharger_traduction_objet($type, $id_objet, $id_rubrique, $lier_trad, $champ_titre); |
|
| 57 | + } else { |
|
| 58 | + $row[$champ_titre] = ''; |
|
| 59 | + if ($is_rubrique) { |
|
| 60 | + $row['id_rubrique'] = $id_rubrique; |
|
| 61 | + } |
|
| 62 | + } |
|
| 63 | + |
|
| 64 | + // calcul de la rubrique |
|
| 65 | + # note : comment faire pour des traductions sur l'objet rubriques ? |
|
| 66 | + if ($is_rubrique) { |
|
| 67 | + // appel du script a la racine, faut choisir |
|
| 68 | + // admin restreint ==> sa premiere rubrique |
|
| 69 | + // autre ==> la derniere rubrique cree |
|
| 70 | + if (!$row['id_rubrique']) { |
|
| 71 | + if ($connect_id_rubrique) |
|
| 72 | + $row['id_rubrique'] = $id_rubrique = current($connect_id_rubrique); |
|
| 73 | + else { |
|
| 74 | + $row_rub = sql_fetsel("id_rubrique", "spip_rubriques", "", "", "id_rubrique DESC", 1); |
|
| 75 | + $row['id_rubrique'] = $id_rubrique = $row_rub['id_rubrique']; |
|
| 76 | + } |
|
| 77 | + if (!autoriser('creerarticledans','rubrique',$row['id_rubrique'] )){ |
|
| 78 | + // manque de chance, la rubrique n'est pas autorisee, on cherche un des secteurs autorises |
|
| 79 | + $res = sql_select("id_rubrique", "spip_rubriques", "id_parent=0"); |
|
| 80 | + while (!autoriser('creerarticledans','rubrique',$row['id_rubrique'] ) && $row_rub = sql_fetch($res)){ |
|
| 81 | + $row['id_rubrique'] = $row_rub['id_rubrique']; |
|
| 82 | + } |
|
| 83 | + } |
|
| 84 | + } |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | - // recuperer le secteur, pour affecter les bons champs extras |
|
| 88 | - if ($id_rubrique and $is_secteur) { |
|
| 89 | - if (!$row['id_secteur']) { |
|
| 90 | - $row_rub = sql_getfetsel("id_secteur", "spip_rubriques", "id_rubrique=" . sql_quote($id_rubrique)); |
|
| 91 | - $row['id_secteur'] = $row_rub; |
|
| 92 | - } |
|
| 93 | - } |
|
| 94 | - |
|
| 95 | - return $row; |
|
| 87 | + // recuperer le secteur, pour affecter les bons champs extras |
|
| 88 | + if ($id_rubrique and $is_secteur) { |
|
| 89 | + if (!$row['id_secteur']) { |
|
| 90 | + $row_rub = sql_getfetsel("id_secteur", "spip_rubriques", "id_rubrique=" . sql_quote($id_rubrique)); |
|
| 91 | + $row['id_secteur'] = $row_rub; |
|
| 92 | + } |
|
| 93 | + } |
|
| 94 | + |
|
| 95 | + return $row; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | |
@@ -109,58 +109,58 @@ discard block |
||
| 109 | 109 | * @return array couples cles / valeurs des champs du formulaire à charger |
| 110 | 110 | **/ |
| 111 | 111 | function precharger_traduction_objet($type, $id_objet, $id_rubrique=0, $lier_trad=0, $champ_titre = 'titre') { |
| 112 | - $table = table_objet_sql($type); |
|
| 113 | - $_id_objet = id_table_objet($table); |
|
| 114 | - |
|
| 115 | - // Recuperer les donnees de l'objet original |
|
| 116 | - $row = sql_fetsel("*", $table, "$_id_objet=$lier_trad"); |
|
| 117 | - if ($row) { |
|
| 118 | - $row[$champ_titre] = filtrer_entites(_T('info_nouvelle_traduction')).' '.$row[$champ_titre]; |
|
| 119 | - } else { |
|
| 120 | - $row = array(); |
|
| 121 | - } |
|
| 122 | - |
|
| 123 | - // on met l'objet dans une rubrique si l'objet le peut |
|
| 124 | - $desc = lister_tables_objets_sql($table); |
|
| 125 | - $is_rubrique = isset($desc['field']['id_rubrique']); |
|
| 112 | + $table = table_objet_sql($type); |
|
| 113 | + $_id_objet = id_table_objet($table); |
|
| 114 | + |
|
| 115 | + // Recuperer les donnees de l'objet original |
|
| 116 | + $row = sql_fetsel("*", $table, "$_id_objet=$lier_trad"); |
|
| 117 | + if ($row) { |
|
| 118 | + $row[$champ_titre] = filtrer_entites(_T('info_nouvelle_traduction')).' '.$row[$champ_titre]; |
|
| 119 | + } else { |
|
| 120 | + $row = array(); |
|
| 121 | + } |
|
| 122 | + |
|
| 123 | + // on met l'objet dans une rubrique si l'objet le peut |
|
| 124 | + $desc = lister_tables_objets_sql($table); |
|
| 125 | + $is_rubrique = isset($desc['field']['id_rubrique']); |
|
| 126 | 126 | |
| 127 | - if ($is_rubrique) { |
|
| 128 | - if ($id_rubrique) { |
|
| 129 | - $row['id_rubrique'] = $id_rubrique; |
|
| 130 | - return $row; |
|
| 131 | - } |
|
| 132 | - $id_rubrique = $row['id_rubrique']; |
|
| 127 | + if ($is_rubrique) { |
|
| 128 | + if ($id_rubrique) { |
|
| 129 | + $row['id_rubrique'] = $id_rubrique; |
|
| 130 | + return $row; |
|
| 131 | + } |
|
| 132 | + $id_rubrique = $row['id_rubrique']; |
|
| 133 | 133 | |
| 134 | 134 | |
| 135 | - // Regler la langue, si possible, sur celle du redacteur |
|
| 136 | - // Cela implique souvent de choisir une rubrique ou un secteur |
|
| 137 | - if (in_array($GLOBALS['spip_lang'], |
|
| 138 | - explode(',', $GLOBALS['meta']['langues_multilingue']))) { |
|
| 139 | - |
|
| 140 | - // Si le menu de langues est autorise sur l'objet, |
|
| 141 | - // on peut changer la langue quelle que soit la rubrique |
|
| 142 | - // donc on reste dans la meme rubrique |
|
| 143 | - if (in_array($table, explode(',',$GLOBALS['meta']['multi_objets']))) { |
|
| 144 | - $row['id_rubrique'] = $row['id_rubrique']; # explicite :-) |
|
| 145 | - |
|
| 146 | - // Sinon, chercher la rubrique la plus adaptee pour |
|
| 147 | - // accueillir l'objet dans la langue du traducteur |
|
| 148 | - } elseif ($is_rubrique and $GLOBALS['meta']['multi_rubriques'] == 'oui') { |
|
| 149 | - if ($GLOBALS['meta']['multi_secteurs'] == 'oui') { |
|
| 150 | - $id_parent = 0; |
|
| 151 | - } else { |
|
| 152 | - // on cherche une rubrique soeur dans la bonne langue |
|
| 153 | - $row_rub = sql_fetsel("id_parent", "spip_rubriques", "id_rubrique=$id_rubrique"); |
|
| 154 | - $id_parent = $row_rub['id_parent']; |
|
| 155 | - } |
|
| 135 | + // Regler la langue, si possible, sur celle du redacteur |
|
| 136 | + // Cela implique souvent de choisir une rubrique ou un secteur |
|
| 137 | + if (in_array($GLOBALS['spip_lang'], |
|
| 138 | + explode(',', $GLOBALS['meta']['langues_multilingue']))) { |
|
| 139 | + |
|
| 140 | + // Si le menu de langues est autorise sur l'objet, |
|
| 141 | + // on peut changer la langue quelle que soit la rubrique |
|
| 142 | + // donc on reste dans la meme rubrique |
|
| 143 | + if (in_array($table, explode(',',$GLOBALS['meta']['multi_objets']))) { |
|
| 144 | + $row['id_rubrique'] = $row['id_rubrique']; # explicite :-) |
|
| 145 | + |
|
| 146 | + // Sinon, chercher la rubrique la plus adaptee pour |
|
| 147 | + // accueillir l'objet dans la langue du traducteur |
|
| 148 | + } elseif ($is_rubrique and $GLOBALS['meta']['multi_rubriques'] == 'oui') { |
|
| 149 | + if ($GLOBALS['meta']['multi_secteurs'] == 'oui') { |
|
| 150 | + $id_parent = 0; |
|
| 151 | + } else { |
|
| 152 | + // on cherche une rubrique soeur dans la bonne langue |
|
| 153 | + $row_rub = sql_fetsel("id_parent", "spip_rubriques", "id_rubrique=$id_rubrique"); |
|
| 154 | + $id_parent = $row_rub['id_parent']; |
|
| 155 | + } |
|
| 156 | 156 | |
| 157 | - $row_rub = sql_fetsel("id_rubrique", "spip_rubriques", "lang='".$GLOBALS['spip_lang']."' AND id_parent=$id_parent"); |
|
| 158 | - if ($row_rub) |
|
| 159 | - $row['id_rubrique'] = $row_rub['id_rubrique']; |
|
| 160 | - } |
|
| 161 | - } |
|
| 162 | - } |
|
| 163 | - return $row; |
|
| 157 | + $row_rub = sql_fetsel("id_rubrique", "spip_rubriques", "lang='".$GLOBALS['spip_lang']."' AND id_parent=$id_parent"); |
|
| 158 | + if ($row_rub) |
|
| 159 | + $row['id_rubrique'] = $row_rub['id_rubrique']; |
|
| 160 | + } |
|
| 161 | + } |
|
| 162 | + } |
|
| 163 | + return $row; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | |