@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @package SPIP\Core\Fonctions |
| 17 | 17 | **/ |
| 18 | 18 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 19 | - return; |
|
| 19 | + return; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -29,29 +29,29 @@ discard block |
||
| 29 | 29 | * @param bool $left |
| 30 | 30 | */ |
| 31 | 31 | function critere_compteur_articles_filtres_dist($idb, &$boucles, $crit, $left = false) { |
| 32 | - $boucle = &$boucles[$idb]; |
|
| 32 | + $boucle = &$boucles[$idb]; |
|
| 33 | 33 | |
| 34 | - $_statut = calculer_liste($crit->param[0], array(), $boucles, $boucle->id_parent); |
|
| 34 | + $_statut = calculer_liste($crit->param[0], array(), $boucles, $boucle->id_parent); |
|
| 35 | 35 | |
| 36 | - $not = ''; |
|
| 37 | - if ($crit->not) { |
|
| 38 | - $not = ", 'NOT'"; |
|
| 39 | - } |
|
| 40 | - $boucle->from['LAA'] = 'spip_auteurs_liens'; |
|
| 41 | - $boucle->from_type['LAA'] = 'left'; |
|
| 42 | - $boucle->join['LAA'] = array("'auteurs'", "'id_auteur'", "'id_auteur'", "'LAA.objet=\'article\''"); |
|
| 36 | + $not = ''; |
|
| 37 | + if ($crit->not) { |
|
| 38 | + $not = ", 'NOT'"; |
|
| 39 | + } |
|
| 40 | + $boucle->from['LAA'] = 'spip_auteurs_liens'; |
|
| 41 | + $boucle->from_type['LAA'] = 'left'; |
|
| 42 | + $boucle->join['LAA'] = array("'auteurs'", "'id_auteur'", "'id_auteur'", "'LAA.objet=\'article\''"); |
|
| 43 | 43 | |
| 44 | - $boucle->from['articles'] = 'spip_articles'; |
|
| 45 | - $boucle->from_type['articles'] = 'left'; |
|
| 46 | - $boucle->join['articles'] = array( |
|
| 47 | - "'LAA'", |
|
| 48 | - "'id_article'", |
|
| 49 | - "'id_objet'", |
|
| 50 | - "'(articles.statut IS NULL OR '.sql_in('articles.statut',_q($_statut)$not).')'" |
|
| 51 | - ); |
|
| 44 | + $boucle->from['articles'] = 'spip_articles'; |
|
| 45 | + $boucle->from_type['articles'] = 'left'; |
|
| 46 | + $boucle->join['articles'] = array( |
|
| 47 | + "'LAA'", |
|
| 48 | + "'id_article'", |
|
| 49 | + "'id_objet'", |
|
| 50 | + "'(articles.statut IS NULL OR '.sql_in('articles.statut',_q($_statut)$not).')'" |
|
| 51 | + ); |
|
| 52 | 52 | |
| 53 | - $boucle->select[] = 'COUNT(articles.id_article) AS compteur_articles'; |
|
| 54 | - $boucle->group[] = 'auteurs.id_auteur'; |
|
| 53 | + $boucle->select[] = 'COUNT(articles.id_article) AS compteur_articles'; |
|
| 54 | + $boucle->group[] = 'auteurs.id_auteur'; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * Pile complétée par le code à générer |
| 70 | 70 | */ |
| 71 | 71 | function balise_COMPTEUR_ARTICLES_dist($p) { |
| 72 | - return rindex_pile($p, 'compteur_articles', 'compteur_articles_filtres'); |
|
| 72 | + return rindex_pile($p, 'compteur_articles', 'compteur_articles_filtres'); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | |
@@ -85,43 +85,43 @@ discard block |
||
| 85 | 85 | * @return string |
| 86 | 86 | */ |
| 87 | 87 | function afficher_initiale($url, $initiale, $compteur, $debut, $pas) { |
| 88 | - static $memo = null; |
|
| 89 | - static $res = []; |
|
| 90 | - $out = ''; |
|
| 91 | - if (!$memo |
|
| 92 | - or (!$initiale and !$url) |
|
| 93 | - or ($initiale !== $memo['initiale']) |
|
| 94 | - ) { |
|
| 95 | - $newcompt = intval(floor(($compteur - 1) / $pas) * $pas); |
|
| 96 | - // si fin de la pagination et une seule entree, ne pas l'afficher, ca ne sert a rien |
|
| 97 | - if (!$initiale and !$url and !$memo['compteur']) { |
|
| 98 | - $memo = null; |
|
| 99 | - } |
|
| 100 | - if ($memo) { |
|
| 101 | - $on = (($memo['compteur'] <= $debut) |
|
| 102 | - and ( |
|
| 103 | - $newcompt > $debut or ($newcompt == $debut and $newcompt == $memo['compteur']) |
|
| 104 | - )); |
|
| 105 | - $res[] = lien_ou_expose($memo['url'], $memo['initiale'], $on, 'lien_pagination'); |
|
| 106 | - } |
|
| 107 | - if ($initiale) { |
|
| 108 | - $memo = array( |
|
| 109 | - 'entree' => isset($memo['entree']) ? $memo['entree'] + 1 : 0, |
|
| 110 | - 'initiale' => $initiale, |
|
| 111 | - 'url' => parametre_url($url, 'i', $initiale), |
|
| 112 | - 'compteur' => $newcompt |
|
| 113 | - ); |
|
| 114 | - } |
|
| 115 | - } |
|
| 116 | - if (!$initiale and !$url) { |
|
| 117 | - if (count($res) > 1) { |
|
| 118 | - $out = implode(' ', $res); |
|
| 119 | - } |
|
| 120 | - $memo = null; |
|
| 121 | - $res = []; |
|
| 122 | - } |
|
| 88 | + static $memo = null; |
|
| 89 | + static $res = []; |
|
| 90 | + $out = ''; |
|
| 91 | + if (!$memo |
|
| 92 | + or (!$initiale and !$url) |
|
| 93 | + or ($initiale !== $memo['initiale']) |
|
| 94 | + ) { |
|
| 95 | + $newcompt = intval(floor(($compteur - 1) / $pas) * $pas); |
|
| 96 | + // si fin de la pagination et une seule entree, ne pas l'afficher, ca ne sert a rien |
|
| 97 | + if (!$initiale and !$url and !$memo['compteur']) { |
|
| 98 | + $memo = null; |
|
| 99 | + } |
|
| 100 | + if ($memo) { |
|
| 101 | + $on = (($memo['compteur'] <= $debut) |
|
| 102 | + and ( |
|
| 103 | + $newcompt > $debut or ($newcompt == $debut and $newcompt == $memo['compteur']) |
|
| 104 | + )); |
|
| 105 | + $res[] = lien_ou_expose($memo['url'], $memo['initiale'], $on, 'lien_pagination'); |
|
| 106 | + } |
|
| 107 | + if ($initiale) { |
|
| 108 | + $memo = array( |
|
| 109 | + 'entree' => isset($memo['entree']) ? $memo['entree'] + 1 : 0, |
|
| 110 | + 'initiale' => $initiale, |
|
| 111 | + 'url' => parametre_url($url, 'i', $initiale), |
|
| 112 | + 'compteur' => $newcompt |
|
| 113 | + ); |
|
| 114 | + } |
|
| 115 | + } |
|
| 116 | + if (!$initiale and !$url) { |
|
| 117 | + if (count($res) > 1) { |
|
| 118 | + $out = implode(' ', $res); |
|
| 119 | + } |
|
| 120 | + $memo = null; |
|
| 121 | + $res = []; |
|
| 122 | + } |
|
| 123 | 123 | |
| 124 | - return $out; |
|
| 124 | + return $out; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -140,23 +140,23 @@ discard block |
||
| 140 | 140 | * @return string |
| 141 | 141 | */ |
| 142 | 142 | function auteur_lien_messagerie($id_auteur, $en_ligne, $statut, $imessage, $email = '') { |
| 143 | - static $time = null; |
|
| 144 | - if (!in_array($statut, array('0minirezo', '1comite'))) { |
|
| 145 | - return ''; |
|
| 146 | - } |
|
| 143 | + static $time = null; |
|
| 144 | + if (!in_array($statut, array('0minirezo', '1comite'))) { |
|
| 145 | + return ''; |
|
| 146 | + } |
|
| 147 | 147 | |
| 148 | - if (is_null($time)) { |
|
| 149 | - $time = time(); |
|
| 150 | - } |
|
| 151 | - $parti = (($time - strtotime($en_ligne)) > 15 * 60); |
|
| 148 | + if (is_null($time)) { |
|
| 149 | + $time = time(); |
|
| 150 | + } |
|
| 151 | + $parti = (($time - strtotime($en_ligne)) > 15 * 60); |
|
| 152 | 152 | |
| 153 | - if ($imessage != 'non' and !$parti // historique : est-ce que ca a encore un sens de limiter vu qu'on a la notification par email ? |
|
| 154 | - and $GLOBALS['meta']['messagerie_agenda'] != 'non' |
|
| 155 | - ) { |
|
| 156 | - return parametre_url(parametre_url(generer_url_ecrire('message_edit', 'new=oui'), 'to', $id_auteur), 'redirect', self()); |
|
| 157 | - } elseif (strlen($email) and autoriser('voir', 'auteur', $id_auteur)) { |
|
| 158 | - return 'mailto:' . $email; |
|
| 159 | - } else { |
|
| 160 | - return ''; |
|
| 161 | - } |
|
| 153 | + if ($imessage != 'non' and !$parti // historique : est-ce que ca a encore un sens de limiter vu qu'on a la notification par email ? |
|
| 154 | + and $GLOBALS['meta']['messagerie_agenda'] != 'non' |
|
| 155 | + ) { |
|
| 156 | + return parametre_url(parametre_url(generer_url_ecrire('message_edit', 'new=oui'), 'to', $id_auteur), 'redirect', self()); |
|
| 157 | + } elseif (strlen($email) and autoriser('voir', 'auteur', $id_auteur)) { |
|
| 158 | + return 'mailto:' . $email; |
|
| 159 | + } else { |
|
| 160 | + return ''; |
|
| 161 | + } |
|
| 162 | 162 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | **/ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | |
@@ -35,19 +35,19 @@ discard block |
||
| 35 | 35 | * @return string URL nettoyée |
| 36 | 36 | **/ |
| 37 | 37 | function resolve_path($url) { |
| 38 | - list($url, $query) = array_pad(explode('?', $url, 2), 2, null); |
|
| 39 | - while (preg_match(',/\.?/,', $url, $regs) # supprime // et /./ |
|
| 40 | - or preg_match(',/[^/]*/\.\./,S', $url, $regs) # supprime /toto/../ |
|
| 41 | - or preg_match(',^/\.\./,S', $url, $regs) # supprime les /../ du haut |
|
| 42 | - ) { |
|
| 43 | - $url = str_replace($regs[0], '/', $url); |
|
| 44 | - } |
|
| 38 | + list($url, $query) = array_pad(explode('?', $url, 2), 2, null); |
|
| 39 | + while (preg_match(',/\.?/,', $url, $regs) # supprime // et /./ |
|
| 40 | + or preg_match(',/[^/]*/\.\./,S', $url, $regs) # supprime /toto/../ |
|
| 41 | + or preg_match(',^/\.\./,S', $url, $regs) # supprime les /../ du haut |
|
| 42 | + ) { |
|
| 43 | + $url = str_replace($regs[0], '/', $url); |
|
| 44 | + } |
|
| 45 | 45 | |
| 46 | - if ($query) { |
|
| 47 | - $url .= '?' . $query; |
|
| 48 | - } |
|
| 46 | + if ($query) { |
|
| 47 | + $url .= '?' . $query; |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - return '/' . preg_replace(',^/,S', '', $url); |
|
| 50 | + return '/' . preg_replace(',^/,S', '', $url); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | |
@@ -68,41 +68,41 @@ discard block |
||
| 68 | 68 | **/ |
| 69 | 69 | function suivre_lien($url, $lien) { |
| 70 | 70 | |
| 71 | - if (preg_match(',^(mailto|javascript|data|tel|callto|file|ftp):,iS', $lien)) { |
|
| 72 | - return $lien; |
|
| 73 | - } |
|
| 74 | - if (preg_match(';^((?:[a-z]{3,33}:)?//.*?)(/.*)?$;iS', $lien, $r)) { |
|
| 75 | - $r = array_pad($r, 3, null); |
|
| 71 | + if (preg_match(',^(mailto|javascript|data|tel|callto|file|ftp):,iS', $lien)) { |
|
| 72 | + return $lien; |
|
| 73 | + } |
|
| 74 | + if (preg_match(';^((?:[a-z]{3,33}:)?//.*?)(/.*)?$;iS', $lien, $r)) { |
|
| 75 | + $r = array_pad($r, 3, null); |
|
| 76 | 76 | |
| 77 | - return $r[1] . resolve_path($r[2]); |
|
| 78 | - } |
|
| 77 | + return $r[1] . resolve_path($r[2]); |
|
| 78 | + } |
|
| 79 | 79 | |
| 80 | - # L'url site spip est un lien absolu aussi |
|
| 81 | - if (isset($GLOBALS['meta']['adresse_site']) and $lien == $GLOBALS['meta']['adresse_site']) { |
|
| 82 | - return $lien; |
|
| 83 | - } |
|
| 80 | + # L'url site spip est un lien absolu aussi |
|
| 81 | + if (isset($GLOBALS['meta']['adresse_site']) and $lien == $GLOBALS['meta']['adresse_site']) { |
|
| 82 | + return $lien; |
|
| 83 | + } |
|
| 84 | 84 | |
| 85 | - # lien relatif, il faut verifier l'url de base |
|
| 86 | - # commencer par virer la chaine de get de l'url de base |
|
| 87 | - $dir = '/'; |
|
| 88 | - $debut = ''; |
|
| 89 | - if (preg_match(';^((?:[a-z]{3,7}:)?//[^/]+)(/.*?/?)?([^/#?]*)([?][^#]*)?(#.*)?$;S', $url, $regs)) { |
|
| 90 | - $debut = $regs[1]; |
|
| 91 | - $dir = !strlen($regs[2]) ? '/' : $regs[2]; |
|
| 92 | - $mot = $regs[3]; |
|
| 93 | - $get = isset($regs[4]) ? $regs[4] : ''; |
|
| 94 | - $hash = isset($regs[5]) ? $regs[5] : ''; |
|
| 95 | - } |
|
| 96 | - switch (substr($lien, 0, 1)) { |
|
| 97 | - case '/': |
|
| 98 | - return $debut . resolve_path($lien); |
|
| 99 | - case '#': |
|
| 100 | - return $debut . resolve_path($dir . $mot . $get . $lien); |
|
| 101 | - case '': |
|
| 102 | - return $debut . resolve_path($dir . $mot . $get . $hash); |
|
| 103 | - default: |
|
| 104 | - return $debut . resolve_path($dir . $lien); |
|
| 105 | - } |
|
| 85 | + # lien relatif, il faut verifier l'url de base |
|
| 86 | + # commencer par virer la chaine de get de l'url de base |
|
| 87 | + $dir = '/'; |
|
| 88 | + $debut = ''; |
|
| 89 | + if (preg_match(';^((?:[a-z]{3,7}:)?//[^/]+)(/.*?/?)?([^/#?]*)([?][^#]*)?(#.*)?$;S', $url, $regs)) { |
|
| 90 | + $debut = $regs[1]; |
|
| 91 | + $dir = !strlen($regs[2]) ? '/' : $regs[2]; |
|
| 92 | + $mot = $regs[3]; |
|
| 93 | + $get = isset($regs[4]) ? $regs[4] : ''; |
|
| 94 | + $hash = isset($regs[5]) ? $regs[5] : ''; |
|
| 95 | + } |
|
| 96 | + switch (substr($lien, 0, 1)) { |
|
| 97 | + case '/': |
|
| 98 | + return $debut . resolve_path($lien); |
|
| 99 | + case '#': |
|
| 100 | + return $debut . resolve_path($dir . $mot . $get . $lien); |
|
| 101 | + case '': |
|
| 102 | + return $debut . resolve_path($dir . $mot . $get . $hash); |
|
| 103 | + default: |
|
| 104 | + return $debut . resolve_path($dir . $lien); |
|
| 105 | + } |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | |
@@ -125,14 +125,14 @@ discard block |
||
| 125 | 125 | * @return string Texte ou URL (en absolus) |
| 126 | 126 | **/ |
| 127 | 127 | function url_absolue($url, $base = '') { |
| 128 | - if (strlen($url = trim($url)) == 0) { |
|
| 129 | - return ''; |
|
| 130 | - } |
|
| 131 | - if (!$base) { |
|
| 132 | - $base = url_de_base() . (_DIR_RACINE ? _DIR_RESTREINT_ABS : ''); |
|
| 133 | - } |
|
| 128 | + if (strlen($url = trim($url)) == 0) { |
|
| 129 | + return ''; |
|
| 130 | + } |
|
| 131 | + if (!$base) { |
|
| 132 | + $base = url_de_base() . (_DIR_RACINE ? _DIR_RESTREINT_ABS : ''); |
|
| 133 | + } |
|
| 134 | 134 | |
| 135 | - return suivre_lien($base, $url); |
|
| 135 | + return suivre_lien($base, $url); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @return string |
| 144 | 144 | */ |
| 145 | 145 | function protocole_implicite($url_absolue) { |
| 146 | - return preg_replace(';^[a-z]{3,7}://;i', '//', $url_absolue); |
|
| 146 | + return preg_replace(';^[a-z]{3,7}://;i', '//', $url_absolue); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -154,14 +154,14 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | function protocole_verifier($url_absolue, $protocoles_autorises = array('http','https')) { |
| 156 | 156 | |
| 157 | - if (preg_match(';^([a-z]{3,7})://;i', $url_absolue, $m)) { |
|
| 158 | - $protocole = $m[1]; |
|
| 159 | - if (in_array($protocole, $protocoles_autorises) |
|
| 160 | - or in_array(strtolower($protocole), array_map('strtolower', $protocoles_autorises))) { |
|
| 161 | - return true; |
|
| 162 | - } |
|
| 163 | - } |
|
| 164 | - return false; |
|
| 157 | + if (preg_match(';^([a-z]{3,7})://;i', $url_absolue, $m)) { |
|
| 158 | + $protocole = $m[1]; |
|
| 159 | + if (in_array($protocole, $protocoles_autorises) |
|
| 160 | + or in_array(strtolower($protocole), array_map('strtolower', $protocoles_autorises))) { |
|
| 161 | + return true; |
|
| 162 | + } |
|
| 163 | + } |
|
| 164 | + return false; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
@@ -178,27 +178,27 @@ discard block |
||
| 178 | 178 | * @return string Texte avec des URLs absolues |
| 179 | 179 | **/ |
| 180 | 180 | function liens_absolus($texte, $base = '') { |
| 181 | - if (preg_match_all(',(<(a|link|image|img|script)\s[^<>]*(href|src)=[^<>]*>),imsS', $texte, $liens, PREG_SET_ORDER)) { |
|
| 182 | - if (!function_exists('extraire_attribut')) { |
|
| 183 | - include_spip('inc/filtres'); |
|
| 184 | - } |
|
| 185 | - foreach ($liens as $lien) { |
|
| 186 | - foreach (array('href', 'src') as $attr) { |
|
| 187 | - $href = extraire_attribut($lien[0], $attr); |
|
| 188 | - if (strlen($href) > 0) { |
|
| 189 | - if (!preg_match(';^((?:[a-z]{3,7}:)?//);iS', $href)) { |
|
| 190 | - $abs = url_absolue($href, $base); |
|
| 191 | - if (rtrim($href, '/') !== rtrim($abs, '/') and !preg_match('/^#/', $href)) { |
|
| 192 | - $texte_lien = inserer_attribut($lien[0], $attr, $abs); |
|
| 193 | - $texte = str_replace($lien[0], $texte_lien, $texte); |
|
| 194 | - } |
|
| 195 | - } |
|
| 196 | - } |
|
| 197 | - } |
|
| 198 | - } |
|
| 199 | - } |
|
| 181 | + if (preg_match_all(',(<(a|link|image|img|script)\s[^<>]*(href|src)=[^<>]*>),imsS', $texte, $liens, PREG_SET_ORDER)) { |
|
| 182 | + if (!function_exists('extraire_attribut')) { |
|
| 183 | + include_spip('inc/filtres'); |
|
| 184 | + } |
|
| 185 | + foreach ($liens as $lien) { |
|
| 186 | + foreach (array('href', 'src') as $attr) { |
|
| 187 | + $href = extraire_attribut($lien[0], $attr); |
|
| 188 | + if (strlen($href) > 0) { |
|
| 189 | + if (!preg_match(';^((?:[a-z]{3,7}:)?//);iS', $href)) { |
|
| 190 | + $abs = url_absolue($href, $base); |
|
| 191 | + if (rtrim($href, '/') !== rtrim($abs, '/') and !preg_match('/^#/', $href)) { |
|
| 192 | + $texte_lien = inserer_attribut($lien[0], $attr, $abs); |
|
| 193 | + $texte = str_replace($lien[0], $texte_lien, $texte); |
|
| 194 | + } |
|
| 195 | + } |
|
| 196 | + } |
|
| 197 | + } |
|
| 198 | + } |
|
| 199 | + } |
|
| 200 | 200 | |
| 201 | - return $texte; |
|
| 201 | + return $texte; |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | |
@@ -214,11 +214,11 @@ discard block |
||
| 214 | 214 | * @return string Texte ou URL (en absolus) |
| 215 | 215 | **/ |
| 216 | 216 | function abs_url($texte, $base = '') { |
| 217 | - if ($GLOBALS['mode_abs_url'] == 'url') { |
|
| 218 | - return url_absolue($texte, $base); |
|
| 219 | - } else { |
|
| 220 | - return liens_absolus($texte, $base); |
|
| 221 | - } |
|
| 217 | + if ($GLOBALS['mode_abs_url'] == 'url') { |
|
| 218 | + return url_absolue($texte, $base); |
|
| 219 | + } else { |
|
| 220 | + return liens_absolus($texte, $base); |
|
| 221 | + } |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | /** |
@@ -231,11 +231,11 @@ discard block |
||
| 231 | 231 | * @return string |
| 232 | 232 | */ |
| 233 | 233 | function spip_htmlspecialchars($string, $flags = null, $encoding = 'UTF-8', $double_encode = true) { |
| 234 | - if (is_null($flags)) { |
|
| 235 | - $flags = ENT_COMPAT|ENT_HTML401; |
|
| 236 | - } |
|
| 234 | + if (is_null($flags)) { |
|
| 235 | + $flags = ENT_COMPAT|ENT_HTML401; |
|
| 236 | + } |
|
| 237 | 237 | |
| 238 | - return htmlspecialchars($string, $flags, $encoding, $double_encode); |
|
| 238 | + return htmlspecialchars($string, $flags, $encoding, $double_encode); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | /** |
@@ -248,9 +248,9 @@ discard block |
||
| 248 | 248 | * @return string |
| 249 | 249 | */ |
| 250 | 250 | function spip_htmlentities($string, $flags = null, $encoding = 'UTF-8', $double_encode = true) { |
| 251 | - if (is_null($flags)) { |
|
| 252 | - $flags = ENT_COMPAT|ENT_HTML401; |
|
| 253 | - } |
|
| 251 | + if (is_null($flags)) { |
|
| 252 | + $flags = ENT_COMPAT|ENT_HTML401; |
|
| 253 | + } |
|
| 254 | 254 | |
| 255 | - return htmlentities($string, $flags, $encoding, $double_encode); |
|
| 255 | + return htmlentities($string, $flags, $encoding, $double_encode); |
|
| 256 | 256 | } |
@@ -19,206 +19,206 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 22 | - return; |
|
| 22 | + return; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $GLOBALS['codes_langues'] = array( |
| 26 | - 'aa' => "Afar", |
|
| 27 | - 'ab' => "Abkhazian", |
|
| 28 | - 'af' => "Afrikaans", |
|
| 29 | - 'am' => "Amharic", |
|
| 30 | - 'an' => "Aragonés", |
|
| 31 | - 'ar' => "عربي", |
|
| 32 | - 'as' => "Assamese", |
|
| 33 | - 'ast' => "asturianu", |
|
| 34 | - 'ay' => "Aymara", |
|
| 35 | - 'az' => "Azərbaycan dili", |
|
| 36 | - 'ba' => "Bashkir", |
|
| 37 | - 'be' => "Беларуская", |
|
| 38 | - 'ber_tam' => "Tamazigh", |
|
| 39 | - 'ber_tam_tfng' => "Tamazigh tifinagh", |
|
| 40 | - 'bg' => "български", |
|
| 41 | - 'bh' => "Bihari", |
|
| 42 | - 'bi' => "Bislama", |
|
| 43 | - 'bm' => "Bambara", |
|
| 44 | - 'bn' => "Bengali; Bangla", |
|
| 45 | - 'bo' => "Tibetan", |
|
| 46 | - 'br' => "brezhoneg", |
|
| 47 | - 'bs' => "bosanski", |
|
| 48 | - 'ca' => "català", |
|
| 49 | - 'co' => "corsu", |
|
| 50 | - 'cpf' => "Kréol réyoné", |
|
| 51 | - 'cpf_dom' => "Kreyòl", |
|
| 52 | - 'cpf_hat' => "Kreyòl (Peyi Dayiti)", |
|
| 53 | - 'cs' => "čeština", |
|
| 54 | - 'cy' => "Cymraeg", # welsh, gallois |
|
| 55 | - 'da' => "dansk", |
|
| 56 | - 'de' => "Deutsch", |
|
| 57 | - 'dz' => "Bhutani", |
|
| 58 | - 'el' => "ελληνικά", |
|
| 59 | - 'en' => "English", |
|
| 60 | - 'en_hx' => "H4ck3R", |
|
| 61 | - 'en_sm' => "Smurf", |
|
| 62 | - 'eo' => "Esperanto", |
|
| 63 | - 'es' => "Español", |
|
| 64 | - 'es_co' => "Colombiano", |
|
| 65 | - 'es_mx_pop' => "Mexicano a lo güey", |
|
| 66 | - 'et' => "eesti", |
|
| 67 | - 'eu' => "euskara", |
|
| 68 | - 'fa' => "فارسى", |
|
| 69 | - 'ff' => "Fulah", // peul |
|
| 70 | - 'fi' => "suomi", |
|
| 71 | - 'fj' => "Fiji", |
|
| 72 | - 'fo' => "føroyskt", |
|
| 73 | - 'fon' => "fongbè", |
|
| 74 | - 'fr' => "français", |
|
| 75 | - 'fr_fem' => "français féminin", |
|
| 76 | - 'fr_sc' => "schtroumpf", |
|
| 77 | - 'fr_lpc' => "langue parlée complétée", |
|
| 78 | - 'fr_lsf' => "langue des signes française", |
|
| 79 | - 'fr_spl' => "français simplifié", |
|
| 80 | - 'fr_tu' => "français copain", |
|
| 81 | - 'fy' => "Frisian", |
|
| 82 | - 'ga' => "Irish", |
|
| 83 | - 'gd' => "Scots Gaelic", |
|
| 84 | - 'gl' => "galego", |
|
| 85 | - 'gn' => "Guarani", |
|
| 86 | - 'grc' => "Ἀρχαία Ἑλληνική", // grec ancien |
|
| 87 | - 'gu' => "Gujarati", |
|
| 88 | - 'ha' => "Hausa", |
|
| 89 | - 'hac' => "ک-هۆرامی", //"Kurdish-Horami" |
|
| 90 | - 'hbo' => "עברית־התנך", // hebreu classique ou biblique |
|
| 91 | - 'haz' => "هزاره گی", |
|
| 92 | - 'he' => "עברית", |
|
| 93 | - 'hi' => "हिंदी", |
|
| 94 | - 'hr' => "hrvatski", |
|
| 95 | - 'hu' => "magyar", |
|
| 96 | - 'hy' => "Հայերեն",// Arménien |
|
| 97 | - 'ia' => "Interlingua", |
|
| 98 | - 'id' => "Indonesia", |
|
| 99 | - 'ie' => "Interlingue", |
|
| 100 | - 'ik' => "Inupiak", |
|
| 101 | - 'is' => "íslenska", |
|
| 102 | - 'it' => "italiano", |
|
| 103 | - 'it_fem' => "italiana", |
|
| 104 | - 'iu' => "Inuktitut", |
|
| 105 | - 'ja' => "日本語", |
|
| 106 | - 'jv' => "Javanese", |
|
| 107 | - 'ka' => "ქართული", |
|
| 108 | - 'kk' => "қазақ тілі", // Kazakh |
|
| 109 | - 'kl' => "kalaallisut", |
|
| 110 | - 'km' => "ភាសាខ្មែរ",// Khmer |
|
| 111 | - 'kn' => "Kannada", |
|
| 112 | - 'ko' => "한국어", |
|
| 113 | - 'kok' => "कोंकणी", |
|
| 114 | - 'ks' => "Kashmiri", |
|
| 115 | - 'ku' => "کوردی", |
|
| 116 | - 'ky' => "Kirghiz", |
|
| 117 | - 'la' => "lingua latina", |
|
| 118 | - 'lb' => "Lëtzebuergesch", |
|
| 119 | - 'ln' => "Lingala", |
|
| 120 | - 'lo' => "ພາສາລາວ", # lao |
|
| 121 | - 'lt' => "lietuvių", |
|
| 122 | - 'lu' => "luba-katanga", |
|
| 123 | - 'lv' => "latviešu", |
|
| 124 | - 'man' => "mandingue", # a traduire en mandingue |
|
| 125 | - 'mfv' => "manjak", # ISO-639-3 |
|
| 126 | - 'mg' => "Malagasy", |
|
| 127 | - 'mi' => "Maori", |
|
| 128 | - 'mk' => "македонски јазик", |
|
| 129 | - 'ml' => "Malayalam", |
|
| 130 | - 'mn' => "Монгол хэл", |
|
| 131 | - 'mo' => "Moldavian", |
|
| 132 | - 'mos' => "Moré", |
|
| 133 | - 'mr' => "मराठी", |
|
| 134 | - 'ms' => "Bahasa Malaysia", |
|
| 135 | - 'mt' => "Maltese", |
|
| 136 | - 'my' => "Burmese", |
|
| 137 | - 'na' => "Nauru", |
|
| 138 | - 'nap' => "napulitano", |
|
| 139 | - 'ne' => "Nepali", |
|
| 140 | - 'nqo' => "N'ko", // www.manden.org |
|
| 141 | - 'nl' => "Nederlands", |
|
| 142 | - 'no' => "norsk", |
|
| 143 | - 'nb' => "norsk bokmål", |
|
| 144 | - 'nn' => "norsk nynorsk", |
|
| 145 | - 'oc' => "òc", |
|
| 146 | - 'oc_lnc' => "òc lengadocian", |
|
| 147 | - 'oc_ni' => "òc niçard", |
|
| 148 | - 'oc_ni_la' => "òc niçard (larg)", |
|
| 149 | - 'oc_ni_mis' => "òc nissart (mistralenc)", |
|
| 150 | - 'oc_prv' => "òc provençau", |
|
| 151 | - 'oc_gsc' => "òc gascon", |
|
| 152 | - 'oc_lms' => "òc lemosin", |
|
| 153 | - 'oc_auv' => "òc auvernhat", |
|
| 154 | - 'oc_va' => "òc vivaroaupenc", |
|
| 155 | - 'om' => "(Afan) Oromo", |
|
| 156 | - 'or' => "Oriya", |
|
| 157 | - 'pa' => "Punjabi", |
|
| 158 | - 'pbb' => 'Nasa Yuwe', |
|
| 159 | - 'pl' => "polski", |
|
| 160 | - 'prs' => "دری", // ISO-639-3 Dari (Afghanistan) |
|
| 161 | - 'ps' => "پښتو", |
|
| 162 | - 'pt' => "Português", |
|
| 163 | - 'pt_br' => "Português do Brasil", |
|
| 164 | - 'qu' => "Quechua", |
|
| 165 | - 'rm' => "Rhaeto-Romance", |
|
| 166 | - 'rn' => "Kirundi", |
|
| 167 | - 'ro' => "română", |
|
| 168 | - 'roa' => "ch'ti", |
|
| 169 | - 'ru' => "русский", |
|
| 170 | - 'rw' => "Kinyarwanda", |
|
| 171 | - 'sa' => "संस्कृत", |
|
| 172 | - 'sc' => "sardu", |
|
| 173 | - 'scn' => "sicilianu", |
|
| 174 | - 'sd' => "Sindhi", |
|
| 175 | - 'sg' => "Sangho", |
|
| 176 | - 'sh' => "srpskohrvastski", |
|
| 177 | - 'sh_latn' => 'srpskohrvastski', |
|
| 178 | - 'sh_cyrl' => 'Српскохрватски', |
|
| 179 | - 'si' => "Sinhalese", |
|
| 180 | - 'sk' => "slovenčina", // (Slovakia) |
|
| 181 | - 'sl' => "slovenščina", // (Slovenia) |
|
| 182 | - 'sm' => "Samoan", |
|
| 183 | - 'sn' => "Shona", |
|
| 184 | - 'so' => "Somali", |
|
| 185 | - 'sq' => "shqip", |
|
| 186 | - 'sr' => "српски", |
|
| 187 | - 'src' => 'sardu logudorésu', // sarde cf 'sc' |
|
| 188 | - 'sro' => 'sardu campidanésu', |
|
| 189 | - 'ss' => "Siswati", |
|
| 190 | - 'st' => "Sesotho", |
|
| 191 | - 'su' => "Sundanese", |
|
| 192 | - 'sv' => "svenska", |
|
| 193 | - 'sw' => "Kiswahili", |
|
| 194 | - 'ta' => "தமிழ்", // Tamil |
|
| 195 | - 'te' => "Telugu", |
|
| 196 | - 'tg' => "Tajik", |
|
| 197 | - 'th' => "ไทย", |
|
| 198 | - 'ti' => "Tigrinya", |
|
| 199 | - 'tk' => "Turkmen", |
|
| 200 | - 'tl' => "Tagalog", |
|
| 201 | - 'tn' => "Setswana", |
|
| 202 | - 'to' => "Tonga", |
|
| 203 | - 'tr' => "Türkçe", |
|
| 204 | - 'ts' => "Tsonga", |
|
| 205 | - 'tt' => "Татар", |
|
| 206 | - 'tw' => "Twi", |
|
| 207 | - 'ty' => "reo mā`ohi", // tahitien |
|
| 208 | - 'ug' => "Uighur", |
|
| 209 | - 'uk' => "українська", |
|
| 210 | - 'ur' => "ٱردو", |
|
| 211 | - 'uz' => "O'zbekcha", |
|
| 212 | - 'vi' => "Tiếng Việt", |
|
| 213 | - 'vo' => "Volapuk", |
|
| 214 | - 'wa' => "walon", |
|
| 215 | - 'wo' => "Wolof", |
|
| 216 | - 'xh' => "Xhosa", |
|
| 217 | - 'yi' => "Yiddish", |
|
| 218 | - 'yo' => "Yoruba", |
|
| 219 | - 'za' => "Zhuang", |
|
| 220 | - 'zh' => "中文", // chinois (ecriture simplifiee) |
|
| 221 | - 'zh_tw' => "台灣中文", // chinois taiwan (ecr. traditionnelle) |
|
| 222 | - 'zu' => "Zulu" |
|
| 26 | + 'aa' => "Afar", |
|
| 27 | + 'ab' => "Abkhazian", |
|
| 28 | + 'af' => "Afrikaans", |
|
| 29 | + 'am' => "Amharic", |
|
| 30 | + 'an' => "Aragonés", |
|
| 31 | + 'ar' => "عربي", |
|
| 32 | + 'as' => "Assamese", |
|
| 33 | + 'ast' => "asturianu", |
|
| 34 | + 'ay' => "Aymara", |
|
| 35 | + 'az' => "Azərbaycan dili", |
|
| 36 | + 'ba' => "Bashkir", |
|
| 37 | + 'be' => "Беларуская", |
|
| 38 | + 'ber_tam' => "Tamazigh", |
|
| 39 | + 'ber_tam_tfng' => "Tamazigh tifinagh", |
|
| 40 | + 'bg' => "български", |
|
| 41 | + 'bh' => "Bihari", |
|
| 42 | + 'bi' => "Bislama", |
|
| 43 | + 'bm' => "Bambara", |
|
| 44 | + 'bn' => "Bengali; Bangla", |
|
| 45 | + 'bo' => "Tibetan", |
|
| 46 | + 'br' => "brezhoneg", |
|
| 47 | + 'bs' => "bosanski", |
|
| 48 | + 'ca' => "català", |
|
| 49 | + 'co' => "corsu", |
|
| 50 | + 'cpf' => "Kréol réyoné", |
|
| 51 | + 'cpf_dom' => "Kreyòl", |
|
| 52 | + 'cpf_hat' => "Kreyòl (Peyi Dayiti)", |
|
| 53 | + 'cs' => "čeština", |
|
| 54 | + 'cy' => "Cymraeg", # welsh, gallois |
|
| 55 | + 'da' => "dansk", |
|
| 56 | + 'de' => "Deutsch", |
|
| 57 | + 'dz' => "Bhutani", |
|
| 58 | + 'el' => "ελληνικά", |
|
| 59 | + 'en' => "English", |
|
| 60 | + 'en_hx' => "H4ck3R", |
|
| 61 | + 'en_sm' => "Smurf", |
|
| 62 | + 'eo' => "Esperanto", |
|
| 63 | + 'es' => "Español", |
|
| 64 | + 'es_co' => "Colombiano", |
|
| 65 | + 'es_mx_pop' => "Mexicano a lo güey", |
|
| 66 | + 'et' => "eesti", |
|
| 67 | + 'eu' => "euskara", |
|
| 68 | + 'fa' => "فارسى", |
|
| 69 | + 'ff' => "Fulah", // peul |
|
| 70 | + 'fi' => "suomi", |
|
| 71 | + 'fj' => "Fiji", |
|
| 72 | + 'fo' => "føroyskt", |
|
| 73 | + 'fon' => "fongbè", |
|
| 74 | + 'fr' => "français", |
|
| 75 | + 'fr_fem' => "français féminin", |
|
| 76 | + 'fr_sc' => "schtroumpf", |
|
| 77 | + 'fr_lpc' => "langue parlée complétée", |
|
| 78 | + 'fr_lsf' => "langue des signes française", |
|
| 79 | + 'fr_spl' => "français simplifié", |
|
| 80 | + 'fr_tu' => "français copain", |
|
| 81 | + 'fy' => "Frisian", |
|
| 82 | + 'ga' => "Irish", |
|
| 83 | + 'gd' => "Scots Gaelic", |
|
| 84 | + 'gl' => "galego", |
|
| 85 | + 'gn' => "Guarani", |
|
| 86 | + 'grc' => "Ἀρχαία Ἑλληνική", // grec ancien |
|
| 87 | + 'gu' => "Gujarati", |
|
| 88 | + 'ha' => "Hausa", |
|
| 89 | + 'hac' => "ک-هۆرامی", //"Kurdish-Horami" |
|
| 90 | + 'hbo' => "עברית־התנך", // hebreu classique ou biblique |
|
| 91 | + 'haz' => "هزاره گی", |
|
| 92 | + 'he' => "עברית", |
|
| 93 | + 'hi' => "हिंदी", |
|
| 94 | + 'hr' => "hrvatski", |
|
| 95 | + 'hu' => "magyar", |
|
| 96 | + 'hy' => "Հայերեն",// Arménien |
|
| 97 | + 'ia' => "Interlingua", |
|
| 98 | + 'id' => "Indonesia", |
|
| 99 | + 'ie' => "Interlingue", |
|
| 100 | + 'ik' => "Inupiak", |
|
| 101 | + 'is' => "íslenska", |
|
| 102 | + 'it' => "italiano", |
|
| 103 | + 'it_fem' => "italiana", |
|
| 104 | + 'iu' => "Inuktitut", |
|
| 105 | + 'ja' => "日本語", |
|
| 106 | + 'jv' => "Javanese", |
|
| 107 | + 'ka' => "ქართული", |
|
| 108 | + 'kk' => "қазақ тілі", // Kazakh |
|
| 109 | + 'kl' => "kalaallisut", |
|
| 110 | + 'km' => "ភាសាខ្មែរ",// Khmer |
|
| 111 | + 'kn' => "Kannada", |
|
| 112 | + 'ko' => "한국어", |
|
| 113 | + 'kok' => "कोंकणी", |
|
| 114 | + 'ks' => "Kashmiri", |
|
| 115 | + 'ku' => "کوردی", |
|
| 116 | + 'ky' => "Kirghiz", |
|
| 117 | + 'la' => "lingua latina", |
|
| 118 | + 'lb' => "Lëtzebuergesch", |
|
| 119 | + 'ln' => "Lingala", |
|
| 120 | + 'lo' => "ພາສາລາວ", # lao |
|
| 121 | + 'lt' => "lietuvių", |
|
| 122 | + 'lu' => "luba-katanga", |
|
| 123 | + 'lv' => "latviešu", |
|
| 124 | + 'man' => "mandingue", # a traduire en mandingue |
|
| 125 | + 'mfv' => "manjak", # ISO-639-3 |
|
| 126 | + 'mg' => "Malagasy", |
|
| 127 | + 'mi' => "Maori", |
|
| 128 | + 'mk' => "македонски јазик", |
|
| 129 | + 'ml' => "Malayalam", |
|
| 130 | + 'mn' => "Монгол хэл", |
|
| 131 | + 'mo' => "Moldavian", |
|
| 132 | + 'mos' => "Moré", |
|
| 133 | + 'mr' => "मराठी", |
|
| 134 | + 'ms' => "Bahasa Malaysia", |
|
| 135 | + 'mt' => "Maltese", |
|
| 136 | + 'my' => "Burmese", |
|
| 137 | + 'na' => "Nauru", |
|
| 138 | + 'nap' => "napulitano", |
|
| 139 | + 'ne' => "Nepali", |
|
| 140 | + 'nqo' => "N'ko", // www.manden.org |
|
| 141 | + 'nl' => "Nederlands", |
|
| 142 | + 'no' => "norsk", |
|
| 143 | + 'nb' => "norsk bokmål", |
|
| 144 | + 'nn' => "norsk nynorsk", |
|
| 145 | + 'oc' => "òc", |
|
| 146 | + 'oc_lnc' => "òc lengadocian", |
|
| 147 | + 'oc_ni' => "òc niçard", |
|
| 148 | + 'oc_ni_la' => "òc niçard (larg)", |
|
| 149 | + 'oc_ni_mis' => "òc nissart (mistralenc)", |
|
| 150 | + 'oc_prv' => "òc provençau", |
|
| 151 | + 'oc_gsc' => "òc gascon", |
|
| 152 | + 'oc_lms' => "òc lemosin", |
|
| 153 | + 'oc_auv' => "òc auvernhat", |
|
| 154 | + 'oc_va' => "òc vivaroaupenc", |
|
| 155 | + 'om' => "(Afan) Oromo", |
|
| 156 | + 'or' => "Oriya", |
|
| 157 | + 'pa' => "Punjabi", |
|
| 158 | + 'pbb' => 'Nasa Yuwe', |
|
| 159 | + 'pl' => "polski", |
|
| 160 | + 'prs' => "دری", // ISO-639-3 Dari (Afghanistan) |
|
| 161 | + 'ps' => "پښتو", |
|
| 162 | + 'pt' => "Português", |
|
| 163 | + 'pt_br' => "Português do Brasil", |
|
| 164 | + 'qu' => "Quechua", |
|
| 165 | + 'rm' => "Rhaeto-Romance", |
|
| 166 | + 'rn' => "Kirundi", |
|
| 167 | + 'ro' => "română", |
|
| 168 | + 'roa' => "ch'ti", |
|
| 169 | + 'ru' => "русский", |
|
| 170 | + 'rw' => "Kinyarwanda", |
|
| 171 | + 'sa' => "संस्कृत", |
|
| 172 | + 'sc' => "sardu", |
|
| 173 | + 'scn' => "sicilianu", |
|
| 174 | + 'sd' => "Sindhi", |
|
| 175 | + 'sg' => "Sangho", |
|
| 176 | + 'sh' => "srpskohrvastski", |
|
| 177 | + 'sh_latn' => 'srpskohrvastski', |
|
| 178 | + 'sh_cyrl' => 'Српскохрватски', |
|
| 179 | + 'si' => "Sinhalese", |
|
| 180 | + 'sk' => "slovenčina", // (Slovakia) |
|
| 181 | + 'sl' => "slovenščina", // (Slovenia) |
|
| 182 | + 'sm' => "Samoan", |
|
| 183 | + 'sn' => "Shona", |
|
| 184 | + 'so' => "Somali", |
|
| 185 | + 'sq' => "shqip", |
|
| 186 | + 'sr' => "српски", |
|
| 187 | + 'src' => 'sardu logudorésu', // sarde cf 'sc' |
|
| 188 | + 'sro' => 'sardu campidanésu', |
|
| 189 | + 'ss' => "Siswati", |
|
| 190 | + 'st' => "Sesotho", |
|
| 191 | + 'su' => "Sundanese", |
|
| 192 | + 'sv' => "svenska", |
|
| 193 | + 'sw' => "Kiswahili", |
|
| 194 | + 'ta' => "தமிழ்", // Tamil |
|
| 195 | + 'te' => "Telugu", |
|
| 196 | + 'tg' => "Tajik", |
|
| 197 | + 'th' => "ไทย", |
|
| 198 | + 'ti' => "Tigrinya", |
|
| 199 | + 'tk' => "Turkmen", |
|
| 200 | + 'tl' => "Tagalog", |
|
| 201 | + 'tn' => "Setswana", |
|
| 202 | + 'to' => "Tonga", |
|
| 203 | + 'tr' => "Türkçe", |
|
| 204 | + 'ts' => "Tsonga", |
|
| 205 | + 'tt' => "Татар", |
|
| 206 | + 'tw' => "Twi", |
|
| 207 | + 'ty' => "reo mā`ohi", // tahitien |
|
| 208 | + 'ug' => "Uighur", |
|
| 209 | + 'uk' => "українська", |
|
| 210 | + 'ur' => "ٱردو", |
|
| 211 | + 'uz' => "O'zbekcha", |
|
| 212 | + 'vi' => "Tiếng Việt", |
|
| 213 | + 'vo' => "Volapuk", |
|
| 214 | + 'wa' => "walon", |
|
| 215 | + 'wo' => "Wolof", |
|
| 216 | + 'xh' => "Xhosa", |
|
| 217 | + 'yi' => "Yiddish", |
|
| 218 | + 'yo' => "Yoruba", |
|
| 219 | + 'za' => "Zhuang", |
|
| 220 | + 'zh' => "中文", // chinois (ecriture simplifiee) |
|
| 221 | + 'zh_tw' => "台灣中文", // chinois taiwan (ecr. traditionnelle) |
|
| 222 | + 'zu' => "Zulu" |
|
| 223 | 223 | |
| 224 | 224 | ); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | **/ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * Pile complétée du code compilé |
| 37 | 37 | **/ |
| 38 | 38 | function balise_URL_LOGOUT($p) { |
| 39 | - return calculer_balise_dynamique($p, 'URL_LOGOUT', array()); |
|
| 39 | + return calculer_balise_dynamique($p, 'URL_LOGOUT', array()); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | * Liste (url) des arguments collectés. |
| 53 | 53 | */ |
| 54 | 54 | function balise_URL_LOGOUT_stat($args, $context_compil) { |
| 55 | - $url = isset($args[0]) ? $args[0] : ''; |
|
| 55 | + $url = isset($args[0]) ? $args[0] : ''; |
|
| 56 | 56 | |
| 57 | - return array($url); |
|
| 57 | + return array($url); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -69,9 +69,9 @@ discard block |
||
| 69 | 69 | **/ |
| 70 | 70 | function balise_URL_LOGOUT_dyn($cible) { |
| 71 | 71 | |
| 72 | - if (empty($GLOBALS['visiteur_session']['login']) and empty($GLOBALS['visiteur_session']['statut'])) { |
|
| 73 | - return ''; |
|
| 74 | - } |
|
| 72 | + if (empty($GLOBALS['visiteur_session']['login']) and empty($GLOBALS['visiteur_session']['statut'])) { |
|
| 73 | + return ''; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - return generer_url_action('logout', "logout=public&url=" . rawurlencode($cible ? $cible : self('&'))); |
|
| 76 | + return generer_url_action('logout', "logout=public&url=" . rawurlencode($cible ? $cible : self('&'))); |
|
| 77 | 77 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @package SPIP\Core\Logos |
| 17 | 17 | **/ |
| 18 | 18 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 19 | - return; |
|
| 19 | + return; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -37,34 +37,34 @@ discard block |
||
| 37 | 37 | **/ |
| 38 | 38 | function inc_chercher_logo_dist($id, $_id_objet, $mode = 'on', $compat_old_logos = true) { |
| 39 | 39 | |
| 40 | - $mode = preg_replace(",\W,", '', $mode); |
|
| 41 | - if ($mode) { |
|
| 42 | - // chercher dans la base |
|
| 43 | - $mode_document = 'logo' . $mode; |
|
| 44 | - $objet = objet_type($_id_objet); |
|
| 45 | - $doc = sql_fetsel('D.*', 'spip_documents AS D JOIN spip_documents_liens AS L ON L.id_document=D.id_document', "D.mode=".sql_quote($mode_document)." AND L.objet=".sql_quote($objet)." AND id_objet=".intval($id)); |
|
| 46 | - if ($doc) { |
|
| 47 | - include_spip('inc/documents'); |
|
| 48 | - $d = get_spip_doc($doc['fichier']); |
|
| 49 | - return array($d, _DIR_IMG, basename($d), $doc['extension'], @filemtime($d), $doc); |
|
| 50 | - } |
|
| 40 | + $mode = preg_replace(",\W,", '', $mode); |
|
| 41 | + if ($mode) { |
|
| 42 | + // chercher dans la base |
|
| 43 | + $mode_document = 'logo' . $mode; |
|
| 44 | + $objet = objet_type($_id_objet); |
|
| 45 | + $doc = sql_fetsel('D.*', 'spip_documents AS D JOIN spip_documents_liens AS L ON L.id_document=D.id_document', "D.mode=".sql_quote($mode_document)." AND L.objet=".sql_quote($objet)." AND id_objet=".intval($id)); |
|
| 46 | + if ($doc) { |
|
| 47 | + include_spip('inc/documents'); |
|
| 48 | + $d = get_spip_doc($doc['fichier']); |
|
| 49 | + return array($d, _DIR_IMG, basename($d), $doc['extension'], @filemtime($d), $doc); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - # deprecated TODO remove |
|
| 53 | - if ($compat_old_logos) { |
|
| 54 | - # attention au cas $id = '0' pour LOGO_SITE_SPIP : utiliser intval() |
|
| 55 | - $type = type_du_logo($_id_objet); |
|
| 56 | - $nom = $type . $mode . intval($id); |
|
| 52 | + # deprecated TODO remove |
|
| 53 | + if ($compat_old_logos) { |
|
| 54 | + # attention au cas $id = '0' pour LOGO_SITE_SPIP : utiliser intval() |
|
| 55 | + $type = type_du_logo($_id_objet); |
|
| 56 | + $nom = $type . $mode . intval($id); |
|
| 57 | 57 | |
| 58 | - foreach ($GLOBALS['formats_logos'] as $format) { |
|
| 59 | - if (@file_exists($d = (_DIR_LOGOS . $nom . '.' . $format))) { |
|
| 60 | - return array($d, _DIR_LOGOS, $nom, $format, @filemtime($d)); |
|
| 61 | - } |
|
| 62 | - } |
|
| 63 | - } |
|
| 64 | - } |
|
| 58 | + foreach ($GLOBALS['formats_logos'] as $format) { |
|
| 59 | + if (@file_exists($d = (_DIR_LOGOS . $nom . '.' . $format))) { |
|
| 60 | + return array($d, _DIR_LOGOS, $nom, $format, @filemtime($d)); |
|
| 61 | + } |
|
| 62 | + } |
|
| 63 | + } |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | - # coherence de type pour servir comme filtre (formulaire_login) |
|
| 67 | - return array(); |
|
| 66 | + # coherence de type pour servir comme filtre (formulaire_login) |
|
| 67 | + return array(); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -83,15 +83,15 @@ discard block |
||
| 83 | 83 | * @deprecated MAIS NE PAS SUPPRIMER CAR SERT POUR L'UPGRADE des logos et leur mise en base |
| 84 | 84 | **/ |
| 85 | 85 | function type_du_logo($_id_objet) { |
| 86 | - return isset($GLOBALS['table_logos'][$_id_objet]) |
|
| 87 | - ? $GLOBALS['table_logos'][$_id_objet] |
|
| 88 | - : objet_type(preg_replace(',^id_,', '', $_id_objet)); |
|
| 86 | + return isset($GLOBALS['table_logos'][$_id_objet]) |
|
| 87 | + ? $GLOBALS['table_logos'][$_id_objet] |
|
| 88 | + : objet_type(preg_replace(',^id_,', '', $_id_objet)); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | // Exceptions standards (historique) |
| 92 | 92 | $GLOBALS['table_logos'] = array( |
| 93 | - 'id_article' => 'art', |
|
| 94 | - 'id_auteur' => 'aut', |
|
| 95 | - 'id_rubrique' => 'rub', |
|
| 96 | - 'id_groupe' => 'groupe', |
|
| 93 | + 'id_article' => 'art', |
|
| 94 | + 'id_auteur' => 'aut', |
|
| 95 | + 'id_rubrique' => 'rub', |
|
| 96 | + 'id_groupe' => 'groupe', |
|
| 97 | 97 | ); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -27,40 +27,40 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | function exec_403_dist($message = '') { |
| 29 | 29 | |
| 30 | - $exec = _request('exec'); |
|
| 30 | + $exec = _request('exec'); |
|
| 31 | 31 | |
| 32 | - $titre = "exec_$exec"; |
|
| 33 | - $navigation = ''; |
|
| 34 | - $extra = ''; |
|
| 32 | + $titre = "exec_$exec"; |
|
| 33 | + $navigation = ''; |
|
| 34 | + $extra = ''; |
|
| 35 | 35 | |
| 36 | - if (!$message) { |
|
| 37 | - $message = _T('avis_acces_interdit_prive', array('exec' => _request('exec'))); |
|
| 38 | - } |
|
| 36 | + if (!$message) { |
|
| 37 | + $message = _T('avis_acces_interdit_prive', array('exec' => _request('exec'))); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 40 | + $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 41 | 41 | |
| 42 | - if (_request('var_zajax')) { |
|
| 43 | - include_spip('inc/actions'); |
|
| 44 | - ajax_retour($contenu); |
|
| 45 | - } else { |
|
| 46 | - include_spip('inc/presentation'); // alleger les inclusions avec un inc/presentation_mini |
|
| 42 | + if (_request('var_zajax')) { |
|
| 43 | + include_spip('inc/actions'); |
|
| 44 | + ajax_retour($contenu); |
|
| 45 | + } else { |
|
| 46 | + include_spip('inc/presentation'); // alleger les inclusions avec un inc/presentation_mini |
|
| 47 | 47 | |
| 48 | - $commencer_page = charger_fonction('commencer_page', 'inc'); |
|
| 49 | - echo $commencer_page($titre); |
|
| 48 | + $commencer_page = charger_fonction('commencer_page', 'inc'); |
|
| 49 | + echo $commencer_page($titre); |
|
| 50 | 50 | |
| 51 | - echo debut_gauche("403_$exec", true); |
|
| 52 | - echo recuperer_fond('prive/squelettes/navigation/dist', array()); |
|
| 53 | - echo pipeline('affiche_gauche', array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => '')); |
|
| 51 | + echo debut_gauche("403_$exec", true); |
|
| 52 | + echo recuperer_fond('prive/squelettes/navigation/dist', array()); |
|
| 53 | + echo pipeline('affiche_gauche', array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => '')); |
|
| 54 | 54 | |
| 55 | - echo creer_colonne_droite('403', true); |
|
| 56 | - echo pipeline('affiche_droite', array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => '')); |
|
| 55 | + echo creer_colonne_droite('403', true); |
|
| 56 | + echo pipeline('affiche_droite', array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => '')); |
|
| 57 | 57 | |
| 58 | - echo debut_droite('403', true); |
|
| 59 | - echo pipeline( |
|
| 60 | - 'affiche_milieu', |
|
| 61 | - array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => $contenu) |
|
| 62 | - ); |
|
| 58 | + echo debut_droite('403', true); |
|
| 59 | + echo pipeline( |
|
| 60 | + 'affiche_milieu', |
|
| 61 | + array('args' => array('exec' => '403', 'exec_erreur' => $exec), 'data' => $contenu) |
|
| 62 | + ); |
|
| 63 | 63 | |
| 64 | - echo fin_gauche(), fin_page(); |
|
| 65 | - } |
|
| 64 | + echo fin_gauche(), fin_page(); |
|
| 65 | + } |
|
| 66 | 66 | } |
@@ -2,118 +2,118 @@ |
||
| 2 | 2 | // This is a SPIP language file -- Ceci est un fichier langue de SPIP |
| 3 | 3 | // Fichier source, a modifier dans https://git.spip.net/spip/spip.git |
| 4 | 4 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 5 | - return; |
|
| 5 | + return; |
|
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | $GLOBALS[$GLOBALS['idx_lang']] = array( |
| 9 | 9 | |
| 10 | - // A |
|
| 11 | - 'accueil_site' => 'Accueil', |
|
| 12 | - 'article' => 'Article', |
|
| 13 | - 'articles' => 'Articles', |
|
| 14 | - 'articles_auteur' => 'Articles de cet auteur', |
|
| 15 | - 'articles_populaires' => 'Articles les plus populaires', |
|
| 16 | - 'articles_rubrique' => 'Articles de cette rubrique', |
|
| 17 | - 'aucun_article' => 'Il n’y a pas d’article à cette adresse', |
|
| 18 | - 'aucun_auteur' => 'Il n’y a pas d’auteur à cette adresse', |
|
| 19 | - 'aucun_site' => 'Il n’y a pas de site à cette adresse', |
|
| 20 | - 'aucune_breve' => 'Il n’y a pas de brève à cette adresse', |
|
| 21 | - 'aucune_rubrique' => 'Il n’y a pas de rubrique à cette adresse', |
|
| 22 | - 'auteur' => 'Auteur', |
|
| 23 | - 'autres' => 'Autres', |
|
| 24 | - 'autres_breves' => 'Autres brèves', |
|
| 25 | - 'autres_groupes_mots_clefs' => 'Autres groupes de mots-clés', |
|
| 26 | - 'autres_sites' => 'Autres sites', |
|
| 27 | - |
|
| 28 | - // B |
|
| 29 | - 'bonjour' => 'Bonjour', |
|
| 30 | - |
|
| 31 | - // C |
|
| 32 | - 'commenter_site' => 'Commenter ce site', |
|
| 33 | - 'contact' => 'Contact', |
|
| 34 | - 'copie_document_impossible' => 'Impossible de copier le document', |
|
| 35 | - |
|
| 36 | - // D |
|
| 37 | - 'date' => 'Date', |
|
| 38 | - 'dernier_ajout' => 'Dernier ajout', |
|
| 39 | - 'dernieres_breves' => 'Dernières brèves', |
|
| 40 | - 'derniers_articles' => 'Derniers articles', |
|
| 41 | - 'derniers_commentaires' => 'Derniers commentaires', |
|
| 42 | - 'derniers_messages_forum' => 'Derniers messages publiés dans les forums', |
|
| 43 | - |
|
| 44 | - // E |
|
| 45 | - 'edition_mode_texte' => 'Édition en mode texte de', |
|
| 46 | - 'en_reponse' => 'En réponse à :', |
|
| 47 | - 'en_resume' => 'En résumé', |
|
| 48 | - 'envoyer_message' => 'Envoyer un message', |
|
| 49 | - 'espace_prive' => 'Espace privé', |
|
| 50 | - |
|
| 51 | - // F |
|
| 52 | - 'formats_acceptes' => 'Formats acceptés : @formats@.', |
|
| 53 | - |
|
| 54 | - // H |
|
| 55 | - 'hierarchie_site' => 'Hiérarchie du site', |
|
| 56 | - |
|
| 57 | - // J |
|
| 58 | - 'jours' => 'jours', |
|
| 59 | - |
|
| 60 | - // L |
|
| 61 | - 'lien_connecter' => 'Se connecter', |
|
| 62 | - |
|
| 63 | - // M |
|
| 64 | - 'meme_auteur' => 'Du même auteur', |
|
| 65 | - 'meme_rubrique' => 'Dans la même rubrique', |
|
| 66 | - 'memes_auteurs' => 'Des mêmes auteurs', |
|
| 67 | - 'message' => 'Message', |
|
| 68 | - 'messages_forum' => 'Messages', |
|
| 69 | - 'messages_recents' => 'Messages de forums les plus récents', |
|
| 70 | - 'mots_clef' => 'Mot-clé', |
|
| 71 | - 'mots_clefs' => 'Mots-clés', |
|
| 72 | - 'mots_clefs_meme_groupe' => 'Mots-clés dans le même groupe', |
|
| 73 | - |
|
| 74 | - // N |
|
| 75 | - 'navigation' => 'Navigation', |
|
| 76 | - 'nom' => 'Nom', |
|
| 77 | - 'nouveautes' => 'Les nouveautés', |
|
| 78 | - 'nouveautes_web' => 'Nouveautés sur le Web', |
|
| 79 | - 'nouveaux_articles' => 'Nouveaux articles', |
|
| 80 | - 'nouvelles_breves' => 'Nouvelles brèves', |
|
| 81 | - |
|
| 82 | - // P |
|
| 83 | - 'page_precedente' => 'page précédente', |
|
| 84 | - 'page_suivante' => 'page suivante', |
|
| 85 | - 'par_auteur' => 'par ', |
|
| 86 | - 'participer_site' => 'Vous pouvez participer à la vie de ce site et proposer vos propres articles en vous inscrivant ci-dessous. Vous recevrez immédiatement un email vous indiquant vos codes d’accès à l’espace privé du site.', |
|
| 87 | - 'plan_site' => 'Plan du site', |
|
| 88 | - 'popularite' => 'Popularité', |
|
| 89 | - 'poster_message' => 'Poster un message', |
|
| 90 | - 'proposer_site' => 'Vous pouvez proposer un site à ajouter dans cette rubrique :', |
|
| 91 | - |
|
| 92 | - // R |
|
| 93 | - 'repondre_article' => 'Répondre à cet article', |
|
| 94 | - 'repondre_breve' => 'Répondre à cette brève', |
|
| 95 | - 'resultats_recherche' => 'Résultats de la recherche', |
|
| 96 | - 'retour_debut_forums' => 'Retour au début des forums', |
|
| 97 | - 'rubrique' => 'Rubrique', |
|
| 98 | - 'rubriques' => 'Rubriques', |
|
| 99 | - |
|
| 100 | - // S |
|
| 101 | - 'signatures_petition' => 'Signatures', |
|
| 102 | - 'site_realise_avec_spip' => 'Site réalisé avec SPIP', |
|
| 103 | - 'sites_web' => 'Sites Web', |
|
| 104 | - 'sous_rubriques' => 'Sous-rubriques', |
|
| 105 | - 'spam' => 'Spam', |
|
| 106 | - 'suite' => 'suite', |
|
| 107 | - 'sur_web' => 'Sur le Web', |
|
| 108 | - 'syndiquer_rubrique' => 'Syndiquer cette rubrique', |
|
| 109 | - 'syndiquer_site' => 'Syndiquer tout le site', |
|
| 110 | - |
|
| 111 | - // T |
|
| 112 | - 'texte_lettre_information' => 'Voici la lettre d’information du site', |
|
| 113 | - 'texte_lettre_information_2' => 'Cette lettre recense les nouveautés publiées depuis', |
|
| 114 | - |
|
| 115 | - // V |
|
| 116 | - 'ver_imprimer' => 'Version à imprimer', |
|
| 117 | - 'voir_en_ligne' => 'Voir en ligne', |
|
| 118 | - 'voir_squelette' => 'voir le squelette de cette page' |
|
| 10 | + // A |
|
| 11 | + 'accueil_site' => 'Accueil', |
|
| 12 | + 'article' => 'Article', |
|
| 13 | + 'articles' => 'Articles', |
|
| 14 | + 'articles_auteur' => 'Articles de cet auteur', |
|
| 15 | + 'articles_populaires' => 'Articles les plus populaires', |
|
| 16 | + 'articles_rubrique' => 'Articles de cette rubrique', |
|
| 17 | + 'aucun_article' => 'Il n’y a pas d’article à cette adresse', |
|
| 18 | + 'aucun_auteur' => 'Il n’y a pas d’auteur à cette adresse', |
|
| 19 | + 'aucun_site' => 'Il n’y a pas de site à cette adresse', |
|
| 20 | + 'aucune_breve' => 'Il n’y a pas de brève à cette adresse', |
|
| 21 | + 'aucune_rubrique' => 'Il n’y a pas de rubrique à cette adresse', |
|
| 22 | + 'auteur' => 'Auteur', |
|
| 23 | + 'autres' => 'Autres', |
|
| 24 | + 'autres_breves' => 'Autres brèves', |
|
| 25 | + 'autres_groupes_mots_clefs' => 'Autres groupes de mots-clés', |
|
| 26 | + 'autres_sites' => 'Autres sites', |
|
| 27 | + |
|
| 28 | + // B |
|
| 29 | + 'bonjour' => 'Bonjour', |
|
| 30 | + |
|
| 31 | + // C |
|
| 32 | + 'commenter_site' => 'Commenter ce site', |
|
| 33 | + 'contact' => 'Contact', |
|
| 34 | + 'copie_document_impossible' => 'Impossible de copier le document', |
|
| 35 | + |
|
| 36 | + // D |
|
| 37 | + 'date' => 'Date', |
|
| 38 | + 'dernier_ajout' => 'Dernier ajout', |
|
| 39 | + 'dernieres_breves' => 'Dernières brèves', |
|
| 40 | + 'derniers_articles' => 'Derniers articles', |
|
| 41 | + 'derniers_commentaires' => 'Derniers commentaires', |
|
| 42 | + 'derniers_messages_forum' => 'Derniers messages publiés dans les forums', |
|
| 43 | + |
|
| 44 | + // E |
|
| 45 | + 'edition_mode_texte' => 'Édition en mode texte de', |
|
| 46 | + 'en_reponse' => 'En réponse à :', |
|
| 47 | + 'en_resume' => 'En résumé', |
|
| 48 | + 'envoyer_message' => 'Envoyer un message', |
|
| 49 | + 'espace_prive' => 'Espace privé', |
|
| 50 | + |
|
| 51 | + // F |
|
| 52 | + 'formats_acceptes' => 'Formats acceptés : @formats@.', |
|
| 53 | + |
|
| 54 | + // H |
|
| 55 | + 'hierarchie_site' => 'Hiérarchie du site', |
|
| 56 | + |
|
| 57 | + // J |
|
| 58 | + 'jours' => 'jours', |
|
| 59 | + |
|
| 60 | + // L |
|
| 61 | + 'lien_connecter' => 'Se connecter', |
|
| 62 | + |
|
| 63 | + // M |
|
| 64 | + 'meme_auteur' => 'Du même auteur', |
|
| 65 | + 'meme_rubrique' => 'Dans la même rubrique', |
|
| 66 | + 'memes_auteurs' => 'Des mêmes auteurs', |
|
| 67 | + 'message' => 'Message', |
|
| 68 | + 'messages_forum' => 'Messages', |
|
| 69 | + 'messages_recents' => 'Messages de forums les plus récents', |
|
| 70 | + 'mots_clef' => 'Mot-clé', |
|
| 71 | + 'mots_clefs' => 'Mots-clés', |
|
| 72 | + 'mots_clefs_meme_groupe' => 'Mots-clés dans le même groupe', |
|
| 73 | + |
|
| 74 | + // N |
|
| 75 | + 'navigation' => 'Navigation', |
|
| 76 | + 'nom' => 'Nom', |
|
| 77 | + 'nouveautes' => 'Les nouveautés', |
|
| 78 | + 'nouveautes_web' => 'Nouveautés sur le Web', |
|
| 79 | + 'nouveaux_articles' => 'Nouveaux articles', |
|
| 80 | + 'nouvelles_breves' => 'Nouvelles brèves', |
|
| 81 | + |
|
| 82 | + // P |
|
| 83 | + 'page_precedente' => 'page précédente', |
|
| 84 | + 'page_suivante' => 'page suivante', |
|
| 85 | + 'par_auteur' => 'par ', |
|
| 86 | + 'participer_site' => 'Vous pouvez participer à la vie de ce site et proposer vos propres articles en vous inscrivant ci-dessous. Vous recevrez immédiatement un email vous indiquant vos codes d’accès à l’espace privé du site.', |
|
| 87 | + 'plan_site' => 'Plan du site', |
|
| 88 | + 'popularite' => 'Popularité', |
|
| 89 | + 'poster_message' => 'Poster un message', |
|
| 90 | + 'proposer_site' => 'Vous pouvez proposer un site à ajouter dans cette rubrique :', |
|
| 91 | + |
|
| 92 | + // R |
|
| 93 | + 'repondre_article' => 'Répondre à cet article', |
|
| 94 | + 'repondre_breve' => 'Répondre à cette brève', |
|
| 95 | + 'resultats_recherche' => 'Résultats de la recherche', |
|
| 96 | + 'retour_debut_forums' => 'Retour au début des forums', |
|
| 97 | + 'rubrique' => 'Rubrique', |
|
| 98 | + 'rubriques' => 'Rubriques', |
|
| 99 | + |
|
| 100 | + // S |
|
| 101 | + 'signatures_petition' => 'Signatures', |
|
| 102 | + 'site_realise_avec_spip' => 'Site réalisé avec SPIP', |
|
| 103 | + 'sites_web' => 'Sites Web', |
|
| 104 | + 'sous_rubriques' => 'Sous-rubriques', |
|
| 105 | + 'spam' => 'Spam', |
|
| 106 | + 'suite' => 'suite', |
|
| 107 | + 'sur_web' => 'Sur le Web', |
|
| 108 | + 'syndiquer_rubrique' => 'Syndiquer cette rubrique', |
|
| 109 | + 'syndiquer_site' => 'Syndiquer tout le site', |
|
| 110 | + |
|
| 111 | + // T |
|
| 112 | + 'texte_lettre_information' => 'Voici la lettre d’information du site', |
|
| 113 | + 'texte_lettre_information_2' => 'Cette lettre recense les nouveautés publiées depuis', |
|
| 114 | + |
|
| 115 | + // V |
|
| 116 | + 'ver_imprimer' => 'Version à imprimer', |
|
| 117 | + 'voir_en_ligne' => 'Voir en ligne', |
|
| 118 | + 'voir_squelette' => 'voir le squelette de cette page' |
|
| 119 | 119 | ); |
@@ -11,69 +11,69 @@ |
||
| 11 | 11 | \***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 14 | - return; |
|
| 14 | + return; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | include_spip('inc/boutons'); |
| 18 | 18 | include_spip('base/objets'); |
| 19 | 19 | |
| 20 | 20 | function inc_icone_renommer_dist($fond, $fonction) { |
| 21 | - $size = 24; |
|
| 22 | - if (preg_match("/(?:-([0-9]{1,3}))?([.](gif|png|svg))?$/i", $fond, $match) |
|
| 23 | - and ((isset($match[0]) and $match[0]) or (isset($match[1]) and $match[1])) |
|
| 24 | - ) { |
|
| 25 | - if (isset($match[1]) and $match[1]) { |
|
| 26 | - $size = $match[1]; |
|
| 27 | - } |
|
| 28 | - $type = substr($fond, 0, -strlen($match[0])); |
|
| 29 | - if (!isset($match[2]) or !$match[2]) { |
|
| 30 | - $fond .= ".png"; |
|
| 31 | - } |
|
| 32 | - } else { |
|
| 33 | - $type = $fond; |
|
| 34 | - $fond .= ".png"; |
|
| 35 | - } |
|
| 21 | + $size = 24; |
|
| 22 | + if (preg_match("/(?:-([0-9]{1,3}))?([.](gif|png|svg))?$/i", $fond, $match) |
|
| 23 | + and ((isset($match[0]) and $match[0]) or (isset($match[1]) and $match[1])) |
|
| 24 | + ) { |
|
| 25 | + if (isset($match[1]) and $match[1]) { |
|
| 26 | + $size = $match[1]; |
|
| 27 | + } |
|
| 28 | + $type = substr($fond, 0, -strlen($match[0])); |
|
| 29 | + if (!isset($match[2]) or !$match[2]) { |
|
| 30 | + $fond .= ".png"; |
|
| 31 | + } |
|
| 32 | + } else { |
|
| 33 | + $type = $fond; |
|
| 34 | + $fond .= ".png"; |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | - $rtl = false; |
|
| 38 | - if (preg_match(',[-_]rtl$,i', $type, $match)) { |
|
| 39 | - $rtl = true; |
|
| 40 | - $type = substr($type, 0, -strlen($match[0])); |
|
| 41 | - } |
|
| 37 | + $rtl = false; |
|
| 38 | + if (preg_match(',[-_]rtl$,i', $type, $match)) { |
|
| 39 | + $rtl = true; |
|
| 40 | + $type = substr($type, 0, -strlen($match[0])); |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - // objet_type garde invariant tout ce qui ne commence par par id_, spip_ |
|
| 44 | - // et ne finit pas par un s, sauf si c'est une exception declaree |
|
| 45 | - $type = objet_type($type, false); |
|
| 43 | + // objet_type garde invariant tout ce qui ne commence par par id_, spip_ |
|
| 44 | + // et ne finit pas par un s, sauf si c'est une exception declaree |
|
| 45 | + $type = objet_type($type, false); |
|
| 46 | 46 | |
| 47 | - $dir = "images/"; |
|
| 48 | - $f = "$type-$size.png"; |
|
| 49 | - if ($icone = find_in_theme($dir . $f)) { |
|
| 50 | - $dir = dirname($icone); |
|
| 51 | - $fond = $icone; |
|
| 47 | + $dir = "images/"; |
|
| 48 | + $f = "$type-$size.png"; |
|
| 49 | + if ($icone = find_in_theme($dir . $f)) { |
|
| 50 | + $dir = dirname($icone); |
|
| 51 | + $fond = $icone; |
|
| 52 | 52 | |
| 53 | - if ($rtl |
|
| 54 | - and $fr = $dir . '/' . str_replace("$type-", "$type-rtl-", basename($icone)) |
|
| 55 | - and file_exists($fr) |
|
| 56 | - ) { |
|
| 57 | - $fond = $fr; |
|
| 58 | - } |
|
| 53 | + if ($rtl |
|
| 54 | + and $fr = $dir . '/' . str_replace("$type-", "$type-rtl-", basename($icone)) |
|
| 55 | + and file_exists($fr) |
|
| 56 | + ) { |
|
| 57 | + $fond = $fr; |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - $action = $fonction; |
|
| 61 | - if ($action == "supprimer.gif") { |
|
| 62 | - $action = "del"; |
|
| 63 | - } elseif ($action == "creer.gif") { |
|
| 64 | - $action = "new"; |
|
| 65 | - } elseif ($action == "edit.gif") { |
|
| 66 | - $action = "edit"; |
|
| 67 | - } |
|
| 60 | + $action = $fonction; |
|
| 61 | + if ($action == "supprimer.gif") { |
|
| 62 | + $action = "del"; |
|
| 63 | + } elseif ($action == "creer.gif") { |
|
| 64 | + $action = "new"; |
|
| 65 | + } elseif ($action == "edit.gif") { |
|
| 66 | + $action = "edit"; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - $fonction = ""; |
|
| 70 | - if (in_array($action, array('add','del', 'new', 'edit', 'config'))) { |
|
| 71 | - $fonction = $action; |
|
| 72 | - } |
|
| 69 | + $fonction = ""; |
|
| 70 | + if (in_array($action, array('add','del', 'new', 'edit', 'config'))) { |
|
| 71 | + $fonction = $action; |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | - // c'est bon ! |
|
| 75 | - return array($fond, $fonction); |
|
| 76 | - } |
|
| 74 | + // c'est bon ! |
|
| 75 | + return array($fond, $fonction); |
|
| 76 | + } |
|
| 77 | 77 | |
| 78 | - return array($fond, $fonction); |
|
| 78 | + return array($fond, $fonction); |
|
| 79 | 79 | } |
@@ -4,118 +4,118 @@ |
||
| 4 | 4 | // ** ne pas modifier le fichier ** |
| 5 | 5 | |
| 6 | 6 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 7 | - return; |
|
| 7 | + return; |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | $GLOBALS[$GLOBALS['idx_lang']] = array( |
| 11 | 11 | |
| 12 | - // A |
|
| 13 | - 'accueil_site' => 'الصفحة الرئيسية', |
|
| 14 | - 'article' => 'مقال', |
|
| 15 | - 'articles' => 'المقالات', |
|
| 16 | - 'articles_auteur' => 'مقالات هذا المؤلف', |
|
| 17 | - 'articles_populaires' => 'المقالات الأكثر شعبية', |
|
| 18 | - 'articles_rubrique' => 'مقالات هذا القسم', |
|
| 19 | - 'aucun_article' => 'لا توجد مقالات على هذا العنوان', |
|
| 20 | - 'aucun_auteur' => 'لا يوجد مؤلفون على هذا العنوان', |
|
| 21 | - 'aucun_site' => 'لا توجد مواقع على هذا العنوان', |
|
| 22 | - 'aucune_breve' => 'لا توجد أخبار على هذا العنوان', |
|
| 23 | - 'aucune_rubrique' => 'لا توجد أقسام على هذا العنوان', |
|
| 24 | - 'auteur' => 'مؤلف', |
|
| 25 | - 'autres' => 'آخرون', |
|
| 26 | - 'autres_breves' => 'أخبار أخرى', |
|
| 27 | - 'autres_groupes_mots_clefs' => 'مجموعات مفاتيح أخرى', |
|
| 28 | - 'autres_sites' => 'مواقع أخرى', |
|
| 29 | - |
|
| 30 | - // B |
|
| 31 | - 'bonjour' => 'أهلاً وسهلاً', |
|
| 32 | - |
|
| 33 | - // C |
|
| 34 | - 'commenter_site' => 'تعليق على هذا الموقع', |
|
| 35 | - 'contact' => 'للاتصال', |
|
| 36 | - 'copie_document_impossible' => 'لا يمكن نسخ المستند', |
|
| 37 | - |
|
| 38 | - // D |
|
| 39 | - 'date' => 'التاريخ', |
|
| 40 | - 'dernier_ajout' => 'آخر إضافة', |
|
| 41 | - 'dernieres_breves' => 'آخر الأخبار', |
|
| 42 | - 'derniers_articles' => 'آخر المقالات', |
|
| 43 | - 'derniers_commentaires' => 'آخر التعليقات', |
|
| 44 | - 'derniers_messages_forum' => 'آخر المشاركات المنشورة في المنتديات', |
|
| 45 | - |
|
| 46 | - // E |
|
| 47 | - 'edition_mode_texte' => 'النشرة في وضعية النصوص', |
|
| 48 | - 'en_reponse' => 'رداً على:', |
|
| 49 | - 'en_resume' => 'باختصار', |
|
| 50 | - 'envoyer_message' => 'إرسال مشاركة', |
|
| 51 | - 'espace_prive' => 'المجال الخاص', |
|
| 52 | - |
|
| 53 | - // F |
|
| 54 | - 'formats_acceptes' => 'التنسيقات المسموحة: @formats@.', |
|
| 55 | - |
|
| 56 | - // H |
|
| 57 | - 'hierarchie_site' => 'هرمية الموقع', |
|
| 58 | - |
|
| 59 | - // J |
|
| 60 | - 'jours' => 'يوم', |
|
| 61 | - |
|
| 62 | - // L |
|
| 63 | - 'lien_connecter' => 'دخول', |
|
| 64 | - |
|
| 65 | - // M |
|
| 66 | - 'meme_auteur' => 'من نفس المؤلف', |
|
| 67 | - 'meme_rubrique' => 'في هذا القسم أيضاً', |
|
| 68 | - 'memes_auteurs' => 'من المؤلفين نفسهم ايضاً', |
|
| 69 | - 'message' => 'مشاركة', |
|
| 70 | - 'messages_forum' => 'مشاركة منتدى', |
|
| 71 | - 'messages_recents' => 'أحدث المشاركات', |
|
| 72 | - 'mots_clef' => 'مفتاح', |
|
| 73 | - 'mots_clefs' => 'المفاتيح', |
|
| 74 | - 'mots_clefs_meme_groupe' => 'المفاتيح الأخرى في هذه المجموعة', |
|
| 75 | - |
|
| 76 | - // N |
|
| 77 | - 'navigation' => 'تصفح', |
|
| 78 | - 'nom' => 'الاسم', |
|
| 79 | - 'nouveautes' => 'الجديد', |
|
| 80 | - 'nouveautes_web' => 'الجديد على النسيج', |
|
| 81 | - 'nouveaux_articles' => 'المقالات الجديدة', |
|
| 82 | - 'nouvelles_breves' => 'الأخبار الجديدة', |
|
| 83 | - |
|
| 84 | - // P |
|
| 85 | - 'page_precedente' => 'الصفحة السابقة', |
|
| 86 | - 'page_suivante' => 'الصفحة التالية', |
|
| 87 | - 'par_auteur' => 'بقلم ', |
|
| 88 | - 'participer_site' => 'يمكنك المشاركة في هذا الموقع، بالتسجيل أدناه ونشر مقالاتك. وبعد التسجيل، سوف تصلك رسالة فورية بالبريد الإلكتروني تتضمن معرفك الخاص الذي يسمح لك بالدخول الى المجال الخاص.', |
|
| 89 | - 'plan_site' => 'خريطة الموقع', |
|
| 90 | - 'popularite' => 'الشعبية', |
|
| 91 | - 'poster_message' => 'إبعث برسالة', |
|
| 92 | - 'proposer_site' => 'يمكنك افتراح إضافة موقع الى هذا القسم:', |
|
| 93 | - |
|
| 94 | - // R |
|
| 95 | - 'repondre_article' => 'الرد على هذا المقال', |
|
| 96 | - 'repondre_breve' => 'الرد على هذا الخبر', |
|
| 97 | - 'resultats_recherche' => 'نتائج البحث', |
|
| 98 | - 'retour_debut_forums' => 'عودة الى بداية المنتديات', |
|
| 99 | - 'rubrique' => 'القسم', |
|
| 100 | - 'rubriques' => 'الأقسام', |
|
| 101 | - |
|
| 102 | - // S |
|
| 103 | - 'signatures_petition' => 'التوقيعات', |
|
| 104 | - 'site_realise_avec_spip' => 'موقع صمم بنظام SPIP', |
|
| 105 | - 'sites_web' => 'مواقع النسيج', |
|
| 106 | - 'sous_rubriques' => 'الأقسام الفرعية', |
|
| 107 | - 'spam' => 'خنزرة', |
|
| 108 | - 'suite' => 'تتمة', |
|
| 109 | - 'sur_web' => 'على النسيج', |
|
| 110 | - 'syndiquer_rubrique' => 'ترخيص هذا القسم', |
|
| 111 | - 'syndiquer_site' => 'ترخيص كامل الموقع', |
|
| 112 | - |
|
| 113 | - // T |
|
| 114 | - 'texte_lettre_information' => 'ها هي نشرة الموقع', |
|
| 115 | - 'texte_lettre_information_2' => 'تحصي هذه النشرة المقالات والأخبار المنشورة منذ ', |
|
| 116 | - |
|
| 117 | - // V |
|
| 118 | - 'ver_imprimer' => 'نسخة للطباعة', |
|
| 119 | - 'voir_en_ligne' => 'عرض مباشر', |
|
| 120 | - 'voir_squelette' => 'عرض الصفحة النموذجية لهذه الصفحة' |
|
| 12 | + // A |
|
| 13 | + 'accueil_site' => 'الصفحة الرئيسية', |
|
| 14 | + 'article' => 'مقال', |
|
| 15 | + 'articles' => 'المقالات', |
|
| 16 | + 'articles_auteur' => 'مقالات هذا المؤلف', |
|
| 17 | + 'articles_populaires' => 'المقالات الأكثر شعبية', |
|
| 18 | + 'articles_rubrique' => 'مقالات هذا القسم', |
|
| 19 | + 'aucun_article' => 'لا توجد مقالات على هذا العنوان', |
|
| 20 | + 'aucun_auteur' => 'لا يوجد مؤلفون على هذا العنوان', |
|
| 21 | + 'aucun_site' => 'لا توجد مواقع على هذا العنوان', |
|
| 22 | + 'aucune_breve' => 'لا توجد أخبار على هذا العنوان', |
|
| 23 | + 'aucune_rubrique' => 'لا توجد أقسام على هذا العنوان', |
|
| 24 | + 'auteur' => 'مؤلف', |
|
| 25 | + 'autres' => 'آخرون', |
|
| 26 | + 'autres_breves' => 'أخبار أخرى', |
|
| 27 | + 'autres_groupes_mots_clefs' => 'مجموعات مفاتيح أخرى', |
|
| 28 | + 'autres_sites' => 'مواقع أخرى', |
|
| 29 | + |
|
| 30 | + // B |
|
| 31 | + 'bonjour' => 'أهلاً وسهلاً', |
|
| 32 | + |
|
| 33 | + // C |
|
| 34 | + 'commenter_site' => 'تعليق على هذا الموقع', |
|
| 35 | + 'contact' => 'للاتصال', |
|
| 36 | + 'copie_document_impossible' => 'لا يمكن نسخ المستند', |
|
| 37 | + |
|
| 38 | + // D |
|
| 39 | + 'date' => 'التاريخ', |
|
| 40 | + 'dernier_ajout' => 'آخر إضافة', |
|
| 41 | + 'dernieres_breves' => 'آخر الأخبار', |
|
| 42 | + 'derniers_articles' => 'آخر المقالات', |
|
| 43 | + 'derniers_commentaires' => 'آخر التعليقات', |
|
| 44 | + 'derniers_messages_forum' => 'آخر المشاركات المنشورة في المنتديات', |
|
| 45 | + |
|
| 46 | + // E |
|
| 47 | + 'edition_mode_texte' => 'النشرة في وضعية النصوص', |
|
| 48 | + 'en_reponse' => 'رداً على:', |
|
| 49 | + 'en_resume' => 'باختصار', |
|
| 50 | + 'envoyer_message' => 'إرسال مشاركة', |
|
| 51 | + 'espace_prive' => 'المجال الخاص', |
|
| 52 | + |
|
| 53 | + // F |
|
| 54 | + 'formats_acceptes' => 'التنسيقات المسموحة: @formats@.', |
|
| 55 | + |
|
| 56 | + // H |
|
| 57 | + 'hierarchie_site' => 'هرمية الموقع', |
|
| 58 | + |
|
| 59 | + // J |
|
| 60 | + 'jours' => 'يوم', |
|
| 61 | + |
|
| 62 | + // L |
|
| 63 | + 'lien_connecter' => 'دخول', |
|
| 64 | + |
|
| 65 | + // M |
|
| 66 | + 'meme_auteur' => 'من نفس المؤلف', |
|
| 67 | + 'meme_rubrique' => 'في هذا القسم أيضاً', |
|
| 68 | + 'memes_auteurs' => 'من المؤلفين نفسهم ايضاً', |
|
| 69 | + 'message' => 'مشاركة', |
|
| 70 | + 'messages_forum' => 'مشاركة منتدى', |
|
| 71 | + 'messages_recents' => 'أحدث المشاركات', |
|
| 72 | + 'mots_clef' => 'مفتاح', |
|
| 73 | + 'mots_clefs' => 'المفاتيح', |
|
| 74 | + 'mots_clefs_meme_groupe' => 'المفاتيح الأخرى في هذه المجموعة', |
|
| 75 | + |
|
| 76 | + // N |
|
| 77 | + 'navigation' => 'تصفح', |
|
| 78 | + 'nom' => 'الاسم', |
|
| 79 | + 'nouveautes' => 'الجديد', |
|
| 80 | + 'nouveautes_web' => 'الجديد على النسيج', |
|
| 81 | + 'nouveaux_articles' => 'المقالات الجديدة', |
|
| 82 | + 'nouvelles_breves' => 'الأخبار الجديدة', |
|
| 83 | + |
|
| 84 | + // P |
|
| 85 | + 'page_precedente' => 'الصفحة السابقة', |
|
| 86 | + 'page_suivante' => 'الصفحة التالية', |
|
| 87 | + 'par_auteur' => 'بقلم ', |
|
| 88 | + 'participer_site' => 'يمكنك المشاركة في هذا الموقع، بالتسجيل أدناه ونشر مقالاتك. وبعد التسجيل، سوف تصلك رسالة فورية بالبريد الإلكتروني تتضمن معرفك الخاص الذي يسمح لك بالدخول الى المجال الخاص.', |
|
| 89 | + 'plan_site' => 'خريطة الموقع', |
|
| 90 | + 'popularite' => 'الشعبية', |
|
| 91 | + 'poster_message' => 'إبعث برسالة', |
|
| 92 | + 'proposer_site' => 'يمكنك افتراح إضافة موقع الى هذا القسم:', |
|
| 93 | + |
|
| 94 | + // R |
|
| 95 | + 'repondre_article' => 'الرد على هذا المقال', |
|
| 96 | + 'repondre_breve' => 'الرد على هذا الخبر', |
|
| 97 | + 'resultats_recherche' => 'نتائج البحث', |
|
| 98 | + 'retour_debut_forums' => 'عودة الى بداية المنتديات', |
|
| 99 | + 'rubrique' => 'القسم', |
|
| 100 | + 'rubriques' => 'الأقسام', |
|
| 101 | + |
|
| 102 | + // S |
|
| 103 | + 'signatures_petition' => 'التوقيعات', |
|
| 104 | + 'site_realise_avec_spip' => 'موقع صمم بنظام SPIP', |
|
| 105 | + 'sites_web' => 'مواقع النسيج', |
|
| 106 | + 'sous_rubriques' => 'الأقسام الفرعية', |
|
| 107 | + 'spam' => 'خنزرة', |
|
| 108 | + 'suite' => 'تتمة', |
|
| 109 | + 'sur_web' => 'على النسيج', |
|
| 110 | + 'syndiquer_rubrique' => 'ترخيص هذا القسم', |
|
| 111 | + 'syndiquer_site' => 'ترخيص كامل الموقع', |
|
| 112 | + |
|
| 113 | + // T |
|
| 114 | + 'texte_lettre_information' => 'ها هي نشرة الموقع', |
|
| 115 | + 'texte_lettre_information_2' => 'تحصي هذه النشرة المقالات والأخبار المنشورة منذ ', |
|
| 116 | + |
|
| 117 | + // V |
|
| 118 | + 'ver_imprimer' => 'نسخة للطباعة', |
|
| 119 | + 'voir_en_ligne' => 'عرض مباشر', |
|
| 120 | + 'voir_squelette' => 'عرض الصفحة النموذجية لهذه الصفحة' |
|
| 121 | 121 | ); |