PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.2.4
Defender Security – Malware Scanner, Login Security & Firewall v6.2.4
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / traits / continent.php

continent.php in Defender Security – Malware Scanner, Login Security & Firewall 6.2.4, at src/traits/continent.php

417 lines 11.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Continent helper.
4 *
5 * @package WP_Defender\Traits
6 * @since 3.10.0
7 */
8
9 namespace WP_Defender\Traits;
10
11 trait Continent {
12
13 /**
14 * Copy the list from https://en.wikipedia.org/wiki/United_Nations_geoscheme.
15 * It's without specific places:
16 * -Asia/Pacific Region,
17 * -Antarctica,
18 * -Anonymous Proxy,
19 * -Satellite Provider,
20 * -Other Country,
21 * which are in the list of countries.
22 * Note: there must be strict compliance with Country trait.
23 *
24 * @return array
25 */
26 protected function get_countries_with_continents(): array {
27 return apply_filters(
28 'wd_countries_with_continents',
29 array(
30 'AF' => array(
31 'name' => esc_html__( 'Africa', 'defender-security' ),
32 'area' => array(
33 'AF1' => array(
34 'name' => esc_html__( 'Northern Africa', 'defender-security' ),
35 'countries' => array(
36 'DZ' => 'Algeria',
37 'EG' => 'Egypt',
38 'LY' => 'Libyan Arab Jamahiriya',
39 'MA' => 'Morocco',
40 'SD' => 'Sudan',
41 'TN' => 'Tunisia',
42 'EH' => 'Western Sahara',
43 ),
44 ),
45 'AF2' => array(
46 'name' => esc_html__( 'Eastern Africa', 'defender-security' ),
47 'countries' => array(
48 'IO' => 'British Indian Ocean Territory',
49 'BI' => 'Burundi',
50 'KM' => 'Comoros',
51 'DJ' => 'Djibouti',
52 'ER' => 'Eritrea',
53 'ET' => 'Ethiopia',
54 'TF' => 'French Southern Territories',
55 'KE' => 'Kenya',
56 'MG' => 'Madagascar',
57 'MW' => 'Malawi',
58 'MU' => 'Mauritius',
59 'YT' => 'Mayotte',
60 'MZ' => 'Mozambique',
61 'RE' => 'Reunion',
62 'RW' => 'Rwanda',
63 'SC' => 'Seychelles',
64 'SO' => 'Somalia',
65 'SS' => 'South Sudan',
66 'UG' => 'Uganda',
67 'TZ' => 'Tanzania, United Republic of',
68 'ZM' => 'Zambia',
69 'ZW' => 'Zimbabwe',
70 ),
71 ),
72 'AF3' => array(
73 'name' => esc_html__( 'Western Africa', 'defender-security' ),
74 'countries' => array(
75 'BJ' => 'Benin',
76 'BF' => 'Burkina Faso',
77 'CV' => 'Cape Verde',
78 'CI' => "Cote d'Ivoire",
79 'GM' => 'Gambia',
80 'GH' => 'Ghana',
81 'GN' => 'Guinea',
82 'GW' => 'Guinea-Bissau',
83 'LR' => 'Liberia',
84 'ML' => 'Mali',
85 'MR' => 'Mauritania',
86 'NE' => 'Niger',
87 'NG' => 'Nigeria',
88 'SH' => 'Saint Helena',
89 'SN' => 'Senegal',
90 'SL' => 'Sierra Leone',
91 'TG' => 'Togo',
92 ),
93 ),
94 'AF4' => array(
95 'name' => esc_html__( 'Central Africa', 'defender-security' ),
96 'countries' => array(
97 'AO' => 'Angola',
98 'CM' => 'Cameroon',
99 'CF' => 'Central African Republic',
100 'TD' => 'Chad',
101 'CG' => 'Congo',
102 'CD' => 'Congo, The Democratic Republic of the',
103 'GQ' => 'Equatorial Guinea',
104 'GA' => 'Gabon',
105 'ST' => 'Sao Tome and Principe',
106 ),
107 ),
108 'AF5' => array(
109 'name' => esc_html__( 'Southern Africa', 'defender-security' ),
110 'countries' => array(
111 'BW' => 'Botswana',
112 'SZ' => 'Swaziland',
113 'LS' => 'Lesotho',
114 'NA' => 'Namibia',
115 'ZA' => 'South Africa',
116 ),
117 ),
118 ),
119 ),
120 'AS' => array(
121 'name' => esc_html__( 'Asia', 'defender-security' ),
122 'area' => array(
123 'AS1' => array(
124 'name' => esc_html__( 'Central Asia', 'defender-security' ),
125 'countries' => array(
126 'KZ' => 'Kazakhstan',
127 'KG' => 'Kyrgyzstan',
128 'TJ' => 'Tajikistan',
129 'TM' => 'Turkmenistan',
130 'UZ' => 'Uzbekistan',
131 ),
132 ),
133 'AS2' => array(
134 'name' => esc_html__( 'Eastern Asia', 'defender-security' ),
135 'countries' => array(
136 'CN' => 'China',
137 'HK' => 'Hong Kong',
138 'MO' => 'Macao',
139 'JP' => 'Japan',
140 'MN' => 'Mongolia',
141 'KP' => "Korea, Democratic People's Republic of",
142 'KR' => 'Korea, Republic of',
143 'TW' => 'Taiwan',
144 ),
145 ),
146 'AS3' => array(
147 'name' => esc_html__( 'South Asia', 'defender-security' ),
148 'countries' => array(
149 'AF' => 'Afghanistan',
150 'BD' => 'Bangladesh',
151 'BT' => 'Bhutan',
152 'IN' => 'India',
153 'MV' => 'Maldives',
154 'NP' => 'Nepal',
155 'PK' => 'Pakistan',
156 'LK' => 'Sri Lanka',
157 ),
158 ),
159 'AS4' => array(
160 'name' => esc_html__( 'South-Eastern Asia', 'defender-security' ),
161 'countries' => array(
162 'BN' => 'Brunei Darussalam',
163 'KH' => 'Cambodia',
164 'ID' => 'Indonesia',
165 'LA' => "Lao People's Democratic Republic",
166 'MY' => 'Malaysia',
167 'MM' => 'Myanmar',
168 'PH' => 'Philippines',
169 'SG' => 'Singapore',
170 'TH' => 'Thailand',
171 'TL' => 'Timor-Leste',
172 'VN' => 'Vietnam',
173 ),
174 ),
175 'AS5' => array(
176 'name' => esc_html__( 'Western Asia', 'defender-security' ),
177 'countries' => array(
178 'AM' => 'Armenia',
179 'AZ' => 'Azerbaijan',
180 'BH' => 'Bahrain',
181 'CY' => 'Cyprus',
182 'GE' => 'Georgia',
183 'IR' => 'Iran, Islamic Republic of',
184 'IQ' => 'Iraq',
185 'IL' => 'Israel',
186 'JO' => 'Jordan',
187 'KW' => 'Kuwait',
188 'LB' => 'Lebanon',
189 'OM' => 'Oman',
190 'QA' => 'Qatar',
191 'SA' => 'Saudi Arabia',
192 'PS' => 'Palestinian Territory',
193 'SY' => 'Syrian Arab Republic',
194 'TR' => 'Turkey',
195 'AE' => 'United Arab Emirates',
196 'YE' => 'Yemen',
197 ),
198 ),
199 ),
200 ),
201 'EU' => array(
202 'name' => esc_html__( 'Europe', 'defender-security' ),
203 'area' => array(
204 'EU1' => array(
205 'name' => esc_html__( 'Eastern Europe', 'defender-security' ),
206 'countries' => array(
207 'BY' => 'Belarus',
208 'BG' => 'Bulgaria',
209 'CZ' => 'Czech Republic',
210 'HU' => 'Hungary',
211 'PL' => 'Poland',
212 'MD' => 'Moldova, Republic of',
213 'RO' => 'Romania',
214 'RU' => 'Russian Federation',
215 'SK' => 'Slovakia',
216 'UA' => 'Ukraine',
217 ),
218 ),
219 'EU2' => array(
220 'name' => esc_html__( 'Northern Europe', 'defender-security' ),
221 'countries' => array(
222 'AX' => 'Aland Islands',
223 'DK' => 'Denmark',
224 'EE' => 'Estonia',
225 'FO' => 'Faroe Islands',
226 'FI' => 'Finland',
227 'IS' => 'Iceland',
228 'IE' => 'Ireland',
229 'IM' => 'Isle of Man',
230 'LV' => 'Latvia',
231 'LT' => 'Lithuania',
232 'NO' => 'Norway',
233 'SJ' => 'Svalbard and Jan Mayen',
234 'SE' => 'Sweden',
235 'GB' => 'United Kingdom',
236 'GG' => 'Guernsey',
237 'JE' => 'Jersey',
238 ),
239 ),
240 'EU3' => array(
241 'name' => esc_html__( 'Southern Europe', 'defender-security' ),
242 'countries' => array(
243 'AL' => 'Albania',
244 'AD' => 'Andorra',
245 'BA' => 'Bosnia and Herzegovina',
246 'HR' => 'Croatia',
247 'GI' => 'Gibraltar',
248 'GR' => 'Greece',
249 'VA' => 'Holy See (Vatican City State)',
250 'IT' => 'Italy',
251 'MT' => 'Malta',
252 'ME' => 'Montenegro',
253 'MK' => 'North Macedonia',
254 'PT' => 'Portugal',
255 'SM' => 'San Marino',
256 'RS' => 'Serbia',
257 'SI' => 'Slovenia',
258 'ES' => 'Spain',
259 ),
260 ),
261 'EU4' => array(
262 'name' => esc_html__( 'Western Europe', 'defender-security' ),
263 'countries' => array(
264 'AT' => 'Austria',
265 'BE' => 'Belgium',
266 'FR' => 'France',
267 'DE' => 'Germany',
268 'LI' => 'Liechtenstein',
269 'LU' => 'Luxembourg',
270 'MC' => 'Monaco',
271 'NL' => 'Netherlands',
272 'CH' => 'Switzerland',
273 ),
274 ),
275 ),
276 ),
277 'AM' => array(
278 'name' => esc_html__( 'America', 'defender-security' ),
279 'area' => array(
280 'AM1' => array(
281 'name' => esc_html__( 'Central America', 'defender-security' ),
282 'countries' => array(
283 'BZ' => 'Belize',
284 'CR' => 'Costa Rica',
285 'SV' => 'El Salvador',
286 'GT' => 'Guatemala',
287 'HN' => 'Honduras',
288 'MX' => 'Mexico',
289 'NI' => 'Nicaragua',
290 'PA' => 'Panama',
291 ),
292 ),
293 'AM2' => array(
294 'name' => esc_html__( 'Caribbean', 'defender-security' ),
295 'countries' => array(
296 'AI' => 'Anguilla',
297 'AG' => 'Antigua and Barbuda',
298 'AW' => 'Aruba',
299 'BS' => 'Bahamas',
300 'BB' => 'Barbados',
301 'BQ' => 'Bonaire, Saint Eustatius and Saba',
302 'VG' => 'Virgin Islands, British',
303 'KY' => 'Cayman Islands',
304 'CU' => 'Cuba',
305 'CW' => 'Curacao',
306 'DM' => 'Dominica',
307 'DO' => 'Dominican Republic',
308 'GD' => 'Grenada',
309 'GP' => 'Guadeloupe',
310 'HT' => 'Haiti',
311 'JM' => 'Jamaica',
312 'MQ' => 'Martinique',
313 'MS' => 'Montserrat',
314 'PR' => 'Puerto Rico',
315 'BL' => 'Saint Barthelemy',
316 'KN' => 'Saint Kitts and Nevis',
317 'LC' => 'Saint Lucia',
318 'MF' => 'Saint Martin',
319 'VC' => 'Saint Vincent and the Grenadines',
320 'SX' => 'Sint Maarten',
321 'TT' => 'Trinidad and Tobago',
322 'TC' => 'Turks and Caicos Islands',
323 'VI' => 'Virgin Islands, U.S.',
324 ),
325 ),
326 'AM3' => array(
327 'name' => esc_html__( 'North America', 'defender-security' ),
328 'countries' => array(
329 'BM' => 'Bermuda',
330 'CA' => 'Canada',
331 'GL' => 'Greenland',
332 'PM' => 'Saint Pierre and Miquelon',
333 'US' => 'United States',
334 'UM' => 'United States Minor Outlying Islands',
335 ),
336 ),
337 'AM4' => array(
338 'name' => esc_html__( 'South America', 'defender-security' ),
339 'countries' => array(
340 'AR' => 'Argentina',
341 'BO' => 'Bolivia',
342 'BV' => 'Bouvet Island',
343 'BR' => 'Brazil',
344 'CL' => 'Chile',
345 'CO' => 'Colombia',
346 'EC' => 'Ecuador',
347 'FK' => 'Falkland Islands (Malvinas)',
348 'GF' => 'French Guiana',
349 'GY' => 'Guyana',
350 'PY' => 'Paraguay',
351 'PE' => 'Peru',
352 'GS' => 'South Georgia and the South Sandwich Islands',
353 'SR' => 'Suriname',
354 'UY' => 'Uruguay',
355 'VE' => 'Venezuela',
356 ),
357 ),
358 ),
359 ),
360 'OC' => array(
361 'name' => esc_html__( 'Oceania', 'defender-security' ),
362 'area' => array(
363 'OC1' => array(
364 'name' => esc_html__( 'Australia and New Zealand', 'defender-security' ),
365 'countries' => array(
366 'AU' => 'Australia',
367 'NZ' => 'New Zealand',
368 'CC' => 'Cocos (Keeling) Islands',
369 'CX' => 'Christmas Island',
370 'HM' => 'Heard Island and McDonald Islands',
371 ),
372 ),
373 'OC2' => array(
374 'name' => esc_html__( 'Melanesia', 'defender-security' ),
375 'countries' => array(
376 'FJ' => 'Fiji',
377 'NC' => 'New Caledonia',
378 'PG' => 'Papua New Guinea',
379 'SB' => 'Solomon Islands',
380 'VU' => 'Vanuatu',
381 ),
382 ),
383 'OC3' => array(
384 'name' => esc_html__( 'Micronesia', 'defender-security' ),
385 'countries' => array(
386 'FM' => 'Micronesia, Federated States of',
387 'MH' => 'Marshall Islands',
388 'MP' => 'Northern Mariana Islands',
389 'GU' => 'Guam',
390 'KI' => 'Kiribati',
391 'NR' => 'Nauru',
392 'PW' => 'Palau',
393 ),
394 ),
395 'OC4' => array(
396 'name' => esc_html__( 'Polynesia', 'defender-security' ),
397 'countries' => array(
398 'AS' => 'American Samoa',
399 'CK' => 'Cook Islands',
400 'PF' => 'French Polynesia',
401 'NU' => 'Niue',
402 'NF' => 'Norfolk Island',
403 'PN' => 'Pitcairn',
404 'WS' => 'Samoa',
405 'TK' => 'Tokelau',
406 'TO' => 'Tonga',
407 'TV' => 'Tuvalu',
408 'WF' => 'Wallis and Futuna',
409 ),
410 ),
411 ),
412 ),
413 )
414 );
415 }
416 }
417