mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Minor improvements (#1281)
This commit is contained in:
parent
2f8952b3bf
commit
0204cd0047
4 changed files with 272 additions and 265 deletions
|
@ -352,6 +352,9 @@ if (!defined('IN_TRACKER')) {
|
||||||
define('PEERS_LIST_PREFIX', 'peers_list_');
|
define('PEERS_LIST_PREFIX', 'peers_list_');
|
||||||
define('SCRAPE_LIST_PREFIX', 'scrape_list_');
|
define('SCRAPE_LIST_PREFIX', 'scrape_list_');
|
||||||
|
|
||||||
|
// Init tracker
|
||||||
|
require_once BB_PATH . '/bt/includes/init_tr.php';
|
||||||
|
|
||||||
header('Content-Type: text/plain');
|
header('Content-Type: text/plain');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
||||||
|
@ -361,7 +364,4 @@ if (!defined('IN_TRACKER')) {
|
||||||
dummy_exit(random_int(60, 2400));
|
dummy_exit(random_int(60, 2400));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init tracker
|
|
||||||
require_once BB_PATH . '/bt/includes/init_tr.php';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1195,10 +1195,10 @@ function bb_date($gmepoch, $format = false, $friendly_date = true)
|
||||||
/**
|
/**
|
||||||
* Get user's torrent client string
|
* Get user's torrent client string
|
||||||
*
|
*
|
||||||
* @param string $peerId
|
* @param string $peer_id
|
||||||
* @return mixed|string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_user_torrent_client(string $peer_id): mixed
|
function get_user_torrent_client(string $peer_id): string
|
||||||
{
|
{
|
||||||
static $clients = [
|
static $clients = [
|
||||||
'-AG' => 'Ares', '-AZ' => 'Vuze', '-A~' => 'Ares', '-BC' => 'BitComet',
|
'-AG' => 'Ares', '-AZ' => 'Vuze', '-A~' => 'Ares', '-BC' => 'BitComet',
|
||||||
|
@ -1258,266 +1258,273 @@ function get_user_torrent_client(string $peer_id): mixed
|
||||||
return $peer_id;
|
return $peer_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
function render_flag($code) {
|
/**
|
||||||
|
* Returns country flag by country code
|
||||||
|
*
|
||||||
|
* @param string $code
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function render_flag(string $code): string
|
||||||
|
{
|
||||||
static $iconExtension = '.svg';
|
static $iconExtension = '.svg';
|
||||||
static $country_codes = [
|
static $country_codes = [
|
||||||
'AD' => 'Andorra',
|
'AD' => 'Andorra',
|
||||||
'AE' => 'United Arab Emirates',
|
'AE' => 'United Arab Emirates',
|
||||||
'AF' => 'Afghanistan',
|
'AF' => 'Afghanistan',
|
||||||
'AG' => 'Antigua and Barbuda',
|
'AG' => 'Antigua and Barbuda',
|
||||||
'AI' => 'Anguilla',
|
'AI' => 'Anguilla',
|
||||||
'AL' => 'Albania',
|
'AL' => 'Albania',
|
||||||
'AM' => 'Armenia',
|
'AM' => 'Armenia',
|
||||||
'AO' => 'Angola',
|
'AO' => 'Angola',
|
||||||
'AQ' => 'Antarctica',
|
'AQ' => 'Antarctica',
|
||||||
'AR' => 'Argentina',
|
'AR' => 'Argentina',
|
||||||
'AS' => 'American Samoa',
|
'AS' => 'American Samoa',
|
||||||
'AT' => 'Austria',
|
'AT' => 'Austria',
|
||||||
'AU' => 'Australia',
|
'AU' => 'Australia',
|
||||||
'AW' => 'Aruba',
|
'AW' => 'Aruba',
|
||||||
'AX' => 'Aland Islands',
|
'AX' => 'Aland Islands',
|
||||||
'AZ' => 'Azerbaijan',
|
'AZ' => 'Azerbaijan',
|
||||||
'BA' => 'Bosnia and Herzegovina',
|
'BA' => 'Bosnia and Herzegovina',
|
||||||
'BB' => 'Barbados',
|
'BB' => 'Barbados',
|
||||||
'BD' => 'Bangladesh',
|
'BD' => 'Bangladesh',
|
||||||
'BE' => 'Belgium',
|
'BE' => 'Belgium',
|
||||||
'BF' => 'Burkina Faso',
|
'BF' => 'Burkina Faso',
|
||||||
'BG' => 'Bulgaria',
|
'BG' => 'Bulgaria',
|
||||||
'BH' => 'Bahrain',
|
'BH' => 'Bahrain',
|
||||||
'BI' => 'Burundi',
|
'BI' => 'Burundi',
|
||||||
'BJ' => 'Benin',
|
'BJ' => 'Benin',
|
||||||
'BL' => 'Saint Barthélemy',
|
'BL' => 'Saint Barthélemy',
|
||||||
'BM' => 'Bermuda',
|
'BM' => 'Bermuda',
|
||||||
'BN' => 'Brunei Darussalam',
|
'BN' => 'Brunei Darussalam',
|
||||||
'BO' => 'Bolivia, Plurinational State of',
|
'BO' => 'Bolivia, Plurinational State of',
|
||||||
'BQ' => 'Caribbean Netherlands',
|
'BQ' => 'Caribbean Netherlands',
|
||||||
'BR' => 'Brazil',
|
'BR' => 'Brazil',
|
||||||
'BS' => 'Bahamas',
|
'BS' => 'Bahamas',
|
||||||
'BT' => 'Bhutan',
|
'BT' => 'Bhutan',
|
||||||
'BV' => 'Bouvet Island',
|
'BV' => 'Bouvet Island',
|
||||||
'BW' => 'Botswana',
|
'BW' => 'Botswana',
|
||||||
'BY' => 'Belarus',
|
'BY' => 'Belarus',
|
||||||
'BZ' => 'Belize',
|
'BZ' => 'Belize',
|
||||||
'CA' => 'Canada',
|
'CA' => 'Canada',
|
||||||
'CC' => 'Cocos (Keeling) Islands',
|
'CC' => 'Cocos (Keeling) Islands',
|
||||||
'CD' => 'Congo, the Democratic Republic of the',
|
'CD' => 'Congo, the Democratic Republic of the',
|
||||||
'CF' => 'Central African Republic',
|
'CF' => 'Central African Republic',
|
||||||
'CG' => 'Republic of the Congo',
|
'CG' => 'Republic of the Congo',
|
||||||
'CH' => 'Switzerland',
|
'CH' => 'Switzerland',
|
||||||
'CI' => 'Republic of Cote d\'Ivoire',
|
'CI' => 'Republic of Cote d\'Ivoire',
|
||||||
'CK' => 'Cook Islands',
|
'CK' => 'Cook Islands',
|
||||||
'CL' => 'Chile',
|
'CL' => 'Chile',
|
||||||
'CM' => 'Cameroon',
|
'CM' => 'Cameroon',
|
||||||
'CN' => 'China (People\'s Republic of China)',
|
'CN' => 'China (People\'s Republic of China)',
|
||||||
'CO' => 'Colombia',
|
'CO' => 'Colombia',
|
||||||
'CR' => 'Costa Rica',
|
'CR' => 'Costa Rica',
|
||||||
'CU' => 'Cuba',
|
'CU' => 'Cuba',
|
||||||
'CV' => 'Cape Verde',
|
'CV' => 'Cape Verde',
|
||||||
'CW' => 'Country of Curaçao',
|
'CW' => 'Country of Curaçao',
|
||||||
'CX' => 'Christmas Island',
|
'CX' => 'Christmas Island',
|
||||||
'CY' => 'Cyprus',
|
'CY' => 'Cyprus',
|
||||||
'CZ' => 'Czech Republic',
|
'CZ' => 'Czech Republic',
|
||||||
'DE' => 'Germany',
|
'DE' => 'Germany',
|
||||||
'DJ' => 'Djibouti',
|
'DJ' => 'Djibouti',
|
||||||
'DK' => 'Denmark',
|
'DK' => 'Denmark',
|
||||||
'DM' => 'Dominica',
|
'DM' => 'Dominica',
|
||||||
'DO' => 'Dominican Republic',
|
'DO' => 'Dominican Republic',
|
||||||
'DZ' => 'Algeria',
|
'DZ' => 'Algeria',
|
||||||
'EC' => 'Ecuador',
|
'EC' => 'Ecuador',
|
||||||
'EE' => 'Estonia',
|
'EE' => 'Estonia',
|
||||||
'EG' => 'Egypt',
|
'EG' => 'Egypt',
|
||||||
'EH' => 'Western Sahara',
|
'EH' => 'Western Sahara',
|
||||||
'ER' => 'Eritrea',
|
'ER' => 'Eritrea',
|
||||||
'ES' => 'Spain',
|
'ES' => 'Spain',
|
||||||
'ET' => 'Ethiopia',
|
'ET' => 'Ethiopia',
|
||||||
'EU' => 'Europe',
|
'EU' => 'Europe',
|
||||||
'FI' => 'Finland',
|
'FI' => 'Finland',
|
||||||
'FJ' => 'Fiji',
|
'FJ' => 'Fiji',
|
||||||
'FK' => 'Falkland Islands (Malvinas)',
|
'FK' => 'Falkland Islands (Malvinas)',
|
||||||
'FM' => 'Micronesia, Federated States of',
|
'FM' => 'Micronesia, Federated States of',
|
||||||
'FO' => 'Faroe Islands',
|
'FO' => 'Faroe Islands',
|
||||||
'FR' => 'France',
|
'FR' => 'France',
|
||||||
'GA' => 'Gabon',
|
'GA' => 'Gabon',
|
||||||
'GB-ENG' => 'England',
|
'GB-ENG' => 'England',
|
||||||
'GB-NIR' => 'Northern Ireland',
|
'GB-NIR' => 'Northern Ireland',
|
||||||
'GB-SCT' => 'Scotland',
|
'GB-SCT' => 'Scotland',
|
||||||
'GB-WLS' => 'Wales',
|
'GB-WLS' => 'Wales',
|
||||||
'GB' => 'United Kingdom',
|
'GB' => 'United Kingdom',
|
||||||
'GD' => 'Grenada',
|
'GD' => 'Grenada',
|
||||||
'GE' => 'Georgia',
|
'GE' => 'Georgia',
|
||||||
'GF' => 'French Guiana',
|
'GF' => 'French Guiana',
|
||||||
'GG' => 'Guernsey',
|
'GG' => 'Guernsey',
|
||||||
'GH' => 'Ghana',
|
'GH' => 'Ghana',
|
||||||
'GI' => 'Gibraltar',
|
'GI' => 'Gibraltar',
|
||||||
'GL' => 'Greenland',
|
'GL' => 'Greenland',
|
||||||
'GM' => 'Gambia',
|
'GM' => 'Gambia',
|
||||||
'GN' => 'Guinea',
|
'GN' => 'Guinea',
|
||||||
'GP' => 'Guadeloupe',
|
'GP' => 'Guadeloupe',
|
||||||
'GQ' => 'Equatorial Guinea',
|
'GQ' => 'Equatorial Guinea',
|
||||||
'GR' => 'Greece',
|
'GR' => 'Greece',
|
||||||
'GS' => 'South Georgia and the South Sandwich Islands',
|
'GS' => 'South Georgia and the South Sandwich Islands',
|
||||||
'GT' => 'Guatemala',
|
'GT' => 'Guatemala',
|
||||||
'GU' => 'Guam',
|
'GU' => 'Guam',
|
||||||
'GW' => 'Guinea-Bissau',
|
'GW' => 'Guinea-Bissau',
|
||||||
'GY' => 'Guyana',
|
'GY' => 'Guyana',
|
||||||
'HK' => 'Hong Kong',
|
'HK' => 'Hong Kong',
|
||||||
'HM' => 'Heard Island and McDonald Islands',
|
'HM' => 'Heard Island and McDonald Islands',
|
||||||
'HN' => 'Honduras',
|
'HN' => 'Honduras',
|
||||||
'HR' => 'Croatia',
|
'HR' => 'Croatia',
|
||||||
'HT' => 'Haiti',
|
'HT' => 'Haiti',
|
||||||
'HU' => 'Hungary',
|
'HU' => 'Hungary',
|
||||||
'ID' => 'Indonesia',
|
'ID' => 'Indonesia',
|
||||||
'IE' => 'Ireland',
|
'IE' => 'Ireland',
|
||||||
'IL' => 'Israel',
|
'IL' => 'Israel',
|
||||||
'IM' => 'Isle of Man',
|
'IM' => 'Isle of Man',
|
||||||
'IN' => 'India',
|
'IN' => 'India',
|
||||||
'IO' => 'British Indian Ocean Territory',
|
'IO' => 'British Indian Ocean Territory',
|
||||||
'IQ' => 'Iraq',
|
'IQ' => 'Iraq',
|
||||||
'IR' => 'Iran, Islamic Republic of',
|
'IR' => 'Iran, Islamic Republic of',
|
||||||
'IS' => 'Iceland',
|
'IS' => 'Iceland',
|
||||||
'IT' => 'Italy',
|
'IT' => 'Italy',
|
||||||
'JE' => 'Jersey',
|
'JE' => 'Jersey',
|
||||||
'JM' => 'Jamaica',
|
'JM' => 'Jamaica',
|
||||||
'JO' => 'Jordan',
|
'JO' => 'Jordan',
|
||||||
'JP' => 'Japan',
|
'JP' => 'Japan',
|
||||||
'KE' => 'Kenya',
|
'KE' => 'Kenya',
|
||||||
'KG' => 'Kyrgyzstan',
|
'KG' => 'Kyrgyzstan',
|
||||||
'KH' => 'Cambodia',
|
'KH' => 'Cambodia',
|
||||||
'KI' => 'Kiribati',
|
'KI' => 'Kiribati',
|
||||||
'KM' => 'Comoros',
|
'KM' => 'Comoros',
|
||||||
'KN' => 'Saint Kitts and Nevis',
|
'KN' => 'Saint Kitts and Nevis',
|
||||||
'KP' => 'Korea, Democratic People\'s Republic of',
|
'KP' => 'Korea, Democratic People\'s Republic of',
|
||||||
'KR' => 'Korea, Republic of',
|
'KR' => 'Korea, Republic of',
|
||||||
'KW' => 'Kuwait',
|
'KW' => 'Kuwait',
|
||||||
'KY' => 'Cayman Islands',
|
'KY' => 'Cayman Islands',
|
||||||
'KZ' => 'Kazakhstan',
|
'KZ' => 'Kazakhstan',
|
||||||
'LA' => 'Laos (Lao People\'s Democratic Republic)',
|
'LA' => 'Laos (Lao People\'s Democratic Republic)',
|
||||||
'LB' => 'Lebanon',
|
'LB' => 'Lebanon',
|
||||||
'LC' => 'Saint Lucia',
|
'LC' => 'Saint Lucia',
|
||||||
'LI' => 'Liechtenstein',
|
'LI' => 'Liechtenstein',
|
||||||
'LK' => 'Sri Lanka',
|
'LK' => 'Sri Lanka',
|
||||||
'LR' => 'Liberia',
|
'LR' => 'Liberia',
|
||||||
'LS' => 'Lesotho',
|
'LS' => 'Lesotho',
|
||||||
'LT' => 'Lithuania',
|
'LT' => 'Lithuania',
|
||||||
'LU' => 'Luxembourg',
|
'LU' => 'Luxembourg',
|
||||||
'LV' => 'Latvia',
|
'LV' => 'Latvia',
|
||||||
'LY' => 'Libya',
|
'LY' => 'Libya',
|
||||||
'MA' => 'Morocco',
|
'MA' => 'Morocco',
|
||||||
'MC' => 'Monaco',
|
'MC' => 'Monaco',
|
||||||
'MD' => 'Moldova, Republic of',
|
'MD' => 'Moldova, Republic of',
|
||||||
'ME' => 'Montenegro',
|
'ME' => 'Montenegro',
|
||||||
'MF' => 'Saint Martin',
|
'MF' => 'Saint Martin',
|
||||||
'MG' => 'Madagascar',
|
'MG' => 'Madagascar',
|
||||||
'MH' => 'Marshall Islands',
|
'MH' => 'Marshall Islands',
|
||||||
'MK' => 'North Macedonia',
|
'MK' => 'North Macedonia',
|
||||||
'ML' => 'Mali',
|
'ML' => 'Mali',
|
||||||
'MM' => 'Myanmar',
|
'MM' => 'Myanmar',
|
||||||
'MN' => 'Mongolia',
|
'MN' => 'Mongolia',
|
||||||
'MO' => 'Macao',
|
'MO' => 'Macao',
|
||||||
'MP' => 'Northern Mariana Islands',
|
'MP' => 'Northern Mariana Islands',
|
||||||
'MQ' => 'Martinique',
|
'MQ' => 'Martinique',
|
||||||
'MR' => 'Mauritania',
|
'MR' => 'Mauritania',
|
||||||
'MS' => 'Montserrat',
|
'MS' => 'Montserrat',
|
||||||
'MT' => 'Malta',
|
'MT' => 'Malta',
|
||||||
'MU' => 'Mauritius',
|
'MU' => 'Mauritius',
|
||||||
'MV' => 'Maldives',
|
'MV' => 'Maldives',
|
||||||
'MW' => 'Malawi',
|
'MW' => 'Malawi',
|
||||||
'MX' => 'Mexico',
|
'MX' => 'Mexico',
|
||||||
'MY' => 'Malaysia',
|
'MY' => 'Malaysia',
|
||||||
'MZ' => 'Mozambique',
|
'MZ' => 'Mozambique',
|
||||||
'NA' => 'Namibia',
|
'NA' => 'Namibia',
|
||||||
'NC' => 'New Caledonia',
|
'NC' => 'New Caledonia',
|
||||||
'NE' => 'Niger',
|
'NE' => 'Niger',
|
||||||
'NF' => 'Norfolk Island',
|
'NF' => 'Norfolk Island',
|
||||||
'NG' => 'Nigeria',
|
'NG' => 'Nigeria',
|
||||||
'NI' => 'Nicaragua',
|
'NI' => 'Nicaragua',
|
||||||
'NL' => 'Netherlands',
|
'NL' => 'Netherlands',
|
||||||
'NO' => 'Norway',
|
'NO' => 'Norway',
|
||||||
'NP' => 'Nepal',
|
'NP' => 'Nepal',
|
||||||
'NR' => 'Nauru',
|
'NR' => 'Nauru',
|
||||||
'NU' => 'Niue',
|
'NU' => 'Niue',
|
||||||
'NZ' => 'New Zealand',
|
'NZ' => 'New Zealand',
|
||||||
'OM' => 'Oman',
|
'OM' => 'Oman',
|
||||||
'PA' => 'Panama',
|
'PA' => 'Panama',
|
||||||
'PE' => 'Peru',
|
'PE' => 'Peru',
|
||||||
'PF' => 'French Polynesia',
|
'PF' => 'French Polynesia',
|
||||||
'PG' => 'Papua New Guinea',
|
'PG' => 'Papua New Guinea',
|
||||||
'PH' => 'Philippines',
|
'PH' => 'Philippines',
|
||||||
'PK' => 'Pakistan',
|
'PK' => 'Pakistan',
|
||||||
'PL' => 'Poland',
|
'PL' => 'Poland',
|
||||||
'PM' => 'Saint Pierre and Miquelon',
|
'PM' => 'Saint Pierre and Miquelon',
|
||||||
'PN' => 'Pitcairn',
|
'PN' => 'Pitcairn',
|
||||||
'PR' => 'Puerto Rico',
|
'PR' => 'Puerto Rico',
|
||||||
'PS' => 'Palestine',
|
'PS' => 'Palestine',
|
||||||
'PT' => 'Portugal',
|
'PT' => 'Portugal',
|
||||||
'PW' => 'Palau',
|
'PW' => 'Palau',
|
||||||
'PY' => 'Paraguay',
|
'PY' => 'Paraguay',
|
||||||
'QA' => 'Qatar',
|
'QA' => 'Qatar',
|
||||||
'RE' => 'Réunion',
|
'RE' => 'Réunion',
|
||||||
'RO' => 'Romania',
|
'RO' => 'Romania',
|
||||||
'RS' => 'Serbia',
|
'RS' => 'Serbia',
|
||||||
'RU' => 'Russian Federation',
|
'RU' => 'Russian Federation',
|
||||||
'RW' => 'Rwanda',
|
'RW' => 'Rwanda',
|
||||||
'SA' => 'Saudi Arabia',
|
'SA' => 'Saudi Arabia',
|
||||||
'SB' => 'Solomon Islands',
|
'SB' => 'Solomon Islands',
|
||||||
'SC' => 'Seychelles',
|
'SC' => 'Seychelles',
|
||||||
'SD' => 'Sudan',
|
'SD' => 'Sudan',
|
||||||
'SE' => 'Sweden',
|
'SE' => 'Sweden',
|
||||||
'SG' => 'Singapore',
|
'SG' => 'Singapore',
|
||||||
'SH' => 'Saint Helena, Ascension and Tristan da Cunha',
|
'SH' => 'Saint Helena, Ascension and Tristan da Cunha',
|
||||||
'SI' => 'Slovenia',
|
'SI' => 'Slovenia',
|
||||||
'SJ' => 'Svalbard and Jan Mayen Islands',
|
'SJ' => 'Svalbard and Jan Mayen Islands',
|
||||||
'SK' => 'Slovakia',
|
'SK' => 'Slovakia',
|
||||||
'SL' => 'Sierra Leone',
|
'SL' => 'Sierra Leone',
|
||||||
'SM' => 'San Marino',
|
'SM' => 'San Marino',
|
||||||
'SN' => 'Senegal',
|
'SN' => 'Senegal',
|
||||||
'SO' => 'Somalia',
|
'SO' => 'Somalia',
|
||||||
'SR' => 'Suriname',
|
'SR' => 'Suriname',
|
||||||
'SS' => 'South Sudan',
|
'SS' => 'South Sudan',
|
||||||
'SU' => 'Soviet Union',
|
'SU' => 'Soviet Union',
|
||||||
'ST' => 'Sao Tome and Principe',
|
'ST' => 'Sao Tome and Principe',
|
||||||
'SV' => 'El Salvador',
|
'SV' => 'El Salvador',
|
||||||
'SX' => 'Sint Maarten (Dutch part)',
|
'SX' => 'Sint Maarten (Dutch part)',
|
||||||
'SY' => 'Syrian Arab Republic',
|
'SY' => 'Syrian Arab Republic',
|
||||||
'SZ' => 'Swaziland',
|
'SZ' => 'Swaziland',
|
||||||
'TC' => 'Turks and Caicos Islands',
|
'TC' => 'Turks and Caicos Islands',
|
||||||
'TD' => 'Chad',
|
'TD' => 'Chad',
|
||||||
'TF' => 'French Southern Territories',
|
'TF' => 'French Southern Territories',
|
||||||
'TG' => 'Togo',
|
'TG' => 'Togo',
|
||||||
'TH' => 'Thailand',
|
'TH' => 'Thailand',
|
||||||
'TJ' => 'Tajikistan',
|
'TJ' => 'Tajikistan',
|
||||||
'TK' => 'Tokelau',
|
'TK' => 'Tokelau',
|
||||||
'TL' => 'Timor-Leste',
|
'TL' => 'Timor-Leste',
|
||||||
'TM' => 'Turkmenistan',
|
'TM' => 'Turkmenistan',
|
||||||
'TN' => 'Tunisia',
|
'TN' => 'Tunisia',
|
||||||
'TO' => 'Tonga',
|
'TO' => 'Tonga',
|
||||||
'TR' => 'Turkey',
|
'TR' => 'Turkey',
|
||||||
'TT' => 'Trinidad and Tobago',
|
'TT' => 'Trinidad and Tobago',
|
||||||
'TV' => 'Tuvalu',
|
'TV' => 'Tuvalu',
|
||||||
'TW' => 'Taiwan (Republic of China)',
|
'TW' => 'Taiwan (Republic of China)',
|
||||||
'TZ' => 'Tanzania, United Republic of',
|
'TZ' => 'Tanzania, United Republic of',
|
||||||
'UA' => 'Ukraine',
|
'UA' => 'Ukraine',
|
||||||
'UG' => 'Uganda',
|
'UG' => 'Uganda',
|
||||||
'UM' => 'US Minor Outlying Islands',
|
'UM' => 'US Minor Outlying Islands',
|
||||||
'US' => 'United States',
|
'US' => 'United States',
|
||||||
'UY' => 'Uruguay',
|
'UY' => 'Uruguay',
|
||||||
'UZ' => 'Uzbekistan',
|
'UZ' => 'Uzbekistan',
|
||||||
'VA' => 'Holy See (Vatican City State)',
|
'VA' => 'Holy See (Vatican City State)',
|
||||||
'VC' => 'Saint Vincent and the Grenadines',
|
'VC' => 'Saint Vincent and the Grenadines',
|
||||||
'VE' => 'Venezuela, Bolivarian Republic of',
|
'VE' => 'Venezuela, Bolivarian Republic of',
|
||||||
'VG' => 'Virgin Islands, British',
|
'VG' => 'Virgin Islands, British',
|
||||||
'VI' => 'Virgin Islands, U.S.',
|
'VI' => 'Virgin Islands, U.S.',
|
||||||
'VN' => 'Vietnam',
|
'VN' => 'Vietnam',
|
||||||
'VU' => 'Vanuatu',
|
'VU' => 'Vanuatu',
|
||||||
'WF' => 'Wallis and Futuna Islands',
|
'WF' => 'Wallis and Futuna Islands',
|
||||||
'WS' => 'Samoa',
|
'WS' => 'Samoa',
|
||||||
'XK' => 'Kosovo',
|
'XK' => 'Kosovo',
|
||||||
'YE' => 'Yemen',
|
'YE' => 'Yemen',
|
||||||
'YU' => 'Yugoslavia',
|
'YU' => 'Yugoslavia',
|
||||||
'YT' => 'Mayotte',
|
'YT' => 'Mayotte',
|
||||||
'ZA' => 'South Africa',
|
'ZA' => 'South Africa',
|
||||||
'ZM' => 'Zambia',
|
'ZM' => 'Zambia',
|
||||||
'ZW' => 'Zimbabwe'
|
'ZW' => 'Zimbabwe'
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isset($country_codes[$code])) {
|
if (isset($country_codes[$code])) {
|
||||||
|
|
|
@ -514,7 +514,6 @@ $lang['AVATAR_PANEL'] = 'Avatar control panel';
|
||||||
|
|
||||||
$lang['WEBSITE'] = 'Website';
|
$lang['WEBSITE'] = 'Website';
|
||||||
$lang['LOCATION'] = 'Location';
|
$lang['LOCATION'] = 'Location';
|
||||||
$lang['LOCATION_FLAGS'] = 'Flag images are rendered by country codes:';
|
|
||||||
$lang['CONTACT'] = 'Contact';
|
$lang['CONTACT'] = 'Contact';
|
||||||
$lang['EMAIL_ADDRESS'] = 'E-mail address';
|
$lang['EMAIL_ADDRESS'] = 'E-mail address';
|
||||||
$lang['SEND_PRIVATE_MESSAGE'] = 'Send private message';
|
$lang['SEND_PRIVATE_MESSAGE'] = 'Send private message';
|
||||||
|
|
|
@ -514,6 +514,7 @@ $lang['AVATAR_PANEL'] = 'Avatar control panel';
|
||||||
|
|
||||||
$lang['WEBSITE'] = 'Website';
|
$lang['WEBSITE'] = 'Website';
|
||||||
$lang['LOCATION'] = 'Location';
|
$lang['LOCATION'] = 'Location';
|
||||||
|
$lang['LOCATION_FLAGS'] = 'Flag images are rendered by country codes:';
|
||||||
$lang['CONTACT'] = 'Contact';
|
$lang['CONTACT'] = 'Contact';
|
||||||
$lang['EMAIL_ADDRESS'] = 'E-mail address';
|
$lang['EMAIL_ADDRESS'] = 'E-mail address';
|
||||||
$lang['SEND_PRIVATE_MESSAGE'] = 'Send private message';
|
$lang['SEND_PRIVATE_MESSAGE'] = 'Send private message';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue