-
Notifications
You must be signed in to change notification settings - Fork 4
/
_countryCodes.php
539 lines (529 loc) · 38.3 KB
/
_countryCodes.php
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
<?php
/*
Copyright 2020 FWBer.com
This file is part of FWBer.
FWBer is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FWBer is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero Public License for more details.
You should have received a copy of the GNU Affero Public License
along with FWBer. If not, see <https://www.gnu.org/licenses/>.
*/
function getCountryStringFromCode($countryCode)
{
$countryString = "United States";
if($countryCode=="AD")$countryString="Andorra";
if($countryCode=="AE")$countryString="United Arab Emirates";
if($countryCode=="AF")$countryString="Afghanistan";
if($countryCode=="AG")$countryString="Antigua and Barbuda";
if($countryCode=="AI")$countryString="Anguilla";
if($countryCode=="AL")$countryString="Albania";
if($countryCode=="AM")$countryString="Armenia";
if($countryCode=="AO")$countryString="Angola";
if($countryCode=="AQ")$countryString="Antarctica";
if($countryCode=="AR")$countryString="Argentina";
if($countryCode=="AS")$countryString="American Samoa";
if($countryCode=="AT")$countryString="Austria";
if($countryCode=="AU")$countryString="Australia";
if($countryCode=="AW")$countryString="Aruba";
if($countryCode=="AX")$countryString="Aland Islands";
if($countryCode=="AZ")$countryString="Azerbaijan";
if($countryCode=="BA")$countryString="Bosnia and Herzegovina";
if($countryCode=="BB")$countryString="Barbados";
if($countryCode=="BD")$countryString="Bangladesh";
if($countryCode=="BE")$countryString="Belgium";
if($countryCode=="BF")$countryString="Burkina Faso";
if($countryCode=="BG")$countryString="Bulgaria";
if($countryCode=="BH")$countryString="Bahrain";
if($countryCode=="BI")$countryString="Burundi";
if($countryCode=="BJ")$countryString="Benin";
if($countryCode=="BL")$countryString="Saint Barthelemy";
if($countryCode=="BM")$countryString="Bermuda";
if($countryCode=="BN")$countryString="Brunei";
if($countryCode=="BO")$countryString="Bolivia";
if($countryCode=="BQ")$countryString="Bonaire- Saint Eustatius and Saba";
if($countryCode=="BR")$countryString="Brazil";
if($countryCode=="BS")$countryString="Bahamas";
if($countryCode=="BT")$countryString="Bhutan";
if($countryCode=="BV")$countryString="Bouvet Island";
if($countryCode=="BW")$countryString="Botswana";
if($countryCode=="BY")$countryString="Belarus";
if($countryCode=="BZ")$countryString="Belize";
if($countryCode=="CA")$countryString="Canada";
if($countryCode=="CC")$countryString="Cocos Islands";
if($countryCode=="CD")$countryString="Democratic Republic of the Congo";
if($countryCode=="CF")$countryString="Central African Republic";
if($countryCode=="CG")$countryString="Republic of the Congo";
if($countryCode=="CH")$countryString="Switzerland";
if($countryCode=="CI")$countryString="Ivory Coast";
if($countryCode=="CK")$countryString="Cook Islands";
if($countryCode=="CL")$countryString="Chile";
if($countryCode=="CM")$countryString="Cameroon";
if($countryCode=="CN")$countryString="China";
if($countryCode=="CO")$countryString="Colombia";
if($countryCode=="CR")$countryString="Costa Rica";
if($countryCode=="CU")$countryString="Cuba";
if($countryCode=="CV")$countryString="Cape Verde";
if($countryCode=="CW")$countryString="Curacao";
if($countryCode=="CX")$countryString="Christmas Island";
if($countryCode=="CY")$countryString="Cyprus";
if($countryCode=="CZ")$countryString="Czech Republic";
if($countryCode=="DE")$countryString="Germany";
if($countryCode=="DJ")$countryString="Djibouti";
if($countryCode=="DK")$countryString="Denmark";
if($countryCode=="DM")$countryString="Dominica";
if($countryCode=="DO")$countryString="Dominican Republic";
if($countryCode=="DZ")$countryString="Algeria";
if($countryCode=="EC")$countryString="Ecuador";
if($countryCode=="EE")$countryString="Estonia";
if($countryCode=="EG")$countryString="Egypt";
if($countryCode=="EH")$countryString="Western Sahara";
if($countryCode=="ER")$countryString="Eritrea";
if($countryCode=="ES")$countryString="Spain";
if($countryCode=="ET")$countryString="Ethiopia";
if($countryCode=="FI")$countryString="Finland";
if($countryCode=="FJ")$countryString="Fiji";
if($countryCode=="FK")$countryString="Falkland Islands";
if($countryCode=="FM")$countryString="Micronesia";
if($countryCode=="FO")$countryString="Faroe Islands";
if($countryCode=="FR")$countryString="France";
if($countryCode=="GA")$countryString="Gabon";
if($countryCode=="GB")$countryString="United Kingdom";
if($countryCode=="GD")$countryString="Grenada";
if($countryCode=="GE")$countryString="Georgia";
if($countryCode=="GF")$countryString="French Guiana";
if($countryCode=="GG")$countryString="Guernsey";
if($countryCode=="GH")$countryString="Ghana";
if($countryCode=="GI")$countryString="Gibraltar";
if($countryCode=="GL")$countryString="Greenland";
if($countryCode=="GM")$countryString="Gambia";
if($countryCode=="GN")$countryString="Guinea";
if($countryCode=="GP")$countryString="Guadeloupe";
if($countryCode=="GQ")$countryString="Equatorial Guinea";
if($countryCode=="GR")$countryString="Greece";
if($countryCode=="GS")$countryString="South Georgia and the South Sandwich Islands";
if($countryCode=="GT")$countryString="Guatemala";
if($countryCode=="GU")$countryString="Guam";
if($countryCode=="GW")$countryString="Guinea-Bissau";
if($countryCode=="GY")$countryString="Guyana";
if($countryCode=="HK")$countryString="Hong Kong";
if($countryCode=="HM")$countryString="Heard Island and McDonald Islands";
if($countryCode=="HN")$countryString="Honduras";
if($countryCode=="HR")$countryString="Croatia";
if($countryCode=="HT")$countryString="Haiti";
if($countryCode=="HU")$countryString="Hungary";
if($countryCode=="ID")$countryString="Indonesia";
if($countryCode=="IE")$countryString="Ireland";
if($countryCode=="IL")$countryString="Israel";
if($countryCode=="IM")$countryString="Isle of Man";
if($countryCode=="IN")$countryString="India";
if($countryCode=="IO")$countryString="British Indian Ocean Territory";
if($countryCode=="IQ")$countryString="Iraq";
if($countryCode=="IR")$countryString="Iran";
if($countryCode=="IS")$countryString="Iceland";
if($countryCode=="IT")$countryString="Italy";
if($countryCode=="JE")$countryString="Jersey";
if($countryCode=="JM")$countryString="Jamaica";
if($countryCode=="JO")$countryString="Jordan";
if($countryCode=="JP")$countryString="Japan";
if($countryCode=="KE")$countryString="Kenya";
if($countryCode=="KG")$countryString="Kyrgyzstan";
if($countryCode=="KH")$countryString="Cambodia";
if($countryCode=="KI")$countryString="Kiribati";
if($countryCode=="KM")$countryString="Comoros";
if($countryCode=="KN")$countryString="Saint Kitts and Nevis";
if($countryCode=="KP")$countryString="North Korea";
if($countryCode=="KR")$countryString="South Korea";
if($countryCode=="XK")$countryString="Kosovo";
if($countryCode=="KW")$countryString="Kuwait";
if($countryCode=="KY")$countryString="Cayman Islands";
if($countryCode=="KZ")$countryString="Kazakhstan";
if($countryCode=="LA")$countryString="Laos";
if($countryCode=="LB")$countryString="Lebanon";
if($countryCode=="LC")$countryString="Saint Lucia";
if($countryCode=="LI")$countryString="Liechtenstein";
if($countryCode=="LK")$countryString="Sri Lanka";
if($countryCode=="LR")$countryString="Liberia";
if($countryCode=="LS")$countryString="Lesotho";
if($countryCode=="LT")$countryString="Lithuania";
if($countryCode=="LU")$countryString="Luxembourg";
if($countryCode=="LV")$countryString="Latvia";
if($countryCode=="LY")$countryString="Libya";
if($countryCode=="MA")$countryString="Morocco";
if($countryCode=="MC")$countryString="Monaco";
if($countryCode=="MD")$countryString="Moldova";
if($countryCode=="ME")$countryString="Montenegro";
if($countryCode=="MF")$countryString="Saint Martin";
if($countryCode=="MG")$countryString="Madagascar";
if($countryCode=="MH")$countryString="Marshall Islands";
if($countryCode=="MK")$countryString="Macedonia";
if($countryCode=="ML")$countryString="Mali";
if($countryCode=="MM")$countryString="Myanmar";
if($countryCode=="MN")$countryString="Mongolia";
if($countryCode=="MO")$countryString="Macao";
if($countryCode=="MP")$countryString="Northern Mariana Islands";
if($countryCode=="MQ")$countryString="Martinique";
if($countryCode=="MR")$countryString="Mauritania";
if($countryCode=="MS")$countryString="Montserrat";
if($countryCode=="MT")$countryString="Malta";
if($countryCode=="MU")$countryString="Mauritius";
if($countryCode=="MV")$countryString="Maldives";
if($countryCode=="MW")$countryString="Malawi";
if($countryCode=="MX")$countryString="Mexico";
if($countryCode=="MY")$countryString="Malaysia";
if($countryCode=="MZ")$countryString="Mozambique";
if($countryCode=="NA")$countryString="Namibia";
if($countryCode=="NC")$countryString="New Caledonia";
if($countryCode=="NE")$countryString="Niger";
if($countryCode=="NF")$countryString="Norfolk Island";
if($countryCode=="NG")$countryString="Nigeria";
if($countryCode=="NI")$countryString="Nicaragua";
if($countryCode=="NL")$countryString="Netherlands";
if($countryCode=="NO")$countryString="Norway";
if($countryCode=="NP")$countryString="Nepal";
if($countryCode=="NR")$countryString="Nauru";
if($countryCode=="NU")$countryString="Niue";
if($countryCode=="NZ")$countryString="New Zealand";
if($countryCode=="OM")$countryString="Oman";
if($countryCode=="PA")$countryString="Panama";
if($countryCode=="PE")$countryString="Peru";
if($countryCode=="PF")$countryString="French Polynesia";
if($countryCode=="PG")$countryString="Papua New Guinea";
if($countryCode=="PH")$countryString="Philippines";
if($countryCode=="PK")$countryString="Pakistan";
if($countryCode=="PL")$countryString="Poland";
if($countryCode=="PM")$countryString="Saint Pierre and Miquelon";
if($countryCode=="PN")$countryString="Pitcairn";
if($countryCode=="PR")$countryString="Puerto Rico";
if($countryCode=="PS")$countryString="Palestinian Territory";
if($countryCode=="PT")$countryString="Portugal";
if($countryCode=="PW")$countryString="Palau";
if($countryCode=="PY")$countryString="Paraguay";
if($countryCode=="QA")$countryString="Qatar";
if($countryCode=="RE")$countryString="Reunion";
if($countryCode=="RO")$countryString="Romania";
if($countryCode=="RS")$countryString="Serbia";
if($countryCode=="RU")$countryString="Russia";
if($countryCode=="RW")$countryString="Rwanda";
if($countryCode=="SA")$countryString="Saudi Arabia";
if($countryCode=="SB")$countryString="Solomon Islands";
if($countryCode=="SC")$countryString="Seychelles";
if($countryCode=="SD")$countryString="Sudan";
if($countryCode=="SS")$countryString="South Sudan";
if($countryCode=="SE")$countryString="Sweden";
if($countryCode=="SG")$countryString="Singapore";
if($countryCode=="SH")$countryString="Saint Helena";
if($countryCode=="SI")$countryString="Slovenia";
if($countryCode=="SJ")$countryString="Svalbard and Jan Mayen";
if($countryCode=="SK")$countryString="Slovakia";
if($countryCode=="SL")$countryString="Sierra Leone";
if($countryCode=="SM")$countryString="San Marino";
if($countryCode=="SN")$countryString="Senegal";
if($countryCode=="SO")$countryString="Somalia";
if($countryCode=="SR")$countryString="Suriname";
if($countryCode=="ST")$countryString="Sao Tome and Principe";
if($countryCode=="SV")$countryString="El Salvador";
if($countryCode=="SX")$countryString="Sint Maarten";
if($countryCode=="SY")$countryString="Syria";
if($countryCode=="SZ")$countryString="Swaziland";
if($countryCode=="TC")$countryString="Turks and Caicos Islands";
if($countryCode=="TD")$countryString="Chad";
if($countryCode=="TF")$countryString="French Southern Territories";
if($countryCode=="TG")$countryString="Togo";
if($countryCode=="TH")$countryString="Thailand";
if($countryCode=="TJ")$countryString="Tajikistan";
if($countryCode=="TK")$countryString="Tokelau";
if($countryCode=="TL")$countryString="East Timor";
if($countryCode=="TM")$countryString="Turkmenistan";
if($countryCode=="TN")$countryString="Tunisia";
if($countryCode=="TO")$countryString="Tonga";
if($countryCode=="TR")$countryString="Turkey";
if($countryCode=="TT")$countryString="Trinidad and Tobago";
if($countryCode=="TV")$countryString="Tuvalu";
if($countryCode=="TW")$countryString="Taiwan";
if($countryCode=="TZ")$countryString="Tanzania";
if($countryCode=="UA")$countryString="Ukraine";
if($countryCode=="UG")$countryString="Uganda";
if($countryCode=="UM")$countryString="United States Minor Outlying Islands";
if($countryCode=="US")$countryString="United States";
if($countryCode=="UY")$countryString="Uruguay";
if($countryCode=="UZ")$countryString="Uzbekistan";
if($countryCode=="VA")$countryString="Vatican";
if($countryCode=="VC")$countryString="Saint Vincent and the Grenadines";
if($countryCode=="VE")$countryString="Venezuela";
if($countryCode=="VG")$countryString="British Virgin Islands";
if($countryCode=="VI")$countryString="U.S. Virgin Islands";
if($countryCode=="VN")$countryString="Vietnam";
if($countryCode=="VU")$countryString="Vanuatu";
if($countryCode=="WF")$countryString="Wallis and Futuna";
if($countryCode=="WS")$countryString="Samoa";
if($countryCode=="YE")$countryString="Yemen";
if($countryCode=="YT")$countryString="Mayotte";
if($countryCode=="ZA")$countryString="South Africa";
if($countryCode=="ZM")$countryString="Zambia";
if($countryCode=="ZW")$countryString="Zimbabwe";
if($countryCode=="CS")$countryString="Serbia and Montenegro";
if($countryCode=="AN")$countryString="Netherlands Antilles";
return $countryString;
}
function getCountryCodeFromCountryString($countryString)
{
$countryCode = "US";
if($countryString=="Andorra") $countryCode="AD";
if($countryString=="United Arab Emirates") $countryCode="AE";
if($countryString=="Afghanistan") $countryCode="AF";
if($countryString=="Antigua and Barbuda") $countryCode="AG";
if($countryString=="Anguilla") $countryCode="AI";
if($countryString=="Albania") $countryCode="AL";
if($countryString=="Armenia") $countryCode="AM";
if($countryString=="Angola") $countryCode="AO";
if($countryString=="Antarctica") $countryCode="AQ";
if($countryString=="Argentina") $countryCode="AR";
if($countryString=="American Samoa") $countryCode="AS";
if($countryString=="Austria") $countryCode="AT";
if($countryString=="Australia") $countryCode="AU";
if($countryString=="Aruba") $countryCode="AW";
if($countryString=="Aland Islands") $countryCode="AX";
if($countryString=="Azerbaijan") $countryCode="AZ";
if($countryString=="Bosnia and Herzegovina") $countryCode="BA";
if($countryString=="Barbados") $countryCode="BB";
if($countryString=="Bangladesh") $countryCode="BD";
if($countryString=="Belgium") $countryCode="BE";
if($countryString=="Burkina Faso") $countryCode="BF";
if($countryString=="Bulgaria") $countryCode="BG";
if($countryString=="Bahrain") $countryCode="BH";
if($countryString=="Burundi") $countryCode="BI";
if($countryString=="Benin") $countryCode="BJ";
if($countryString=="Saint Barthelemy") $countryCode="BL";
if($countryString=="Bermuda") $countryCode="BM";
if($countryString=="Brunei") $countryCode="BN";
if($countryString=="Bolivia") $countryCode="BO";
if($countryString=="Bonaire- Saint Eustatius and Saba") $countryCode="BQ";
if($countryString=="Brazil") $countryCode="BR";
if($countryString=="Bahamas") $countryCode="BS";
if($countryString=="Bhutan") $countryCode="BT";
if($countryString=="Bouvet Island") $countryCode="BV";
if($countryString=="Botswana") $countryCode="BW";
if($countryString=="Belarus") $countryCode="BY";
if($countryString=="Belize") $countryCode="BZ";
if($countryString=="Canada") $countryCode="CA";
if($countryString=="Cocos Islands") $countryCode="CC";
if($countryString=="Democratic Republic of the Congo") $countryCode="CD";
if($countryString=="Central African Republic") $countryCode="CF";
if($countryString=="Republic of the Congo") $countryCode="CG";
if($countryString=="Switzerland") $countryCode="CH";
if($countryString=="Ivory Coast") $countryCode="CI";
if($countryString=="Cook Islands") $countryCode="CK";
if($countryString=="Chile") $countryCode="CL";
if($countryString=="Cameroon") $countryCode="CM";
if($countryString=="China") $countryCode="CN";
if($countryString=="Colombia") $countryCode="CO";
if($countryString=="Costa Rica") $countryCode="CR";
if($countryString=="Cuba") $countryCode="CU";
if($countryString=="Cape Verde") $countryCode="CV";
if($countryString=="Curacao") $countryCode="CW";
if($countryString=="Christmas Island") $countryCode="CX";
if($countryString=="Cyprus") $countryCode="CY";
if($countryString=="Czech Republic") $countryCode="CZ";
if($countryString=="Germany") $countryCode="DE";
if($countryString=="Djibouti") $countryCode="DJ";
if($countryString=="Denmark") $countryCode="DK";
if($countryString=="Dominica") $countryCode="DM";
if($countryString=="Dominican Republic") $countryCode="DO";
if($countryString=="Algeria") $countryCode="DZ";
if($countryString=="Ecuador") $countryCode="EC";
if($countryString=="Estonia") $countryCode="EE";
if($countryString=="Egypt") $countryCode="EG";
if($countryString=="Western Sahara") $countryCode="EH";
if($countryString=="Eritrea") $countryCode="ER";
if($countryString=="Spain") $countryCode="ES";
if($countryString=="Ethiopia") $countryCode="ET";
if($countryString=="Finland") $countryCode="FI";
if($countryString=="Fiji") $countryCode="FJ";
if($countryString=="Falkland Islands") $countryCode="FK";
if($countryString=="Micronesia") $countryCode="FM";
if($countryString=="Faroe Islands") $countryCode="FO";
if($countryString=="France") $countryCode="FR";
if($countryString=="Gabon") $countryCode="GA";
if($countryString=="United Kingdom") $countryCode="GB";
if($countryString=="Grenada") $countryCode="GD";
if($countryString=="Georgia") $countryCode="GE";
if($countryString=="French Guiana") $countryCode="GF";
if($countryString=="Guernsey") $countryCode="GG";
if($countryString=="Ghana") $countryCode="GH";
if($countryString=="Gibraltar") $countryCode="GI";
if($countryString=="Greenland") $countryCode="GL";
if($countryString=="Gambia") $countryCode="GM";
if($countryString=="Guinea") $countryCode="GN";
if($countryString=="Guadeloupe") $countryCode="GP";
if($countryString=="Equatorial Guinea") $countryCode="GQ";
if($countryString=="Greece") $countryCode="GR";
if($countryString=="South Georgia and the South Sandwich Islands")$countryCode="GS";
if($countryString=="Guatemala") $countryCode="GT";
if($countryString=="Guam") $countryCode="GU";
if($countryString=="Guinea-Bissau") $countryCode="GW";
if($countryString=="Guyana") $countryCode="GY";
if($countryString=="Hong Kong") $countryCode="HK";
if($countryString=="Heard Island and McDonald Islands") $countryCode="HM";
if($countryString=="Honduras") $countryCode="HN";
if($countryString=="Croatia") $countryCode="HR";
if($countryString=="Haiti") $countryCode="HT";
if($countryString=="Hungary") $countryCode="HU";
if($countryString=="Indonesia") $countryCode="ID";
if($countryString=="Ireland") $countryCode="IE";
if($countryString=="Israel") $countryCode="IL";
if($countryString=="Isle of Man") $countryCode="IM";
if($countryString=="India") $countryCode="IN";
if($countryString=="British Indian Ocean Territory") $countryCode="IO";
if($countryString=="Iraq") $countryCode="IQ";
if($countryString=="Iran") $countryCode="IR";
if($countryString=="Iceland") $countryCode="IS";
if($countryString=="Italy") $countryCode="IT";
if($countryString=="Jersey") $countryCode="JE";
if($countryString=="Jamaica") $countryCode="JM";
if($countryString=="Jordan") $countryCode="JO";
if($countryString=="Japan") $countryCode="JP";
if($countryString=="Kenya") $countryCode="KE";
if($countryString=="Kyrgyzstan") $countryCode="KG";
if($countryString=="Cambodia") $countryCode="KH";
if($countryString=="Kiribati") $countryCode="KI";
if($countryString=="Comoros") $countryCode="KM";
if($countryString=="Saint Kitts and Nevis") $countryCode="KN";
if($countryString=="North Korea") $countryCode="KP";
if($countryString=="South Korea") $countryCode="KR";
if($countryString=="Kosovo") $countryCode="XK";
if($countryString=="Kuwait") $countryCode="KW";
if($countryString=="Cayman Islands") $countryCode="KY";
if($countryString=="Kazakhstan") $countryCode="KZ";
if($countryString=="Laos") $countryCode="LA";
if($countryString=="Lebanon") $countryCode="LB";
if($countryString=="Saint Lucia") $countryCode="LC";
if($countryString=="Liechtenstein") $countryCode="LI";
if($countryString=="Sri Lanka") $countryCode="LK";
if($countryString=="Liberia") $countryCode="LR";
if($countryString=="Lesotho") $countryCode="LS";
if($countryString=="Lithuania") $countryCode="LT";
if($countryString=="Luxembourg") $countryCode="LU";
if($countryString=="Latvia") $countryCode="LV";
if($countryString=="Libya") $countryCode="LY";
if($countryString=="Morocco") $countryCode="MA";
if($countryString=="Monaco") $countryCode="MC";
if($countryString=="Moldova") $countryCode="MD";
if($countryString=="Montenegro") $countryCode="ME";
if($countryString=="Saint Martin") $countryCode="MF";
if($countryString=="Madagascar") $countryCode="MG";
if($countryString=="Marshall Islands") $countryCode="MH";
if($countryString=="Macedonia") $countryCode="MK";
if($countryString=="Mali") $countryCode="ML";
if($countryString=="Myanmar") $countryCode="MM";
if($countryString=="Mongolia") $countryCode="MN";
if($countryString=="Macao") $countryCode="MO";
if($countryString=="Northern Mariana Islands") $countryCode="MP";
if($countryString=="Martinique") $countryCode="MQ";
if($countryString=="Mauritania") $countryCode="MR";
if($countryString=="Montserrat") $countryCode="MS";
if($countryString=="Malta") $countryCode="MT";
if($countryString=="Mauritius") $countryCode="MU";
if($countryString=="Maldives") $countryCode="MV";
if($countryString=="Malawi") $countryCode="MW";
if($countryString=="Mexico") $countryCode="MX";
if($countryString=="Malaysia") $countryCode="MY";
if($countryString=="Mozambique") $countryCode="MZ";
if($countryString=="Namibia") $countryCode="NA";
if($countryString=="New Caledonia") $countryCode="NC";
if($countryString=="Niger") $countryCode="NE";
if($countryString=="Norfolk Island") $countryCode="NF";
if($countryString=="Nigeria") $countryCode="NG";
if($countryString=="Nicaragua") $countryCode="NI";
if($countryString=="Netherlands") $countryCode="NL";
if($countryString=="Norway") $countryCode="NO";
if($countryString=="Nepal") $countryCode="NP";
if($countryString=="Nauru") $countryCode="NR";
if($countryString=="Niue") $countryCode="NU";
if($countryString=="New Zealand") $countryCode="NZ";
if($countryString=="Oman") $countryCode="OM";
if($countryString=="Panama") $countryCode="PA";
if($countryString=="Peru") $countryCode="PE";
if($countryString=="French Polynesia") $countryCode="PF";
if($countryString=="Papua New Guinea") $countryCode="PG";
if($countryString=="Philippines") $countryCode="PH";
if($countryString=="Pakistan") $countryCode="PK";
if($countryString=="Poland") $countryCode="PL";
if($countryString=="Saint Pierre and Miquelon") $countryCode="PM";
if($countryString=="Pitcairn") $countryCode="PN";
if($countryString=="Puerto Rico") $countryCode="PR";
if($countryString=="Palestinian Territory") $countryCode="PS";
if($countryString=="Portugal") $countryCode="PT";
if($countryString=="Palau") $countryCode="PW";
if($countryString=="Paraguay") $countryCode="PY";
if($countryString=="Qatar") $countryCode="QA";
if($countryString=="Reunion") $countryCode="RE";
if($countryString=="Romania") $countryCode="RO";
if($countryString=="Serbia") $countryCode="RS";
if($countryString=="Russia") $countryCode="RU";
if($countryString=="Rwanda") $countryCode="RW";
if($countryString=="Saudi Arabia") $countryCode="SA";
if($countryString=="Solomon Islands") $countryCode="SB";
if($countryString=="Seychelles") $countryCode="SC";
if($countryString=="Sudan") $countryCode="SD";
if($countryString=="South Sudan") $countryCode="SS";
if($countryString=="Sweden") $countryCode="SE";
if($countryString=="Singapore") $countryCode="SG";
if($countryString=="Saint Helena") $countryCode="SH";
if($countryString=="Slovenia") $countryCode="SI";
if($countryString=="Svalbard and Jan Mayen") $countryCode="SJ";
if($countryString=="Slovakia") $countryCode="SK";
if($countryString=="Sierra Leone") $countryCode="SL";
if($countryString=="San Marino") $countryCode="SM";
if($countryString=="Senegal") $countryCode="SN";
if($countryString=="Somalia") $countryCode="SO";
if($countryString=="Suriname") $countryCode="SR";
if($countryString=="Sao Tome and Principe") $countryCode="ST";
if($countryString=="El Salvador") $countryCode="SV";
if($countryString=="Sint Maarten") $countryCode="SX";
if($countryString=="Syria") $countryCode="SY";
if($countryString=="Swaziland") $countryCode="SZ";
if($countryString=="Turks and Caicos Islands") $countryCode="TC";
if($countryString=="Chad") $countryCode="TD";
if($countryString=="French Southern Territories") $countryCode="TF";
if($countryString=="Togo") $countryCode="TG";
if($countryString=="Thailand") $countryCode="TH";
if($countryString=="Tajikistan") $countryCode="TJ";
if($countryString=="Tokelau") $countryCode="TK";
if($countryString=="East Timor") $countryCode="TL";
if($countryString=="Turkmenistan") $countryCode="TM";
if($countryString=="Tunisia") $countryCode="TN";
if($countryString=="Tonga") $countryCode="TO";
if($countryString=="Turkey") $countryCode="TR";
if($countryString=="Trinidad and Tobago") $countryCode="TT";
if($countryString=="Tuvalu") $countryCode="TV";
if($countryString=="Taiwan") $countryCode="TW";
if($countryString=="Tanzania") $countryCode="TZ";
if($countryString=="Ukraine") $countryCode="UA";
if($countryString=="Uganda") $countryCode="UG";
if($countryString=="United States Minor Outlying Islands") $countryCode="UM";
if($countryString=="United States") $countryCode="US";
if($countryString=="Uruguay") $countryCode="UY";
if($countryString=="Uzbekistan") $countryCode="UZ";
if($countryString=="Vatican") $countryCode="VA";
if($countryString=="Saint Vincent and the Grenadines") $countryCode="VC";
if($countryString=="Venezuela") $countryCode="VE";
if($countryString=="British Virgin Islands") $countryCode="VG";
if($countryString=="U.S. Virgin Islands") $countryCode="VI";
if($countryString=="Vietnam") $countryCode="VN";
if($countryString=="Vanuatu") $countryCode="VU";
if($countryString=="Wallis and Futuna") $countryCode="WF";
if($countryString=="Samoa") $countryCode="WS";
if($countryString=="Yemen") $countryCode="YE";
if($countryString=="Mayotte") $countryCode="YT";
if($countryString=="South Africa") $countryCode="ZA";
if($countryString=="Zambia") $countryCode="ZM";
if($countryString=="Zimbabwe") $countryCode="ZW";
if($countryString=="Serbia and Montenegro") $countryCode="CS";
if($countryString=="Netherlands Antilles") $countryCode="AN";
return $countryCode;
}