' . locale_get_primary_language(urldecode($_GET['locale'])) . '';
if (!isset($_GET['languagecode'])) {
$_GET['languagecode']=explode('-', explode('_', urldecode($_GET['locale']))[0])[0];
}
} else if (isset($_POST['locale'])) {
$for=' of ' . locale_get_primary_language(urldecode($_POST['locale'])) . '';
if (!isset($_POST['languagecode'])) {
$_POST['languagecode']=explode('-', explode('_', urldecode($_POST['locale']))[0])[0];
}
}
if (strpos($for, '>') !== false) { $for=''; }
function sortit($arr, $thisloc) {
global $dias, $dia, $tabis, $found_cc;
$coll = collator_create( $thisloc );
//$arr = array( 'at', 'às', 'as' );
//var_export( $arr );
if (!isset($_GET['sorttype']) && !isset($_POST['sorttype'])) {
collator_sort( $coll, $arr );
} else if (isset($_GET['sorttype'])) {
if (strpos($_GET['sorttype'], 'REGULAR') !== false) {
collator_sort( $coll, $arr, Collator::SORT_REGULAR );
} else if (strpos($_GET['sorttype'], 'NUMERIC') !== false) {
collator_sort( $coll, $arr, Collator::SORT_NUMERIC );
} else if (strpos($_GET['sorttype'], 'STRING') !== false) {
collator_sort( $coll, $arr, Collator::SORT_STRING );
} else {
collator_sort( $coll, $arr );
}
} else if (isset($_POST['sorttype'])) {
if (strpos($_POST['sorttype'], 'REGULAR') !== false) {
collator_sort( $coll, $arr, Collator::SORT_REGULAR );
} else if (strpos($_POST['sorttype'], 'NUMERIC') !== false) {
collator_sort( $coll, $arr, Collator::SORT_NUMERIC );
} else if (strpos($_POST['sorttype'], 'STRING') !== false) {
collator_sort( $coll, $arr, Collator::SORT_STRING );
} else {
collator_sort( $coll, $arr );
}
}
//var_export( $arr );
for ($ij=(-1 + sizeof($arr)); $ij>=0; $ij--) {
$tabis=str_replace('
', ' | ' . $arr[$ij] . ' ', $tabis);
}
echo $tabis;
}
$iso_country_codes=['AF','Afghanistan',
'ax','Aland Islands',
'Al','Albania',
'DZ','Algeria',
'as','American Samoa',
'ad','Andorra',
'AO','Angola',
'ai','Anguilla',
'AQ','Antarctica',
'ag','Antigua and Barbuda',
'AR','Argentina',
'AM','Armenia',
'aw','Aruba',
'AU','Australia',
'At','Austria',
'AZ','Azerbaijan',
'bs','Bahamas',
'Bh','Bahrain',
'BD','Bangladesh',
'bb','Barbados',
'BY','Belarus',
'BE','Belgium',
'BZ','Belize',
'BJ','Benin',
'bm','Bermuda',
'Bt','Bhutan',
'BO','Bolivia',
'Ba','Bosnia and Herzegovina',
'Bw','Botswana',
'bv','Bouvet Island (Bouvetoya)',
'BR','Brazil',
'io','British Indian Ocean Territory (Chagos Archipelago)',
'vg','British Virgin Islands',
'Bn','Brunei Darussalam',
'BG','Bulgaria',
'BF','Burkina Faso',
'bi','Burundi',
'KH','Cambodia',
'CM','Cameroon',
'CA','Canada',
'cv','Cape Verde',
'ky','Cayman Islands',
'CF','Central African Republic',
'TD','Chad',
'CL','Chile',
'CN','China',
'cx','Christmas Island',
'cc','Cocos (Keeling) Islands',
'CO','Colombia',
'km','Comoros',
'CD','Democratic Republic of the Congo',
'CG','Republic of the Congo',
'ck','Cook Islands',
'CR','Costa Rica',
'CI',"Cote d'Ivoire",
'HR','Croatia',
'CU','Cuba',
'Cy','Cyprus',
'CZ','Czech Republic',
'dK','Denmark',
'Dj','Djibouti',
'DM','Dominica',
'DO','Dominican Republic',
'EC','Ecuador',
'EG','Egypt',
'SV','El Salvador',
'GQ','Equatorial Guinea',
'ER','Eritrea',
'Ee','Estonia',
'ET','Ethiopia',
'FO','Faroe Islands',
'FK','Falkland Islands',
'fJ','Fiji',
'FI','Finland',
'FR','France',
'GF','French Guiana',
'pf','French Polynesia',
'tf','French Southern Territories',
'GA','Gabon',
'GM','Gambia the',
'GE','Georgia',
'DE','Germany',
'GH','Ghana',
'gi','Gibraltar',
'gR','Greece',
'GL','Greenland',
'gd','Grenada',
'gp','Guadeloupe',
'gu','Guam',
'GT','Guatemala',
'gg','Guernsey',
'GN','Guinea',
'GW','Guinea-Bissau',
'GY','Guyana',
'HT','Haiti',
'hm','Heard Island and McDonald Islands',
'va','Holy See (Vatican City State)',
'HN','Honduras',
'hk','Hong Kong',
'HU','Hungary',
'is','Iceland',
'IN','India',
'ID','Indonesia',
'IR','Iran',
'IQ','Iraq',
'IE','Ireland',
'im','Isle of Man',
'Il','Israel',
'IT','Italy',
'Jm','Jamaica',
'JP','Japan',
'JE','Jersey',
'Jo','Jordan',
'KZ','Kazakhstan',
'KE','Kenya',
'kI','Kiribati',
'KP','North Korea',
'KR','South Korea',
'KW','Kuwait',
'KG','Kyrgyz Republic',
'kg','Kyrgyzstan',
'LA','Laos',
'Lv','Latvia',
'Lb','Lebanon',
'ls','Lesotho',
'LR','Liberia',
'LY','Libya',
'li','Liechtenstein',
'Lt','Lithuania',
'lu','Luxembourg',
'mo','Macao',
'MK','North Macedonia',
'Mk','Macedonia',
'MG','Madagascar',
'MW','Malawi',
'MY','Malaysia',
'mv','Maldives',
'ML','Mali',
'MT','Malta',
'mh','Marshall Islands',
'mq','Martinique',
'MR','Mauritania',
'mu','Mauritius',
'yt','Mayotte',
'MX','Mexico',
'fm','Micronesia',
'MD','Moldova',
'mc','Monaco',
'MN','Mongolia',
'Me','Montenegro',
'ms','Montserrat',
'MA','Morocco',
'MZ','Mozambique',
'MM','Myanmar (Burma)',
'NA','Namibia',
'nr','Nauru',
'NP','Nepal',
'an','Netherlands Antilles',
'NL','Netherlands',
'nc','New Caledonia',
'nZ','New Zealand',
'NI','Nicaragua',
'NE','Niger',
'NG','Nigeria',
'nu','Niue',
'NF','Norfolk Island',
'mp','Northern Mariana Islands',
'NO','Norway',
'om','Oman',
'PK','Pakistan',
'pw','Palau',
'ps','Palestine',
'PA','Panama',
'PG','Papua New Guinea',
'PY','Paraguay',
'PE','Peru',
'PH','Philippines',
'pn','Pitcairn Islands',
'PL','Poland',
'PT','Portugal',
'pr','Puerto Rico',
'qa','Qatar',
're','Reunion',
'RO','Romania',
'RU','Russia',
'Rw','Rwanda',
'bl','Saint Barthelemy',
'sh','Saint Helena',
'kn','Saint Kitts and Nevis',
'lc','Saint Lucia',
'mf','Saint Martin',
'pm','Saint Pierre and Miquelon',
'vc','Saint Vincent and the Grenadines',
'ws','Samoa',
'sm','San Marino',
'st','Sao Tome and Principe',
'SA','Saudi Arabia',
'SN','Senegal',
'RS','Serbia',
'sc','Seychelles',
'SL','Sierra Leone',
'sg','Singapore',
'SK','Slovakia',
'Si','Slovenia',
'SB','Solomon Islands',
'SO','Somalia',
'ZA','South Africa',
'gs','South Georgia and the South Sandwich Islands',
'ES','Spain',
'LK','Sri Lanka',
'SD','Sudan',
'SR','Suriname',
'sj','Svalbard & Jan Mayen Islands',
'sz','Swaziland',
'SE','Sweden',
'Ch','Switzerland',
'Sy','Syria',
'Tw','Taiwan',
'TJ','Tajikistan',
'TZ','Tanzania',
'TH','Thailand',
'tl','Timor-Leste',
'TG','Togo',
'tk','Tokelau',
'td','Tonga',
'tt','Trinidad and Tobago',
'TN','Tunisia',
'TR','Turkey',
'TM','Turkmenistan',
'tc','Turks and Caicos Islands',
'tV','Tuvalu',
'UG','Uganda',
'UA','Ukraine',
'AE','United Arab Emirates',
'GB','United Kingdom',
'US','United States of America',
'UM','United States Minor Outlying Islands',
'vi','United States Virgin Islands',
'UY','Uruguay, Eastern Republic of',
'UZ','Uzbekistan',
'vu','Vanuatu',
'VE','Venezuela',
'VN','Vietnam',
'wf','Wallis and Futuna',
'EH','Western Sahara',
'YE','Yemen',
'ZM','Zambia',
'ZW','Zimbabwe'];
//$curbits=@file_get_contents("http://www.nationsonline.org/oneworld/currencies.htm");
$curbits='';
$ctynames="
";
$isel=0;
if (isset($_GET['sorttype'])) {
if (strpos($_GET['sorttype'], 'REGULAR') !== false) {
$isel=0;
} else if (strpos($_GET['sorttype'], 'NUMERIC') !== false) {
$isel=1;
} else if (strpos($_GET['sorttype'], 'STRING') !== false) {
$isel=2;
}
} else if (isset($_POST['sorttype'])) {
if (strpos($_POST['sorttype'], 'REGULAR') !== false) {
$isel=0;
} else if (strpos($_POST['sorttype'], 'NUMERIC') !== false) {
$isel=1;
} else if (strpos($_POST['sorttype'], 'STRING') !== false) {
$isel=2;
}
}
$sellist=["Áçčèñţş ůşîñģ dïäçřïţïçš, ïť'š åñ ářť ïñïţïåţïvë þřöçëšš! Thëý åđđ åñ ëxţřå lëvël öf šöþhïšťïçåţïöñ åñđ éñhåñçë ťhë þřöñüñćïåţïöñ øf ţëxť. Îţ'š füñ åñđ čřëåťëš å vïšüåłłý ïñţëřëšťïñğ ëffëçť.",
"786 -6756.678 123,124.78 8978 -9876.1 1234567.89",
"The rain in Spain falls mainly on the plain."];
$dia=[];
$said=$sellist[$isel];
$dias=$sellist[$isel]; //"Áçčèñţş ůşîñģ dïäçřïţïçš, ïť'š åñ ářť ïñïţïåţïvë þřöçëšš! Thëý åđđ åñ ëxţřå lëvël öf šöþhïšťïçåţïöñ åñđ éñhåñçë ťhë þřöñüñćïåţïöñ øf ţëxť. Îţ'š füñ åñđ čřëåťëš å vïšüåłłý ïñţëřëšťïñğ ëffëçť.";
$locsel='';
$altinlang='';
$isalt=false;
$locit=user_agent();
$arrl=ResourceBundle::getLocales('');
for ($df=0; $df 0) {
if ($lastword == $_GET['languagecode']) { $isalt=true; }
}
} else if (isset($_POST['languagecode'])) {
if (strlen($_POST['languagecode']) > 0) {
if ($lastword == $_POST['languagecode']) { $isalt=true; }
}
}
$ends=explode("['" . explode('-',explode('_',$arrl[$df])[0])[0] . '-', $lochelper);
if (sizeof($ends) > 1) {
$endih.=' ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if (explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0] != '') {
$inlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if ($isalt) { $altinlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0]; }
}
}
if ((strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 2 && strpos($lochelpertwo, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false) || (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3 && strpos($lochelperthree, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false)) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
//echo substr(explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0], -250,250);
if (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3) {
$aintm=explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0])[-1 + sizeof(explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0]))];
} else {
$interim=explode('', explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0])[-1 + sizeof(explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0]))])[0]; //)[-1 + sizeof(explode('>', explode('', explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0];
//exit;
//if ($isalt) { echo $interim; exit; }
$aintm=explode('>', str_replace('','',$interim))[-1 + sizeof(explode('>', str_replace('','',$interim) ))];
}
//if ($isalt) { echo $interim . ' ' . $aintm . ' ' . $endih; exit; }
if (strpos($endih, ' ' . $aintm) === false) {
if ($endih != '') {
$endih.=' (' . $aintm . ')';
$inlang=' is ' . $aintm;
if ($isalt) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
} else {
$endih.=' ' . $aintm;
if ($isalt) {
//echo "Yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
}
}
}
if ($lastword == strtoupper($lastword) && strlen($lastword) == 2) {
$endih.=' ' . orflag(explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))]); //$found_cc
//$endih.=' ' . orflag($found_cc);
}
if ($endih != '') {
$endih="\t" . $endih . '';
}
if (strpos(($arrl[$df] . '_'), '_') !== false) { //} && strpos($arrl[$df], '0') === false) {
if ($locsel == '') {
$locsel="";
}
if ($locit != 'pc' && 1 == 1) {
$locsel=str_replace("", "", $locsel);
} else {
$locsel=str_replace("", "", $locsel);
}
}
}
if ($altinlang != '') {
if (isset($_GET['locale']) && strpos($altinlang, ' used in ') === false) {
if ($tabis == '') {
$tabis='| Sorting Word List based on Locale ' . urldecode($_GET['locale']) . ' | | ' . $dias . ' |
|---|
| Sorted List | Sentence List |
|---|
| | ';
}
if ($isalt) { $altinlang.=ui(' used in ' . locale_get_display_region(urldecode($_GET['locale']), 'en') . ' ' . orflag($found_cc)); }
} else if (isset($_POST['locale']) && strpos($altinlang, ' used in ') === false) {
if ($tabis == '') {
$tabis='| Sorting Word List based on Locale ' . urldecode($_POST['locale']) . ' | | ' . $dias . ' |
|---|
| Sorted List | Sentence List |
|---|
| | ';
}
if ($isalt) { $altinlang.=ui(' used in ' . locale_get_display_region(urldecode($_POST['locale']), 'en') . ' ' . orflag($found_cc)); }
}
if (strpos($tabis, ' | ') !== false && $isalt && $altinlang != '') {
$tabis=str_replace(' |
|---|
| ', $altinlang . ' |
|---|
', $tabis);
}
$inlang=$altinlang;
} else {
$inlang='';
}
if ($inlang != '' && $for != '') {
$for=str_replace('', '' . $inlang . '', $for);
}
$bh="PHP Intl Sort Names via Locale - RJM Programming - December, 2024
var previsel=" . $isel . ";
var sellist=[];
sellist.push(\"" . $sellist[0] . "\");
sellist.push(\"" . $sellist[1] . "\");
sellist.push(\"" . $sellist[2] . "\");
var prevcont=\"" . $sellist[$isel] . "\";
var em='m';
var lastokn='';
var okn='';
var lastconto=[];
var morechanges=true;
var lastwo='';
var woi=null;
var oko=null;
var nlastokn='';
var xokn='';
var xlastconto=[];
var xmorechanges=true;
var xlastwo='';
var xwoi=null;
var xoko=null;
var ctynames=\"" . str_replace("\n","",$ctynames) . "\";
function pretvanal(taval) {
prevcont=taval;
}
function tvanal(selval) {
//alert('prevcont=' + prevcont + '[]=' + sellist[previsel] + ' and previsel=' + previsel + ' and selval=' + selval);
if (prevcont == sellist[previsel]) {
if (selval.indexOf('REGULAR') != -1 || selval == '') {
document.getElementById('sortsentencewords').value=sellist[0];
previsel=0;
prevcont=sellist[previsel];
} else if (selval.indexOf('NUMERIC') != -1) {
document.getElementById('sortsentencewords').value=sellist[1];
previsel=1;
prevcont=sellist[previsel];
} else if (selval.indexOf('STRING') != -1) {
document.getElementById('sortsentencewords').value=sellist[2];
previsel=2;
prevcont=sellist[previsel];
}
}
}
function expandokn() {
var iut=0, pls=[],firsttz='',tzsih='',xtzsih='',thatloc='', wds=[];
if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn != okn.toUpperCase()) {
document.getElementById(em + 'das').innerHTML='Country Name ';
pls=ctynames.split('>' + okn);
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + okn + pls[iut].split('<')[0] + ' ' + jorflag(pls[eval(-1 + iut)].slice(-3).substring(0,2)) + '';
}
}
} else if (okn.substring(0,1) == okn.substring(0,1).toLowerCase() && okn == okn.toLowerCase()) {
xtzsih=document.getElementById('tzsel').innerHTML;
document.getElementById(em + 'das').innerHTML+='
Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split( value='\"' + okn);
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut')[1].split('<')[0].split(' ')[0].split('+')[0];
wds=thatloc.split('_');
if (eval('' + wds[eval(-1 + wds.length)].length) == 2 && wds[eval(-1 + wds.length)] == wds[eval(-1 + wds.length)].toUpperCase() && eval('' + wds.length) > 1) {
//alert('1:' + wds[eval(-1 + wds.length)]);
firsttz='';
if (xtzsih.indexOf(',' + wds[eval(-1 + wds.length)] + ',') != -1) {
firsttz=xtzsih.split(',' + wds[eval(-1 + wds.length)] + ',')[1].split('>')[1].split('<')[0].split(' ')[0];
//alert('2:' + firsttz);
}
document.getElementById(em + 'das').innerHTML+=' ' + thatloc + ' ' + jorflag(wds[eval(-1 + wds.length)]) + '';
} else {
document.getElementById(em + 'das').innerHTML+=' ' + thatloc + '';
}
}
}
} else if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn == okn.toUpperCase() && eval('' + okn.length) == 2) {
document.getElementById(em + 'das').innerHTML='Country Name ';
pls=ctynames.split(\"'\" + okn + \"'>\");
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('<')[0] + ' ' + jorflag(okn) + '';
}
}
tzsih=document.getElementById('tzsel').innerHTML;
if (tzsih.indexOf(',' + okn + ',') != -1) {
firsttz=tzsih.split(',' + okn + ',')[1].split('>')[1].split('<')[0].split(' ')[0];
}
document.getElementById(em + 'das').innerHTML+='
Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split('_' + okn + '\"');
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(okn) + '';
}
}
}
}
function maybesel(oin) {
if (oin.value.trim() != '') {
var wdsa=document.getElementById('locsel').innerHTML.split(' value=\"' + oin.value + '\"');
if (eval('' + wdsa.length) == 1) {
wdsa=document.getElementById('locsel').innerHTML.split('>' + oin.value + '<');
}
}
}
function jorflag(thiscc) {
var lri='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var dri=['127462','127463','127464','127465','127466','127467','127468','127469','127470','127471','127472','127473','127474','127475','127476','127477','127478','127479','127480','127481','127482','127483','127484','127485','127486','127487'];
var ccsuff='', ccchar=' ', cde='';
for (var iccsuff=0; iccsuff Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split('_' + ao.title.split(' ')[0] + '\"');
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(ao.title.split(' ')[0]) + '';
}
}
xokn='';
}
}
function analr(ao,tzi) { // locale
if (ao.innerHTML.indexOf('_') != -1) {
document.getElementById('locsel').value=ao.innerHTML.split(' ')[0];
document.getElementById('locale').value=ao.innerHTML.split(' ')[0];
document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)];
//document.getElementById('timezone').value=tzi.split(' ')[0];
document.getElementById(em + 'das').innerHTML='';
okn='';
}
}
function analq(ao,tzi) { // locale
if (ao.innerHTML.indexOf('_') != -1) {
document.getElementById('locsel').value=ao.innerHTML.split(' ')[0];
document.getElementById('locale').value=ao.innerHTML.split(' ')[0];
document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)];
//document.getElementById('timezone').value=tzi.split(' ')[0];
document.getElementById(em + 'das').innerHTML='';
xokn='';
okn='';
}
}
function precval(iois) {
//okn=iois.value;
oko=iois;
lastokn=okn;
}
function cval(eiois) {
//if (document.URL.indexOf('i0=') == -1) {
//if (eiois.which != 16) { alert('2:' + eiois.which); }
//okn+=String.fromCharCode(eiois.which || eiois.keyCode);
if ((eiois.which || eiois.keyCode) == 8) {
okn='';
} else if ((eiois.which || eiois.keyCode) == 186 || (eiois.which || eiois.keyCode) == 900000016) {
okn=okn.replace(':','') + ':';
//document.title=okn + ' ' + (eiois.which || eiois.keyCode);
var cvi=okn.split(':');
if (cvi.length > 1) {
var scs=0.0, factor=1.0;
for (var ij=eval(-1 + cvi.length); ij>=0; ij--) {
if (cvi[ij] == '') cvi[ij]='00';
scs+=eval(factor * eval(cvi[ij]));
factor*=60.0;
}
//alert(scs + ' ' + okn);
okn='' + scs;
oko.value=okn;
lastokn=okn.replace(':','');
//document.title=okn + ' ' + (eiois.which || eiois.keyCode) + ' ' + oko.value;
//setTimeout(fixval,30);
}
} else if ((eiois.which || eiois.keyCode) == 191) {
if (!eiois.shiftKey) {
okn+=String.fromCharCode(47);
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
}
if (eval('' + okn.length) > 1) { expandokn(); }
} else if ((eiois.which || eiois.keyCode) == 189) {
if (eiois.shiftKey) {
okn+=String.fromCharCode(95);
} else {
okn+=String.fromCharCode(45);
}
if (eval('' + okn.length) > 1) { expandokn(); }
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
} else if (eiois.keyCode == 189 || (eiois.which || eiois.keyCode) >= 65 && (eiois.which || eiois.keyCode) <= 90) {
if (eiois.shiftKey) {
okn+=String.fromCharCode(eiois.which || eiois.keyCode);
} else {
okn+=String.fromCharCode(eval(32 + eval(eiois.which || eiois.keyCode)));
}
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
if (eval('' + okn.length) > 1) { expandokn(); }
} else if ((eiois.which || eiois.keyCode) < 46 || (eiois.which || eiois.keyCode) > 58) {
okn=okn;
} else if (1 == 3) {
okn+=String.fromCharCode(eiois.which || eiois.keyCode);
document.title+='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
}
//}
}
function init() {
var thih='', isothree='';
if (document.getElementById('aone') && document.getElementById('firstth')) {
if (document.getElementById('firstth').innerHTML.indexOf(document.getElementById('aone').innerHTML) == -1) {
document.getElementById('firstth').innerHTML+=' of ' + document.getElementById('aone').innerHTML;
}
thih=document.getElementById('firstth').innerHTML;
}
if (document.getElementById('aone') && (document.URL + '&locale=').split('locale=')[1].split('&')[0].split('#')[0].replace('-','_').indexOf('_') != -1) {
if (document.getElementById('aone').innerHTML.toLowerCase().indexOf(' is ') != -1 && document.getElementById('aone').innerHTML.toLowerCase().indexOf(' used by ') == -1 && thih.indexOf(' Locale ') != -1 && thih.indexOf(' of ') != -1) {
isothree=thih.split(' Locale ')[1].split(' of ')[0];
isothree=isothree.split('_')[eval(-1 + isothree.split('_').length)];
isothree=isothree.split('-')[eval(-1 + isothree.split('-').length)];
if (eval('' + isothree.length) == 2) {
if (isothree == isothree.toUpperCase() && ctynames.indexOf(\" value='\" + isothree + \"'>\") != -1) {
document.getElementById('aone').innerHTML+=' used in ' + ctynames.split(\" value='\" + isothree + \"'>\")[1].split('<')[0] + ' ' + jorflag(isothree);
document.getElementById('firstth').innerHTML+=' used in ' + ctynames.split(\" value='\" + isothree + \"'>\")[1].split('<')[0] + ' ' + jorflag(isothree);
}
}
} else if (document.getElementById('aone').innerHTML.toLowerCase().indexOf(' is ') == -1 && document.getElementById('aone').innerHTML.toLowerCase().indexOf(' used by ') == -1 && thih.indexOf(' Locale ') != -1 && thih.indexOf(' of ') == -1) {
isothree=thih.split(' Locale ')[1];
isothree=isothree.split('_')[eval(-1 + isothree.split('_').length)];
isothree=isothree.split('-')[eval(-1 + isothree.split('-').length)];
if (eval('' + isothree.length) == 2) {
if (isothree == isothree.toUpperCase() && ctynames.indexOf(\" value='\" + isothree + \"'>\") != -1) {
document.getElementById('firstth').innerHTML+=' of ' + document.getElementById('aone').innerHTML + ' used in ' + ctynames.split(\" value='\" + isothree + \"'>\")[1].split('<')[0] + ' ' + jorflag(isothree);
document.getElementById('aone').innerHTML+=' used in ' + ctynames.split(\" value='\" + isothree + \"'>\")[1].split('<')[0] + ' ' + jorflag(isothree);
}
}
}
}
if (document.getElementById('aone') && document.getElementById('firstth')) {
var bits=document.getElementById('aone').innerHTML.split(' used in ');
if (eval('' + bits.length) > 2) {
document.getElementById('aone').innerHTML=(document.getElementById('aone').innerHTML + ' ').replace(' used in ' + bits[1] + ' ','');
}
bits=document.getElementById('firstth').innerHTML.split(' used in ');
if (eval('' + bits.length) > 2) {
document.getElementById('firstth').innerHTML=(document.getElementById('firstth').innerHTML + ' ').replace(' used in ' + bits[1] + ' ','');
}
}
}
";
$dia=[];
$said=$sellist[$isel];
$dias=$sellist[$isel]; //"Áçčèñţş ůşîñģ dïäçřïţïçš, ïť'š åñ ářť ïñïţïåţïvë þřöçëšš! Thëý åđđ åñ ëxţřå lëvël öf šöþhïšťïçåţïöñ åñđ éñhåñçë ťhë þřöñüñćïåţïöñ øf ţëxť. Îţ'š füñ åñđ čřëåťëš å vïšüåłłý ïñţëřëšťïñğ ëffëçť.";
if (isset($_GET['sortsentencewords'])) {
$dias=str_replace(' ',' ',str_replace('+',' ',str_replace("\n"," ",str_replace("\r\n"," ",urldecode($_GET['sortsentencewords'])))));
$dia=explode(' ', $dias);
} else if (isset($_POST['sortsentencewords'])) {
$dias=str_replace(' ',' ',str_replace('+',' ',str_replace("\n"," ",str_replace("\r\n"," ",urldecode($_POST['sortsentencewords'])))));
$dia=explode(' ', $dias);
}
if (sizeof($dia) > 0) {
if (isset($_GET['locale'])) {
if ($tabis == '') {
$tabis='| Sorting Word List based on Locale ' . urldecode($_GET['locale']) . ' |
|---|
| ' . $dias . ' |
|---|
| Sorted List | Sentence List |
|---|
| | ';
}
for ($ij=(-1 + sizeof($dia)); $ij>=0; $ij--) {
$tabis=str_replace(' | ', ' | ' . $dia[$ij] . ' ', $tabis);
}
echo $bh;
sortit($dia, urldecode($_GET['locale']));
//if ($altinlang == '') {
$locsel='';
$altinlang='';
$locit=user_agent();
$arrl=ResourceBundle::getLocales('');
for ($df=0; $df 0) {
if ($lastword == $_GET['languagecode']) { $isalt=true; }
}
} else if (isset($_POST['languagecode'])) {
if (strlen($_POST['languagecode']) > 0) {
if ($lastword == $_POST['languagecode']) { $isalt=true; }
}
}
$ends=explode("['" . explode('-',explode('_',$arrl[$df])[0])[0] . '-', $lochelper);
$fcc='';
if (sizeof($ends) > 1) {
$endih.=' ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if (explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0] != '') {
$inlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if (isset($_GET['locale'])) {
if ($isalt) {
if (isset($_GET['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_GET['locale']))[-1 + sizeof(explode('_', urldecode($_GET['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else if (isset($_POST['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_POST['locale']))[-1 + sizeof(explode('_', urldecode($_POST['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
}
$found_cc=$foundcc;
$foundcc=$fcc;
//echo '3:' . $foundcc . ' ' . $_GET['locale']; exit;
$altinlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0] . ui(' used in ' . locale_get_display_region(urldecode($_GET['locale']), 'en') . ' ' . orflag($found_cc)); }
} else if (isset($_POST['locale'])) {
if ($isalt) {
if (isset($_GET['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_GET['locale']))[-1 + sizeof(explode('_', urldecode($_GET['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else if (isset($_POST['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_POST['locale']))[-1 + sizeof(explode('_', urldecode($_POST['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
}
$found_cc=$foundcc;
$foundcc=$fcc;
//echo '4:' . $found_cc; exit;
$altinlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0] . ui(' used in ' . locale_get_display_region(urldecode($_POST['locale']), 'en') . ' ' . orflag($found_cc)); }
}
}
}
if ((strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 2 && strpos($lochelpertwo, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false) || (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3 && strpos($lochelperthree, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false)) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
//echo substr(explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0], -250,250);
if (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3) {
$aintm=explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0])[-1 + sizeof(explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0]))];
} else {
$interim=explode('', explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0])[-1 + sizeof(explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0]))])[0]; //)[-1 + sizeof(explode('>', explode('', explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0];
//exit;
//if ($isalt) { echo $interim; exit; }
$aintm=explode('>', str_replace('','',$interim))[-1 + sizeof(explode('>', str_replace('','',$interim) ))];
}
//if ($isalt) { echo $interim . ' ' . $aintm . ' ' . $endih; exit; }
if (strpos($endih, ' ' . $aintm) === false) {
if ($endih != '') {
$endih.=' (' . $aintm . ')';
$inlang=' is ' . $aintm;
if ($isalt) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
} else {
$endih.=' ' . $aintm;
if ($isalt) {
//echo "Yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
}
}
}
if ($lastword == strtoupper($lastword) && strlen($lastword) == 2) {
$endih.=' ' . orflag(explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))]); //$found_cc
}
if ($endih != '') {
$endih="\t" . $endih . '';
}
if (strpos(($arrl[$df] . '_'), '_') !== false) { //} && strpos($arrl[$df], '0') === false) {
if ($locsel == '') {
$locsel="";
}
if ($locit != 'pc' && 1 == 1) {
$locsel=str_replace("", "", $locsel);
} else {
$locsel=str_replace("", "", $locsel);
}
}
}
$fcc='';
if ($altinlang != '') {
if (isset($_GET['locale']) && strpos($altinlang, ' used in ') === false) {
if ($isalt) {
if (isset($_GET['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_GET['locale']))[-1 + sizeof(explode('_', urldecode($_GET['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else if (isset($_POST['locale'])) {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', urldecode($_POST['locale']))[-1 + sizeof(explode('_', urldecode($_POST['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else {
$fcc=explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))];
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
}
$found_cc=$foundcc;
$foundcc=$fcc;
//echo '1:' . $found_cc; exit;
$altinlang.=ui(' used in ' . locale_get_display_region(urldecode($_GET['locale']), 'en') . ' ' . orflag($found_cc)); }
} else if (isset($_POST['locale']) && strpos($altinlang, ' used in ') === false) {
if ($isalt) {
if (isset($_GET['locale'])) {
$foundcc=explode('_', urldecode($_GET['locale']))[-1 + sizeof(explode('_', urldecode($_GET['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else if (isset($_POST['locale'])) {
$foundcc=explode('_', urldecode($_POST['locale']))[-1 + sizeof(explode('_', urldecode($_POST['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else {
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
}
$found_cc=$foundcc;
//echo '2:' . $found_cc; exit;
$altinlang.=ui(' used in ' . locale_get_display_region(urldecode($_POST['locale']), 'en') . ' ' . orflag($found_cc)); }
}
}
if (strpos($tabis, ' | ') !== false) {
$tabis=str_replace(' |
|---|
| ', $altinlang . ' |
|---|
', $tabis);
}
$inlang=$altinlang;
} else {
$inlang='';
}
if ($inlang != '' && $for != '') {
$for=str_replace('', '' . $inlang . ' used in ' . $cname . '', $for);
}
//}
premap();
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
exit;
} else if (isset($_POST['locale'])) {
if ($tabis == '') {
$tabis='| Sorting Word List based on Locale ' . urldecode($_POST['locale']) . ' | | ' . $dias . ' |
|---|
| Sorted List | Sentence List |
|---|
| | ';
}
for ($ij=(-1 + sizeof($dia)); $ij>=0; $ij--) {
$tabis=str_replace(' | ', ' | ' . $dia[$ij] . ' ', $tabis);
}
echo $bh;
sortit($dia, urldecode($_POST['locale']));
if ($altinlang == '') {
$locsel='';
$altinlang='';
$locit=user_agent();
$arrl=ResourceBundle::getLocales('');
for ($df=0; $df 0) {
if ($lastword == $_GET['languagecode']) { $isalt=true; }
}
} else if (isset($_POST['languagecode'])) {
if (strlen($_POST['languagecode']) > 0) {
if ($lastword == $_POST['languagecode']) { $isalt=true; }
}
}
$ends=explode("['" . explode('-',explode('_',$arrl[$df])[0])[0] . '-', $lochelper);
if (sizeof($ends) > 1) {
$endih.=' ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if (explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0] != '') {
$inlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0];
if ($isalt) { $altinlang=' is ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0]; }
}
}
if ((strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 2 && strpos($lochelpertwo, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false) || (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3 && strpos($lochelperthree, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false)) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
//echo substr(explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0], -250,250);
if (strlen(explode('-',explode('_',$arrl[$df])[0])[0]) == 3) {
$aintm=explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0])[-1 + sizeof(explode('>', explode('', explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelperthree)[1])[0]))];
} else {
$interim=explode('', explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0])[-1 + sizeof(explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0]))])[0]; //)[-1 + sizeof(explode('>', explode('', explode(' ' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0];
//exit;
//if ($isalt) { echo $interim; exit; }
$aintm=explode('>', str_replace('','',$interim))[-1 + sizeof(explode('>', str_replace('','',$interim) ))];
}
//if ($isalt) { echo $interim . ' ' . $aintm . ' ' . $endih; exit; }
if (strpos($endih, ' ' . $aintm) === false) {
if ($endih != '') {
$endih.=' (' . $aintm . ')';
$inlang=' is ' . $aintm;
if ($isalt) {
//echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
} else {
$endih.=' ' . $aintm;
if ($isalt) {
//echo "Yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n ";
if ($altinlang != '') {
$altinlang.=' (' . $aintm . ')';
} else {
$altinlang=' is ' . $aintm;
}
}
}
//} // huh?
}
if ($lastword == strtoupper($lastword) && strlen($lastword) == 2) {
$endih.=' ' . orflag(explode('_', $arrl[$df])[-1 + sizeof(explode('_', $arrl[$df]))]); //$found_cc;
}
if ($endih != '') {
$endih="\t" . $endih . '';
}
if (strpos(($arrl[$df] . '_'), '_') !== false) { //} && strpos($arrl[$df], '0') === false) {
if ($locsel == '') {
$locsel="";
}
if ($locit != 'pc' && 1 == 1) {
$locsel=str_replace("", "", $locsel);
} else {
$locsel=str_replace("", "", $locsel);
}
}
}
if ($altinlang != '') {
if (strpos($tabis, ' | ') !== false) {
$tabis=str_replace(' |
|---|
| ', $altinlang . ' |
|---|
', $tabis);
}
$inlang=$altinlang;
} else {
$inlang='';
}
if ($inlang != '' && $for != '') {
$for=str_replace('', '' . $inlang . '', $for);
}
}
premap();
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
exit;
}
}
//echo sortit(array( 'at', 'às', 'as' ), 'fr_FR') . " ... fr_FR ";
//echo sortit(array( 'as', 'at', 'às' ), 'de_DE') . " ... de_DE ";
//echo sortit(array( 'as', 'at', 'às' ), 'zh_CN') . " ... zh_CN ";
//echo sortit(array( 'às', 'at', 'as' ), 'en_AU') . " ... en_AU ";
//exit;
$inlang='';
$cname='';
$for="";
$foundcc="";
$thiscur="";
$thiscode="";
$sortsentencewords='en';
$defloc=Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (!empty($defloc)) { $defloc='en_GB'; $sortsentencewords='en'; }
if (isset($_GET['locale'])) {
$foundcc=explode('_', urldecode($_GET['locale']))[-1 + sizeof(explode('_', urldecode($_GET['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else if (isset($_POST['locale'])) {
$foundcc=explode('_', urldecode($_POST['locale']))[-1 + sizeof(explode('_', urldecode($_POST['locale'])))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
} else {
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
}
$found_cc=$foundcc;
$lg='en';
if (isset($_GET['locale'])) {
$for=' of ' . locale_get_primary_language(urldecode($_GET['locale'])) . '';
if (!isset($_GET['languagecode'])) {
$_GET['languagecode']=explode('-', explode('_', urldecode($_GET['locale']))[0])[0];
}
} else if (isset($_POST['locale'])) {
$for=' of ' . locale_get_primary_language(urldecode($_POST['locale'])) . '';
if (!isset($_POST['languagecode'])) {
$_POST['languagecode']=explode('-', explode('_', urldecode($_POST['locale']))[0])[0];
}
}
if (strpos($for, '>') !== false) { $for=''; }
function ui($outi) {
if (strpos($outi, ' used in ') !== false) { return ''; }
return $outi;
}
function baspan($sug) {
global $foundcc, $cname, $for, $found_cc;
$altcname='';
if (strlen($foundcc) == 2 && $foundcc == strtoupper($foundcc)) {
if (strlen($cname) > 2) {
if (strpos($for, ' used in ') === false) {
$for=str_replace('', ' used in ' . $cname . ' ' . orflag($found_cc) . '', $for);
}
return ' used in ' . $cname . ' ' . orflag($found_cc);
} else if (isset($_GET['locale'])) {
if (explode('-',explode('_',urldecode($_GET['locale']))[0])[0] == 'en') {
$altcname=locale_get_display_region(urldecode($_GET['locale']), explode('-',explode('_',urldecode($_GET['locale']))[0])[0]);
} else {
$altcname=locale_get_display_region(urldecode($_GET['locale']), explode('-',explode('_',urldecode($_GET['locale']))[0])[0]) . ' (' . locale_get_display_region(urldecode($_GET['locale']), 'en') . ')';
}
} else if (isset($_POST['locale'])) {
if (explode('-',explode('_',urldecode($_POST['locale']))[0])[0] == 'en') {
$altcname=locale_get_display_region(urldecode($_GET['locale']), explode('-',explode('_',urldecode($_GET['locale']))[0])[0]);
} else {
$altcname=locale_get_display_region(urldecode($_GET['locale']), explode('-',explode('_',urldecode($_GET['locale']))[0])[0]) . ' (' . locale_get_display_region(urldecode($_GET['locale']), 'en') . ')';
}
}
if ($altcname != '') {
if (strpos($for, ' used in ') === false) {
$for=str_replace('', ' used in ' . $altcname . ' ' . orflag($found_cc) . '', $for);
}
return ' used in ' . $altcname . ' ' . orflag($found_cc);
}
if (strpos($for, ' used in ') === false) {
$for=str_replace('', ' used in ' . orflag($found_cc) . '', $for);
}
return ' used in ' . orflag($found_cc);
}
return $sug;
}
function user_agent() { // thanks to https://stackoverflow.com/questions/6322112/check-if-php-page-is-accessed-from-an-ios-device/6322131
$iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad");
$android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
//file_put_contents('./public/upload/install_log/agent',$_SERVER['HTTP_USER_AGENT']);
if ($iPad||$iPhone||$iPod) {
return 'ios';
} else if ($android) {
return 'android';
} else {
return 'pc';
}
}
function server_remote_addr() {
$rma = $_SERVER['REMOTE_ADDR'];
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
// you can add different browsers with the same way ..
if (1 == 1) {
if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua))
$rma = '000000'.$rma;
elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua))
$rma = '00000'.$rma;
elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua))
$rma = '0000'.$rma;
elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua))
$rma = '000'.$rma;
elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua))
$rma = '00'.$rma;
elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua))
$rma = '0'.$rma;
}
return str_replace(':','_',str_replace('.','_',$rma));
}
// Eg. |
|---|
| Bahamas | Nassau | ... thanks
//$capbits=@file_get_contents("https://www.countries-ofthe-world.com/capitals-of-the-world.html");
$capbits="
| Country | Capital city |
| A |
| Afghanistan | Kabul |
| Albania | Tirana |
| Algeria | Algiers |
| Andorra | Andorra la Vella |
| Angola | Luanda |
| Antigua and Barbuda | Saint John's |
| Argentina | Buenos Aires |
| Armenia | Yerevan |
| Australia | Canberra |
| Austria | Vienna |
| Azerbaijan | Baku |
| B |
| Bahamas | Nassau |
| Bahrain | Manama |
| Bangladesh | Dhaka |
| Barbados | Bridgetown |
| Belarus | Minsk |
| Belgium | Brussels |
| Belize | Belmopan |
| Benin | Porto-Novo |
| Bhutan | Thimphu |
| Bolivia | La Paz (administrative), Sucre (judicial) |
| Bosnia and Herzegovina | Sarajevo |
| Botswana | Gaborone |
| Brazil | Brasilia |
| Brunei | Bandar Seri Begawan |
| Bulgaria | Sofia |
| Burkina Faso | Ouagadougou |
| Burundi | Bujumbura |
| C |
| Cabo Verde | Praia |
| Cambodia | Phnom Penh |
| Cameroon | Yaounde |
| Canada | Ottawa |
| Central African Republic | Bangui |
| Chad | N'Djamena |
| Chile | Santiago |
| China | Beijing |
| Colombia | Bogotá |
| Comoros | Moroni |
| Democratic Republic of the Congo | Kinshasa |
| Republic of the Congo | Brazzaville |
| Costa Rica | San Jose |
| Cote d'Ivoire | Yamoussoukro |
| Croatia | Zagreb |
| Cuba | Havana |
| Cyprus | Nicosia |
| Czech Republic | Prague |
| D |
| Denmark | Copenhagen |
| Djibouti | Djibouti (city) |
| Dominica | Roseau |
| Dominican Republic | Santo Domingo |
| E |
| Ecuador | Quito |
| Egypt | Cairo |
| El Salvador | San Salvador |
| Equatorial Guinea | Malabo |
| Eritrea | Asmara |
| Estonia | Tallinn |
| Ethiopia | Addis Ababa |
| F |
| Fiji | Suva |
| Finland | Helsinki |
| France | Paris |
| G |
| Gabon | Libreville |
| Gambia | Banjul |
| Georgia | Tbilisi |
| Germany | Berlin |
| Ghana | Accra |
| Greece | Athens |
| Grenada | Saint George's |
| Guatemala | Guatemala City |
| Guinea | Conakry |
| Guinea-Bissau | Bissau |
| Guyana | Georgetown |
| H |
| Haiti | Port-au-Prince |
| Honduras | Tegucigalpa |
| Hungary | Budapest |
| I |
| Iceland | Reykjavik |
| India | New Delhi |
| Indonesia | Jakarta |
| Iran | Tehran |
| Iraq | Baghdad |
| Ireland | Dublin |
| Israel | Jerusalem |
| Italy | Rome |
| J |
| Jamaica | Kingston |
| Japan | Tokyo |
| Jordan | Amman |
| K |
| Kazakhstan | Astana |
| Kenya | Nairobi |
| Kiribati | South Tarawa |
| Kosovo | Pristina |
| Kuwait | Kuwait City |
| Kyrgyzstan | Bishkek |
| L |
| Laos | Vientiane |
| Latvia | Riga |
| Lebanon | Beirut |
| Lesotho | Maseru |
| Liberia | Monrovia |
| Libya | Tripoli |
| Liechtenstein | Vaduz |
| Lithuania | Vilnius |
| Luxembourg | Luxembourg |
| Country | Capital city |
| M |
| Macedonia | Skopje |
| Madagascar | Antananarivo |
| Malawi | Lilongwe |
| Malaysia | Kuala Lumpur |
| Maldives | Male |
| Mali | Bamako |
| Malta | Valletta |
| Marshall Islands | Majuro |
| Mauritania | Nouakchott |
| Mauritius | Port Louis |
| Mexico | Mexico City |
| Micronesia | Palikir |
| Moldova | Chisinau |
| Monaco | Monaco |
| Mongolia | Ulaanbaatar |
| Montenegro | Podgorica |
| Morocco | Rabat |
| Mozambique | Maputo |
| Myanmar (Burma) | Naypyidaw |
| N |
| Namibia | Windhoek |
| Nauru | Yaren District |
| Nepal | Kathmandu |
| Netherlands | Amsterdam |
| New Zealand | Wellington |
| Nicaragua | Managua |
| Niger | Niamey |
| Nigeria | Abuja |
| North Korea | Pyongyang |
| Norway | Oslo |
| O |
| Oman | Muscat |
| P |
| Pakistan | Islamabad |
| Palau | Ngerulmud |
| Palestine | Ramallah |
| Panama | Panama City |
| Papua New Guinea | Port Moresby |
| Paraguay | Asunción |
| Peru | Lima |
| Philippines | Manila |
| Poland | Warsaw |
| Portugal | Lisbon |
| Q |
| Qatar | Doha |
| R |
| Romania | Bucharest |
| Russia | Moscow |
| Rwanda | Kigali |
| S |
| Saint Kitts and Nevis | Basseterre |
| Saint Lucia | Castries |
| Saint Vincent and the Grenadines | Kingstown |
| Samoa | Apia |
| San Marino | San Marino |
| Sao Tome and Principe | São Tomé |
| Saudi Arabia | Riyadh |
| Senegal | Dakar |
| Serbia | Belgrade |
| Seychelles | Victoria |
| Sierra Leone | Freetown |
| Singapore | Singapore |
| Slovakia | Bratislava |
| Slovenia | Ljubljana |
| Solomon Islands | Honiara |
| Somalia | Mogadishu |
| South Africa | Pretoria (administrative), Cape Town (legislative), Bloemfontein (judicial) |
| South Korea | Seoul |
| South Ossetia | Tskhinvali |
| South Sudan | Juba |
| Spain | Madrid |
| Sri Lanka | Sri Jayawardenepura Kotte |
| Sudan | Khartoum |
| Suriname | Paramaribo |
| Swaziland | Mbabane |
| Sweden | Stockholm |
| Switzerland | Bern |
| Syria | Damascus |
| T |
| Taiwan | Taipei |
| Tajikistan | Dushanbe |
| Tanzania | Dodoma |
| Thailand | Bangkok |
| Timor-Leste | Dili |
| Togo | Lomé |
| Tonga | Nukuʻalofa |
| Trinidad and Tobago | Port of Spain |
| Tunisia | Tunis |
| Turkey | Ankara |
| Turkmenistan | Ashgabat |
| Tuvalu | Funafuti |
| U |
| Uganda | Kampala |
| Ukraine | Kyiv |
| United Arab Emirates | Abu Dhabi |
| United Kingdom | London |
| United States of America | Washington, D.C. |
| Uruguay | Montevideo |
| Uzbekistan | Tashkent |
| V |
| Vanuatu | Port Vila |
| Vatican City (Holy See) | Vatican City |
| Venezuela | Caracas |
| Vietnam | Hanoi |
| Y |
| Yemen | Sana'a |
| Z |
| Zambia | Lusaka |
| Zimbabwe | Harare | ";
function yourflag($incn) {
global $iso_country_codes, $foundcc, $found_cc;
for ($jk=1; $jk";
//}
function countryid($cinis) {
return str_replace('.', '_', str_replace(' ', '_', str_replace('"', '_', str_replace("'", "_", $cinis))));
}
function premap() {
global $foundcc, $sortsentencewords, $iso_country_codes, $curbits, $for, $inlang, $cname, $found_cc;
$cname='';
$curbits=str_replace('',' ',str_replace('',' ',str_replace(' ',' ',$curbits)));
for ($ijk=0; $ijk' . $cname . $inlang . '';
} else if (isset($_POST['locale'])) {
$cname=locale_get_primary_language(urldecode($_POST['locale']));
$for=' of ' . locale_get_primary_language(urldecode($_POST['locale'])) . $inlang . '';
} else if (isset($_GET['locale'])) {
$cname=locale_get_primary_language(urldecode($_GET['locale']));
$for=' of ' . locale_get_primary_language(urldecode($_GET['locale'])) . $inlang . '';
}
}
}
if ($cname == '') {
if (isset($_POST['locale'])) {
$for=' of ' . locale_get_primary_language(urldecode($_POST['locale'])) . $inlang . '';
} else if (isset($_GET['locale'])) {
$for=' of ' . locale_get_primary_language(urldecode($_GET['locale'])) . $inlang . '';
}
}
if (strpos($for, '>') !== false) { $for=''; }
}
echo "PHP Intl Sort Names via Locale - RJM Programming - December, 2024
var previsel=" . $isel . ";
var sellist=[];
sellist.push(\"" . $sellist[0] . "\");
sellist.push(\"" . $sellist[1] . "\");
sellist.push(\"" . $sellist[2] . "\");
var prevcont=\"" . $sellist[$isel] . "\";
var em='m';
var lastokn='';
var okn='';
var lastconto=[];
var morechanges=true;
var lastwo='';
var woi=null;
var oko=null;
var nlastokn='';
var xokn='';
var xlastconto=[];
var xmorechanges=true;
var xlastwo='';
var xwoi=null;
var xoko=null;
var ctynames=\"" . str_replace("\n","",$ctynames) . "\";
function pretvanal(taval) {
prevcont=taval;
}
function tvanal(selval) {
//alert('prevcont=' + prevcont + '[]=' + sellist[previsel] + ' and previsel=' + previsel + ' and selval=' + selval);
if (prevcont == sellist[previsel]) {
if (selval.indexOf('REGULAR') != -1 || selval == '') {
document.getElementById('sortsentencewords').value=sellist[0];
previsel=0;
prevcont=sellist[previsel];
} else if (selval.indexOf('NUMERIC') != -1) {
document.getElementById('sortsentencewords').value=sellist[1];
previsel=1;
prevcont=sellist[previsel];
} else if (selval.indexOf('STRING') != -1) {
document.getElementById('sortsentencewords').value=sellist[2];
previsel=2;
prevcont=sellist[previsel];
}
}
}
function expandokn() {
var iut=0, pls=[],firsttz='',tzsih='',xtzsih='',thatloc='', wds=[];
if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn != okn.toUpperCase()) {
document.getElementById(em + 'das').innerHTML='Country Name ';
pls=ctynames.split('>' + okn);
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + okn + pls[iut].split('<')[0] + ' ' + jorflag(pls[eval(-1 + iut)].slice(-3).substring(0,2)) + '';
}
}
} else if (okn.substring(0,1) == okn.substring(0,1).toLowerCase() && okn == okn.toLowerCase()) {
xtzsih=document.getElementById('tzsel').innerHTML;
document.getElementById(em + 'das').innerHTML+='
Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split( value='\"' + okn);
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut')[1].split('<')[0].split(' ')[0].split('+')[0];
wds=thatloc.split('_');
if (eval('' + wds[eval(-1 + wds.length)].length) == 2 && wds[eval(-1 + wds.length)] == wds[eval(-1 + wds.length)].toUpperCase() && eval('' + wds.length) > 1) {
//alert('1:' + wds[eval(-1 + wds.length)]);
firsttz='';
if (xtzsih.indexOf(',' + wds[eval(-1 + wds.length)] + ',') != -1) {
firsttz=xtzsih.split(',' + wds[eval(-1 + wds.length)] + ',')[1].split('>')[1].split('<')[0].split(' ')[0];
//alert('2:' + firsttz);
}
document.getElementById(em + 'das').innerHTML+=' ' + thatloc + ' ' + jorflag(wds[eval(-1 + wds.length)]) + '';
} else {
document.getElementById(em + 'das').innerHTML+=' ' + thatloc + '';
}
}
}
} else if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn == okn.toUpperCase() && eval('' + okn.length) == 2) {
document.getElementById(em + 'das').innerHTML='Country Name ';
pls=ctynames.split(\"'\" + okn + \"'>\");
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('<')[0] + ' ' + jorflag(okn) + '';
}
}
tzsih=document.getElementById('tzsel').innerHTML;
if (tzsih.indexOf(',' + okn + ',') != -1) {
firsttz=tzsih.split(',' + okn + ',')[1].split('>')[1].split('<')[0].split(' ')[0];
}
document.getElementById(em + 'das').innerHTML+='
Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split('_' + okn + '\"');
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(okn) + '';
}
}
}
}
function maybesel(oin) {
if (oin.value.trim() != '') {
var wdsa=document.getElementById('locsel').innerHTML.split(' value=\"' + oin.value + '\"');
if (eval('' + wdsa.length) == 1) {
wdsa=document.getElementById('locsel').innerHTML.split('>' + oin.value + '<');
}
}
}
function jorflag(thiscc) {
var lri='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var dri=['127462','127463','127464','127465','127466','127467','127468','127469','127470','127471','127472','127473','127474','127475','127476','127477','127478','127479','127480','127481','127482','127483','127484','127485','127486','127487'];
var ccsuff='', ccchar=' ', cde='';
for (var iccsuff=0; iccsuff Locale ';
tzsih=document.getElementById('locsel').innerHTML;
//alert(tzsih.length);
pls=tzsih.split('_' + ao.title.split(' ')[0] + '\"');
if (eval('' + pls.length) > 1) {
//alert('here');
for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(ao.title.split(' ')[0]) + '';
}
}
xokn='';
}
}
function analr(ao,tzi) { // locale
if (ao.innerHTML.indexOf('_') != -1) {
document.getElementById('locsel').value=ao.innerHTML.split(' ')[0];
document.getElementById('locale').value=ao.innerHTML.split(' ')[0];
document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)];
//document.getElementById('timezone').value=tzi.split(' ')[0];
document.getElementById(em + 'das').innerHTML='';
okn='';
}
}
function analq(ao,tzi) { // locale
if (ao.innerHTML.indexOf('_') != -1) {
document.getElementById('locsel').value=ao.innerHTML.split(' ')[0];
document.getElementById('locale').value=ao.innerHTML.split(' ')[0];
document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)];
//document.getElementById('timezone').value=tzi.split(' ')[0];
document.getElementById(em + 'das').innerHTML='';
xokn='';
okn='';
}
}
function precval(iois) {
//okn=iois.value;
oko=iois;
lastokn=okn;
}
function cval(eiois) {
//if (document.URL.indexOf('i0=') == -1) {
//if (eiois.which != 16) { alert('2:' + eiois.which); }
//okn+=String.fromCharCode(eiois.which || eiois.keyCode);
if ((eiois.which || eiois.keyCode) == 8) {
okn='';
} else if ((eiois.which || eiois.keyCode) == 186 || (eiois.which || eiois.keyCode) == 900000016) {
okn=okn.replace(':','') + ':';
//document.title=okn + ' ' + (eiois.which || eiois.keyCode);
var cvi=okn.split(':');
if (cvi.length > 1) {
var scs=0.0, factor=1.0;
for (var ij=eval(-1 + cvi.length); ij>=0; ij--) {
if (cvi[ij] == '') cvi[ij]='00';
scs+=eval(factor * eval(cvi[ij]));
factor*=60.0;
}
//alert(scs + ' ' + okn);
okn='' + scs;
oko.value=okn;
lastokn=okn.replace(':','');
//document.title=okn + ' ' + (eiois.which || eiois.keyCode) + ' ' + oko.value;
//setTimeout(fixval,30);
}
} else if ((eiois.which || eiois.keyCode) == 191) {
if (!eiois.shiftKey) {
okn+=String.fromCharCode(47);
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
}
if (eval('' + okn.length) > 1) { expandokn(); }
} else if ((eiois.which || eiois.keyCode) == 189) {
if (eiois.shiftKey) {
okn+=String.fromCharCode(95);
} else {
okn+=String.fromCharCode(45);
}
if (eval('' + okn.length) > 1) { expandokn(); }
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
} else if (eiois.keyCode == 189 || (eiois.which || eiois.keyCode) >= 65 && (eiois.which || eiois.keyCode) <= 90) {
if (eiois.shiftKey) {
okn+=String.fromCharCode(eiois.which || eiois.keyCode);
} else {
okn+=String.fromCharCode(eval(32 + eval(eiois.which || eiois.keyCode)));
}
//document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
if (eval('' + okn.length) > 1) { expandokn(); }
} else if ((eiois.which || eiois.keyCode) < 46 || (eiois.which || eiois.keyCode) > 58) {
okn=okn;
} else if (1 == 3) {
okn+=String.fromCharCode(eiois.which || eiois.keyCode);
document.title+='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
}
//}
}
";
if (isset($_GET['locale']) && !isset($_GET['sortsentencewords'])) {
$defloc=urldecode($_GET['locale']);
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
//$fmt = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::DECIMAL);
//$formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY);
if (!empty($defloc)) {
Locale::setDefault($defloc);
premap();
// $formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY);
} else {
Locale::setDefault('en_AU');
$sortsentencewords='AUD';
// $formatter = new NumberFormatter(urldecode($_GET['locale']), 'AUD');
}
//if (isset($_GET['sorttype'])) {
// echo "" . $formatter->formatCurrency(urldecode($_GET['sorttype']), $sortsentencewords) . " " . $fmt->format(urldecode($_GET['sorttype'])) . "
";
//} else {
$bitsbefore='';
$bitsafter='';
if ($altinlang != '') {
$bitsbefore=substr($altinlang,4) . " ";
$bitsafter=baspan('');
}
echo "" . $bitsbefore . locale_get_primary_sort(urldecode($_GET['locale'])) . $bitsafter . " ";
//}
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
} else if (isset($_GET['locale']) && isset($_GET['sortsentencewords'])) {
$defloc=urldecode($_GET['locale']);
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
if ($foundcc != '') { premap(); }
//$fmt = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::DECIMAL);
//$formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY);
//if (isset($_GET['sorttype'])) {
// echo "" . $formatter->formatCurrency(urldecode($_GET['sorttype']), urldecode($_GET['sortsentencewords'])) . " " . $fmt->format(urldecode($_GET['sorttype'])) . " ";
//} else {
$bitsbefore='';
$bitsafter='';
if ($altinlang != '') {
$bitsbefore=substr($altinlang,4) . " ";
$bitsafter=baspan('');
}
echo "" . $bitsbefore . locale_get_primary_sort(urldecode($_GET['locale'])) . $bitsafter . " ";
//}
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
} else if (isset($_POST['locale']) && !isset($_POST['sortsentencewords'])) {
$defloc=urldecode($_POST['locale']);
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
//$fmt = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::DECIMAL);
//$formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY);
if (!empty($defloc)) {
Locale::setDefault($defloc);
premap();
// $formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY);
} else {
Locale::setDefault('en_AU');
$sortsentencewords='AUD';
// $formatter = new NumberFormatter(urldecode($_POST['locale']), 'AUD');
}
//if (isset($_POST['sorttype'])) {
// echo "" . $formatter->formatCurrency(urldecode($_POST['sorttype']), $sortsentencewords) . " " . $fmt->format(urldecode($_POST['sorttype'])) . "
";
//} else {
$bitsbefore='';
$bitsafter='';
if ($altinlang != '') {
$bitsbefore=substr($altinlang,4) . " ";
$bitsafter=baspan('');
}
echo "" . $bitsbefore . locale_get_primary_sort(urldecode($_POST['locale'])) . $bitsafter . " ";
//}
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
} else if (isset($_POST['locale']) && isset($_POST['sortsentencewords'])) {
$defloc=urldecode($_POST['locale']);
$foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))];
$foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))];
if ($foundcc != '') { premap(); }
//$fmt = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::DECIMAL);
//$formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY);
//if (isset($_POST['sorttype'])) {
// echo "" . $formatter->formatCurrency(urldecode($_POST['sorttype']), urldecode($_POST['sortsentencewords'])) . " " . $fmt->format(urldecode($_POST['sorttype'])) . " ";
//} else {
$bitsbefore='';
$bitsafter='';
if ($altinlang != '') {
$bitsbefore=substr($altinlang,4) . " ";
$bitsafter=baspan('');
}
echo "" . $bitsbefore . locale_get_primary_sort(urldecode($_POST['locale'])) . $bitsafter . " ";
//}
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
} else {
echo "Show Sort Words" . $for . "RJM Programming - December, 2024As per (white background textboxes optional) ...
";
}
echo "";
?>
|
|---|
|
|---|
|