Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Countries.php « DataFiles « core - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6690d75523e3c3eb4601b5d400c75d97c5da7ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<?php
/**
 * Piwik - Open source web analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 * @category Piwik
 * @package DataFiles
 */

/**
 * Country code and continent database.
 *
 * The mapping of countries to continents is from MaxMind with the exception
 * of Central America.  MaxMind groups Central American countries with
 * North America.  Piwik previously grouped Central American countries with
 * South America.  Given this conflict and the fact that most of Central
 * America lies on its own continental plate (i.e., the Caribbean Plate), we
 * currently use a separate continent code (amc).
 */
if(!isset($GLOBALS['Piwik_CountryList']))
{
	// Primary reference: ISO 3166-1 alpha-2
	$GLOBALS['Piwik_CountryList'] = array(
		'ad' => 'eur',
		'ae' => 'asi',
		'af' => 'asi',
		'ag' => 'amc',
		'ai' => 'amc',
		'al' => 'eur',
		'am' => 'asi',
		'ao' => 'afr',
		'aq' => 'ant',
		'ar' => 'ams',
		'as' => 'oce',
		'at' => 'eur',
		'au' => 'oce',
		'aw' => 'amc',
		'ax' => 'eur',
		'az' => 'asi',
		'ba' => 'eur',
		'bb' => 'amc',
		'bd' => 'asi',
		'be' => 'eur',
		'bf' => 'afr',
		'bg' => 'eur',
		'bh' => 'asi',
		'bi' => 'afr',
		'bj' => 'afr',
		'bl' => 'amc',
		'bm' => 'amc',
		'bn' => 'asi',
		'bo' => 'ams',
		'bq' => 'amc',
		'br' => 'ams',
		'bs' => 'amc',
		'bt' => 'asi',
		'bv' => 'ant',
		'bw' => 'afr',
		'by' => 'eur',
		'bz' => 'amc',
		'ca' => 'amn',
		'cc' => 'asi',
		'cd' => 'afr',
		'cf' => 'afr',
		'cg' => 'afr',
		'ch' => 'eur',
		'ci' => 'afr',
		'ck' => 'oce',
		'cl' => 'ams',
		'cm' => 'afr',
		'cn' => 'asi',
		'co' => 'ams',
		'cr' => 'amc',
		'cu' => 'amc',
		'cv' => 'afr',
		'cw' => 'amc',
		'cx' => 'asi',
		'cy' => 'eur',
		'cz' => 'eur',
		'de' => 'eur',
		'dj' => 'afr',
		'dk' => 'eur',
		'dm' => 'amc',
		'do' => 'amc',
		'dz' => 'afr',
		'ec' => 'ams',
		'ee' => 'eur',
		'eg' => 'afr',
		'eh' => 'afr',
		'er' => 'afr',
		'es' => 'eur',
		'et' => 'afr',
		'fi' => 'eur',
		'fj' => 'oce',
		'fk' => 'ams',
		'fm' => 'oce',
		'fo' => 'eur',
		'fr' => 'eur',
		'ga' => 'afr',
		'gb' => 'eur',
		'gd' => 'amc',
		'ge' => 'asi',
		'gf' => 'ams',
		'gg' => 'eur',
		'gh' => 'afr',
		'gi' => 'eur',
		'gl' => 'amn',
		'gm' => 'afr',
		'gn' => 'afr',
		'gp' => 'amc',
		'gq' => 'afr',
		'gr' => 'eur',
		'gs' => 'ant',
		'gt' => 'amc',
		'gu' => 'oce',
		'gw' => 'afr',
		'gy' => 'ams',
		'hk' => 'asi',
		'hm' => 'ant',
		'hn' => 'amc',
		'hr' => 'eur',
		'ht' => 'amc',
		'hu' => 'eur',
		'id' => 'asi',
		'ie' => 'eur',
		'il' => 'asi',
		'im' => 'eur',
		'in' => 'asi',
		'io' => 'asi',
		'iq' => 'asi',
		'ir' => 'asi',
		'is' => 'eur',
		'it' => 'eur',
		'je' => 'eur',
		'jm' => 'amc',
		'jo' => 'asi',
		'jp' => 'asi',
		'ke' => 'afr',
		'kg' => 'asi',
		'kh' => 'asi',
		'ki' => 'oce',
		'km' => 'afr',
		'kn' => 'amc',
		'kp' => 'asi',
		'kr' => 'asi',
		'kw' => 'asi',
		'ky' => 'amc',
		'kz' => 'asi',
		'la' => 'asi',
		'lb' => 'asi',
		'lc' => 'amc',
		'li' => 'eur',
		'lk' => 'asi',
		'lr' => 'afr',
		'ls' => 'afr',
		'lt' => 'eur',
		'lu' => 'eur',
		'lv' => 'eur',
		'ly' => 'afr',
		'ma' => 'afr',
		'mc' => 'eur',
		'md' => 'eur',
		'me' => 'eur',
		'mf' => 'amc',
		'mg' => 'afr',
		'mh' => 'oce',
		'mk' => 'eur',
		'ml' => 'afr',
		'mm' => 'asi',
		'mn' => 'asi',
		'mo' => 'asi',
		'mp' => 'oce',
		'mq' => 'amc',
		'mr' => 'afr',
		'ms' => 'amc',
		'mt' => 'eur',
		'mu' => 'afr',
		'mv' => 'asi',
		'mw' => 'afr',
		'mx' => 'amn',
		'my' => 'asi',
		'mz' => 'afr',
		'na' => 'afr',
		'nc' => 'oce',
		'ne' => 'afr',
		'nf' => 'oce',
		'ng' => 'afr',
		'ni' => 'amc',
		'nl' => 'eur',
		'no' => 'eur',
		'np' => 'asi',
		'nr' => 'oce',
		'nu' => 'oce',
		'nz' => 'oce',
		'om' => 'asi',
		'pa' => 'amc',
		'pe' => 'ams',
		'pf' => 'oce',
		'pg' => 'oce',
		'ph' => 'asi',
		'pk' => 'asi',
		'pl' => 'eur',
		'pm' => 'amn',
		'pn' => 'oce',
		'pr' => 'amc',
		'ps' => 'asi',
		'pt' => 'eur',
		'pw' => 'oce',
		'py' => 'ams',
		'qa' => 'asi',
		're' => 'afr',
		'ro' => 'eur',
		'rs' => 'eur',
		'ru' => 'eur',
		'rw' => 'afr',
		'sa' => 'asi',
		'sb' => 'oce',
		'sc' => 'afr',
		'sd' => 'afr',
		'se' => 'eur',
		'sg' => 'asi',
		'sh' => 'afr',
		'si' => 'eur',
		'sj' => 'eur',
		'sk' => 'eur',
		'sl' => 'afr',
		'sm' => 'eur',
		'sn' => 'afr',
		'so' => 'afr',
		'sr' => 'ams',
		'ss' => 'afr',
		'st' => 'afr',
		'sv' => 'amc',
		'sx' => 'amc',
		'sy' => 'asi',
		'sz' => 'afr',
		'tc' => 'amc',
		'td' => 'afr',
		'tf' => 'ant',
		'tg' => 'afr',
		'th' => 'asi',
		'ti' => 'asi',
		'tj' => 'asi',
		'tk' => 'oce',
		'tl' => 'asi',
		'tm' => 'asi',
		'tn' => 'afr',
		'to' => 'oce',
		'tr' => 'eur',
		'tt' => 'amc',
		'tv' => 'oce',
		'tw' => 'asi',
		'tz' => 'afr',
		'ua' => 'eur',
		'ug' => 'afr',
		'um' => 'oce',
		'us' => 'amn',
		'uy' => 'ams',
		'uz' => 'asi',
		'va' => 'eur',
		'vc' => 'amc',
		've' => 'ams',
		'vg' => 'amc',
		'vi' => 'amc',
		'vn' => 'asi',
		'vu' => 'oce',
		'wf' => 'oce',
		'ws' => 'oce',
		'ye' => 'asi',
		'yt' => 'afr',
		'za' => 'afr',
		'zm' => 'afr',
		'zw' => 'afr',
	);

	// codes for internal use
	$GLOBALS['Piwik_CountryList_Extras'] = array(
		// unknown
		'xx' => 'unk',

		// exceptionally reserved
		'ac' => 'afr', // .ac TLD
		'cp' => 'amc',
		'dg' => 'asi',
		'ea' => 'afr',
		'eu' => 'eur', // .eu TLD
		'fx' => 'eur',
		'ic' => 'afr',
		'su' => 'eur', // .su TLD
		'ta' => 'afr',
		'uk' => 'eur', // .uk TLD

		// transitionally reserved
		'an' => 'amc', // former Netherlands Antilles
		'bu' => 'asi',
		'cs' => 'eur', // former Serbia and Montenegro
		'nt' => 'asi',
		'sf' => 'eur',
		'tp' => 'oce', // .tp TLD
		'yu' => 'eur', // .yu TLD
		'zr' => 'afr',

		// MaxMind GeoIP specific
		'a1' => 'unk',
		'a2' => 'unk',
		'ap' => 'asi',
		'o1' => 'unk',

		// Catalonia (Spain)
		'cat' => 'eur',
	);
}

if(!isset($GLOBALS['Piwik_ContinentList']))
{
	// Primary reference: ISO 3166-1 alpha-2
	$GLOBALS['Piwik_ContinentList'] = array(
		'unk', // unknown
		'amn', // North America
		'amc', // Central America
		'ams', // South America
		'eur', // Europe
		'afr', // Africa
		'asi', // Asia
		'oce', // Oceania
		'ant', // Antarctica
	);
}