sanctions enablement

This commit is contained in:
Josh North 2021-04-30 14:30:10 -04:00
parent 6315514775
commit 7e2c25e46f
7 changed files with 285 additions and 254 deletions

View File

@ -53,253 +53,254 @@ CREATE TABLE `lsio_countries` (
`id` varchar(3) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`continent` varchar(50) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`priority` int UNSIGNED
`priority` int UNSIGNED,
`ban` int UNSIGNED
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
INSERT INTO `lsio_countries` (`id`, `name`, `continent`, `priority`) VALUES
('FR', 'France', 'Europe','1'),
('US', 'United States', 'North America','1'),
('CN', 'China', 'Asia','1'),
('ES', 'Spain', 'Europe','1'),
('IT', 'Italy', 'Europe','1'),
('TR', 'Turkey', 'Asia','1'),
('GB', 'United Kingdom', 'Europe','1'),
('DE', 'Germany', 'Europe','1'),
('RU', 'Russian Federation', 'Europe','1'),
('MY', 'Malaysia', 'Asia','1'),
('AF', 'Afghanistan', 'Asia','9'),
('AX', 'Åland Islands', 'Europe','9'),
('AL', 'Albania', 'Europe','9'),
('DZ', 'Algeria', 'Africa','9'),
('AS', 'American Samoa', 'Oceania','9'),
('AD', 'Andorra', 'Europe','9'),
('AO', 'Angola', 'Africa','9'),
('AI', 'Anguilla', 'North America','9'),
('AQ', 'Antarctica', 'Antarctica','9'),
('AG', 'Antigua and Barbuda', 'North America','9'),
('AR', 'Argentina', 'South America','9'),
('AM', 'Armenia', 'Asia','9'),
('AW', 'Aruba', 'North America','9'),
('AU', 'Australia', 'Oceania','9'),
('AT', 'Austria', 'Europe','9'),
('AZ', 'Azerbaijan', 'Asia','9'),
('BS', 'Bahamas', 'North America','9'),
('BH', 'Bahrain', 'Asia','9'),
('BD', 'Bangladesh', 'Asia','9'),
('BB', 'Barbados', 'North America','9'),
('BY', 'Belarus', 'Europe','9'),
('BE', 'Belgium', 'Europe','1'),
('BZ', 'Belize', 'North America','9'),
('BJ', 'Benin', 'Africa','9'),
('BM', 'Bermuda', 'North America','9'),
('BT', 'Bhutan', 'Asia','9'),
('BO', 'Bolivia', 'South America','9'),
('BA', 'Bosnia and Herzegovina', 'Europe','9'),
('BW', 'Botswana', 'Africa','9'),
('BV', 'Bouvet Island', 'Antarctica','9'),
('BR', 'Brazil', 'South America','9'),
('IO', 'British Indian Ocean Territory', 'Asia','9'),
('BN', 'Brunei Darussalam', 'Asia','9'),
('BG', 'Bulgaria', 'Europe','9'),
('BF', 'Burkina Faso', 'Africa','9'),
('BI', 'Burundi', 'Africa','9'),
('KH', 'Cambodia', 'Asia','9'),
('CM', 'Cameroon', 'Africa','9'),
('CA', 'Canada', 'North America','1'),
('CV', 'Cape Verde', 'Africa','9'),
('KY', 'Cayman Islands', 'North America','9'),
('CF', 'Central African Republic', 'Africa','9'),
('TD', 'Chad', 'Africa','9'),
('CL', 'Chile', 'South America','9'),
('CX', 'Christmas Island', 'Asia','9'),
('CC', 'Cocos (Keeling] Islands', 'Asia','9'),
('CO', 'Colombia', 'South America','9'),
('KM', 'Comoros', 'Africa','9'),
('CG', 'Congo', 'Africa','9'),
('CD', 'The Democratic Republic of The Congo', 'Africa','9'),
('CK', 'Cook Islands', 'Oceania','9'),
('CR', 'Costa Rica', 'North America','9'),
('CI', 'Cote D`ivoire', 'Africa','9'),
('HR', 'Croatia', 'Europe','9'),
('CU', 'Cuba', 'North America','9'),
('CY', 'Cyprus', 'Asia','9'),
('CZ', 'Czech Republic', 'Europe','9'),
('DK', 'Denmark', 'Europe','9'),
('DJ', 'Djibouti', 'Africa','9'),
('DM', 'Dominica', 'North America','9'),
('DO', 'Dominican Republic', 'North America','9'),
('EC', 'Ecuador', 'South America','9'),
('EG', 'Egypt', 'Africa','9'),
('SV', 'El Salvador', 'North America','9'),
('GQ', 'Equatorial Guinea', 'Africa','9'),
('ER', 'Eritrea', 'Africa','9'),
('EE', 'Estonia', 'Europe','9'),
('ET', 'Ethiopia', 'Africa','9'),
('FK', 'Falkland Islands (Malvinas]', 'South America','9'),
('FO', 'Faroe Islands', 'Europe','9'),
('FJ', 'Fiji', 'Oceania','9'),
('FI', 'Finland', 'Europe','9'),
('GF', 'French Guiana', 'South America','9'),
('PF', 'French Polynesia', 'Oceania','9'),
('TF', 'French Southern Territories', 'Antarctica','9'),
('GA', 'Gabon', 'Africa','9'),
('GM', 'Gambia', 'Africa','9'),
('GE', 'Georgia', 'Asia','9'),
('GH', 'Ghana', 'Africa','9'),
('GI', 'Gibraltar', 'Europe','9'),
('GR', 'Greece', 'Europe','9'),
('GL', 'Greenland', 'North America','9'),
('GD', 'Grenada', 'North America','9'),
('GP', 'Guadeloupe', 'North America','9'),
('GU', 'Guam', 'Oceania','9'),
('GT', 'Guatemala', 'North America','9'),
('GG', 'Guernsey', 'Europe','9'),
('GN', 'Guinea', 'Africa','9'),
('GW', 'Guinea-bissau', 'Africa','9'),
('GY', 'Guyana', 'South America','9'),
('HT', 'Haiti', 'North America','9'),
('HM', 'Heard Island and Mcdonald Islands', 'Antarctica','9'),
('VA', 'Holy See (Vatican City State]', 'Europe','9'),
('HN', 'Honduras', 'North America','9'),
('HK', 'Hong Kong', 'Asia','9'),
('HU', 'Hungary', 'Europe','9'),
('IS', 'Iceland', 'Europe','9'),
('IN', 'India', 'Asia','9'),
('ID', 'Indonesia', 'Asia','9'),
('IR', 'Iran', 'Asia','9'),
('IQ', 'Iraq', 'Asia','9'),
('IE', 'Ireland', 'Europe','1'),
('IM', 'Isle of Man', 'Europe','9'),
('IL', 'Israel', 'Asia','9'),
('JM', 'Jamaica', 'North America','9'),
('JP', 'Japan', 'Asia','9'),
('JE', 'Jersey', 'Europe','9'),
('JO', 'Jordan', 'Asia','9'),
('KZ', 'Kazakhstan', 'Asia','9'),
('KE', 'Kenya', 'Africa','9'),
('KI', 'Kiribati', 'Oceania','9'),
('KP', 'Democratic People`s Republic of Korea', 'Asia','9'),
('KR', 'Republic of Korea', 'Asia','1'),
('KW', 'Kuwait', 'Asia','9'),
('KG', 'Kyrgyzstan', 'Asia','9'),
('LA', 'Lao People`s Democratic Republic', 'Asia','9'),
('LV', 'Latvia', 'Europe','9'),
('LB', 'Lebanon', 'Asia','9'),
('LS', 'Lesotho', 'Africa','9'),
('LR', 'Liberia', 'Africa','9'),
('LY', 'Libya', 'Africa','9'),
('LI', 'Liechtenstein', 'Europe','9'),
('LT', 'Lithuania', 'Europe','9'),
('LU', 'Luxembourg', 'Europe','9'),
('MO', 'Macao', 'Asia','9'),
('MK', 'Macedonia', 'Europe','9'),
('MG', 'Madagascar', 'Africa','9'),
('MW', 'Malawi', 'Africa','9'),
('MV', 'Maldives', 'Asia','9'),
('ML', 'Mali', 'Africa','9'),
('MT', 'Malta', 'Europe','9'),
('MH', 'Marshall Islands', 'Oceania','9'),
('MQ', 'Martinique', 'North America','9'),
('MR', 'Mauritania', 'Africa','9'),
('MU', 'Mauritius', 'Africa','9'),
('YT', 'Mayotte', 'Africa','9'),
('MX', 'Mexico', 'North America','9'),
('FM', 'Micronesia', 'Oceania','9'),
('MD', 'Moldova', 'Europe','9'),
('MC', 'Monaco', 'Europe','9'),
('MN', 'Mongolia', 'Asia','9'),
('ME', 'Montenegro', 'Europe','9'),
('MS', 'Montserrat', 'North America','9'),
('MA', 'Morocco', 'Africa','9'),
('MZ', 'Mozambique', 'Africa','9'),
('MM', 'Myanmar', 'Asia','9'),
('NA', 'Namibia', 'Africa','9'),
('NR', 'Nauru', 'Oceania','9'),
('NP', 'Nepal', 'Asia','9'),
('NL', 'Netherlands', 'Europe','9'),
('AN', 'Netherlands Antilles', 'North America','9'),
('NC', 'New Caledonia', 'Oceania','9'),
('NZ', 'New Zealand', 'Oceania','9'),
('NI', 'Nicaragua', 'North America','9'),
('NE', 'Niger', 'Africa','9'),
('NG', 'Nigeria', 'Africa','9'),
('NU', 'Niue', 'Oceania','9'),
('NF', 'Norfolk Island', 'Oceania','9'),
('MP', 'Northern Mariana Islands', 'Oceania','9'),
('NO', 'Norway', 'Europe','9'),
('OM', 'Oman', 'Asia','9'),
('PK', 'Pakistan', 'Asia','9'),
('PW', 'Palau', 'Oceania','9'),
('PS', 'Palestinia', 'Asia','9'),
('PA', 'Panama', 'North America','9'),
('PG', 'Papua New Guinea', 'Oceania','9'),
('PY', 'Paraguay', 'South America','9'),
('PE', 'Peru', 'South America','9'),
('PH', 'Philippines', 'Asia','9'),
('PN', 'Pitcairn', 'Oceania','9'),
('PL', 'Poland', 'Europe','9'),
('PT', 'Portugal', 'Europe','9'),
('PR', 'Puerto Rico', 'North America','9'),
('QA', 'Qatar', 'Asia','9'),
('RE', 'Reunion', 'Africa','9'),
('RO', 'Romania', 'Europe','9'),
('RW', 'Rwanda', 'Africa','9'),
('SH', 'Saint Helena', 'Africa','9'),
('KN', 'Saint Kitts and Nevis', 'North America','9'),
('LC', 'Saint Lucia', 'North America','9'),
('PM', 'Saint Pierre and Miquelon', 'North America','9'),
('VC', 'Saint Vincent and The Grenadines', 'North America','9'),
('WS', 'Samoa', 'Oceania','9'),
('SM', 'San Marino', 'Europe','9'),
('ST', 'Sao Tome and Principe', 'Africa','9'),
('SA', 'Saudi Arabia', 'Asia','9'),
('SN', 'Senegal', 'Africa','9'),
('RS', 'Serbia', 'Europe','9'),
('SC', 'Seychelles', 'Africa','9'),
('SL', 'Sierra Leone', 'Africa','9'),
('SG', 'Singapore', 'Asia','9'),
('SK', 'Slovakia', 'Europe','9'),
('SI', 'Slovenia', 'Europe','9'),
('SB', 'Solomon Islands', 'Oceania','9'),
('SO', 'Somalia', 'Africa','9'),
('ZA', 'South Africa', 'Africa','9'),
('GS', 'South Georgia and The South Sandwich Islands', 'Antarctica','9'),
('LK', 'Sri Lanka', 'Asia','9'),
('SD', 'Sudan', 'Africa','9'),
('SR', 'Suriname', 'South America','9'),
('SJ', 'Svalbard and Jan Mayen', 'Europe','9'),
('SZ', 'Swaziland', 'Africa','9'),
('SE', 'Sweden', 'Europe','9'),
('CH', 'Switzerland', 'Europe','9'),
('SY', 'Syrian Arab Republic', 'Asia','9'),
('TW', 'Taiwan, Province of China', 'Asia','9'),
('TJ', 'Tajikistan', 'Asia','9'),
('TZ', 'Tanzania, United Republic of', 'Africa','9'),
('TH', 'Thailand', 'Asia','9'),
('TL', 'Timor-leste', 'Asia','9'),
('TG', 'Togo', 'Africa','9'),
('TK', 'Tokelau', 'Oceania','9'),
('TO', 'Tonga', 'Oceania','9'),
('TT', 'Trinidad and Tobago', 'North America','9'),
('TN', 'Tunisia', 'Africa','9'),
('TM', 'Turkmenistan', 'Asia','9'),
('TC', 'Turks and Caicos Islands', 'North America','9'),
('TV', 'Tuvalu', 'Oceania','9'),
('UG', 'Uganda', 'Africa','9'),
('UA', 'Ukraine', 'Europe','9'),
('AE', 'United Arab Emirates', 'Asia','9'),
('UM', 'United States Minor Outlying Islands', 'Oceania','9'),
('UY', 'Uruguay', 'South America','9'),
('UZ', 'Uzbekistan', 'Asia','9'),
('VU', 'Vanuatu', 'Oceania','9'),
('VE', 'Venezuela', 'South America','9'),
('VN', 'Viet Nam', 'Asia','9'),
('VG', 'Virgin Islands, British', 'North America','9'),
('VI', 'Virgin Islands, U.S.', 'North America','9'),
('WF', 'Wallis and Futuna', 'Oceania','9'),
('EH', 'Western Sahara', 'Africa','9'),
('YE', 'Yemen', 'Asia','9'),
('ZM', 'Zambia', 'Africa','9'),
('ZW', 'Zimbabwe', 'Africa', '9');
INSERT INTO `lsio_countries` (`id`, `name`, `continent`, `priority`, `ban`) VALUES
('FR', 'France', 'Europe','1','0'),
('US', 'United States', 'North America','1','0'),
('CN', 'China', 'Asia','1','0'),
('ES', 'Spain', 'Europe','1','0'),
('IT', 'Italy', 'Europe','1','0'),
('TR', 'Turkey', 'Asia','1','0'),
('GB', 'United Kingdom', 'Europe','1','0'),
('DE', 'Germany', 'Europe','1','0'),
('RU', 'Russian Federation', 'Europe','1','0'),
('MY', 'Malaysia', 'Asia','1','0'),
('AF', 'Afghanistan', 'Asia','9','0'),
('AX', 'Åland Islands', 'Europe','9','0'),
('AL', 'Albania', 'Europe','9','0'),
('DZ', 'Algeria', 'Africa','9','0'),
('AS', 'American Samoa', 'Oceania','9','0'),
('AD', 'Andorra', 'Europe','9','0'),
('AO', 'Angola', 'Africa','9','0'),
('AI', 'Anguilla', 'North America','9','0'),
('AQ', 'Antarctica', 'Antarctica','9','0'),
('AG', 'Antigua and Barbuda', 'North America','9','0'),
('AR', 'Argentina', 'South America','9','0'),
('AM', 'Armenia', 'Asia','9','0'),
('AW', 'Aruba', 'North America','9','0'),
('AU', 'Australia', 'Oceania','9','0'),
('AT', 'Austria', 'Europe','9','0'),
('AZ', 'Azerbaijan', 'Asia','9','0'),
('BS', 'Bahamas', 'North America','9','0'),
('BH', 'Bahrain', 'Asia','9','0'),
('BD', 'Bangladesh', 'Asia','9','0'),
('BB', 'Barbados', 'North America','9','0'),
('BY', 'Belarus', 'Europe','9','0'),
('BE', 'Belgium', 'Europe','1','0'),
('BZ', 'Belize', 'North America','9','0'),
('BJ', 'Benin', 'Africa','9','0'),
('BM', 'Bermuda', 'North America','9','0'),
('BT', 'Bhutan', 'Asia','9','0'),
('BO', 'Bolivia', 'South America','9','0'),
('BA', 'Bosnia and Herzegovina', 'Europe','9','0'),
('BW', 'Botswana', 'Africa','9','0'),
('BV', 'Bouvet Island', 'Antarctica','9','0'),
('BR', 'Brazil', 'South America','9','0'),
('IO', 'British Indian Ocean Territory', 'Asia','9','0'),
('BN', 'Brunei Darussalam', 'Asia','9','0'),
('BG', 'Bulgaria', 'Europe','9','0'),
('BF', 'Burkina Faso', 'Africa','9','0'),
('BI', 'Burundi', 'Africa','9','0'),
('KH', 'Cambodia', 'Asia','9','0'),
('CM', 'Cameroon', 'Africa','9','0'),
('CA', 'Canada', 'North America','1','0'),
('CV', 'Cape Verde', 'Africa','9','0'),
('KY', 'Cayman Islands', 'North America','9','0'),
('CF', 'Central African Republic', 'Africa','9','0'),
('TD', 'Chad', 'Africa','9','0'),
('CL', 'Chile', 'South America','9','0'),
('CX', 'Christmas Island', 'Asia','9','0'),
('CC', 'Cocos (Keeling] Islands', 'Asia','9','0'),
('CO', 'Colombia', 'South America','9','0'),
('KM', 'Comoros', 'Africa','9','0'),
('CG', 'Congo', 'Africa','9','0'),
('CD', 'The Democratic Republic of The Congo', 'Africa','9','0'),
('CK', 'Cook Islands', 'Oceania','9','0'),
('CR', 'Costa Rica', 'North America','9','0'),
('CI', 'Cote D`ivoire', 'Africa','9','0'),
('HR', 'Croatia', 'Europe','9','0'),
('CU', 'Cuba', 'North America','9','0'),
('CY', 'Cyprus', 'Asia','9','0'),
('CZ', 'Czech Republic', 'Europe','9','0'),
('DK', 'Denmark', 'Europe','9','0'),
('DJ', 'Djibouti', 'Africa','9','0'),
('DM', 'Dominica', 'North America','9','0'),
('DO', 'Dominican Republic', 'North America','9','0'),
('EC', 'Ecuador', 'South America','9','0'),
('EG', 'Egypt', 'Africa','9','0'),
('SV', 'El Salvador', 'North America','9','0'),
('GQ', 'Equatorial Guinea', 'Africa','9','0'),
('ER', 'Eritrea', 'Africa','9','0'),
('EE', 'Estonia', 'Europe','9','0'),
('ET', 'Ethiopia', 'Africa','9','0'),
('FK', 'Falkland Islands (Malvinas]', 'South America','9','0'),
('FO', 'Faroe Islands', 'Europe','9','0'),
('FJ', 'Fiji', 'Oceania','9','0'),
('FI', 'Finland', 'Europe','9','0'),
('GF', 'French Guiana', 'South America','9','0'),
('PF', 'French Polynesia', 'Oceania','9','0'),
('TF', 'French Southern Territories', 'Antarctica','9','0'),
('GA', 'Gabon', 'Africa','9','0'),
('GM', 'Gambia', 'Africa','9','0'),
('GE', 'Georgia', 'Asia','9','0'),
('GH', 'Ghana', 'Africa','9','0'),
('GI', 'Gibraltar', 'Europe','9','0'),
('GR', 'Greece', 'Europe','9','0'),
('GL', 'Greenland', 'North America','9','0'),
('GD', 'Grenada', 'North America','9','0'),
('GP', 'Guadeloupe', 'North America','9','0'),
('GU', 'Guam', 'Oceania','9','0'),
('GT', 'Guatemala', 'North America','9','0'),
('GG', 'Guernsey', 'Europe','9','0'),
('GN', 'Guinea', 'Africa','9','0'),
('GW', 'Guinea-bissau', 'Africa','9','0'),
('GY', 'Guyana', 'South America','9','0'),
('HT', 'Haiti', 'North America','9','0'),
('HM', 'Heard Island and Mcdonald Islands', 'Antarctica','9','0'),
('VA', 'Holy See (Vatican City State]', 'Europe','9','0'),
('HN', 'Honduras', 'North America','9','0'),
('HK', 'Hong Kong', 'Asia','9','0'),
('HU', 'Hungary', 'Europe','9','0'),
('IS', 'Iceland', 'Europe','9','0'),
('IN', 'India', 'Asia','9','0'),
('ID', 'Indonesia', 'Asia','9','0'),
('IR', 'Iran', 'Asia','9','0'),
('IQ', 'Iraq', 'Asia','9','0'),
('IE', 'Ireland', 'Europe','1','0'),
('IM', 'Isle of Man', 'Europe','9','0'),
('IL', 'Israel', 'Asia','9','0'),
('JM', 'Jamaica', 'North America','9','0'),
('JP', 'Japan', 'Asia','9','0'),
('JE', 'Jersey', 'Europe','9','0'),
('JO', 'Jordan', 'Asia','9','0'),
('KZ', 'Kazakhstan', 'Asia','9','0'),
('KE', 'Kenya', 'Africa','9','0'),
('KI', 'Kiribati', 'Oceania','9','0'),
('KP', 'Democratic People`s Republic of Korea', 'Asia','9','0'),
('KR', 'Republic of Korea', 'Asia','1','0'),
('KW', 'Kuwait', 'Asia','9','0'),
('KG', 'Kyrgyzstan', 'Asia','9','0'),
('LA', 'Lao People`s Democratic Republic', 'Asia','9','0'),
('LV', 'Latvia', 'Europe','9','0'),
('LB', 'Lebanon', 'Asia','9','0'),
('LS', 'Lesotho', 'Africa','9','0'),
('LR', 'Liberia', 'Africa','9','0'),
('LY', 'Libya', 'Africa','9','0'),
('LI', 'Liechtenstein', 'Europe','9','0'),
('LT', 'Lithuania', 'Europe','9','0'),
('LU', 'Luxembourg', 'Europe','9','0'),
('MO', 'Macao', 'Asia','9','0'),
('MK', 'Macedonia', 'Europe','9','0'),
('MG', 'Madagascar', 'Africa','9','0'),
('MW', 'Malawi', 'Africa','9','0'),
('MV', 'Maldives', 'Asia','9','0'),
('ML', 'Mali', 'Africa','9','0'),
('MT', 'Malta', 'Europe','9','0'),
('MH', 'Marshall Islands', 'Oceania','9','0'),
('MQ', 'Martinique', 'North America','9','0'),
('MR', 'Mauritania', 'Africa','9','0'),
('MU', 'Mauritius', 'Africa','9','0'),
('YT', 'Mayotte', 'Africa','9','0'),
('MX', 'Mexico', 'North America','9','0'),
('FM', 'Micronesia', 'Oceania','9','0'),
('MD', 'Moldova', 'Europe','9','0'),
('MC', 'Monaco', 'Europe','9','0'),
('MN', 'Mongolia', 'Asia','9','0'),
('ME', 'Montenegro', 'Europe','9','0'),
('MS', 'Montserrat', 'North America','9','0'),
('MA', 'Morocco', 'Africa','9','0'),
('MZ', 'Mozambique', 'Africa','9','0'),
('MM', 'Myanmar', 'Asia','9','0'),
('NA', 'Namibia', 'Africa','9','0'),
('NR', 'Nauru', 'Oceania','9','0'),
('NP', 'Nepal', 'Asia','9','0'),
('NL', 'Netherlands', 'Europe','9','0'),
('AN', 'Netherlands Antilles', 'North America','9','0'),
('NC', 'New Caledonia', 'Oceania','9','0'),
('NZ', 'New Zealand', 'Oceania','9','0'),
('NI', 'Nicaragua', 'North America','9','0'),
('NE', 'Niger', 'Africa','9','0'),
('NG', 'Nigeria', 'Africa','9','0'),
('NU', 'Niue', 'Oceania','9','0'),
('NF', 'Norfolk Island', 'Oceania','9','0'),
('MP', 'Northern Mariana Islands', 'Oceania','9','0'),
('NO', 'Norway', 'Europe','9','0'),
('OM', 'Oman', 'Asia','9','0'),
('PK', 'Pakistan', 'Asia','9','0'),
('PW', 'Palau', 'Oceania','9','0'),
('PS', 'Palestinia', 'Asia','9','0'),
('PA', 'Panama', 'North America','9','0'),
('PG', 'Papua New Guinea', 'Oceania','9','0'),
('PY', 'Paraguay', 'South America','9','0'),
('PE', 'Peru', 'South America','9','0'),
('PH', 'Philippines', 'Asia','9','0'),
('PN', 'Pitcairn', 'Oceania','9','0'),
('PL', 'Poland', 'Europe','9','0'),
('PT', 'Portugal', 'Europe','9','0'),
('PR', 'Puerto Rico', 'North America','9','0'),
('QA', 'Qatar', 'Asia','9','0'),
('RE', 'Reunion', 'Africa','9','0'),
('RO', 'Romania', 'Europe','9','0'),
('RW', 'Rwanda', 'Africa','9','0'),
('SH', 'Saint Helena', 'Africa','9','0'),
('KN', 'Saint Kitts and Nevis', 'North America','9','0'),
('LC', 'Saint Lucia', 'North America','9','0'),
('PM', 'Saint Pierre and Miquelon', 'North America','9','0'),
('VC', 'Saint Vincent and The Grenadines', 'North America','9','0'),
('WS', 'Samoa', 'Oceania','9','0'),
('SM', 'San Marino', 'Europe','9','0'),
('ST', 'Sao Tome and Principe', 'Africa','9','0'),
('SA', 'Saudi Arabia', 'Asia','9','0'),
('SN', 'Senegal', 'Africa','9','0'),
('RS', 'Serbia', 'Europe','9','0'),
('SC', 'Seychelles', 'Africa','9','0'),
('SL', 'Sierra Leone', 'Africa','9','0'),
('SG', 'Singapore', 'Asia','9','0'),
('SK', 'Slovakia', 'Europe','9','0'),
('SI', 'Slovenia', 'Europe','9','0'),
('SB', 'Solomon Islands', 'Oceania','9','0'),
('SO', 'Somalia', 'Africa','9','0'),
('ZA', 'South Africa', 'Africa','9','0'),
('GS', 'South Georgia and The South Sandwich Islands', 'Antarctica','9','0'),
('LK', 'Sri Lanka', 'Asia','9','0'),
('SD', 'Sudan', 'Africa','9','0'),
('SR', 'Suriname', 'South America','9','0'),
('SJ', 'Svalbard and Jan Mayen', 'Europe','9','0'),
('SZ', 'Swaziland', 'Africa','9','0'),
('SE', 'Sweden', 'Europe','9','0'),
('CH', 'Switzerland', 'Europe','9','0'),
('SY', 'Syrian Arab Republic', 'Asia','9','0'),
('TW', 'Taiwan, Province of China', 'Asia','9','0'),
('TJ', 'Tajikistan', 'Asia','9','0'),
('TZ', 'Tanzania, United Republic of', 'Africa','9','0'),
('TH', 'Thailand', 'Asia','9','0'),
('TL', 'Timor-leste', 'Asia','9','0'),
('TG', 'Togo', 'Africa','9','0'),
('TK', 'Tokelau', 'Oceania','9','0'),
('TO', 'Tonga', 'Oceania','9','0'),
('TT', 'Trinidad and Tobago', 'North America','9','0'),
('TN', 'Tunisia', 'Africa','9','0'),
('TM', 'Turkmenistan', 'Asia','9','0'),
('TC', 'Turks and Caicos Islands', 'North America','9','0'),
('TV', 'Tuvalu', 'Oceania','9','0'),
('UG', 'Uganda', 'Africa','9','0'),
('UA', 'Ukraine', 'Europe','9','0'),
('AE', 'United Arab Emirates', 'Asia','9','0'),
('UM', 'United States Minor Outlying Islands', 'Oceania','9','0'),
('UY', 'Uruguay', 'South America','9','0'),
('UZ', 'Uzbekistan', 'Asia','9','0'),
('VU', 'Vanuatu', 'Oceania','9','0'),
('VE', 'Venezuela', 'South America','9','0'),
('VN', 'Viet Nam', 'Asia','9','0'),
('VG', 'Virgin Islands, British', 'North America','9','0'),
('VI', 'Virgin Islands, U.S.', 'North America','9','0'),
('WF', 'Wallis and Futuna', 'Oceania','9','0'),
('EH', 'Western Sahara', 'Africa','9','0'),
('YE', 'Yemen', 'Asia','9','0'),
('ZM', 'Zambia', 'Africa','9','0'),
('ZW', 'Zimbabwe', 'Africa', '9','0');
-- --------------------------------------------------------
DROP TABLE IF EXISTS `lsio_users`;
CREATE TABLE `lsio_users` (

View File

@ -299,8 +299,10 @@ $(document).on("click", ".open-voidModal", function (e) {
<?php } else { ?>
<div class="input-group input-group-sm mb-0"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><?php echo $transLang['ID_TYPE']; ?></span></div>
<select class="form-control form-control-sm bg-white custom-select<?php if( isset($id_type_error) && $id_type_error === 1 && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" id="id_type-<?php echo $row['visits_id']; ?>" aria-label="ID Type" name="id_type">
<option value="" selected><?php echo $transLang['SELECTID']; ?></option><?php foreach($IDTypeInfo->getIDTypeInfo("%") as $row): ?>
<option value="<?php echo $row['idtypes_id']; ?>"><?php echo $transLang[$row['idtypes_name']]; ?></option><?php endforeach; ?>
<option value="" selected><?php echo $transLang['SELECTID']; ?></option>
<?php foreach($IDTypeInfo->getIDTypeInfo("%") as $row): ?>
<option value="<?php echo $row['idtypes_id']; ?>"><?php echo $transLang[$row['idtypes_name']]; ?></option>
<?php endforeach; ?>
</select>
<div class="invalid-feedback"><?php echo $transLang['REQUIRED']; ?></div>
</div>
@ -325,15 +327,36 @@ $(document).on("click", ".open-voidModal", function (e) {
</script>
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?>
<div class="input-group input-group-sm mb-0"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><?php echo $transLang['COUNTRY']; ?></span></div>
<select class="form-control form-control-sm bg-white custom-select<?php if( isset($citizen_error) && $citizen_error == "1" && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" id="citizen" name="citizen">
<select class="form-control form-control-sm bg-white custom-select<?php if( isset($citizen_error) && $citizen_error == "1" && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" id="citizen-<?php echo $visitid; ?>" name="citizen">
<option value="00" selected><?php echo $transLang['COUNTRY']; ?></option>
<?php
foreach ($VisitInfo->getCountryInfo('%') as $row) { ?>
<option value="<?php echo $row['countries_id']; ?>"><?php echo $row['countries_name']; ?></option><?php }; ?>
<?php foreach ($VisitInfo->getCountryInfo('%') as $row) { ?>
<option value="<?php echo $row['countries_id']; ?>" data-sanctioned="<?php echo $row['countries_ban']; ?>"><?php echo $row['countries_name']; ?></option>
<?php }; ?>
</select>
<div class="invalid-feedback"><?php echo $transLang['REQUIRED']; ?></div>
</div>
<div id="citizen-ban-<?php echo $visitid; ?>" name="ban-<?php echo $visitid; ?>" class="input-group input-group-sm mb-0">
<span class="badge badge-danger"><?php echo $transLang['SANCTIONED']; ?></span>
</div>
<script type="text/javascript">
$('#citizen-<?php echo $visitid; ?>').change(function() {
var controlbox = $(this);
var isSanctioned = controlbox.find(':selected').data('sanctioned');
if (isSanctioned === 1) {
$('#citizen-ban-<?php echo $visitid; ?>').show();
$('#approvevisit-<?php echo $visitid; ?>').attr('disabled', '');
} else {
$('#citizen-ban-<?php echo $visitid; ?>').hide();
$('#approvevisit-<?php echo $visitid; ?>').removeAttr('disabled', '');
}
});
$('#citizen-<?php echo $visitid; ?>').trigger("change");
</script>
<?php }; ?>
<td class="small">
<div class="input-group input-group-sm mb-0"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><?php echo $transLang['BADGE']; ?></span></div>
@ -347,7 +370,7 @@ $(document).on("click", ".open-voidModal", function (e) {
<?php }; ?>
<td class="small">
<div class="input-group input-group-sm mb-0">
<button type="submit" name="approvevisit" value="<?php echo $visitid; ?>" class="btn btn-success btn-block btn-sm"><i class="fas fa-thumbs-up"></i>&nbsp;<?php echo $transLang['APPROVE']; ?></button>
<button type="submit" name="approvevisit" id="approvevisit-<?php echo $visitid; ?>" value="<?php echo $visitid; ?>" class="btn btn-success btn-block btn-sm"><i class="fas fa-thumbs-up"></i>&nbsp;<?php echo $transLang['APPROVE']; ?></button>
</div>
<div class="input-group input-group-sm mb-0">
<a data-toggle="modal" data-target="#voidModal" data-id="<?php echo $visitid; ?>" href="#voidModal" name="voidvisit" value="<?php echo $visitid; ?>" class="btn btn-danger btn-block btn-sm open-voidModal"><i class="fas fa-thumbs-down"></i>&nbsp;<?php echo $transLang['DECLINE']; ?></a>

View File

@ -77,7 +77,10 @@ class VisitInfo {
$query = "
SELECT
" . Registry::DB_PRFX . "countries.id as countries_id,
" . Registry::DB_PRFX . "countries.name as countries_name
" . Registry::DB_PRFX . "countries.name as countries_name,
" . Registry::DB_PRFX . "countries.continent as countries_continent,
" . Registry::DB_PRFX . "countries.priority as countries_priority,
" . Registry::DB_PRFX . "countries.ban as countries_ban
FROM " . Registry::DB_PRFX . "countries
WHERE " . Registry::DB_PRFX . "countries.id LIKE \"$countryid\"
ORDER BY " . Registry::DB_PRFX . "countries.priority ASC, " . Registry::DB_PRFX . "countries.name ASC";

View File

@ -108,6 +108,7 @@ REMEQPT = 'Ausrüstung entfernen'
REPORTS = 'Berichte'
REPORTS_DESC = 'Die Dropdown-Liste kann verwendet werden, um vorkonfigurierte Berichte auszuwählen. Weitere Berichte werden gerade geschrieben.'
REQUIRED = 'Erforderlich'
SANCTIONED = 'Sanktioniert - Kein Eintritt'
SAVE = 'Speichern'
SELECTID = 'ID auswählen'
SELECTREASON = 'Grund wählen'

View File

@ -108,6 +108,7 @@ REMEQPT = 'Remove Equipment'
REPORTS = 'Reports'
REPORTS_DESC = 'The drop-down below can be used to select pre-configured reports. Other reports are currently being written.'
REQUIRED = 'Required'
SANCTIONED = 'Sanctioned - No Entry'
SAVE = 'Save'
SELECTID = 'Select ID'
SELECTREASON = 'Select Reason'

View File

@ -108,6 +108,7 @@ REMEQPT = 'Llevar Equipo'
REPORTS = 'Informes'
REPORTS_DESC = 'El menú desplegable a continuación se puede utilizar para seleccionar informes preconfigurados. Otros informes se están escribiendo actualmente.'
REQUIRED = 'Necesario'
SANCTIONED = 'Sancionado - Prohibida la entrada'
SAVE = 'Salvar'
SELECTID = 'Por favor seleccione'
SELECTREASON = 'Por favor seleccione tipo'

View File

@ -108,6 +108,7 @@ REMEQPT = 'Remove Equipment'
REPORTS = 'Rapports'
REPORTS_DESC = 'Le menu déroulant ci-dessous peut être utilisé pour sélectionner des rapports préconfigurés. D&#39;autres rapports sont en cours de rédaction.'
REQUIRED = 'Required'
SANCTIONED = 'Sanctionné - Aucune entrée'
SAVE = 'Save'
SELECTID = 'Select ID'
SELECTREASON = 'Select Reason'