| 1 |
<?php |
| 2 |
/** |
| 3 |
* Author: Alin Marcu |
| 4 |
* Author URI: https://deconf.com |
| 5 |
* Copyright 2013 Alin Marcu |
| 6 |
* License: GPLv2 or later |
| 7 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 8 |
*/ |
| 9 |
// Exit if accessed directly |
| 10 |
if ( ! defined( 'ABSPATH' ) ) |
| 11 |
exit(); |
| 12 |
/* @formatter:off */ |
| 13 |
$country_codes = array( |
| 14 |
'None' => 'None', |
| 15 |
'AF' => 'Afghanistan', |
| 16 |
'AL' => 'Albania', |
| 17 |
'DZ' => 'Algeria', |
| 18 |
'AS' => 'American Samoa', |
| 19 |
'AD' => 'Andorra', |
| 20 |
'AO' => 'Angola', |
| 21 |
'AI' => 'Anguilla', |
| 22 |
'AQ' => 'Antarctica', |
| 23 |
'AG' => 'Antigua and Barbuda', |
| 24 |
'AR' => 'Argentina', |
| 25 |
'AM' => 'Armenia', |
| 26 |
'AW' => 'Aruba', |
| 27 |
'AU' => 'Australia', |
| 28 |
'AT' => 'Austria', |
| 29 |
'AZ' => 'Azerbaijan', |
| 30 |
'BS' => 'Bahamas', |
| 31 |
'BH' => 'Bahrain', |
| 32 |
'BD' => 'Bangladesh', |
| 33 |
'BB' => 'Barbados', |
| 34 |
'BY' => 'Belarus', |
| 35 |
'BE' => 'Belgium', |
| 36 |
'BZ' => 'Belize', |
| 37 |
'BJ' => 'Benin', |
| 38 |
'BM' => 'Bermuda', |
| 39 |
'BT' => 'Bhutan', |
| 40 |
'BO' => 'Bolivia', |
| 41 |
'BQ' => 'Bonaire, Sint Eustatius and Saba', |
| 42 |
'BA' => 'Bosnia and Herzegovina', |
| 43 |
'BW' => 'Botswana', |
| 44 |
'BV' => 'Bouvet Island', |
| 45 |
'BR' => 'Brazil', |
| 46 |
'IO' => 'British Indian Ocean Territory', |
| 47 |
'BN' => 'Brunei Darussalam', |
| 48 |
'BG' => 'Bulgaria', |
| 49 |
'BF' => 'Burkina Faso', |
| 50 |
'BI' => 'Burundi', |
| 51 |
'CV' => 'Cabo Verde', |
| 52 |
'KH' => 'Cambodia', |
| 53 |
'CM' => 'Cameroon', |
| 54 |
'CA' => 'Canada', |
| 55 |
'KY' => 'Cayman Islands', |
| 56 |
'CF' => 'Central African Republic', |
| 57 |
'TD' => 'Chad', |
| 58 |
'CL' => 'Chile', |
| 59 |
'CN' => 'China', |
| 60 |
'CX' => 'Christmas Island', |
| 61 |
'CC' => 'Cocos (Keeling) Islands', |
| 62 |
'CO' => 'Colombia', |
| 63 |
'KM' => 'Comoros', |
| 64 |
'CD' => 'Democratic Republic of the Congo', |
| 65 |
'CG' => 'Republic of the Congo', |
| 66 |
'CK' => 'Cook Islands', |
| 67 |
'CR' => 'Costa Rica', |
| 68 |
'HR' => 'Croatia', |
| 69 |
'CU' => 'Cuba', |
| 70 |
'CW' => 'Curaçao', |
| 71 |
'CY' => 'Cyprus', |
| 72 |
'CZ' => 'Czechia', |
| 73 |
'CI' => 'Côte d`Ivoire', |
| 74 |
'DK' => 'Denmark', |
| 75 |
'DJ' => 'Djibouti', |
| 76 |
'DM' => 'Dominica', |
| 77 |
'DO' => 'Dominican Republic', |
| 78 |
'EC' => 'Ecuador', |
| 79 |
'EG' => 'Egypt', |
| 80 |
'SV' => 'El Salvador', |
| 81 |
'GQ' => 'Equatorial Guinea', |
| 82 |
'ER' => 'Eritrea', |
| 83 |
'EE' => 'Estonia', |
| 84 |
'SZ' => 'Eswatini', |
| 85 |
'ET' => 'Ethiopia', |
| 86 |
'FK' => 'Falkland Islands [Malvinas]', |
| 87 |
'FO' => 'Faroe Islands', |
| 88 |
'FJ' => 'Fiji', |
| 89 |
'FI' => 'Finland', |
| 90 |
'FR' => 'France', |
| 91 |
'GF' => 'French Guiana', |
| 92 |
'PF' => 'French Polynesia', |
| 93 |
'TF' => 'French Southern Territories', |
| 94 |
'GA' => 'Gabon', |
| 95 |
'GM' => 'Gambia', |
| 96 |
'GE' => 'Georgia', |
| 97 |
'DE' => 'Germany', |
| 98 |
'GH' => 'Ghana', |
| 99 |
'GI' => 'Gibraltar', |
| 100 |
'GR' => 'Greece', |
| 101 |
'GL' => 'Greenland', |
| 102 |
'GD' => 'Grenada', |
| 103 |
'GP' => 'Guadeloupe', |
| 104 |
'GU' => 'Guam', |
| 105 |
'GT' => 'Guatemala', |
| 106 |
'GG' => 'Guernsey', |
| 107 |
'GN' => 'Guinea', |
| 108 |
'GW' => 'Guinea-Bissau', |
| 109 |
'GY' => 'Guyana', |
| 110 |
'HT' => 'Haiti', |
| 111 |
'HM' => 'Heard Island and McDonald Islands', |
| 112 |
'VA' => 'Holy See', |
| 113 |
'HN' => 'Honduras', |
| 114 |
'HK' => 'Hong Kong', |
| 115 |
'HU' => 'Hungary', |
| 116 |
'IS' => 'Iceland', |
| 117 |
'IN' => 'India', |
| 118 |
'ID' => 'Indonesia', |
| 119 |
'IR' => 'Iran', |
| 120 |
'IQ' => 'Iraq', |
| 121 |
'IE' => 'Ireland', |
| 122 |
'IM' => 'Isle of Man', |
| 123 |
'IL' => 'Israel', |
| 124 |
'IT' => 'Italy', |
| 125 |
'JM' => 'Jamaica', |
| 126 |
'JP' => 'Japan', |
| 127 |
'JE' => 'Jersey', |
| 128 |
'JO' => 'Jordan', |
| 129 |
'KZ' => 'Kazakhstan', |
| 130 |
'KE' => 'Kenya', |
| 131 |
'KI' => 'Kiribati', |
| 132 |
'KP' => 'Democratic Peoples Republic of Korea', |
| 133 |
'KR' => 'Republic of Korea', |
| 134 |
'KW' => 'Kuwait', |
| 135 |
'KG' => 'Kyrgyzstan', |
| 136 |
'LA' => 'Lao', |
| 137 |
'LV' => 'Latvia', |
| 138 |
'LB' => 'Lebanon', |
| 139 |
'LS' => 'Lesotho', |
| 140 |
'LR' => 'Liberia', |
| 141 |
'LY' => 'Libya', |
| 142 |
'LI' => 'Liechtenstein', |
| 143 |
'LT' => 'Lithuania', |
| 144 |
'LU' => 'Luxembourg', |
| 145 |
'MO' => 'Macao', |
| 146 |
'MG' => 'Madagascar', |
| 147 |
'MW' => 'Malawi', |
| 148 |
'MY' => 'Malaysia', |
| 149 |
'MV' => 'Maldives', |
| 150 |
'ML' => 'Mali', |
| 151 |
'MT' => 'Malta', |
| 152 |
'MH' => 'Marshall Islands', |
| 153 |
'MQ' => 'Martinique', |
| 154 |
'MR' => 'Mauritania', |
| 155 |
'MU' => 'Mauritius', |
| 156 |
'YT' => 'Mayotte', |
| 157 |
'MX' => 'Mexico', |
| 158 |
'FM' => 'Micronesia', |
| 159 |
'MD' => 'Moldova', |
| 160 |
'MC' => 'Monaco', |
| 161 |
'MN' => 'Mongolia', |
| 162 |
'ME' => 'Montenegro', |
| 163 |
'MS' => 'Montserrat', |
| 164 |
'MA' => 'Morocco', |
| 165 |
'MZ' => 'Mozambique', |
| 166 |
'MM' => 'Myanmar', |
| 167 |
'NA' => 'Namibia', |
| 168 |
'NR' => 'Nauru', |
| 169 |
'NP' => 'Nepal', |
| 170 |
'NL' => 'Netherlands', |
| 171 |
'NC' => 'New Caledonia', |
| 172 |
'NZ' => 'New Zealand', |
| 173 |
'NI' => 'Nicaragua', |
| 174 |
'NE' => 'Niger', |
| 175 |
'NG' => 'Nigeria', |
| 176 |
'NU' => 'Niue', |
| 177 |
'NF' => 'Norfolk Island', |
| 178 |
'MP' => 'Northern Mariana Islands', |
| 179 |
'NO' => 'Norway', |
| 180 |
'OM' => 'Oman', |
| 181 |
'PK' => 'Pakistan', |
| 182 |
'PW' => 'Palau', |
| 183 |
'PS' => 'Palestine, State of', |
| 184 |
'PA' => 'Panama', |
| 185 |
'PG' => 'Papua New Guinea', |
| 186 |
'PY' => 'Paraguay', |
| 187 |
'PE' => 'Peru', |
| 188 |
'PH' => 'Philippines', |
| 189 |
'PN' => 'Pitcairn', |
| 190 |
'PL' => 'Poland', |
| 191 |
'PT' => 'Portugal', |
| 192 |
'PR' => 'Puerto Rico', |
| 193 |
'QA' => 'Qatar', |
| 194 |
'MK' => 'Republic of North Macedonia', |
| 195 |
'RO' => 'Romania', |
| 196 |
'RU' => 'Russian Federation', |
| 197 |
'RW' => 'Rwanda', |
| 198 |
'RE' => 'Réunion', |
| 199 |
'BL' => 'Saint Barthélemy', |
| 200 |
'SH' => 'Saint Helena, Ascension and Tristan da Cunha', |
| 201 |
'KN' => 'Saint Kitts and Nevis', |
| 202 |
'LC' => 'Saint Lucia', |
| 203 |
'MF' => 'Saint Martin', |
| 204 |
'PM' => 'Saint Pierre and Miquelon', |
| 205 |
'VC' => 'Saint Vincent and the Grenadines', |
| 206 |
'WS' => 'Samoa', |
| 207 |
'SM' => 'San Marino', |
| 208 |
'ST' => 'Sao Tome and Principe', |
| 209 |
'SA' => 'Saudi Arabia', |
| 210 |
'SN' => 'Senegal', |
| 211 |
'RS' => 'Serbia', |
| 212 |
'SC' => 'Seychelles', |
| 213 |
'SL' => 'Sierra Leone', |
| 214 |
'SG' => 'Singapore', |
| 215 |
'SX' => 'Sint Maarten', |
| 216 |
'SK' => 'Slovakia', |
| 217 |
'SI' => 'Slovenia', |
| 218 |
'SB' => 'Solomon Islands', |
| 219 |
'SO' => 'Somalia', |
| 220 |
'ZA' => 'South Africa', |
| 221 |
'GS' => 'South Georgia and the South Sandwich Islands', |
| 222 |
'SS' => 'South Sudan', |
| 223 |
'ES' => 'Spain', |
| 224 |
'LK' => 'Sri Lanka', |
| 225 |
'SD' => 'Sudan', |
| 226 |
'SR' => 'Suriname', |
| 227 |
'SJ' => 'Svalbard and Jan Mayen', |
| 228 |
'SE' => 'Sweden', |
| 229 |
'CH' => 'Switzerland', |
| 230 |
'SY' => 'Syrian Arab Republic', |
| 231 |
'TW' => 'Taiwan', |
| 232 |
'TJ' => 'Tajikistan', |
| 233 |
'TZ' => 'Tanzania, United Republic of', |
| 234 |
'TH' => 'Thailand', |
| 235 |
'TL' => 'Timor-Leste', |
| 236 |
'TG' => 'Togo', |
| 237 |
'TK' => 'Tokelau', |
| 238 |
'TO' => 'Tonga', |
| 239 |
'TT' => 'Trinidad and Tobago', |
| 240 |
'TN' => 'Tunisia', |
| 241 |
'TR' => 'Turkey', |
| 242 |
'TM' => 'Turkmenistan', |
| 243 |
'TC' => 'Turks and Caicos Islands', |
| 244 |
'TV' => 'Tuvalu', |
| 245 |
'UG' => 'Uganda', |
| 246 |
'UA' => 'Ukraine', |
| 247 |
'AE' => 'United Arab Emirates', |
| 248 |
'GB' => 'United Kingdom of Great Britain and Northern Ireland', |
| 249 |
'UM' => 'United States Minor Outlying Islands', |
| 250 |
'US' => 'United States of America', |
| 251 |
'UY' => 'Uruguay', |
| 252 |
'UZ' => 'Uzbekistan', |
| 253 |
'VU' => 'Vanuatu', |
| 254 |
'VE' => 'Venezuela', |
| 255 |
'VN' => 'Viet Nam', |
| 256 |
'VG' => 'Virgin Islands (British)', |
| 257 |
'VI' => 'Virgin Islands (U.S.)', |
| 258 |
'WF' => 'Wallis and Futuna', |
| 259 |
'EH' => 'Western Sahara', |
| 260 |
'YE' => 'Yemen', |
| 261 |
'ZM' => 'Zambia', |
| 262 |
'ZW' => 'Zimbabwe', |
| 263 |
'AX' => '� |
| 264 |
land Islands', |
| 265 |
); |
| 266 |
/* @formatter:on */ |