<?php
if(!isset($_GET['day'])) {
$countries_day = countries_day(date("d.m.Y",time()));
}
if(isset($_GET['day'])) {
$countries_day = countries_day($_GET['day']);
}
$countries = array('Afghanistan', 'Aland Islands', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua And Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia And Herzegovina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Congo, Democratic Republic', 'Cook Islands', 'Costa Rica', 'Cote D\'Ivoire', 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Falkland Islands (Malvinas)', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories', 'Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island & Mcdonald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran, Islamic Republic Of', 'Iraq', 'Ireland', 'Isle Of Man', 'Israel', 'Italy', 'Jamaica', 'Japan', 'Jersey', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea', 'Kosovo', 'Kuwait', 'Kyrgyzstan', 'Lao People\'s Democratic Republic', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macao', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States Of', 'Moldova', 'Monaco', 'Mongolia', 'Montenegro', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Palestinian Territory, Occupied', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint Barthelemy', 'Saint Helena', 'Saint Kitts And Nevis', 'Saint Lucia', 'Saint Martin', 'Saint Pierre And Miquelon', 'Saint Vincent And Grenadines', 'Samoa', 'San Marino', 'Sao Tome And Principe', 'Saudi Arabia', 'Senegal', 'Serbia', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia And Sandwich Isl.', 'Spain', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard And Jan Mayen', 'Swaziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad And Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks And Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'United States Outlying Islands', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Vatican City', 'Venezuela', 'Viet Nam', 'Virgin Islands', 'Virgin Islands, U.S.', 'Wallis And Futuna', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe');
foreach($countries AS $name) {
if(!isset($countries_day[$name])) {
$countries_day[$name] = 0;
}
}
$continents = array("Europe"=>intval($countries_day["Albania"]+$countries_day["Andorra"]+$countries_day["Austria"]+$countries_day["Azerbaijan"]+$countries_day["Belarus"]+$countries_day["Belgium"]+$countries_day["Bosnia And Herzegovina"]+$countries_day["Bulgaria"]+$countries_day["Croatia"]+$countries_day["Czech Republic"]+$countries_day["Denmark"]+$countries_day["Estonia"]+$countries_day["Finland"]+$countries_day["France"]+$countries_day["Georgia"]+$countries_day["Germany"]+$countries_day["Greece"]+$countries_day["Hungary"]+$countries_day["Iceland"]+$countries_day["Ireland"]+$countries_day["Italy"]+$countries_day["Kazakhstan"]+$countries_day["Kosovo"]+$countries_day["Latvia"]+$countries_day["Liechtenstein"]+$countries_day["Lithuania"]+$countries_day["Luxembourg"]+$countries_day["Macedonia"]+$countries_day["Malta"]+$countries_day["Moldova"]+$countries_day["Monaco"]+$countries_day["Montenegro"]+$countries_day["Netherlands"]+$countries_day["Norway"]+$countries_day["Poland"]+$countries_day["Portugal"]+$countries_day["Romania"]+$countries_day["Russian Federation"]+$countries_day["San Marino"]+$countries_day["Serbia"]+$countries_day["Slovakia"]+$countries_day["Slovenia"]+$countries_day["Spain"]+$countries_day["Sweden"]+$countries_day["Switzerland"]+$countries_day["Turkey"]+$countries_day["Ukraine"]+$countries_day["United Kingdom"]+$countries_day["Vatican City"]),
"North America"=>intval($countries_day["Anguilla"]+$countries_day["Antigua And Barbuda"]+$countries_day["Aruba"]+$countries_day["Bahamas"]+$countries_day["Barbados"]+$countries_day["Belize"]+$countries_day["Bermuda"]+$countries_day["Virgin Islands"]+$countries_day["Canada"]+$countries_day["Cayman Islands"]+$countries_day["Costa Rica"]+$countries_day["Cuba"]+$countries_day["Dominica"]+$countries_day["Dominican Republic"]+$countries_day["El Salvador"]+$countries_day["Greenland"]+$countries_day["Guadeloupe"]+$countries_day["Guatemala"]+$countries_day["Haiti"]+$countries_day["Honduras"]+$countries_day["Jamaica"]+$countries_day["Martinique"]+$countries_day["Mexico"]+$countries_day["Montserrat"]+$countries_day["Nicaragua"]+$countries_day["Panama"]+$countries_day["Puerto Rico"]+$countries_day["Saint Barthelemy"]+$countries_day["Saint Kitts And Nevis"]+$countries_day["Saint Lucia"]+$countries_day["Saint Martin"]+$countries_day["Saint Pierre And Miquelon"]+$countries_day["Saint Vincent And Grenadines"]+$countries_day["Trinidad And Tobago"]+$countries_day["Turks And Caicos Islands"]+$countries_day["United States"]+$countries_day['United States Outlying Islands']),
"South America"=>intval($countries_day["Argentina"]+$countries_day["Bolivia"]+$countries_day["Brazil"]+$countries_day["Chile"]+$countries_day["Colombia"]+$countries_day["Ecuador"]+$countries_day["Falkland Islands (Malvinas)"]+$countries_day["French Guiana"]+$countries_day["Guyana"]+$countries_day["Paraguay"]+$countries_day["Peru"]+$countries_day["Suriname"]+$countries_day["Uruguay"]+$countries_day["Venezuela"]),
"Asia"=>intval($countries_day["Afghanistan"]+$countries_day["Armenia"]+$countries_day["Azerbaijan"]+$countries_day["Bahrain"]+$countries_day["Bangladesh"]+$countries_day["Bhutan"]+$countries_day["Brunei"]+$countries_day["Cambodia"]+$countries_day["China"]+$countries_day["Cyprus"]+$countries_day["Georgia"]+$countries_day["India"]+$countries_day["Indonesia"]+$countries_day["Iran"]+$countries_day["Iraq"]+$countries_day["Israel"]+$countries_day["Japan"]+$countries_day["Jordan"]+$countries_day["Kazakhstan"]+$countries_day["Kuwait"]+$countries_day["Kyrgyzstan"]+$countries_day["Laos"]+$countries_day["Lebanon"]+$countries_day["Malaysia"]+$countries_day["Maldives"]+$countries_day["Mongolia"]+$countries_day["Myanmar"]+$countries_day["Nepal"]+$countries_day["North Korea"]+$countries_day["Oman"]+$countries_day["Pakistan"]+$countries_day["Palestine"]+$countries_day["Philippines"]+$countries_day["Qatar"]+$countries_day["Russian Federation"]+$countries_day["Saudi Arabia"]+$countries_day["Singapore"]+$countries_day["South Korea"]+$countries_day["Sri Lanka"]+$countries_day["Syria"]+$countries_day["Taiwan"]+$countries_day["Tajikstan"]+$countries_day["Thailand"]+$countries_day["Timor-Leste"]+$countries_day["Turkey"]+$countries_day["Turkmenistan"]+$countries_day["United Arab Emirates"]+$countries_day["Uzbekistan"]+$countries_day["Vietnam"]+$countries_day["Yemen"]),
"Australia and Oceania"=>intval($countries_day["Australia"]+$countries_day["Fijii"]+$countries_day["Kiribati"]+$countries_day["Marshall Islands"]+$countries_day["Micronesia"]+$countries_day["Nauru"]+$countries_day["New Zealand"]+$countries_day["Palau"]+$countries_day["Papua New Guinea"]+$countries_day["Samoa"]+$countries_day["Solomon Islands"]+$countries_day["Tonga"]+$countries_day["Tuvalu"]+$countries_day["Vanuatu"]),
"Africa"=>intval($countries_day['Algeria']+$countries_day['Angola']+$countries_day['Benin']+$countries_day['Botswana']+$countries_day['Burkina Faso']+$countries_day['Burundi']+$countries_day['Cabo Verde']+$countries_day['Cameroon']+$countries_day['Central African Republic (CAR)']+$countries_day['Chad']+$countries_day['Comoros']+$countries_day['Democratic Republic of the Congo']+$countries_day['Republic of the Congo']+$countries_day["Cote d'Ivoire"]+$countries_day['Djibouti']+$countries_day['Egypt']+$countries_day['Equatorial Guinea']+$countries_day['Eritrea']+$countries_day['Eswatini']+$countries_day['Ethiopia']+$countries_day['Gabon']+$countries_day['Gambia']+$countries_day['Ghana']+$countries_day['Guinea']+$countries_day['Guinea-Bissau']+$countries_day['Kenya']+$countries_day['Lesotho']+$countries_day['Liberia']+$countries_day['Libya']+$countries_day['Madagascar']+$countries_day['Malawi']+$countries_day['Mali']+$countries_day['Mauritania']+$countries_day['Mauritius']+$countries_day['Morocco']+$countries_day['Mozambique']+$countries_day['Namibia']+$countries_day['Niger']+$countries_day['Nigeria']+$countries_day['Rwanda']+$countries_day['Sao Tome and Principe']+$countries_day['Senegal']+$countries_day['Seychelles']+$countries_day['Sierra Leone']+$countries_day['Somalia']+$countries_day['South Africa']+$countries_day['South Sudan']+$countries_day['Sudan']+$countries_day['Swaziland']+$countries_day['Tanzania']+$countries_day['Togo']+$countries_day['Tunisia']+$countries_day['Uganda']+$countries_day['Zambia']+$countries_day['Zimbabwe']));
?>