Completed
Push — master ( a5da4e...51674a )
by cam
01:27
created
ecrire/inc/lang_liste.php 2 patches
Indentation   +198 added lines, -198 removed lines patch added patch discarded remove patch
@@ -18,206 +18,206 @@
 block discarded – undo
18 18
 */
19 19
 
20 20
 if (!defined('_ECRIRE_INC_VERSION')) {
21
-	return;
21
+    return;
22 22
 }
23 23
 
24 24
 $GLOBALS['codes_langues'] = [
25
-	'aa' => 'Afar',
26
-	'ab' => 'Abkhazian',
27
-	'af' => 'Afrikaans',
28
-	'am' => 'Amharic',
29
-	'an' => 'Aragonés',
30
-	'ar' => 'عربي',
31
-	'as' => 'Assamese',
32
-	'ast' => 'asturianu',
33
-	'ay' => 'Aymara',
34
-	'az' => 'Azərbaycan dili',
35
-	'ba' => 'Bashkir',
36
-	'be' => 'Беларуская',
37
-	'ber_tam' => 'Tamazigh',
38
-	'ber_tam_tfng' => 'Tamazigh tifinagh',
39
-	'bg' => 'български',
40
-	'bh' => 'Bihari',
41
-	'bi' => 'Bislama',
42
-	'bm' => 'Bambara',
43
-	'bn' => 'Bengali; Bangla',
44
-	'bo' => 'Tibetan',
45
-	'br' => 'brezhoneg',
46
-	'bs' => 'bosanski',
47
-	'ca' => 'català',
48
-	'co' => 'corsu',
49
-	'cpf' => 'Kréol réyoné',
50
-	'cpf_dom' => 'Kreyòl',
51
-	'cpf_hat' => 'Kreyòl (Peyi Dayiti)',
52
-	'cs' => 'čeština',
53
-	'cy' => 'Cymraeg',  # welsh, gallois
54
-	'da' => 'dansk',
55
-	'de' => 'Deutsch',
56
-	'dz' => 'Bhutani',
57
-	'el' => 'ελληνικά',
58
-	'en' => 'English',
59
-	'en_hx' => 'H4ck3R',
60
-	'en_sm' => 'Smurf',
61
-	'eo' => 'Esperanto',
62
-	'es' => 'Español',
63
-	'es_co' => 'Colombiano',
64
-	'es_mx_pop' => 'Mexicano a lo güey',
65
-	'et' => 'eesti',
66
-	'eu' => 'euskara',
67
-	'fa' => 'فارسى',
68
-	'ff' => 'Fulah', // peul
69
-	'fi' => 'suomi',
70
-	'fj' => 'Fiji',
71
-	'fo' => 'føroyskt',
72
-	'fon' => 'fongbè',
73
-	'fr' => 'français',
74
-	'fr_fem' => 'français féminin',
75
-	'fr_sc' => 'schtroumpf',
76
-	'fr_lpc' => 'langue parlée complétée',
77
-	'fr_lsf' => 'langue des signes française',
78
-	'fr_spl' => 'français simplifié',
79
-	'fr_tu' => 'français copain',
80
-	'fy' => 'Frisian',
81
-	'ga' => 'Irish',
82
-	'gd' => 'Scots Gaelic',
83
-	'gl' => 'galego',
84
-	'gn' => 'Guarani',
85
-	'grc' => 'Ἀρχαία Ἑλληνική', // grec ancien
86
-	'gu' => 'Gujarati',
87
-	'ha' => 'Hausa',
88
-	'hac' => 'ک-هۆرامی', //"Kurdish-Horami"
89
-	'hbo' => 'עברית־התנך', // hebreu classique ou biblique
90
-	'haz' => 'هزاره گی',
91
-	'he' => 'עברית',
92
-	'hi' => 'हिंदी',
93
-	'hr' => 'hrvatski',
94
-	'hu' => 'magyar',
95
-	'hy' => 'Հայերեն',// Arménien
96
-	'ia' => 'Interlingua',
97
-	'id' => 'Indonesia',
98
-	'ie' => 'Interlingue',
99
-	'ik' => 'Inupiak',
100
-	'is' => 'íslenska',
101
-	'it' => 'italiano',
102
-	'it_fem' => 'italiana',
103
-	'iu' => 'Inuktitut',
104
-	'ja' => '日本語',
105
-	'jv' => 'Javanese',
106
-	'ka' => 'ქართული',
107
-	'kk' => 'қазақ тілі', // Kazakh
108
-	'kl' => 'kalaallisut',
109
-	'km' => 'ភាសាខ្មែរ',// Khmer
110
-	'kn' => 'Kannada',
111
-	'ko' => '한국어',
112
-	'kok' => 'कोंकणी',
113
-	'ks' => 'Kashmiri',
114
-	'ku' => 'کوردی',
115
-	'ky' => 'Kirghiz',
116
-	'la' => 'lingua latina',
117
-	'lb' => 'Lëtzebuergesch',
118
-	'ln' => 'Lingala',
119
-	'lo' => 'ພາສາລາວ', # lao
120
-	'lt' => 'lietuvių',
121
-	'lu' => 'luba-katanga',
122
-	'lv' => 'latviešu',
123
-	'man' => 'mandingue', # a traduire en mandingue
124
-	'mfv' => 'manjak', # ISO-639-3
125
-	'mg' => 'Malagasy',
126
-	'mi' => 'Maori',
127
-	'mk' => 'македонски јазик',
128
-	'ml' => 'Malayalam',
129
-	'mn' => 'Монгол хэл',
130
-	'mo' => 'Moldavian',
131
-	'mos' => 'Moré',
132
-	'mr' => 'मराठी',
133
-	'ms' => 'Bahasa Malaysia',
134
-	'mt' => 'Maltese',
135
-	'my' => 'Burmese',
136
-	'na' => 'Nauru',
137
-	'nap' => 'napulitano',
138
-	'ne' => 'Nepali',
139
-	'nqo' => "N'ko", // www.manden.org
140
-	'nl' => 'Nederlands',
141
-	'no' => 'norsk',
142
-	'nb' => 'norsk bokmål',
143
-	'nn' => 'norsk nynorsk',
144
-	'oc' => 'òc',
145
-	'oc_lnc' => 'òc lengadocian',
146
-	'oc_ni' => 'òc niçard',
147
-	'oc_ni_la' => 'òc niçard (larg)',
148
-	'oc_ni_mis' => 'òc nissart (mistralenc)',
149
-	'oc_prv' => 'òc provençau',
150
-	'oc_gsc' => 'òc gascon',
151
-	'oc_lms' => 'òc lemosin',
152
-	'oc_auv' => 'òc auvernhat',
153
-	'oc_va' => 'òc vivaroaupenc',
154
-	'om' => '(Afan) Oromo',
155
-	'or' => 'Oriya',
156
-	'pa' => 'Punjabi',
157
-	'pbb' => 'Nasa Yuwe',
158
-	'pl' => 'polski',
159
-	'prs' => 'دری', // ISO-639-3 Dari (Afghanistan)
160
-	'ps' => 'پښتو',
161
-	'pt' => 'Português',
162
-	'pt_br' => 'Português do Brasil',
163
-	'qu' => 'Quechua',
164
-	'rm' => 'Rhaeto-Romance',
165
-	'rn' => 'Kirundi',
166
-	'ro' => 'română',
167
-	'roa' => "ch'ti",
168
-	'ru' => 'русский',
169
-	'rw' => 'Kinyarwanda',
170
-	'sa' => 'संस्कृत',
171
-	'sc' => 'sardu',
172
-	'scn' => 'sicilianu',
173
-	'sd' => 'Sindhi',
174
-	'sg' => 'Sangho',
175
-	'sh' => 'srpskohrvastski',
176
-	'sh_latn' => 'srpskohrvastski',
177
-	'sh_cyrl' => 'Српскохрватски',
178
-	'si' => 'Sinhalese',
179
-	'sk' => 'slovenčina',  // (Slovakia)
180
-	'sl' => 'slovenščina',  // (Slovenia)
181
-	'sm' => 'Samoan',
182
-	'sn' => 'Shona',
183
-	'so' => 'Somali',
184
-	'sq' => 'shqip',
185
-	'sr' => 'српски',
186
-	'src' => 'sardu logudorésu', // sarde cf 'sc'
187
-	'sro' => 'sardu campidanésu',
188
-	'ss' => 'Siswati',
189
-	'st' => 'Sesotho',
190
-	'su' => 'Sundanese',
191
-	'sv' => 'svenska',
192
-	'sw' => 'Kiswahili',
193
-	'ta' => 'தமிழ்', // Tamil
194
-	'te' => 'Telugu',
195
-	'tg' => 'Tajik',
196
-	'th' => 'ไทย',
197
-	'ti' => 'Tigrinya',
198
-	'tk' => 'Turkmen',
199
-	'tl' => 'Tagalog',
200
-	'tn' => 'Setswana',
201
-	'to' => 'Tonga',
202
-	'tr' => 'Türkçe',
203
-	'ts' => 'Tsonga',
204
-	'tt' => 'Татар',
205
-	'tw' => 'Twi',
206
-	'ty' => 'reo mā`ohi', // tahitien
207
-	'ug' => 'Uighur',
208
-	'uk' => 'українська',
209
-	'ur' => 'ٱردو',
210
-	'uz' => "O'zbekcha",
211
-	'vi' => 'Tiếng Việt',
212
-	'vo' => 'Volapuk',
213
-	'wa' => 'walon',
214
-	'wo' => 'Wolof',
215
-	'xh' => 'Xhosa',
216
-	'yi' => 'Yiddish',
217
-	'yo' => 'Yoruba',
218
-	'za' => 'Zhuang',
219
-	'zh' => '中文', // chinois (ecriture simplifiee)
220
-	'zh_tw' => '台灣中文', // chinois taiwan (ecr. traditionnelle)
221
-	'zu' => 'Zulu'
25
+    'aa' => 'Afar',
26
+    'ab' => 'Abkhazian',
27
+    'af' => 'Afrikaans',
28
+    'am' => 'Amharic',
29
+    'an' => 'Aragonés',
30
+    'ar' => 'عربي',
31
+    'as' => 'Assamese',
32
+    'ast' => 'asturianu',
33
+    'ay' => 'Aymara',
34
+    'az' => 'Azərbaycan dili',
35
+    'ba' => 'Bashkir',
36
+    'be' => 'Беларуская',
37
+    'ber_tam' => 'Tamazigh',
38
+    'ber_tam_tfng' => 'Tamazigh tifinagh',
39
+    'bg' => 'български',
40
+    'bh' => 'Bihari',
41
+    'bi' => 'Bislama',
42
+    'bm' => 'Bambara',
43
+    'bn' => 'Bengali; Bangla',
44
+    'bo' => 'Tibetan',
45
+    'br' => 'brezhoneg',
46
+    'bs' => 'bosanski',
47
+    'ca' => 'català',
48
+    'co' => 'corsu',
49
+    'cpf' => 'Kréol réyoné',
50
+    'cpf_dom' => 'Kreyòl',
51
+    'cpf_hat' => 'Kreyòl (Peyi Dayiti)',
52
+    'cs' => 'čeština',
53
+    'cy' => 'Cymraeg',  # welsh, gallois
54
+    'da' => 'dansk',
55
+    'de' => 'Deutsch',
56
+    'dz' => 'Bhutani',
57
+    'el' => 'ελληνικά',
58
+    'en' => 'English',
59
+    'en_hx' => 'H4ck3R',
60
+    'en_sm' => 'Smurf',
61
+    'eo' => 'Esperanto',
62
+    'es' => 'Español',
63
+    'es_co' => 'Colombiano',
64
+    'es_mx_pop' => 'Mexicano a lo güey',
65
+    'et' => 'eesti',
66
+    'eu' => 'euskara',
67
+    'fa' => 'فارسى',
68
+    'ff' => 'Fulah', // peul
69
+    'fi' => 'suomi',
70
+    'fj' => 'Fiji',
71
+    'fo' => 'føroyskt',
72
+    'fon' => 'fongbè',
73
+    'fr' => 'français',
74
+    'fr_fem' => 'français féminin',
75
+    'fr_sc' => 'schtroumpf',
76
+    'fr_lpc' => 'langue parlée complétée',
77
+    'fr_lsf' => 'langue des signes française',
78
+    'fr_spl' => 'français simplifié',
79
+    'fr_tu' => 'français copain',
80
+    'fy' => 'Frisian',
81
+    'ga' => 'Irish',
82
+    'gd' => 'Scots Gaelic',
83
+    'gl' => 'galego',
84
+    'gn' => 'Guarani',
85
+    'grc' => 'Ἀρχαία Ἑλληνική', // grec ancien
86
+    'gu' => 'Gujarati',
87
+    'ha' => 'Hausa',
88
+    'hac' => 'ک-هۆرامی', //"Kurdish-Horami"
89
+    'hbo' => 'עברית־התנך', // hebreu classique ou biblique
90
+    'haz' => 'هزاره گی',
91
+    'he' => 'עברית',
92
+    'hi' => 'हिंदी',
93
+    'hr' => 'hrvatski',
94
+    'hu' => 'magyar',
95
+    'hy' => 'Հայերեն',// Arménien
96
+    'ia' => 'Interlingua',
97
+    'id' => 'Indonesia',
98
+    'ie' => 'Interlingue',
99
+    'ik' => 'Inupiak',
100
+    'is' => 'íslenska',
101
+    'it' => 'italiano',
102
+    'it_fem' => 'italiana',
103
+    'iu' => 'Inuktitut',
104
+    'ja' => '日本語',
105
+    'jv' => 'Javanese',
106
+    'ka' => 'ქართული',
107
+    'kk' => 'қазақ тілі', // Kazakh
108
+    'kl' => 'kalaallisut',
109
+    'km' => 'ភាសាខ្មែរ',// Khmer
110
+    'kn' => 'Kannada',
111
+    'ko' => '한국어',
112
+    'kok' => 'कोंकणी',
113
+    'ks' => 'Kashmiri',
114
+    'ku' => 'کوردی',
115
+    'ky' => 'Kirghiz',
116
+    'la' => 'lingua latina',
117
+    'lb' => 'Lëtzebuergesch',
118
+    'ln' => 'Lingala',
119
+    'lo' => 'ພາສາລາວ', # lao
120
+    'lt' => 'lietuvių',
121
+    'lu' => 'luba-katanga',
122
+    'lv' => 'latviešu',
123
+    'man' => 'mandingue', # a traduire en mandingue
124
+    'mfv' => 'manjak', # ISO-639-3
125
+    'mg' => 'Malagasy',
126
+    'mi' => 'Maori',
127
+    'mk' => 'македонски јазик',
128
+    'ml' => 'Malayalam',
129
+    'mn' => 'Монгол хэл',
130
+    'mo' => 'Moldavian',
131
+    'mos' => 'Moré',
132
+    'mr' => 'मराठी',
133
+    'ms' => 'Bahasa Malaysia',
134
+    'mt' => 'Maltese',
135
+    'my' => 'Burmese',
136
+    'na' => 'Nauru',
137
+    'nap' => 'napulitano',
138
+    'ne' => 'Nepali',
139
+    'nqo' => "N'ko", // www.manden.org
140
+    'nl' => 'Nederlands',
141
+    'no' => 'norsk',
142
+    'nb' => 'norsk bokmål',
143
+    'nn' => 'norsk nynorsk',
144
+    'oc' => 'òc',
145
+    'oc_lnc' => 'òc lengadocian',
146
+    'oc_ni' => 'òc niçard',
147
+    'oc_ni_la' => 'òc niçard (larg)',
148
+    'oc_ni_mis' => 'òc nissart (mistralenc)',
149
+    'oc_prv' => 'òc provençau',
150
+    'oc_gsc' => 'òc gascon',
151
+    'oc_lms' => 'òc lemosin',
152
+    'oc_auv' => 'òc auvernhat',
153
+    'oc_va' => 'òc vivaroaupenc',
154
+    'om' => '(Afan) Oromo',
155
+    'or' => 'Oriya',
156
+    'pa' => 'Punjabi',
157
+    'pbb' => 'Nasa Yuwe',
158
+    'pl' => 'polski',
159
+    'prs' => 'دری', // ISO-639-3 Dari (Afghanistan)
160
+    'ps' => 'پښتو',
161
+    'pt' => 'Português',
162
+    'pt_br' => 'Português do Brasil',
163
+    'qu' => 'Quechua',
164
+    'rm' => 'Rhaeto-Romance',
165
+    'rn' => 'Kirundi',
166
+    'ro' => 'română',
167
+    'roa' => "ch'ti",
168
+    'ru' => 'русский',
169
+    'rw' => 'Kinyarwanda',
170
+    'sa' => 'संस्कृत',
171
+    'sc' => 'sardu',
172
+    'scn' => 'sicilianu',
173
+    'sd' => 'Sindhi',
174
+    'sg' => 'Sangho',
175
+    'sh' => 'srpskohrvastski',
176
+    'sh_latn' => 'srpskohrvastski',
177
+    'sh_cyrl' => 'Српскохрватски',
178
+    'si' => 'Sinhalese',
179
+    'sk' => 'slovenčina',  // (Slovakia)
180
+    'sl' => 'slovenščina',  // (Slovenia)
181
+    'sm' => 'Samoan',
182
+    'sn' => 'Shona',
183
+    'so' => 'Somali',
184
+    'sq' => 'shqip',
185
+    'sr' => 'српски',
186
+    'src' => 'sardu logudorésu', // sarde cf 'sc'
187
+    'sro' => 'sardu campidanésu',
188
+    'ss' => 'Siswati',
189
+    'st' => 'Sesotho',
190
+    'su' => 'Sundanese',
191
+    'sv' => 'svenska',
192
+    'sw' => 'Kiswahili',
193
+    'ta' => 'தமிழ்', // Tamil
194
+    'te' => 'Telugu',
195
+    'tg' => 'Tajik',
196
+    'th' => 'ไทย',
197
+    'ti' => 'Tigrinya',
198
+    'tk' => 'Turkmen',
199
+    'tl' => 'Tagalog',
200
+    'tn' => 'Setswana',
201
+    'to' => 'Tonga',
202
+    'tr' => 'Türkçe',
203
+    'ts' => 'Tsonga',
204
+    'tt' => 'Татар',
205
+    'tw' => 'Twi',
206
+    'ty' => 'reo mā`ohi', // tahitien
207
+    'ug' => 'Uighur',
208
+    'uk' => 'українська',
209
+    'ur' => 'ٱردو',
210
+    'uz' => "O'zbekcha",
211
+    'vi' => 'Tiếng Việt',
212
+    'vo' => 'Volapuk',
213
+    'wa' => 'walon',
214
+    'wo' => 'Wolof',
215
+    'xh' => 'Xhosa',
216
+    'yi' => 'Yiddish',
217
+    'yo' => 'Yoruba',
218
+    'za' => 'Zhuang',
219
+    'zh' => '中文', // chinois (ecriture simplifiee)
220
+    'zh_tw' => '台灣中文', // chinois taiwan (ecr. traditionnelle)
221
+    'zu' => 'Zulu'
222 222
 
223 223
 ];
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	'cpf_dom' => 'Kreyòl',
51 51
 	'cpf_hat' => 'Kreyòl (Peyi Dayiti)',
52 52
 	'cs' => 'čeština',
53
-	'cy' => 'Cymraeg',  # welsh, gallois
53
+	'cy' => 'Cymraeg', # welsh, gallois
54 54
 	'da' => 'dansk',
55 55
 	'de' => 'Deutsch',
56 56
 	'dz' => 'Bhutani',
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	'hi' => 'हिंदी',
93 93
 	'hr' => 'hrvatski',
94 94
 	'hu' => 'magyar',
95
-	'hy' => 'Հայերեն',// Arménien
95
+	'hy' => 'Հայերեն', // Arménien
96 96
 	'ia' => 'Interlingua',
97 97
 	'id' => 'Indonesia',
98 98
 	'ie' => 'Interlingue',
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	'ka' => 'ქართული',
107 107
 	'kk' => 'қазақ тілі', // Kazakh
108 108
 	'kl' => 'kalaallisut',
109
-	'km' => 'ភាសាខ្មែរ',// Khmer
109
+	'km' => 'ភាសាខ្មែរ', // Khmer
110 110
 	'kn' => 'Kannada',
111 111
 	'ko' => '한국어',
112 112
 	'kok' => 'कोंकणी',
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 	'sh_latn' => 'srpskohrvastski',
177 177
 	'sh_cyrl' => 'Српскохрватски',
178 178
 	'si' => 'Sinhalese',
179
-	'sk' => 'slovenčina',  // (Slovakia)
180
-	'sl' => 'slovenščina',  // (Slovenia)
179
+	'sk' => 'slovenčina', // (Slovakia)
180
+	'sl' => 'slovenščina', // (Slovenia)
181 181
 	'sm' => 'Samoan',
182 182
 	'sn' => 'Shona',
183 183
 	'so' => 'Somali',
Please login to merge, or discard this patch.
ecrire/inc/notifications.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 	if ($notification = charger_fonction($quoi, 'notifications', true)) {
41 41
 		spip_log("$notification($quoi,$id"
42
-			. ($options ? ',' . serialize($options) : '')
42
+			. ($options ? ','.serialize($options) : '')
43 43
 			. ')', 'notifications');
44 44
 		$notification($quoi, $id, $options);
45 45
 	}
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
 		job_queue_add(
159 159
 			'envoyer_mail',
160
-			">$email : " . $envoi['sujet'],
160
+			">$email : ".$envoi['sujet'],
161 161
 			[$email, $envoi['sujet'], $envoi['texte'], $envoi['from'], $envoi['headers']],
162 162
 			'inc/'
163 163
 		);
Please login to merge, or discard this patch.
Indentation   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Notifications
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
  */
34 34
 function inc_notifications_dist($quoi, $id = 0, $options = []) {
35 35
 
36
-	// charger les fichiers qui veulent ajouter des definitions
37
-	// ou faire des trucs aussi dans le pipeline, ca fait deux api pour le prix d'une ...
38
-	pipeline('notifications', ['args' => ['quoi' => $quoi, 'id' => $id, 'options' => $options]]);
36
+    // charger les fichiers qui veulent ajouter des definitions
37
+    // ou faire des trucs aussi dans le pipeline, ca fait deux api pour le prix d'une ...
38
+    pipeline('notifications', ['args' => ['quoi' => $quoi, 'id' => $id, 'options' => $options]]);
39 39
 
40
-	if ($notification = charger_fonction($quoi, 'notifications', true)) {
41
-		spip_log("$notification($quoi,$id"
42
-			. ($options ? ',' . serialize($options) : '')
43
-			. ')', 'notifications');
44
-		$notification($quoi, $id, $options);
45
-	}
40
+    if ($notification = charger_fonction($quoi, 'notifications', true)) {
41
+        spip_log("$notification($quoi,$id"
42
+            . ($options ? ',' . serialize($options) : '')
43
+            . ')', 'notifications');
44
+        $notification($quoi, $id, $options);
45
+    }
46 46
 }
47 47
 
48 48
 /**
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
  * @param array $exclure
57 57
  */
58 58
 function notifications_nettoyer_emails(&$emails, $exclure = []) {
59
-	// filtrer et unifier
60
-	include_spip('inc/filtres');
61
-	$emails = array_unique(array_filter(array_map('email_valide', array_map('trim', $emails))));
62
-	if ($exclure and count($exclure)) {
63
-		// nettoyer les exclusions d'abord
64
-		notifications_nettoyer_emails($exclure);
65
-		// faire un diff
66
-		$emails = array_diff($emails, $exclure);
67
-	}
59
+    // filtrer et unifier
60
+    include_spip('inc/filtres');
61
+    $emails = array_unique(array_filter(array_map('email_valide', array_map('trim', $emails))));
62
+    if ($exclure and count($exclure)) {
63
+        // nettoyer les exclusions d'abord
64
+        notifications_nettoyer_emails($exclure);
65
+        // faire un diff
66
+        $emails = array_diff($emails, $exclure);
67
+    }
68 68
 }
69 69
 
70 70
 /**
@@ -79,90 +79,90 @@  discard block
 block discarded – undo
79 79
  * @param string $headers
80 80
  */
81 81
 function notifications_envoyer_mails($emails, $texte, $sujet = '', $from = '', $headers = '') {
82
-	// rien a faire si pas de texte !
83
-	if (!strlen($texte)) {
84
-		return;
85
-	}
86
-
87
-	// si on ne specifie qu'un email, le mettre dans un tableau
88
-	if (!is_array($emails)) {
89
-		$emails = explode(',', $emails);
90
-	}
91
-
92
-	notifications_nettoyer_emails($emails);
93
-
94
-	// tester si le mail est deja en html
95
-	if (
96
-		strpos($texte, '<') !== false // eviter les tests suivants si possible
97
-		and $ttrim = trim($texte)
98
-		and substr($ttrim, 0, 1) == '<'
99
-		and substr($ttrim, -1, 1) == '>'
100
-		and stripos($ttrim, '</html>') !== false
101
-	) {
102
-		if (!strlen($sujet)) {
103
-			// dans ce cas on ruse un peu : extraire le sujet du title
104
-			if (preg_match(',<title>(.*)</title>,Uims', $texte, $m)) {
105
-				$sujet = $m[1];
106
-			} else {
107
-				// fallback, on prend le body si on le trouve
108
-				if (preg_match(',<body[^>]*>(.*)</body>,Uims', $texte, $m)) {
109
-					$ttrim = $m[1];
110
-				}
111
-
112
-				// et on extrait la premiere ligne de vrai texte...
113
-				// nettoyer le html et les retours chariots
114
-				$ttrim = textebrut($ttrim);
115
-				$ttrim = str_replace("\r\n", "\r", $ttrim);
116
-				$ttrim = str_replace("\r", "\n", $ttrim);
117
-				// decouper
118
-				$ttrim = explode("\n", trim($ttrim));
119
-				// extraire la premiere ligne de texte brut
120
-				$sujet = array_shift($ttrim);
121
-			}
122
-		}
123
-
124
-		// si besoin on ajoute le content-type dans les headers
125
-		if (stripos($headers, 'Content-Type') === false) {
126
-			$headers .= "Content-Type: text/html\n";
127
-		}
128
-	}
129
-
130
-	// si le sujet est vide, extraire la premiere ligne du corps
131
-	// du mail qui est donc du texte
132
-	if (!strlen($sujet)) {
133
-		// nettoyer un peu les retours chariots
134
-		$texte = str_replace("\r\n", "\r", $texte);
135
-		$texte = str_replace("\r", "\n", $texte);
136
-		// decouper
137
-		$texte = explode("\n", trim($texte));
138
-		// extraire la premiere ligne
139
-		$sujet = array_shift($texte);
140
-		$texte = trim(implode("\n", $texte));
141
-	}
142
-
143
-	$envoyer_mail = charger_fonction('envoyer_mail', 'inc');
144
-	foreach ($emails as $email) {
145
-		// passer dans un pipeline qui permet un ajout eventuel
146
-		// (url de suivi des notifications par exemple)
147
-		$envoi = pipeline(
148
-			'notifications_envoyer_mails',
149
-			[
150
-				'email' => $email,
151
-				'sujet' => $sujet,
152
-				'texte' => $texte,
153
-				'from' => $from,
154
-				'headers' => $headers,
155
-			]
156
-		);
157
-		$email = $envoi['email'];
158
-
159
-		job_queue_add(
160
-			'envoyer_mail',
161
-			">$email : " . $envoi['sujet'],
162
-			[$email, $envoi['sujet'], $envoi['texte'], $envoi['from'], $envoi['headers']],
163
-			'inc/'
164
-		);
165
-	}
82
+    // rien a faire si pas de texte !
83
+    if (!strlen($texte)) {
84
+        return;
85
+    }
86
+
87
+    // si on ne specifie qu'un email, le mettre dans un tableau
88
+    if (!is_array($emails)) {
89
+        $emails = explode(',', $emails);
90
+    }
91
+
92
+    notifications_nettoyer_emails($emails);
93
+
94
+    // tester si le mail est deja en html
95
+    if (
96
+        strpos($texte, '<') !== false // eviter les tests suivants si possible
97
+        and $ttrim = trim($texte)
98
+        and substr($ttrim, 0, 1) == '<'
99
+        and substr($ttrim, -1, 1) == '>'
100
+        and stripos($ttrim, '</html>') !== false
101
+    ) {
102
+        if (!strlen($sujet)) {
103
+            // dans ce cas on ruse un peu : extraire le sujet du title
104
+            if (preg_match(',<title>(.*)</title>,Uims', $texte, $m)) {
105
+                $sujet = $m[1];
106
+            } else {
107
+                // fallback, on prend le body si on le trouve
108
+                if (preg_match(',<body[^>]*>(.*)</body>,Uims', $texte, $m)) {
109
+                    $ttrim = $m[1];
110
+                }
111
+
112
+                // et on extrait la premiere ligne de vrai texte...
113
+                // nettoyer le html et les retours chariots
114
+                $ttrim = textebrut($ttrim);
115
+                $ttrim = str_replace("\r\n", "\r", $ttrim);
116
+                $ttrim = str_replace("\r", "\n", $ttrim);
117
+                // decouper
118
+                $ttrim = explode("\n", trim($ttrim));
119
+                // extraire la premiere ligne de texte brut
120
+                $sujet = array_shift($ttrim);
121
+            }
122
+        }
123
+
124
+        // si besoin on ajoute le content-type dans les headers
125
+        if (stripos($headers, 'Content-Type') === false) {
126
+            $headers .= "Content-Type: text/html\n";
127
+        }
128
+    }
129
+
130
+    // si le sujet est vide, extraire la premiere ligne du corps
131
+    // du mail qui est donc du texte
132
+    if (!strlen($sujet)) {
133
+        // nettoyer un peu les retours chariots
134
+        $texte = str_replace("\r\n", "\r", $texte);
135
+        $texte = str_replace("\r", "\n", $texte);
136
+        // decouper
137
+        $texte = explode("\n", trim($texte));
138
+        // extraire la premiere ligne
139
+        $sujet = array_shift($texte);
140
+        $texte = trim(implode("\n", $texte));
141
+    }
142
+
143
+    $envoyer_mail = charger_fonction('envoyer_mail', 'inc');
144
+    foreach ($emails as $email) {
145
+        // passer dans un pipeline qui permet un ajout eventuel
146
+        // (url de suivi des notifications par exemple)
147
+        $envoi = pipeline(
148
+            'notifications_envoyer_mails',
149
+            [
150
+                'email' => $email,
151
+                'sujet' => $sujet,
152
+                'texte' => $texte,
153
+                'from' => $from,
154
+                'headers' => $headers,
155
+            ]
156
+        );
157
+        $email = $envoi['email'];
158
+
159
+        job_queue_add(
160
+            'envoyer_mail',
161
+            ">$email : " . $envoi['sujet'],
162
+            [$email, $envoi['sujet'], $envoi['texte'], $envoi['from'], $envoi['headers']],
163
+            'inc/'
164
+        );
165
+    }
166 166
 }
167 167
 
168 168
 /**
@@ -178,10 +178,10 @@  discard block
 block discarded – undo
178 178
  * @return string
179 179
  */
180 180
 function email_notification_objet($id_objet, $type_objet, $modele) {
181
-	$envoyer_mail = charger_fonction('envoyer_mail', 'inc'); // pour nettoyer_titre_email
182
-	$id_type = id_table_objet($type_objet);
181
+    $envoyer_mail = charger_fonction('envoyer_mail', 'inc'); // pour nettoyer_titre_email
182
+    $id_type = id_table_objet($type_objet);
183 183
 
184
-	return recuperer_fond($modele, [$id_type => $id_objet, 'id' => $id_objet]);
184
+    return recuperer_fond($modele, [$id_type => $id_objet, 'id' => $id_objet]);
185 185
 }
186 186
 
187 187
 /**
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
  * @return string
197 197
  */
198 198
 function email_notification_article($id_article, $modele) {
199
-	$envoyer_mail = charger_fonction('envoyer_mail', 'inc'); // pour nettoyer_titre_email
199
+    $envoyer_mail = charger_fonction('envoyer_mail', 'inc'); // pour nettoyer_titre_email
200 200
 
201
-	return recuperer_fond($modele, ['id_article' => $id_article]);
201
+    return recuperer_fond($modele, ['id_article' => $id_article]);
202 202
 }
Please login to merge, or discard this patch.
ecrire/inc/email_valide.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Mail
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 
@@ -31,27 +31,27 @@  discard block
 block discarded – undo
31 31
  *      - la normalisation de la dernière adresse donnée sinon
32 32
  **/
33 33
 function inc_email_valide_dist($adresses) {
34
-	// eviter d'injecter n'importe quoi dans preg_match
35
-	if (!is_string($adresses)) {
36
-		return false;
37
-	}
38
-
39
-	// Si c'est un spammeur autant arreter tout de suite
40
-	if (preg_match(",[\n\r].*(MIME|multipart|Content-),i", $adresses)) {
41
-		spip_log("Tentative d'injection de mail : $adresses");
42
-
43
-		return false;
44
-	}
45
-
46
-	foreach (explode(',', $adresses) as $v) {
47
-		// nettoyer certains formats
48
-		// "Marie Toto <[email protected]>"
49
-		$adresse = trim(preg_replace(',^[^<>"]*<([^<>"]+)>$,i', "\\1", $v));
50
-		// RFC 822
51
-		if (!preg_match('#^[^()<>@,;:\\"/[:space:]]+(@([-_0-9a-z]+\.)*[-_0-9a-z]+)$#i', $adresse)) {
52
-			return false;
53
-		}
54
-	}
55
-
56
-	return $adresse;
34
+    // eviter d'injecter n'importe quoi dans preg_match
35
+    if (!is_string($adresses)) {
36
+        return false;
37
+    }
38
+
39
+    // Si c'est un spammeur autant arreter tout de suite
40
+    if (preg_match(",[\n\r].*(MIME|multipart|Content-),i", $adresses)) {
41
+        spip_log("Tentative d'injection de mail : $adresses");
42
+
43
+        return false;
44
+    }
45
+
46
+    foreach (explode(',', $adresses) as $v) {
47
+        // nettoyer certains formats
48
+        // "Marie Toto <[email protected]>"
49
+        $adresse = trim(preg_replace(',^[^<>"]*<([^<>"]+)>$,i', "\\1", $v));
50
+        // RFC 822
51
+        if (!preg_match('#^[^()<>@,;:\\"/[:space:]]+(@([-_0-9a-z]+\.)*[-_0-9a-z]+)$#i', $adresse)) {
52
+            return false;
53
+        }
54
+    }
55
+
56
+    return $adresse;
57 57
 }
Please login to merge, or discard this patch.
ecrire/balise/formulaire_ecrire_auteur.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 		);
87 87
 		foreach ($s as $row) {
88 88
 			if (email_valide($row['email'])) {
89
-				$r .= ', ' . $row['email'];
89
+				$r .= ', '.$row['email'];
90 90
 			}
91 91
 		}
92 92
 		$args[2] = substr($r, 2);
Please login to merge, or discard this patch.
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  **/
17 17
 
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 include_spip('base/abstract_sql');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  *     Pile complétée du code compilé
41 41
  **/
42 42
 function balise_FORMULAIRE_ECRIRE_AUTEUR($p) {
43
-	return calculer_balise_dynamique($p, 'FORMULAIRE_ECRIRE_AUTEUR', ['id_auteur', 'id_article', 'email']);
43
+    return calculer_balise_dynamique($p, 'FORMULAIRE_ECRIRE_AUTEUR', ['id_auteur', 'id_article', 'email']);
44 44
 }
45 45
 
46 46
 /**
@@ -58,44 +58,44 @@  discard block
 block discarded – undo
58 58
  *   - chaîne vide sinon (erreur ou non affichage).
59 59
  */
60 60
 function balise_FORMULAIRE_ECRIRE_AUTEUR_stat($args, $context_compil) {
61
-	include_spip('inc/filtres');
62
-	// Pas d'id_auteur ni d'id_article ? Erreur de contexte
63
-	$id = (int) $args[1];
64
-	if (!$args[0] && !$id) {
65
-		$msg = [
66
-			'zbug_champ_hors_motif',
67
-			[
68
-				'champ' => 'FORMULAIRE_ECRIRE_AUTEUR',
69
-				'motif' => 'AUTEURS/ARTICLES'
70
-			]
71
-		];
61
+    include_spip('inc/filtres');
62
+    // Pas d'id_auteur ni d'id_article ? Erreur de contexte
63
+    $id = (int) $args[1];
64
+    if (!$args[0] && !$id) {
65
+        $msg = [
66
+            'zbug_champ_hors_motif',
67
+            [
68
+                'champ' => 'FORMULAIRE_ECRIRE_AUTEUR',
69
+                'motif' => 'AUTEURS/ARTICLES'
70
+            ]
71
+        ];
72 72
 
73
-		erreur_squelette($msg, $context_compil);
73
+        erreur_squelette($msg, $context_compil);
74 74
 
75
-		return '';
76
-	}
77
-	// Si on est dans un contexte article,
78
-	// sortir tous les mails des auteurs de l'article
79
-	if (!$args[0] && $id) {
80
-		$r = '';
81
-		$s = sql_allfetsel(
82
-			'email',
83
-			'spip_auteurs AS A LEFT JOIN spip_auteurs_liens AS L ON (A.id_auteur=L.id_auteur AND L.objet=\'article\')',
84
-			"A.email != '' AND L.id_objet=$id"
85
-		);
86
-		foreach ($s as $row) {
87
-			if (email_valide($row['email'])) {
88
-				$r .= ', ' . $row['email'];
89
-			}
90
-		}
91
-		$args[2] = substr($r, 2);
92
-	}
75
+        return '';
76
+    }
77
+    // Si on est dans un contexte article,
78
+    // sortir tous les mails des auteurs de l'article
79
+    if (!$args[0] && $id) {
80
+        $r = '';
81
+        $s = sql_allfetsel(
82
+            'email',
83
+            'spip_auteurs AS A LEFT JOIN spip_auteurs_liens AS L ON (A.id_auteur=L.id_auteur AND L.objet=\'article\')',
84
+            "A.email != '' AND L.id_objet=$id"
85
+        );
86
+        foreach ($s as $row) {
87
+            if (email_valide($row['email'])) {
88
+                $r .= ', ' . $row['email'];
89
+            }
90
+        }
91
+        $args[2] = substr($r, 2);
92
+    }
93 93
 
94
-	// On ne peut pas ecrire a un auteur dont le mail n'est pas valide
95
-	if (!$args[2] || !email_valide($args[2])) {
96
-		return '';
97
-	}
94
+    // On ne peut pas ecrire a un auteur dont le mail n'est pas valide
95
+    if (!$args[2] || !email_valide($args[2])) {
96
+        return '';
97
+    }
98 98
 
99
-	// OK
100
-	return $args;
99
+    // OK
100
+    return $args;
101 101
 }
Please login to merge, or discard this patch.
ecrire/charsets/iso-8859-1.php 1 patch
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -11,134 +11,134 @@
 block discarded – undo
11 11
 // plage invalide en iso-8859-1 mais souvent utilisee quand meme (windows)
12 12
 // cf. http://openweb.eu.org/articles/caracteres_illegaux/
13 13
 // voir aussi copie de ces valeurs dans inc/charsets.php
14
-	128 => 8364,
15
-	129 => 129 /* ?? */,
16
-	130 => 8218,
17
-	131 => 402,
18
-	132 => 8222,
19
-	133 => 8230,
20
-	134 => 8224,
21
-	135 => 8225,
22
-	136 => 710,
23
-	137 => 8240,
24
-	138 => 352,
25
-	139 => 8249,
26
-	140 => 338,
27
-	141 => 141 /* ?? */,
28
-	142 => 381,
29
-	143 => 143 /* ?? */,
30
-	144 => 144 /* ?? */,
31
-	145 => 8216,
32
-	146 => 8217,
33
-	147 => 8220,
34
-	148 => 8221,
35
-	149 => 8226,
36
-	150 => 8211,
37
-	151 => 8212,
38
-	152 => 732,
39
-	153 => 8482,
40
-	154 => 353,
41
-	155 => 8250,
42
-	156 => 339,
43
-	157 => 157 /* ?? */,
44
-	158 => 382,
45
-	159 => 376,
14
+    128 => 8364,
15
+    129 => 129 /* ?? */,
16
+    130 => 8218,
17
+    131 => 402,
18
+    132 => 8222,
19
+    133 => 8230,
20
+    134 => 8224,
21
+    135 => 8225,
22
+    136 => 710,
23
+    137 => 8240,
24
+    138 => 352,
25
+    139 => 8249,
26
+    140 => 338,
27
+    141 => 141 /* ?? */,
28
+    142 => 381,
29
+    143 => 143 /* ?? */,
30
+    144 => 144 /* ?? */,
31
+    145 => 8216,
32
+    146 => 8217,
33
+    147 => 8220,
34
+    148 => 8221,
35
+    149 => 8226,
36
+    150 => 8211,
37
+    151 => 8212,
38
+    152 => 732,
39
+    153 => 8482,
40
+    154 => 353,
41
+    155 => 8250,
42
+    156 => 339,
43
+    157 => 157 /* ?? */,
44
+    158 => 382,
45
+    159 => 376,
46 46
 
47
-	160 => 160,
48
-	161 => 161,
49
-	162 => 162,
50
-	163 => 163,
51
-	164 => 164,
52
-	165 => 165,
53
-	166 => 166,
54
-	167 => 167,
55
-	168 => 168,
56
-	169 => 169,
57
-	170 => 170,
58
-	171 => 171,
59
-	172 => 172,
60
-	173 => 173,
61
-	174 => 174,
62
-	175 => 175,
63
-	176 => 176,
64
-	177 => 177,
65
-	178 => 178,
66
-	179 => 179,
67
-	180 => 180,
68
-	181 => 181,
69
-	182 => 182,
70
-	183 => 183,
71
-	184 => 184,
72
-	185 => 185,
73
-	186 => 186,
74
-	187 => 187,
75
-	188 => 188,
76
-	189 => 189,
77
-	190 => 190,
78
-	191 => 191,
79
-	192 => 192,
80
-	193 => 193,
81
-	194 => 194,
82
-	195 => 195,
83
-	196 => 196,
84
-	197 => 197,
85
-	198 => 198,
86
-	199 => 199,
87
-	200 => 200,
88
-	201 => 201,
89
-	202 => 202,
90
-	203 => 203,
91
-	204 => 204,
92
-	205 => 205,
93
-	206 => 206,
94
-	207 => 207,
95
-	208 => 208,
96
-	209 => 209,
97
-	210 => 210,
98
-	211 => 211,
99
-	212 => 212,
100
-	213 => 213,
101
-	214 => 214,
102
-	215 => 215,
103
-	216 => 216,
104
-	217 => 217,
105
-	218 => 218,
106
-	219 => 219,
107
-	220 => 220,
108
-	221 => 221,
109
-	222 => 222,
110
-	223 => 223,
111
-	224 => 224,
112
-	225 => 225,
113
-	226 => 226,
114
-	227 => 227,
115
-	228 => 228,
116
-	229 => 229,
117
-	230 => 230,
118
-	231 => 231,
119
-	232 => 232,
120
-	233 => 233,
121
-	234 => 234,
122
-	235 => 235,
123
-	236 => 236,
124
-	237 => 237,
125
-	238 => 238,
126
-	239 => 239,
127
-	240 => 240,
128
-	241 => 241,
129
-	242 => 242,
130
-	243 => 243,
131
-	244 => 244,
132
-	245 => 245,
133
-	246 => 246,
134
-	247 => 247,
135
-	248 => 248,
136
-	249 => 249,
137
-	250 => 250,
138
-	251 => 251,
139
-	252 => 252,
140
-	253 => 253,
141
-	254 => 254,
142
-	255 => 255
47
+    160 => 160,
48
+    161 => 161,
49
+    162 => 162,
50
+    163 => 163,
51
+    164 => 164,
52
+    165 => 165,
53
+    166 => 166,
54
+    167 => 167,
55
+    168 => 168,
56
+    169 => 169,
57
+    170 => 170,
58
+    171 => 171,
59
+    172 => 172,
60
+    173 => 173,
61
+    174 => 174,
62
+    175 => 175,
63
+    176 => 176,
64
+    177 => 177,
65
+    178 => 178,
66
+    179 => 179,
67
+    180 => 180,
68
+    181 => 181,
69
+    182 => 182,
70
+    183 => 183,
71
+    184 => 184,
72
+    185 => 185,
73
+    186 => 186,
74
+    187 => 187,
75
+    188 => 188,
76
+    189 => 189,
77
+    190 => 190,
78
+    191 => 191,
79
+    192 => 192,
80
+    193 => 193,
81
+    194 => 194,
82
+    195 => 195,
83
+    196 => 196,
84
+    197 => 197,
85
+    198 => 198,
86
+    199 => 199,
87
+    200 => 200,
88
+    201 => 201,
89
+    202 => 202,
90
+    203 => 203,
91
+    204 => 204,
92
+    205 => 205,
93
+    206 => 206,
94
+    207 => 207,
95
+    208 => 208,
96
+    209 => 209,
97
+    210 => 210,
98
+    211 => 211,
99
+    212 => 212,
100
+    213 => 213,
101
+    214 => 214,
102
+    215 => 215,
103
+    216 => 216,
104
+    217 => 217,
105
+    218 => 218,
106
+    219 => 219,
107
+    220 => 220,
108
+    221 => 221,
109
+    222 => 222,
110
+    223 => 223,
111
+    224 => 224,
112
+    225 => 225,
113
+    226 => 226,
114
+    227 => 227,
115
+    228 => 228,
116
+    229 => 229,
117
+    230 => 230,
118
+    231 => 231,
119
+    232 => 232,
120
+    233 => 233,
121
+    234 => 234,
122
+    235 => 235,
123
+    236 => 236,
124
+    237 => 237,
125
+    238 => 238,
126
+    239 => 239,
127
+    240 => 240,
128
+    241 => 241,
129
+    242 => 242,
130
+    243 => 243,
131
+    244 => 244,
132
+    245 => 245,
133
+    246 => 246,
134
+    247 => 247,
135
+    248 => 248,
136
+    249 => 249,
137
+    250 => 250,
138
+    251 => 251,
139
+    252 => 252,
140
+    253 => 253,
141
+    254 => 254,
142
+    255 => 255
143 143
 
144 144
 ];
Please login to merge, or discard this patch.
ecrire/charsets/iso-8859-6.php 1 patch
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  **/
20 20
 
21 21
 if (!defined('_ECRIRE_INC_VERSION')) {
22
-	return;
22
+    return;
23 23
 }
24 24
 
25 25
 load_charset('iso-8859-1');
@@ -27,61 +27,61 @@  discard block
 block discarded – undo
27 27
 $trans = $GLOBALS['CHARSET']['iso-8859-1'];
28 28
 
29 29
 $mod = [
30
-	0xA0 => 0x00A0,
31
-	0xA4 => 0x00A4,
32
-	0xAC => 0x060C,
33
-	0xAD => 0x00AD,
34
-	0xBB => 0x061B,
35
-	0xBF => 0x061F,
36
-	0xC1 => 0x0621,
37
-	0xC2 => 0x0622,
38
-	0xC3 => 0x0623,
39
-	0xC4 => 0x0624,
40
-	0xC5 => 0x0625,
41
-	0xC6 => 0x0626,
42
-	0xC7 => 0x0627,
43
-	0xC8 => 0x0628,
44
-	0xC9 => 0x0629,
45
-	0xCA => 0x062A,
46
-	0xCB => 0x062B,
47
-	0xCC => 0x062C,
48
-	0xCD => 0x062D,
49
-	0xCE => 0x062E,
50
-	0xCF => 0x062F,
51
-	0xD0 => 0x0630,
52
-	0xD1 => 0x0631,
53
-	0xD2 => 0x0632,
54
-	0xD3 => 0x0633,
55
-	0xD4 => 0x0634,
56
-	0xD5 => 0x0635,
57
-	0xD6 => 0x0636,
58
-	0xD7 => 0x0637,
59
-	0xD8 => 0x0638,
60
-	0xD9 => 0x0639,
61
-	0xDA => 0x063A,
62
-	0xE0 => 0x0640,
63
-	0xE1 => 0x0641,
64
-	0xE2 => 0x0642,
65
-	0xE3 => 0x0643,
66
-	0xE4 => 0x0644,
67
-	0xE5 => 0x0645,
68
-	0xE6 => 0x0646,
69
-	0xE7 => 0x0647,
70
-	0xE8 => 0x0648,
71
-	0xE9 => 0x0649,
72
-	0xEA => 0x064A,
73
-	0xEB => 0x064B,
74
-	0xEC => 0x064C,
75
-	0xED => 0x064D,
76
-	0xEE => 0x064E,
77
-	0xEF => 0x064F,
78
-	0xF0 => 0x0650,
79
-	0xF1 => 0x0651,
80
-	0xF2 => 0x0652
30
+    0xA0 => 0x00A0,
31
+    0xA4 => 0x00A4,
32
+    0xAC => 0x060C,
33
+    0xAD => 0x00AD,
34
+    0xBB => 0x061B,
35
+    0xBF => 0x061F,
36
+    0xC1 => 0x0621,
37
+    0xC2 => 0x0622,
38
+    0xC3 => 0x0623,
39
+    0xC4 => 0x0624,
40
+    0xC5 => 0x0625,
41
+    0xC6 => 0x0626,
42
+    0xC7 => 0x0627,
43
+    0xC8 => 0x0628,
44
+    0xC9 => 0x0629,
45
+    0xCA => 0x062A,
46
+    0xCB => 0x062B,
47
+    0xCC => 0x062C,
48
+    0xCD => 0x062D,
49
+    0xCE => 0x062E,
50
+    0xCF => 0x062F,
51
+    0xD0 => 0x0630,
52
+    0xD1 => 0x0631,
53
+    0xD2 => 0x0632,
54
+    0xD3 => 0x0633,
55
+    0xD4 => 0x0634,
56
+    0xD5 => 0x0635,
57
+    0xD6 => 0x0636,
58
+    0xD7 => 0x0637,
59
+    0xD8 => 0x0638,
60
+    0xD9 => 0x0639,
61
+    0xDA => 0x063A,
62
+    0xE0 => 0x0640,
63
+    0xE1 => 0x0641,
64
+    0xE2 => 0x0642,
65
+    0xE3 => 0x0643,
66
+    0xE4 => 0x0644,
67
+    0xE5 => 0x0645,
68
+    0xE6 => 0x0646,
69
+    0xE7 => 0x0647,
70
+    0xE8 => 0x0648,
71
+    0xE9 => 0x0649,
72
+    0xEA => 0x064A,
73
+    0xEB => 0x064B,
74
+    0xEC => 0x064C,
75
+    0xED => 0x064D,
76
+    0xEE => 0x064E,
77
+    0xEF => 0x064F,
78
+    0xF0 => 0x0650,
79
+    0xF1 => 0x0651,
80
+    0xF2 => 0x0652
81 81
 ];
82 82
 
83 83
 foreach ($mod as $num => $val) {
84
-	$trans[$num] = $val;
84
+    $trans[$num] = $val;
85 85
 }
86 86
 
87 87
 $GLOBALS['CHARSET']['iso-8859-6'] = $trans;
Please login to merge, or discard this patch.
ecrire/charsets/translitcomplexe.php 1 patch
Indentation   +142 added lines, -142 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  **/
21 21
 
22 22
 if (!defined('_ECRIRE_INC_VERSION')) {
23
-	return;
23
+    return;
24 24
 }
25 25
 
26 26
 load_charset('translit');
@@ -28,151 +28,151 @@  discard block
 block discarded – undo
28 28
 
29 29
 $translit_c = [
30 30
 // vietnamien
31
-	225 => "a'",
32
-	224 => 'a`',
33
-	7843 => 'a?',
34
-	227 => 'a~',
35
-	7841 => 'a.',
36
-	226 => 'a^',
37
-	7845 => "a^'",
38
-	7847 => 'a^`',
39
-	7849 => 'a^?',
40
-	7851 => 'a^~',
41
-	7853 => 'a^.',
42
-	259 => 'a(',
43
-	7855 => "a('",
44
-	7857 => 'a(`',
45
-	7859 => 'a(?',
46
-	7861 => 'a(~',
47
-	7863 => 'a(.',
48
-	193 => "A'",
49
-	192 => 'A`',
50
-	7842 => 'A?',
51
-	195 => 'A~',
52
-	7840 => 'A.',
53
-	194 => 'A^',
54
-	7844 => "A^'",
55
-	7846 => 'A^`',
56
-	7848 => 'A^?',
57
-	7850 => 'A^~',
58
-	7852 => 'A^.',
59
-	258 => 'A(',
60
-	7854 => "A('",
61
-	7856 => 'A(`',
62
-	7858 => 'A(?',
63
-	7860 => 'A(~',
64
-	7862 => 'A(.',
65
-	233 => "e'",
66
-	232 => 'e`',
67
-	7867 => 'e?',
68
-	7869 => 'e~',
69
-	7865 => 'e.',
70
-	234 => 'e^',
71
-	7871 => "e^'",
72
-	7873 => 'e^`',
73
-	7875 => 'e^?',
74
-	7877 => 'e^~',
75
-	7879 => 'e^.',
76
-	201 => "E'",
77
-	200 => 'E`',
78
-	7866 => 'E?',
79
-	7868 => 'E~',
80
-	7864 => 'E.',
81
-	202 => 'E^',
82
-	7870 => "E^'",
83
-	7872 => 'E^`',
84
-	7874 => 'E^?',
85
-	7876 => 'E^~',
86
-	7878 => 'E^.',
87
-	237 => "i'",
88
-	236 => 'i`',
89
-	7881 => 'i?',
90
-	297 => 'i~',
91
-	7883 => 'i.',
92
-	205 => "I'",
93
-	204 => 'I`',
94
-	7880 => 'I?',
95
-	296 => 'I~',
96
-	7882 => 'I.',
97
-	243 => "o'",
98
-	242 => 'o`',
99
-	7887 => 'o?',
100
-	245 => 'o~',
101
-	7885 => 'o.',
102
-	244 => 'o^',
103
-	7889 => "o^'",
104
-	7891 => 'o^`',
105
-	7893 => 'o^?',
106
-	7895 => 'o^~',
107
-	7897 => 'o^.',
108
-	417 => 'o+',
109
-	7899 => "o+'",
110
-	7901 => 'o+`',
111
-	7903 => 'o+?',
112
-	7905 => 'o+~',
113
-	7907 => 'o+.',
114
-	211 => "O'",
115
-	210 => 'O`',
116
-	7886 => 'O?',
117
-	213 => 'O~',
118
-	7884 => 'O.',
119
-	212 => 'O^',
120
-	7888 => "O^'",
121
-	7890 => 'O^`',
122
-	7892 => 'O^?',
123
-	7894 => 'O^~',
124
-	7896 => 'O^.',
125
-	416 => 'O+',
126
-	7898 => "O+'",
127
-	7900 => 'O+`',
128
-	7902 => 'O+?',
129
-	7904 => 'O+~',
130
-	7906 => 'O+.',
131
-	250 => "u'",
132
-	249 => 'u`',
133
-	7911 => 'u?',
134
-	361 => 'u~',
135
-	7909 => 'u.',
136
-	432 => 'u+',
137
-	7913 => "u+'",
138
-	7915 => 'u+`',
139
-	7917 => 'u+?',
140
-	7919 => 'u+~',
141
-	7921 => 'u+.',
142
-	218 => "U'",
143
-	217 => 'U`',
144
-	7910 => 'U?',
145
-	360 => 'U~',
146
-	7908 => 'U.',
147
-	431 => 'U+',
148
-	7912 => "U+'",
149
-	7914 => 'U+`',
150
-	7916 => 'U+?',
151
-	7918 => 'U+~',
152
-	7920 => 'U+.',
153
-	253 => "y'",
154
-	7923 => 'y`',
155
-	7927 => 'y?',
156
-	7929 => 'y~',
157
-	7925 => 'y.',
158
-	221 => "Y'",
159
-	7922 => 'Y`',
160
-	7926 => 'Y?',
161
-	7928 => 'Y~',
162
-	7924 => 'Y.',
163
-	273 => 'd-',
164
-	208 => 'D-',
31
+    225 => "a'",
32
+    224 => 'a`',
33
+    7843 => 'a?',
34
+    227 => 'a~',
35
+    7841 => 'a.',
36
+    226 => 'a^',
37
+    7845 => "a^'",
38
+    7847 => 'a^`',
39
+    7849 => 'a^?',
40
+    7851 => 'a^~',
41
+    7853 => 'a^.',
42
+    259 => 'a(',
43
+    7855 => "a('",
44
+    7857 => 'a(`',
45
+    7859 => 'a(?',
46
+    7861 => 'a(~',
47
+    7863 => 'a(.',
48
+    193 => "A'",
49
+    192 => 'A`',
50
+    7842 => 'A?',
51
+    195 => 'A~',
52
+    7840 => 'A.',
53
+    194 => 'A^',
54
+    7844 => "A^'",
55
+    7846 => 'A^`',
56
+    7848 => 'A^?',
57
+    7850 => 'A^~',
58
+    7852 => 'A^.',
59
+    258 => 'A(',
60
+    7854 => "A('",
61
+    7856 => 'A(`',
62
+    7858 => 'A(?',
63
+    7860 => 'A(~',
64
+    7862 => 'A(.',
65
+    233 => "e'",
66
+    232 => 'e`',
67
+    7867 => 'e?',
68
+    7869 => 'e~',
69
+    7865 => 'e.',
70
+    234 => 'e^',
71
+    7871 => "e^'",
72
+    7873 => 'e^`',
73
+    7875 => 'e^?',
74
+    7877 => 'e^~',
75
+    7879 => 'e^.',
76
+    201 => "E'",
77
+    200 => 'E`',
78
+    7866 => 'E?',
79
+    7868 => 'E~',
80
+    7864 => 'E.',
81
+    202 => 'E^',
82
+    7870 => "E^'",
83
+    7872 => 'E^`',
84
+    7874 => 'E^?',
85
+    7876 => 'E^~',
86
+    7878 => 'E^.',
87
+    237 => "i'",
88
+    236 => 'i`',
89
+    7881 => 'i?',
90
+    297 => 'i~',
91
+    7883 => 'i.',
92
+    205 => "I'",
93
+    204 => 'I`',
94
+    7880 => 'I?',
95
+    296 => 'I~',
96
+    7882 => 'I.',
97
+    243 => "o'",
98
+    242 => 'o`',
99
+    7887 => 'o?',
100
+    245 => 'o~',
101
+    7885 => 'o.',
102
+    244 => 'o^',
103
+    7889 => "o^'",
104
+    7891 => 'o^`',
105
+    7893 => 'o^?',
106
+    7895 => 'o^~',
107
+    7897 => 'o^.',
108
+    417 => 'o+',
109
+    7899 => "o+'",
110
+    7901 => 'o+`',
111
+    7903 => 'o+?',
112
+    7905 => 'o+~',
113
+    7907 => 'o+.',
114
+    211 => "O'",
115
+    210 => 'O`',
116
+    7886 => 'O?',
117
+    213 => 'O~',
118
+    7884 => 'O.',
119
+    212 => 'O^',
120
+    7888 => "O^'",
121
+    7890 => 'O^`',
122
+    7892 => 'O^?',
123
+    7894 => 'O^~',
124
+    7896 => 'O^.',
125
+    416 => 'O+',
126
+    7898 => "O+'",
127
+    7900 => 'O+`',
128
+    7902 => 'O+?',
129
+    7904 => 'O+~',
130
+    7906 => 'O+.',
131
+    250 => "u'",
132
+    249 => 'u`',
133
+    7911 => 'u?',
134
+    361 => 'u~',
135
+    7909 => 'u.',
136
+    432 => 'u+',
137
+    7913 => "u+'",
138
+    7915 => 'u+`',
139
+    7917 => 'u+?',
140
+    7919 => 'u+~',
141
+    7921 => 'u+.',
142
+    218 => "U'",
143
+    217 => 'U`',
144
+    7910 => 'U?',
145
+    360 => 'U~',
146
+    7908 => 'U.',
147
+    431 => 'U+',
148
+    7912 => "U+'",
149
+    7914 => 'U+`',
150
+    7916 => 'U+?',
151
+    7918 => 'U+~',
152
+    7920 => 'U+.',
153
+    253 => "y'",
154
+    7923 => 'y`',
155
+    7927 => 'y?',
156
+    7929 => 'y~',
157
+    7925 => 'y.',
158
+    221 => "Y'",
159
+    7922 => 'Y`',
160
+    7926 => 'Y?',
161
+    7928 => 'Y~',
162
+    7924 => 'Y.',
163
+    273 => 'd-',
164
+    208 => 'D-',
165 165
 
166 166
 // allemand
167
-	228 => 'ae',
168
-	246 => 'oe',
169
-	252 => 'ue',
170
-	196 => 'Ae',
171
-	214 => 'Oe',
172
-	220 => 'Ue'
167
+    228 => 'ae',
168
+    246 => 'oe',
169
+    252 => 'ue',
170
+    196 => 'Ae',
171
+    214 => 'Oe',
172
+    220 => 'Ue'
173 173
 ];
174 174
 
175 175
 foreach ($translit_c as $u => $t) {
176
-	$trans[$u] = $t;
176
+    $trans[$u] = $t;
177 177
 }
178 178
 $GLOBALS['CHARSET']['translitcomplexe'] = $trans;
Please login to merge, or discard this patch.
ecrire/charsets/cp1251.php 1 patch
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -9,131 +9,131 @@
 block discarded – undo
9 9
  **/
10 10
 
11 11
 $GLOBALS['CHARSET']['cp1251'] = [
12
-	0x80 => 0x0402,
13
-	0x81 => 0x0403,
14
-	0x82 => 0x201A,
15
-	0x83 => 0x0453,
16
-	0x84 => 0x201E,
17
-	0x85 => 0x2026,
18
-	0x86 => 0x2020,
19
-	0x87 => 0x2021,
20
-	0x88 => 0x20AC,
21
-	0x89 => 0x2030,
22
-	0x8A => 0x0409,
23
-	0x8B => 0x2039,
24
-	0x8C => 0x040A,
25
-	0x8D => 0x040C,
26
-	0x8E => 0x040B,
27
-	0x8F => 0x040F,
28
-	0x90 => 0x0452,
29
-	0x91 => 0x2018,
30
-	0x92 => 0x2019,
31
-	0x93 => 0x201C,
32
-	0x94 => 0x201D,
33
-	0x95 => 0x2022,
34
-	0x96 => 0x2013,
35
-	0x97 => 0x2014,
36
-	0x99 => 0x2122,
37
-	0x9A => 0x0459,
38
-	0x9B => 0x203A,
39
-	0x9C => 0x045A,
40
-	0x9D => 0x045C,
41
-	0x9E => 0x045B,
42
-	0x9F => 0x045F,
43
-	0xA0 => 0x00A0,
44
-	0xA1 => 0x040E,
45
-	0xA2 => 0x045E,
46
-	0xA3 => 0x0408,
47
-	0xA4 => 0x00A4,
48
-	0xA5 => 0x0490,
49
-	0xA6 => 0x00A6,
50
-	0xA7 => 0x00A7,
51
-	0xA8 => 0x0401,
52
-	0xA9 => 0x00A9,
53
-	0xAA => 0x0404,
54
-	0xAB => 0x00AB,
55
-	0xAC => 0x00AC,
56
-	0xAD => 0x00AD,
57
-	0xAE => 0x00AE,
58
-	0xAF => 0x0407,
59
-	0xB0 => 0x00B0,
60
-	0xB1 => 0x00B1,
61
-	0xB2 => 0x0406,
62
-	0xB3 => 0x0456,
63
-	0xB4 => 0x0491,
64
-	0xB5 => 0x00B5,
65
-	0xB6 => 0x00B6,
66
-	0xB7 => 0x00B7,
67
-	0xB8 => 0x0451,
68
-	0xB9 => 0x2116,
69
-	0xBA => 0x0454,
70
-	0xBB => 0x00BB,
71
-	0xBC => 0x0458,
72
-	0xBD => 0x0405,
73
-	0xBE => 0x0455,
74
-	0xBF => 0x0457,
75
-	0xC0 => 0x0410,
76
-	0xC1 => 0x0411,
77
-	0xC2 => 0x0412,
78
-	0xC3 => 0x0413,
79
-	0xC4 => 0x0414,
80
-	0xC5 => 0x0415,
81
-	0xC6 => 0x0416,
82
-	0xC7 => 0x0417,
83
-	0xC8 => 0x0418,
84
-	0xC9 => 0x0419,
85
-	0xCA => 0x041A,
86
-	0xCB => 0x041B,
87
-	0xCC => 0x041C,
88
-	0xCD => 0x041D,
89
-	0xCE => 0x041E,
90
-	0xCF => 0x041F,
91
-	0xD0 => 0x0420,
92
-	0xD1 => 0x0421,
93
-	0xD2 => 0x0422,
94
-	0xD3 => 0x0423,
95
-	0xD4 => 0x0424,
96
-	0xD5 => 0x0425,
97
-	0xD6 => 0x0426,
98
-	0xD7 => 0x0427,
99
-	0xD8 => 0x0428,
100
-	0xD9 => 0x0429,
101
-	0xDA => 0x042A,
102
-	0xDB => 0x042B,
103
-	0xDC => 0x042C,
104
-	0xDD => 0x042D,
105
-	0xDE => 0x042E,
106
-	0xDF => 0x042F,
107
-	0xE0 => 0x0430,
108
-	0xE1 => 0x0431,
109
-	0xE2 => 0x0432,
110
-	0xE3 => 0x0433,
111
-	0xE4 => 0x0434,
112
-	0xE5 => 0x0435,
113
-	0xE6 => 0x0436,
114
-	0xE7 => 0x0437,
115
-	0xE8 => 0x0438,
116
-	0xE9 => 0x0439,
117
-	0xEA => 0x043A,
118
-	0xEB => 0x043B,
119
-	0xEC => 0x043C,
120
-	0xED => 0x043D,
121
-	0xEE => 0x043E,
122
-	0xEF => 0x043F,
123
-	0xF0 => 0x0440,
124
-	0xF1 => 0x0441,
125
-	0xF2 => 0x0442,
126
-	0xF3 => 0x0443,
127
-	0xF4 => 0x0444,
128
-	0xF5 => 0x0445,
129
-	0xF6 => 0x0446,
130
-	0xF7 => 0x0447,
131
-	0xF8 => 0x0448,
132
-	0xF9 => 0x0449,
133
-	0xFA => 0x044A,
134
-	0xFB => 0x044B,
135
-	0xFC => 0x044C,
136
-	0xFD => 0x044D,
137
-	0xFE => 0x044E,
138
-	0xFF => 0x044F
12
+    0x80 => 0x0402,
13
+    0x81 => 0x0403,
14
+    0x82 => 0x201A,
15
+    0x83 => 0x0453,
16
+    0x84 => 0x201E,
17
+    0x85 => 0x2026,
18
+    0x86 => 0x2020,
19
+    0x87 => 0x2021,
20
+    0x88 => 0x20AC,
21
+    0x89 => 0x2030,
22
+    0x8A => 0x0409,
23
+    0x8B => 0x2039,
24
+    0x8C => 0x040A,
25
+    0x8D => 0x040C,
26
+    0x8E => 0x040B,
27
+    0x8F => 0x040F,
28
+    0x90 => 0x0452,
29
+    0x91 => 0x2018,
30
+    0x92 => 0x2019,
31
+    0x93 => 0x201C,
32
+    0x94 => 0x201D,
33
+    0x95 => 0x2022,
34
+    0x96 => 0x2013,
35
+    0x97 => 0x2014,
36
+    0x99 => 0x2122,
37
+    0x9A => 0x0459,
38
+    0x9B => 0x203A,
39
+    0x9C => 0x045A,
40
+    0x9D => 0x045C,
41
+    0x9E => 0x045B,
42
+    0x9F => 0x045F,
43
+    0xA0 => 0x00A0,
44
+    0xA1 => 0x040E,
45
+    0xA2 => 0x045E,
46
+    0xA3 => 0x0408,
47
+    0xA4 => 0x00A4,
48
+    0xA5 => 0x0490,
49
+    0xA6 => 0x00A6,
50
+    0xA7 => 0x00A7,
51
+    0xA8 => 0x0401,
52
+    0xA9 => 0x00A9,
53
+    0xAA => 0x0404,
54
+    0xAB => 0x00AB,
55
+    0xAC => 0x00AC,
56
+    0xAD => 0x00AD,
57
+    0xAE => 0x00AE,
58
+    0xAF => 0x0407,
59
+    0xB0 => 0x00B0,
60
+    0xB1 => 0x00B1,
61
+    0xB2 => 0x0406,
62
+    0xB3 => 0x0456,
63
+    0xB4 => 0x0491,
64
+    0xB5 => 0x00B5,
65
+    0xB6 => 0x00B6,
66
+    0xB7 => 0x00B7,
67
+    0xB8 => 0x0451,
68
+    0xB9 => 0x2116,
69
+    0xBA => 0x0454,
70
+    0xBB => 0x00BB,
71
+    0xBC => 0x0458,
72
+    0xBD => 0x0405,
73
+    0xBE => 0x0455,
74
+    0xBF => 0x0457,
75
+    0xC0 => 0x0410,
76
+    0xC1 => 0x0411,
77
+    0xC2 => 0x0412,
78
+    0xC3 => 0x0413,
79
+    0xC4 => 0x0414,
80
+    0xC5 => 0x0415,
81
+    0xC6 => 0x0416,
82
+    0xC7 => 0x0417,
83
+    0xC8 => 0x0418,
84
+    0xC9 => 0x0419,
85
+    0xCA => 0x041A,
86
+    0xCB => 0x041B,
87
+    0xCC => 0x041C,
88
+    0xCD => 0x041D,
89
+    0xCE => 0x041E,
90
+    0xCF => 0x041F,
91
+    0xD0 => 0x0420,
92
+    0xD1 => 0x0421,
93
+    0xD2 => 0x0422,
94
+    0xD3 => 0x0423,
95
+    0xD4 => 0x0424,
96
+    0xD5 => 0x0425,
97
+    0xD6 => 0x0426,
98
+    0xD7 => 0x0427,
99
+    0xD8 => 0x0428,
100
+    0xD9 => 0x0429,
101
+    0xDA => 0x042A,
102
+    0xDB => 0x042B,
103
+    0xDC => 0x042C,
104
+    0xDD => 0x042D,
105
+    0xDE => 0x042E,
106
+    0xDF => 0x042F,
107
+    0xE0 => 0x0430,
108
+    0xE1 => 0x0431,
109
+    0xE2 => 0x0432,
110
+    0xE3 => 0x0433,
111
+    0xE4 => 0x0434,
112
+    0xE5 => 0x0435,
113
+    0xE6 => 0x0436,
114
+    0xE7 => 0x0437,
115
+    0xE8 => 0x0438,
116
+    0xE9 => 0x0439,
117
+    0xEA => 0x043A,
118
+    0xEB => 0x043B,
119
+    0xEC => 0x043C,
120
+    0xED => 0x043D,
121
+    0xEE => 0x043E,
122
+    0xEF => 0x043F,
123
+    0xF0 => 0x0440,
124
+    0xF1 => 0x0441,
125
+    0xF2 => 0x0442,
126
+    0xF3 => 0x0443,
127
+    0xF4 => 0x0444,
128
+    0xF5 => 0x0445,
129
+    0xF6 => 0x0446,
130
+    0xF7 => 0x0447,
131
+    0xF8 => 0x0448,
132
+    0xF9 => 0x0449,
133
+    0xFA => 0x044A,
134
+    0xFB => 0x044B,
135
+    0xFC => 0x044C,
136
+    0xFD => 0x044D,
137
+    0xFE => 0x044E,
138
+    0xFF => 0x044F
139 139
 ];
Please login to merge, or discard this patch.
ecrire/charsets/html.php 1 patch
Indentation   +114 added lines, -114 removed lines patch added patch discarded remove patch
@@ -8,120 +8,120 @@
 block discarded – undo
8 8
  **/
9 9
 
10 10
 $GLOBALS['CHARSET']['html'] = [
11
-	'ldquo' => '&#8220;',
12
-	'rdquo' => '&#8221;',
13
-	'bdquo' => '&#8222;',
14
-	'cent' => '&#162;',
15
-	'pound' => '&#163;',
16
-	'curren' => '&#164;',
17
-	'yen' => '&#165;',
18
-	'brvbar' => '&#166;',
19
-	'sect' => '&#167;',
20
-	'uml' => '&#168;',
21
-	'ordf' => '&#170;',
22
-	'laquo' => '&#171;',
23
-	'lsquo' => '&#8216;',
24
-	'rsquo' => '&#8217;',
25
-	'not' => '&#172;',
26
-	'shy' => '&#173;',
27
-	'macr' => '&#175;',
28
-	'deg' => '&#176;',
29
-	'plusmn' => '&#177;',
30
-	'sup2' => '&#178;',
31
-	'sup3' => '&#179;',
32
-	'acute' => '&#180;',
33
-	'micro' => '&#181;',
34
-	'para' => '&#182;',
35
-	'middot' => '&#183;',
36
-	'cedil' => '&#184;',
37
-	'sup1' => '&#185;',
38
-	'ordm' => '&#186;',
39
-	'raquo' => '&#187;',
40
-	'iquest' => '&#191;',
41
-	'Agrave' => '&#192;',
42
-	'Aacute' => '&#193;',
43
-	'Acirc' => '&#194;',
44
-	'Atilde' => '&#195;',
45
-	'Auml' => '&#196;',
46
-	'Aring' => '&#197;',
47
-	'AElig' => '&#198;',
48
-	'Ccedil' => '&#199;',
49
-	'Egrave' => '&#200;',
50
-	'Eacute' => '&#201;',
51
-	'Ecirc' => '&#202;',
52
-	'Euml' => '&#203;',
53
-	'Igrave' => '&#204;',
54
-	'Iacute' => '&#205;',
55
-	'Icirc' => '&#206;',
56
-	'Iuml' => '&#207;',
57
-	'ETH' => '&#208;',
58
-	'Ntilde' => '&#209;',
59
-	'Ograve' => '&#210;',
60
-	'Oacute' => '&#211;',
61
-	'Ocirc' => '&#212;',
62
-	'Otilde' => '&#213;',
63
-	'Ouml' => '&#214;',
64
-	'times' => '&#215;',
65
-	'Oslash' => '&#216;',
66
-	'Ugrave' => '&#217;',
67
-	'Uacute' => '&#218;',
68
-	'Ucirc' => '&#219;',
69
-	'Uuml' => '&#220;',
70
-	'Yacute' => '&#221;',
71
-	'THORN' => '&#222;',
72
-	'szlig' => '&#223;',
73
-	'agrave' => '&#224;',
74
-	'Scaron' => '&#352;',
75
-	'scaron' => '&#353;',
76
-	'zcaron' => '&#x17E;',
77
-	'Zcaron' => '&#x17D;',
78
-	'aacute' => '&#225;',
79
-	'acirc' => '&#226;',
80
-	'atilde' => '&#227;',
81
-	'auml' => '&#228;',
82
-	'aring' => '&#229;',
83
-	'aelig' => '&#230;',
84
-	'ccedil' => '&#231;',
85
-	'egrave' => '&#232;',
86
-	'eacute' => '&#233;',
87
-	'ecirc' => '&#234;',
88
-	'euml' => '&#235;',
89
-	'igrave' => '&#236;',
90
-	'iacute' => '&#237;',
91
-	'icirc' => '&#238;',
92
-	'iuml' => '&#239;',
93
-	'eth' => '&#240;',
94
-	'ntilde' => '&#241;',
95
-	'ograve' => '&#242;',
96
-	'oacute' => '&#243;',
97
-	'ocirc' => '&#244;',
98
-	'otilde' => '&#245;',
99
-	'ouml' => '&#246;',
100
-	'divide' => '&#247;',
101
-	'oslash' => '&#248;',
102
-	'ugrave' => '&#249;',
103
-	'uacute' => '&#250;',
104
-	'ucirc' => '&#251;',
105
-	'uuml' => '&#252;',
106
-	'yacute' => '&#253;',
107
-	'thorn' => '&#254;',
108
-	'nbsp' => ' ',
109
-	'thinsp' => '&#8201;',
110
-	'ensp' => '&#8194;',
111
-	'emsp' => '&#8195;',
112
-	'copy' => '(c)',
113
-	'reg' => '(r)',
114
-	'frac14' => '1/4',
115
-	'frac12' => '1/2',
116
-	'frac34' => '3/4',
117
-	'apos' => "'",
118
-	'mdash' => '&#8212;',
119
-	'ndash' => '&#8211;',
120
-	'hellip' => '&#8230;',
121
-	'euro' => '&#8364;',
122
-	'OElig' => '&#338;',
123
-	'oelig' => '&#339;',
124
-	'iexcl' => '&#161;'
11
+    'ldquo' => '&#8220;',
12
+    'rdquo' => '&#8221;',
13
+    'bdquo' => '&#8222;',
14
+    'cent' => '&#162;',
15
+    'pound' => '&#163;',
16
+    'curren' => '&#164;',
17
+    'yen' => '&#165;',
18
+    'brvbar' => '&#166;',
19
+    'sect' => '&#167;',
20
+    'uml' => '&#168;',
21
+    'ordf' => '&#170;',
22
+    'laquo' => '&#171;',
23
+    'lsquo' => '&#8216;',
24
+    'rsquo' => '&#8217;',
25
+    'not' => '&#172;',
26
+    'shy' => '&#173;',
27
+    'macr' => '&#175;',
28
+    'deg' => '&#176;',
29
+    'plusmn' => '&#177;',
30
+    'sup2' => '&#178;',
31
+    'sup3' => '&#179;',
32
+    'acute' => '&#180;',
33
+    'micro' => '&#181;',
34
+    'para' => '&#182;',
35
+    'middot' => '&#183;',
36
+    'cedil' => '&#184;',
37
+    'sup1' => '&#185;',
38
+    'ordm' => '&#186;',
39
+    'raquo' => '&#187;',
40
+    'iquest' => '&#191;',
41
+    'Agrave' => '&#192;',
42
+    'Aacute' => '&#193;',
43
+    'Acirc' => '&#194;',
44
+    'Atilde' => '&#195;',
45
+    'Auml' => '&#196;',
46
+    'Aring' => '&#197;',
47
+    'AElig' => '&#198;',
48
+    'Ccedil' => '&#199;',
49
+    'Egrave' => '&#200;',
50
+    'Eacute' => '&#201;',
51
+    'Ecirc' => '&#202;',
52
+    'Euml' => '&#203;',
53
+    'Igrave' => '&#204;',
54
+    'Iacute' => '&#205;',
55
+    'Icirc' => '&#206;',
56
+    'Iuml' => '&#207;',
57
+    'ETH' => '&#208;',
58
+    'Ntilde' => '&#209;',
59
+    'Ograve' => '&#210;',
60
+    'Oacute' => '&#211;',
61
+    'Ocirc' => '&#212;',
62
+    'Otilde' => '&#213;',
63
+    'Ouml' => '&#214;',
64
+    'times' => '&#215;',
65
+    'Oslash' => '&#216;',
66
+    'Ugrave' => '&#217;',
67
+    'Uacute' => '&#218;',
68
+    'Ucirc' => '&#219;',
69
+    'Uuml' => '&#220;',
70
+    'Yacute' => '&#221;',
71
+    'THORN' => '&#222;',
72
+    'szlig' => '&#223;',
73
+    'agrave' => '&#224;',
74
+    'Scaron' => '&#352;',
75
+    'scaron' => '&#353;',
76
+    'zcaron' => '&#x17E;',
77
+    'Zcaron' => '&#x17D;',
78
+    'aacute' => '&#225;',
79
+    'acirc' => '&#226;',
80
+    'atilde' => '&#227;',
81
+    'auml' => '&#228;',
82
+    'aring' => '&#229;',
83
+    'aelig' => '&#230;',
84
+    'ccedil' => '&#231;',
85
+    'egrave' => '&#232;',
86
+    'eacute' => '&#233;',
87
+    'ecirc' => '&#234;',
88
+    'euml' => '&#235;',
89
+    'igrave' => '&#236;',
90
+    'iacute' => '&#237;',
91
+    'icirc' => '&#238;',
92
+    'iuml' => '&#239;',
93
+    'eth' => '&#240;',
94
+    'ntilde' => '&#241;',
95
+    'ograve' => '&#242;',
96
+    'oacute' => '&#243;',
97
+    'ocirc' => '&#244;',
98
+    'otilde' => '&#245;',
99
+    'ouml' => '&#246;',
100
+    'divide' => '&#247;',
101
+    'oslash' => '&#248;',
102
+    'ugrave' => '&#249;',
103
+    'uacute' => '&#250;',
104
+    'ucirc' => '&#251;',
105
+    'uuml' => '&#252;',
106
+    'yacute' => '&#253;',
107
+    'thorn' => '&#254;',
108
+    'nbsp' => ' ',
109
+    'thinsp' => '&#8201;',
110
+    'ensp' => '&#8194;',
111
+    'emsp' => '&#8195;',
112
+    'copy' => '(c)',
113
+    'reg' => '(r)',
114
+    'frac14' => '1/4',
115
+    'frac12' => '1/2',
116
+    'frac34' => '3/4',
117
+    'apos' => "'",
118
+    'mdash' => '&#8212;',
119
+    'ndash' => '&#8211;',
120
+    'hellip' => '&#8230;',
121
+    'euro' => '&#8364;',
122
+    'OElig' => '&#338;',
123
+    'oelig' => '&#339;',
124
+    'iexcl' => '&#161;'
125 125
 
126 126
 ];
127 127
 
Please login to merge, or discard this patch.