PluginProbe
WebTotem Security / 2.4.2
WebTotem Security v2.4.2
3.0.2 3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 All 110 releases
← All changes | lib/Country.php +0 -275 trunk2.4.2 View file →
@@ -307,280 +307,5 @@
307 307
308 308 return $this->countries;
309 309 }
310 310
311 - /**
312 - * Get an array of all two-letter country code => country name pairs.
313 - *
314 - * @return array
315 - * An array of country code => country name pairs.
316 - */
317 - public static function getCountiesNameByCode() {
318 -
319 - $countries = [
320 - 'AC' => "Ascension Island",
321 - 'AD' => "Andorra",
322 - 'AE' => "United Arab Emirates",
323 - 'AF' => "Afghanistan",
324 - 'AG' => "Antigua & Barbuda",
325 - 'AI' => "Anguilla",
326 - 'AL' => "Albania",
327 - 'AM' => "Armenia",
328 - 'AN' => "Netherlands Antilles",
329 - 'AO' => "Angola",
330 - 'AQ' => "Antarctica",
331 - 'AR' => "Argentina",
332 - 'AS' => "American Samoa",
333 - 'AT' => "Austria",
334 - 'AU' => "Australia",
335 - 'AW' => "Aruba",
336 - 'AX' => "Åland Islands",
337 - 'AZ' => "Azerbaijan",
338 - 'BA' => "Bosnia & Herzegovina",
339 - 'BB' => "Barbados",
340 - 'BD' => "Bangladesh",
341 - 'BE' => "Belgium",
342 - 'BF' => "Burkina Faso",
343 - 'BG' => "Bulgaria",
344 - 'BH' => "Bahrain",
345 - 'BI' => "Burundi",
346 - 'BJ' => "Benin",
347 - 'BL' => "St. Barthélemy",
348 - 'BM' => "Bermuda",
349 - 'BN' => "Brunei",
350 - 'BO' => "Bolivia",
351 - 'BQ' => "Caribbean Netherlands",
352 - 'BR' => "Brazil",
353 - 'BS' => "Bahamas",
354 - 'BT' => "Bhutan",
355 - 'BV' => "Bouvet Island",
356 - 'BW' => "Botswana",
357 - 'BY' => "Belarus",
358 - 'BZ' => "Belize",
359 - 'CA' => "Canada",
360 - 'CC' => "Cocos (Keeling) Islands",
361 - 'CD' => "Congo - Kinshasa",
362 - 'CF' => "Central African Republic",
363 - 'CG' => "Congo - Brazzaville",
364 - 'CH' => "Switzerland",
365 - 'CI' => "Côte d’Ivoire",
366 - 'CK' => "Cook Islands",
367 - 'CL' => "Chile",
368 - 'CM' => "Cameroon",
369 - 'CN' => "China",
370 - 'CO' => "Colombia",
371 - 'CP' => "Clipperton Island",
372 - 'CR' => "Costa Rica",
373 - 'CU' => "Cuba",
374 - 'CV' => "Cape Verde",
375 - 'CW' => "Curaçao",
376 - 'CX' => "Christmas Island",
377 - 'CY' => "Cyprus",
378 - 'CZ' => "Czechia",
379 - 'DE' => "Germany",
380 - 'DG' => "Diego Garcia",
381 - 'DJ' => "Djibouti",
382 - 'DK' => "Denmark",
383 - 'DM' => "Dominica",
384 - 'DO' => "Dominican Republic",
385 - 'DZ' => "Algeria",
386 - 'EA' => "Ceuta & Melilla",
387 - 'EC' => "Ecuador",
388 - 'EE' => "Estonia",
389 - 'EG' => "Egypt",
390 - 'EH' => "Western Sahara",
391 - 'ER' => "Eritrea",
392 - 'ES' => "Spain",
393 - 'ET' => "Ethiopia",
394 - 'FI' => "Finland",
395 - 'FJ' => "Fiji",
396 - 'FK' => "Falkland Islands",
397 - 'FM' => "Micronesia",
398 - 'FO' => "Faroe Islands",
399 - 'FR' => "France",
400 - 'GA' => "Gabon",
401 - 'GB' => "United Kingdom",
402 - 'GD' => "Grenada",
403 - 'GE' => "Georgia",
404 - 'GF' => "French Guiana",
405 - 'GG' => "Guernsey",
406 - 'GH' => "Ghana",
407 - 'GI' => "Gibraltar",
408 - 'GL' => "Greenland",
409 - 'GM' => "Gambia",
410 - 'GN' => "Guinea",
411 - 'GP' => "Guadeloupe",
412 - 'GQ' => "Equatorial Guinea",
413 - 'GR' => "Greece",
414 - 'GS' => "South Georgia & South Sandwich Islands",
415 - 'GT' => "Guatemala",
416 - 'GU' => "Guam",
417 - 'GW' => "Guinea-Bissau",
418 - 'GY' => "Guyana",
419 - 'HK' => "Hong Kong SAR China",
420 - 'HM' => "Heard & McDonald Islands",
421 - 'HN' => "Honduras",
422 - 'HR' => "Croatia",
423 - 'HT' => "Haiti",
424 - 'HU' => "Hungary",
425 - 'IC' => "Canary Islands",
426 - 'ID' => "Indonesia",
427 - 'IE' => "Ireland",
428 - 'IL' => "Israel",
429 - 'IM' => "Isle of Man",
430 - 'IN' => "India",
431 - 'IO' => "British Indian Ocean Territory",
432 - 'IQ' => "Iraq",
433 - 'IR' => "Iran",
434 - 'IS' => "Iceland",
435 - 'IT' => "Italy",
436 - 'JE' => "Jersey",
437 - 'JM' => "Jamaica",
438 - 'JO' => "Jordan",
439 - 'JP' => "Japan",
440 - 'KE' => "Kenya",
441 - 'KG' => "Kyrgyzstan",
442 - 'KH' => "Cambodia",
443 - 'KI' => "Kiribati",
444 - 'KM' => "Comoros",
445 - 'KN' => "St. Kitts & Nevis",
446 - 'KP' => "North Korea",
447 - 'KR' => "South Korea",
448 - 'KW' => "Kuwait",
449 - 'KY' => "Cayman Islands",
450 - 'KZ' => "Kazakhstan",
451 - 'LA' => "Laos",
452 - 'LB' => "Lebanon",
453 - 'LC' => "St. Lucia",
454 - 'LI' => "Liechtenstein",
455 - 'LK' => "Sri Lanka",
456 - 'LR' => "Liberia",
457 - 'LS' => "Lesotho",
458 - 'LT' => "Lithuania",
459 - 'LU' => "Luxembourg",
460 - 'LV' => "Latvia",
461 - 'LY' => "Libya",
462 - 'MA' => "Morocco",
463 - 'MC' => "Monaco",
464 - 'MD' => "Moldova",
465 - 'ME' => "Montenegro",
466 - 'MF' => "St. Martin",
467 - 'MG' => "Madagascar",
468 - 'MH' => "Marshall Islands",
469 - 'MK' => "North Macedonia",
470 - 'ML' => "Mali",
471 - 'MM' => "Myanmar (Burma)",
472 - 'MN' => "Mongolia",
473 - 'MO' => "Macao SAR China",
474 - 'MP' => "Northern Mariana Islands",
475 - 'MQ' => "Martinique",
476 - 'MR' => "Mauritania",
477 - 'MS' => "Montserrat",
478 - 'MT' => "Malta",
479 - 'MU' => "Mauritius",
480 - 'MV' => "Maldives",
481 - 'MW' => "Malawi",
482 - 'MX' => "Mexico",
483 - 'MY' => "Malaysia",
484 - 'MZ' => "Mozambique",
485 - 'NA' => "Namibia",
486 - 'NC' => "New Caledonia",
487 - 'NE' => "Niger",
488 - 'NF' => "Norfolk Island",
489 - 'NG' => "Nigeria",
490 - 'NI' => "Nicaragua",
491 - 'NL' => "Netherlands",
492 - 'NO' => "Norway",
493 - 'NP' => "Nepal",
494 - 'NR' => "Nauru",
495 - 'NU' => "Niue",
496 - 'NZ' => "New Zealand",
497 - 'OM' => "Oman",
498 - 'PA' => "Panama",
499 - 'PE' => "Peru",
500 - 'PF' => "French Polynesia",
501 - 'PG' => "Papua New Guinea",
502 - 'PH' => "Philippines",
503 - 'PK' => "Pakistan",
504 - 'PL' => "Poland",
505 - 'PM' => "St. Pierre & Miquelon",
506 - 'PN' => "Pitcairn Islands",
507 - 'PR' => "Puerto Rico",
508 - 'PS' => "Palestinian Territories",
509 - 'PT' => "Portugal",
510 - 'PW' => "Palau",
511 - 'PY' => "Paraguay",
512 - 'QA' => "Qatar",
513 - 'QO' => "Outlying Oceania",
514 - 'RE' => "Réunion",
515 - 'RO' => "Romania",
516 - 'RS' => "Serbia",
517 - 'RU' => "Russia",
518 - 'RW' => "Rwanda",
519 - 'SA' => "Saudi Arabia",
520 - 'SB' => "Solomon Islands",
521 - 'SC' => "Seychelles",
522 - 'SD' => "Sudan",
523 - 'SE' => "Sweden",
524 - 'SG' => "Singapore",
525 - 'SH' => "St. Helena",
526 - 'SI' => "Slovenia",
527 - 'SJ' => "Svalbard & Jan Mayen",
528 - 'SK' => "Slovakia",
529 - 'SL' => "Sierra Leone",
530 - 'SM' => "San Marino",
531 - 'SN' => "Senegal",
532 - 'SO' => "Somalia",
533 - 'SR' => "Suriname",
534 - 'SS' => "South Sudan",
535 - 'ST' => "São Tomé & Príncipe",
536 - 'SV' => "El Salvador",
537 - 'SX' => "Sint Maarten",
538 - 'SY' => "Syria",
539 - 'SZ' => "Eswatini",
540 - 'TA' => "Tristan da Cunha",
541 - 'TC' => "Turks & Caicos Islands",
542 - 'TD' => "Chad",
543 - 'TF' => "French Southern Territories",
544 - 'TG' => "Togo",
545 - 'TH' => "Thailand",
546 - 'TJ' => "Tajikistan",
547 - 'TK' => "Tokelau",
548 - 'TL' => "Timor-Leste",
549 - 'TM' => "Turkmenistan",
550 - 'TN' => "Tunisia",
551 - 'TO' => "Tonga",
552 - 'TR' => "Turkey",
553 - 'TT' => "Trinidad & Tobago",
554 - 'TV' => "Tuvalu",
555 - 'TW' => "Taiwan",
556 - 'TZ' => "Tanzania",
557 - 'UA' => "Ukraine",
558 - 'UG' => "Uganda",
559 - 'UM' => "U.S. Outlying Islands",
560 - 'US' => "United States",
561 - 'UY' => "Uruguay",
562 - 'UZ' => "Uzbekistan",
563 - 'VA' => "Vatican City",
564 - 'VC' => "St. Vincent & Grenadines",
565 - 'VE' => "Venezuela",
566 - 'VG' => "British Virgin Islands",
567 - 'VI' => "U.S. Virgin Islands",
568 - 'VN' => "Vietnam",
569 - 'VU' => "Vanuatu",
570 - 'WF' => "Wallis & Futuna",
571 - 'WS' => "Samoa",
572 - 'XK' => "Kosovo",
573 - 'YE' => "Yemen",
574 - 'YT' => "Mayotte",
575 - 'ZA' => "South Africa",
576 - 'ZM' => "Zambia",
577 - 'ZW' => "Zimbabwe",
578 - ];
579 -
580 - // Sort the list.
581 - natcasesort($countries);
582 -
583 - return $countries;
584 - }
585 -
586 311 }