0) { $langeq=' lang="' . explode(' ',explode('-',explode('_', urldecode($_GET['locale']))[0])[0])[0] . '"'; } } else if (isset($_POST['locale'])) { if (strlen($_POST['locale']) > 0) { $langeq=' lang="' . explode(' ',explode('-',explode('_', urldecode($_POST['locale']))[0])[0])[0] . '"'; } } if (isset($_GET['timezone'])) { $_GET['timezone']=explode(' ',explode('%20',explode('+', $_GET['timezone'])[0])[0])[0]; } else if (isset($_POST['timezone'])) { $_POST['timezone']=explode(' ',explode('%20',explode('+', $_POST['timezone'])[0])[0])[0]; } 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)); } function orflag($incc) { $uretv=''; $lri=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]; $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"]; for ($jjm=0; $jjm', '', $cont); file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/html_intl_' . str_replace('+',' ',urldecode($_GET['sra'])) . '.html', $cont); if ($wopenit) { echo ""; } exit; } else if (isset($_POST['sra']) && isset($_POST['it'])) { //if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/html_intl_' . str_replace('+',' ',urldecode($_POST['sra'])) . '.html')) { // exec('rm -f ' . $_SERVER['DOCUMENT_ROOT'] . '/html_intl_' . str_replace('+',' ',urldecode($_POST['sra'])) . '.html'); //} $wopenit=false; if (!file_exists($_SERVER['DOCUMENT_ROOT'] . '/html_intl_' . str_replace('+',' ',urldecode($_POST['sra'])) . '.html')) { $wopenit=true; } $cont=str_replace('+',' ',urldecode($_POST['it'])); $cont=str_replace('*', 'Optionally select ', $cont); $cont=str_replace('@', 'Show Current Time', $cont); $cont=str_replace('$', 'RJM Programming - December, 2024', $cont); $cont=str_replace('!', 'As per (white background textboxes optional) ...', $cont); $cont=str_replace('', '', $cont); file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/html_intl_' . str_replace('+',' ',urldecode($_POST['sra'])) . '.html', $cont); if ($wopenit) { echo ""; } exit; } $gone="\n setTimeout(function(){ if ((document.getElementById('locale').value + document.getElementById('locale').placeholder).split('_')[0].split('-')[0] != 'en') { gtwoo=window.open('https://www-rjmprogramming-com-au.translate.goog/html_intl_" . server_remote_addr() . ".html?_x_tr_sch=https&_x_tr_sl=en&_x_tr_tl=' + (document.getElementById('locale').value + document.getElementById('locale').placeholder).split('_')[0].split('-')[0] + '&_x_tr_hl=en','_blank','top=200,left=' + eval(-500 + eval('' + screen.width)) + ',width=500,height=500'); } }, 7000); \n"; // https://www-rjmprogramming-com-au.translate.goog/PHP/GeoChart/image_chart.php?_x_tr_sch=https&_x_tr_sl=en&_x_tr_tl=it&_x_tr_hl=en if (isset($_GET['translate']) && isset($_GET['locale'])) { $opbit=' open'; if (strlen($_GET['locale']) > 0) { $delthis=$_SERVER['DOCUMENT_ROOT'] . "/html_intl_" . server_remote_addr() . ".html"; if (explode('-',explode('_',urldecode($_GET['locale']))[0])[0] != 'en') { $gtwo="\n setTimeout(function(){ gtwoo=window.open('https://www-rjmprogramming-com-au.translate.goog/html_intl_" . server_remote_addr() . ".html?_x_tr_sch=https&_x_tr_sl=en&_x_tr_tl=" . explode('-',explode('_',urldecode($_GET['locale']))[0])[0] . "&_x_tr_hl=en','_blank','top=200,left=' + eval(-500 + eval('' + screen.width)) + ',width=500,height=500'); }, 7000); \n"; } } } else if (isset($_POST['translate']) && isset($_POST['locale'])) { $opbit=' open'; if (strlen($_POST['locale']) > 0) { $delthis=$_SERVER['DOCUMENT_ROOT'] . "/html_intl_" . server_remote_addr() . ".html"; if (explode('-',explode('_',urldecode($_POST['locale']))[0])[0] != 'en') { $gtwo="\n setTimeout(function(){ gtwoo=window.open('https://www-rjmprogramming-com-au.translate.goog/html_intl_" . server_remote_addr() . ".html?_x_tr_sch=https&_x_tr_sl=en&_x_tr_tl=" . explode('-',explode('_',urldecode($_POST['locale']))[0])[0] . "&_x_tr_hl=en','_blank','top=200,left=' + eval(-500 + eval('' + screen.width)) + ',width=500,height=500'); }, 7000); \n"; } } } $tabp=''; $tabs=''; if (isset($_GET['timezone'])) { $tabp='
'; $tabs='
'; } else if (isset($_POST['timezone'])) { $tabp='
'; $tabs='
'; } $revealp=''; $reveals=''; $clockcss=''; $clocksvg="data:image/svg+xml;utf8,\\0023f0"; if (isset($_GET['clock']) || isset($_POST['clock'])) { $revealp='' . $tabp; $reveals=$tabs . ''; $clockcss="\n #pdfmt { border-radius: 50px; } \n"; } else { $revealp=$tabp; $reveals=$tabs; } $defloc=Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); if (!empty($defloc)) { $defloc='en_GB'; } $deficc=explode('_', str_replace('_posix','',$defloc))[-1 + sizeof(explode('_', str_replace('_posix','',$defloc)))]; $yourtzlist=""; $locit=user_agent(); $yls=explode(" data-geo='", $yourtzlist); //echo '' . sizeof($yls) . explode(' data-', $yourtzlist)[1]; //exit; for ($iy=(-1 + sizeof($yls)); $iy>=1; $iy--) { if (sizeof(explode(',', $yls[$iy])) > 3) { $icp=explode(',', $yls[$iy])[3]; //echo $icp; if ($icp == strtoupper($icp) && strlen($icp) == 2 && strpos($icp, '?') === false) { //echo $icp . ' data-geo="' . $yls[$iy] . ' becomes ' . ' title="' . orflag($icp) . '" data-geo="' . $yls[$iy]; //exit; if ($locit != 'pc' && 1 == 3) { $yourtzlist=str_replace(" data-geo='" . explode('',$yls[$iy])[0] . '', ' data-ontouchstart=ots(event); title=' . "'" . orflag($icp) . "'" . " data-geo='" . explode('',$yls[$iy])[0] . ' ' . orflag($icp) . '', $yourtzlist); } else if (orflag($icp) != '') { $yourtzlist=str_replace(" data-geo='" . $yls[$iy], ' data-ontouchstart=ots(event); id=opt' . $optcnt . ' title=' . "'" . orflag($icp) . "'" . " data-geo='" . $yls[$iy], $yourtzlist); $optcnt++; } else { $yourtzlist=str_replace(" data-geo='" . $yls[$iy], ' data-ontouchstart=ots(event); title=' . "'" . orflag($icp) . "'" . " data-geo='" . $yls[$iy], $yourtzlist); } } } } if (strpos($yourtzlist, ',' . $deficc . ',') !== false) { $ourtz=explode('<', explode('>', explode(',' . $deficc . ',', $yourtzlist)[1])[1])[0]; } else { $ourtz="''"; //date.timezone; // ($_SERVER['TZ'] ?? (file_get_contents('/etc/timezone') ?: file_get_contents('/etc/localtime'))) } $lochelper="// If you modify this array, also update default language / dialect below ... thanks to Google https://www.google.com/intl/en/chrome/demos/speech.html var langs = [['Afrikaans', ['af-ZA']], ['አማርኛ', ['am-ET']], ['Azərbaycanca', ['az-AZ']], ['বাংলা', ['bn-BD', 'বাংলাদেশ'], ['bn-IN', 'ভারত']], ['Bahasa Indonesia',['id-ID']], ['Bahasa Melayu', ['ms-MY']], ['Català', ['ca-ES']], ['Čeština', ['cs-CZ']], ['Dansk', ['da-DK']], ['Deutsch', ['de-DE']], ['English', ['en-AU', 'Australia'], ['en-CA', 'Canada'], ['en-IN', 'India'], ['en-KE', 'Kenya'], ['en-TZ', 'Tanzania'], ['en-GH', 'Ghana'], ['en-NZ', 'New Zealand'], ['en-NG', 'Nigeria'], ['en-ZA', 'South Africa'], ['en-PH', 'Philippines'], ['en-GB', 'United Kingdom'], ['en-US', 'United States']], ['Español', ['es-AR', 'Argentina'], ['es-BO', 'Bolivia'], ['es-CL', 'Chile'], ['es-CO', 'Colombia'], ['es-CR', 'Costa Rica'], ['es-EC', 'Ecuador'], ['es-SV', 'El Salvador'], ['es-ES', 'España'], ['es-US', 'Estados Unidos'], ['es-GT', 'Guatemala'], ['es-HN', 'Honduras'], ['es-MX', 'México'], ['es-NI', 'Nicaragua'], ['es-PA', 'Panamá'], ['es-PY', 'Paraguay'], ['es-PE', 'Perú'], ['es-PR', 'Puerto Rico'], ['es-DO', 'República Dominicana'], ['es-UY', 'Uruguay'], ['es-VE', 'Venezuela']], ['Euskara', ['eu-ES']], ['Filipino', ['fil-PH']], ['Français', ['fr-FR']], ['Basa Jawa', ['jv-ID']], ['Galego', ['gl-ES']], ['ગુજરાતી', ['gu-IN']], ['Hrvatski', ['hr-HR']], ['IsiZulu', ['zu-ZA']], ['Íslenska', ['is-IS']], ['Italiano', ['it-IT', 'Italia'], ['it-CH', 'Svizzera']], ['ಕನ್ನಡ', ['kn-IN']], ['ភាសាខ្មែរ', ['km-KH']], ['Latviešu', ['lv-LV']], ['Lietuvių', ['lt-LT']], ['മലയാളം', ['ml-IN']], ['मराठी', ['mr-IN']], ['Magyar', ['hu-HU']], ['ລາວ', ['lo-LA']], ['Nederlands', ['nl-NL']], ['नेपाली भाषा', ['ne-NP']], ['Norsk bokmål', ['nb-NO']], ['Polski', ['pl-PL']], ['Português', ['pt-BR', 'Brasil'], ['pt-PT', 'Portugal']], ['Română', ['ro-RO']], ['සිංහල', ['si-LK']], ['Slovenščina', ['sl-SI']], ['Basa Sunda', ['su-ID']], ['Slovenčina', ['sk-SK']], ['Suomi', ['fi-FI']], ['Svenska', ['sv-SE']], ['Kiswahili', ['sw-TZ', 'Tanzania'], ['sw-KE', 'Kenya']], ['ქართული', ['ka-GE']], ['Հայերեն', ['hy-AM']], ['தமிழ்', ['ta-IN', 'இந்தியா'], ['ta-SG', 'சிங்கப்பூர்'], ['ta-LK', 'இலங்கை'], ['ta-MY', 'மலேசியா']], ['తెలుగు', ['te-IN']], ['Tiếng Việt', ['vi-VN']], ['Türkçe', ['tr-TR']], ['اُردُو', ['ur-PK', 'پاکستان'], ['ur-IN', 'بھارت']], ['Ελληνικά', ['el-GR']], ['български', ['bg-BG']], ['Pусский', ['ru-RU']], ['Српски', ['sr-RS']], ['Українська', ['uk-UA']], ['한국어', ['ko-KR']], ['中文', ['cmn-Hans-CN', '普通话 (中国大陆)'], ['cmn-Hans-HK', '普通话 (香港)'], ['cmn-Hant-TW', '中文 (台灣)'], ['yue-Hant-HK', '粵語 (香港)']], ['日本語', ['ja-JP']], ['हिन्दी', ['hi-IN']], ['ภาษาไทย', ['th-TH']]]; "; $lochelpertwo=file_get_contents('http://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'); $calsel=''; if (1 == 1) { $bundle=new ResourceBundle('','ICUDATA'); $cnames=[]; $calendars=$bundle->get('calendar'); foreach ($calendars as $n=>$v) { if ($calsel == '') { $calsel=""; } $calsel=str_replace("", "", $calsel); $cnames[]=$n; } } $locsel=''; $locit=user_agent(); $arrl=ResourceBundle::getLocales(''); for ($df=0; $df 1) { $endih.=' ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0]; } if (strpos($lochelpertwo, '>' . 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); $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; $aintm=explode('>', $interim)[-1 + sizeof(explode('>', $interim))]; if (strpos($endih, ' ' . $aintm) === false) { if ($endih != '') { $endih.=' (' . $aintm . ')'; } else { $endih.=' ' . $aintm; } } } if ($lastword == strtoupper($lastword) && strlen($lastword) == 2) { $endih.=' ' . orflag($lastword); } 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); } } } $ctynames=" "; echo "PHP Intl Current Time via Locale and TimeZone and optional Calendar - RJM Programming - December, 2024 var allowanyway=false; var agone=\"" . str_replace("\n","",$gone) . "\"; var sra='" . server_remote_addr() . "'; var gtwoo=null; var ctynames=\"" . str_replace("\n","",$ctynames) . "\"; var canmakenothing=false, firstloc=''; var documentURL=document.URL; var repcnt=0, cnb='', isov='', txils=[]; //if (documentURL.indexOf('clock=') != -1) { setTimeout(function(){ document.getElementById('justincase').src=documentURL=documentURL.replace('clock=','cloNOWAYck=') + '&rand=' + repcnt; ), 1000); } var thistz=(location.search.split('timezone=')[1] ? (decodeURIComponent(location.search.split('timezone=')[1].split('&')[0]) + '').split(' ')[0].split('+')[0] : ''); var doseti=0; var em=''; if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|iPad|Opera Mini|IEMobile/i)) { 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; 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 + '<'); } if (document.getElementById('timezone').value == '' && eval('' + wdsa.length) > 1) { document.getElementById('locsel').value=tzdef(oin.value); } } } function precval(iois) { //okn=iois.value; oko=iois; lastokn=okn; } function xprecval(iois) { //okn=iois.value; xoko=iois; xlastokn=xokn; } 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 xcval(eiois) { //if (document.URL.indexOf('i0=') == -1) { //if (eiois.which != 16) { alert('1:' + eiois.which); } //xokn+=String.fromCharCode(eiois.which || eiois.keyCode); if ((eiois.which || eiois.keyCode) == 8) { xokn=''; } else if ((eiois.which || eiois.keyCode) == 186 || (eiois.which || eiois.keyCode) == 900000016) { xokn=xokn.replace(':','') + ':'; //document.title=okn + ' ' + (eiois.which || eiois.keyCode); var cvi=xokn.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); xokn='' + scs; xoko.value=xokn; xlastokn=xokn.replace(':',''); //document.title=okn + ' ' + (eiois.which || eiois.keyCode) + ' ' + oko.value; //setTimeout(fixval,30); } } else if ((eiois.which || eiois.keyCode) == 191) { if (!eiois.shiftKey) { xokn+=String.fromCharCode(47); //document.title='=2:' + xokn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } if (eval('' + xokn.length) > 1) { expandxokn(); } } else if ((eiois.which || eiois.keyCode) == 189) { if (eiois.shiftKey) { xokn+=String.fromCharCode(95); } else { xokn+=String.fromCharCode(45); } if (eval('' + xokn.length) > 1) { expandxokn(); } //document.title='=2:' + xokn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } else if (eiois.keyCode == 189 || (eiois.which || eiois.keyCode) >= 65 && (eiois.which || eiois.keyCode) <= 90) { if (eiois.shiftKey) { xokn+=String.fromCharCode(eiois.which || eiois.keyCode); } else { xokn+=String.fromCharCode(eval(32 + eval(eiois.which || eiois.keyCode))); } if (eval('' + xokn.length) > 1) { expandxokn(); } //document.title='=2:' + xokn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } else if ((eiois.which || eiois.keyCode) < 46 || (eiois.which || eiois.keyCode) > 58) { xokn=xokn; } else if (1 == 3) { xokn+=String.fromCharCode(eiois.which || eiois.keyCode); document.title+='=' + xokn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } //} } 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 expandxokn() { var iut=0, pls=[], tzsih='', thattz=''; if (xokn.substring(0,1) == xokn.substring(0,1).toUpperCase() && xokn != xokn.toUpperCase()) { document.getElementById(em + 'das').innerHTML='TimeZone Place Name
'; tzsih=document.getElementById('tzsel').innerHTML; //alert(tzsih.length); pls=tzsih.split('/' + xokn); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut')[1].split('<')[0].split(' ')[0].split('+')[0].split('/' + xokn)[0] + '/' + xokn + pls[iut].split('\"')[0]; if (eval('' + tzsih.split(thattz)[1].split(' data-geo=')[1].split(',').length) > 3) { document.getElementById(em + 'das').innerHTML+=' ' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0].split('/' + xokn)[0] + '/' + xokn + pls[iut].split('\"')[0] + ' ' + jorflag(tzsih.split(thattz)[1].split(' data-geo=')[1].split(',')[3]) + ''; } else { document.getElementById(em + 'das').innerHTML+=' ' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0].split('/' + xokn)[0] + '/' + xokn + pls[iut].split('\"')[0] + ''; } } } } document.getElementById(em + 'das').innerHTML+='

Country Name
'; pls=ctynames.split('>' + xokn); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut' + xokn + pls[iut].split('<')[0] + ' ' + jorflag(pls[eval(-1 + iut)].slice(-3).substring(0,2)) + ''; } } } } 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('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('timezone').value=tzi.split(' ')[0]; document.getElementById(em + 'das').innerHTML=''; xokn=''; okn=''; } } function analo(ao) { // timezone places if (ao.innerHTML.indexOf('/') != -1) { document.getElementById('tzsel').value=ao.innerHTML.split(' ')[0]; document.getElementById('timezone').value=ao.innerHTML.split(' ')[0]; document.getElementById(em + 'das').innerHTML=''; xokn=''; } } function analp(ao,isxokn) { // country names var tzsih='',pls=[],iut=0, firsttz='', thattz=''; if (ao.innerHTML.indexOf('/') != -1) { document.getElementById('tzsel').value=ao.innerHTML.split(' ')[0]; document.getElementById('timezone').value=ao.innerHTML.split(' ')[0]; document.getElementById(em + 'das').innerHTML=''; if (isxokn != 0) { xokn=''; } else { okn=''; } } else { document.getElementById(em + 'das').innerHTML+='

TimeZone Place Name
'; tzsih=document.getElementById('tzsel').innerHTML; //alert(tzsih.length); pls=tzsih.split(',' + ao.title.split(' ')[0] + ','); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut')[1].split('<')[0].split(' ')[0].split('+')[0]; } document.getElementById(em + 'das').innerHTML+=' ' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(ao.title.split(' ')[0]) + ''; } } document.getElementById(em + 'das').innerHTML+='

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 parhelp() { " . $gone . " } function twocheckif(iois) { //alert(iois.src); if (iois.src.indexOf('html_intl_') != -1) { //alert(1); var aconto = (iois.contentWindow || iois.contentDocument); //alert(11); if (aconto != null) { //alert(111); if (aconto.document) { aconto = aconto.document; } //alert(1111); if (aconto.body != null) { //alert(aconto.body.innerHTML); if (aconto.body.innerHTML.indexOf('Show Curr' + 'ent Time') == -1) { allowanyway=true; } } } } } function ots(evt) { //alert('03 ' + evt.currentTarget.title + ' ' + evt.target.title + evt.currentTarget.currentHTML); if (('' + evt.currentTarget.innerHTML).indexOf('<') == -1) { //alert('3 ' + evt.currentTarget.title + ' ' + evt.currentTarget.innerHTML); if (('' + evt.currentTarget.title).trim() != '' && ('' + evt.currentTarget.innerHTML).trim() != '') { //alert(33); if (('' + evt.currentTarget.innerHTML).indexOf(('' + evt.currentTarget.title).trim()) == -1) { //alert(333); evt.currentTarget.innerHTML+=' ' + ('' + evt.currentTarget.title).trim(); } } } } function onlit() { " . $gtwo . " txils=parent.document.getElementById('tzsel').innerHTML.split(' value=\"' + thistz + ''); //alert('thistz=' + thistz); if (eval('' + txils.length) > 1) { isov=txils[1].split('>')[0].split(',')[3]; //alert('isov=' + isov); cnb=''; if (ctynames.indexOf(\" value='\" + isov + \"'>\") != -1) { cnb=' in ' + ctynames.split(\" value='\" + isov + \"'>\")[1].split('<')[0]; document.getElementById('tzsel').title='Default is a Timezone in ' + ctynames.split(\" value='\" + isov + \"'>\")[1].split('<')[0]; document.getElementById('myh1').innerHTML+=' for ' + (thistz + '/').replace(thistz.split('/')[0] + '/', '').split('/')[1].replace(/\_/g,' ') + ' ' + (thistz + '/').replace(thistz.split('/')[0] + '/', '').split('/')[0].replace(/\_/g,' ').trim().replace('Argentina',''); document.getElementById('myh1').innerHTML+=cnb + ' ' + jorflag(isov); document.getElementById('myh1').innerHTML+=''; } } if (document.getElementById('opt0')) { var onm=0; while (document.getElementById('opt' + onm)) { if (('' + document.getElementById('opt' + onm).title) != '') { document.getElementById('opt' + onm).innerHTML+=' ' + document.getElementById('opt' + onm).title; } onm++; } } } function clockif(iois) { if (iois.src.indexOf('About_Us.') == -1) { repcnt++; setTimeout(function(){ iois.src=iois.src.split('&rand=')[0] + '&rand=' + repcnt; }, 1000); var aconto = (iois.contentWindow || iois.contentDocument); if (aconto != null) { if (aconto.document) { aconto = aconto.document; } if (aconto.body != null) { if (aconto.getElementById('pdfmt') && parent.document.getElementById('pdfmt')) { parent.document.getElementById('pdfmt').innerHTML=aconto.getElementById('pdfmt').innerHTML; if (repcnt == 1) { parent.document.getElementById('pdfmt').style.border='5px dotted pink'; parent.document.getElementById('pdfmt').style.padding='5 5 5 5'; if (eval('' + txils.length) > 1) { parent.document.getElementById('pdfmt').title='Timestamp for ' + documentURL.split('?')[1].split('&cl')[0].replace(/\&/g,' ').replace(/\=/g,' ').replace(/\%2F/g,'/').replace(/\%2f/g,'/') + txils[1].split('>')[0] + cnb; } else { parent.document.getElementById('pdfmt').title='Timestamp for ' + documentURL.split('?')[1].split('&cl')[0].replace(/\&/g,' ').replace(/\=/g,' ').replace(/\%2F/g,'/').replace(/\%2f/g,'/'); } } } } } } } function tzdef(inloc) { var inicc=inloc.replace(/\-/g,'_').split('_')[eval(-1 + inloc.replace(/\-/g,'_').split('_').length)]; var jnicc=inicc; var newtstuff='', newlstuff='', newts=0, newls=0, tvalis=''; if (ctynames.indexOf(\" value='\" + inicc + \"'>\") != -1) { jnicc=ctynames.split(\" value='\" + inicc + \"'>\")[1].split('<')[0]; } if (document.getElementById('timezone').value == '' && inicc.trim() != '' && inicc == inicc.toUpperCase() && eval('' + inicc.length) == 2) { var tzoh=document.getElementById('tzsel').innerHTML; var aftertopt=document.getElementById('toptone').outerHTML; var tzloh=document.getElementById('locsel').innerHTML; var afterlopt=document.getElementById('loptone').outerHTML; var tzs=tzoh.split(',' + inicc + ','); if (eval('' + tzs.length) > 1) { //document.getElementById('timezone').value=tzs[1].split('>')[1].split('<')[0].split(' ')[0]; tvalis=tzs[1].split('>')[1].split('<')[0]; newtstuff+=''; for (newts=1; newts')[1].split('<')[0] != tvalis) { newtstuff+=''; } } tzs=tzloh.split('_' + inicc + '\"'); if (eval('' + tzs.length) > 1) { newlstuff+=''; for (newls=1; newls')[1].split('<')[0] != inloc) { newlstuff+=''; } } } } if (tzoh.indexOf(aftertopt) != -1 && newtstuff != '') { document.getElementById('tzsel').innerHTML=aftertopt.replace(' id=', ' data-id=').replace(' value=\"', ' value=\" ').replace(' a Time', ' ' + jnicc + ' ' + jorflag(inicc) + ' Time') + newtstuff + aftertopt + tzoh.split(aftertopt)[1]; } if (tzloh.indexOf(afterlopt) != -1 && newlstuff != '') { document.getElementById('locsel').innerHTML=afterlopt.replace(' id=', ' data-id=').replace(' value=\"', ' value=\" ').replace(' a Locale', ' ' + jnicc + ' Locale') + newlstuff + afterlopt + tzloh.split(afterlopt)[1]; } if (tvalis != '') { document.getElementById('timezone').value=tvalis; } document.getElementById('locsel').value=inloc; firstloc=inicc; canmakenothing=true; } if (document.getElementById('tzsel').value == ' ' && canmakenothing) { if (inicc != firstloc) { document.getElementById('tzsel').value=''; } } return inloc.replace(/\-/g,'_'); } 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
'; for (var iuyt=0; iuyt'; thisrowis=''; tdsuff=''; inb=''; if (eval('' + seclet[idcnt].length) > 1) { inb=''; } if (bcols[krow] == '#ffffff') { tdsuff=' style=background-color:lightgreen;' } if (document.getElementById(itsare[iuyt]).value.trim() != '' || 1 == 1) { thisrowis=thisrowis.replace('', '' + inb + (inb == '' ? document.getElementById(itsare[iuyt]).value : '') + ina + ''); } else { thisrowis=thisrowis.replace('', '' + inb + (inb == '' ? document.getElementById(itsare[iuyt]).placeholder : '') + ina + ''); } idcnt++; if (bcols[krow] == '#ffffff') { tdsuff=' style=background-color:#f0f0f0;' } inb=''; if (eval('' + seclet[idcnt].length) > 1) { inb=''; } if (itsare[eval(1 + iuyt)] == itsare[eval(1 + iuyt)].toLowerCase()) { try { if (document.getElementById(itsare[eval(1 + iuyt)]).innerText.trim() != '') { //if (doseti == 1) { alert(document.getElementById(itsare[eval(1 + iuyt)]).innerText); } thisrowis=thisrowis.replace('', '' + inb + (inb == '' ? document.getElementById(itsare[eval(1 + iuyt)]).innerText : '') + ina + ''); } } catch(erty) { alert(itsare[eval(1 + iuyt)]); } } else { if (document.getElementById(itsare[eval(1 + iuyt)].toLowerCase()).value.trim() != '') { thisrowis=thisrowis.replace('', '' + inb + (inb == '' ? document.getElementById(itsare[eval(1 + iuyt)].toLowerCase()).value : '') + ina + ''); } else { thisrowis=thisrowis.replace('', '' + inb + (inb == '' ? document.getElementById(itsare[eval(1 + iuyt)].toLowerCase()).placeholder : '') + ina + ''); } } idcnt++; krow++; h1toform=h1toform.replace('', thisrowis + ''); } //if (doseti == 1) { alert(h1toform); } h1toform=h1toform.replace(/Optionally\ select\ /g, '*'); h1toform=h1toform.replace(/Show\ Current\ Time/g, '@'); h1toform=h1toform.replace('RJM Programming - December, 2024', '$'); h1toform=h1toform.replace('As per (white background textboxes optional) ...', '!'); h1toform=h1toform.replace(/\/g, ''); h1toform=h1toform.replace('', ''); h1toform=h1toform.replace('', ''); //if (doseti == 1) { var tyr=prompt('' + (documentURL.split('?')[0] + '?sra=' + encodeURIComponent(sra) + '&it=' + encodeURIComponent(h1toform) + '&rand=' + Math.floor(Math.random() * 1987865)).length + ' ' + h1toform.replace(/\<\//g, String.fromCharCode(10) + ' set(IntlCalendar::FIELD_MONTH, 0); // 1st month, 1st day ... 9th month, Ramadan $cal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 1); //1st day $cal->clear(IntlCalendar::FIELD_HOUR_OF_DAY); $cal->clear(IntlCalendar::FIELD_MINUTE); $cal->clear(IntlCalendar::FIELD_SECOND); $cal->clear(IntlCalendar::FIELD_MILLISECOND); echo "In this " . explode('-', urldecode($_GET['calendar']))[0] . " year, the first day of the year started/will start on:\n\t", $formatter->format($cal), "\n"; //Itʼs the formatterʼs timezone that is used: $formatter->setTimeZone(urldecode($_GET['timezone'])); echo "After changing timezone:\n\t", $formatter->format($cal), "\n"; } else { $DateTime = new DateTime(); $IntlDateFormatter = new IntlDateFormatter( urldecode($_GET['locale']) . '@calendar=' . urldecode($_GET['calendar']), IntlDateFormatter::FULL, IntlDateFormatter::FULL, urldecode($_GET['timezone']), IntlDateFormatter::TRADITIONAL); echo '

' . $IntlDateFormatter->format($DateTime) . '


' . $revealp . '
'; $toendofform="

Show Current Time

RJM Programming - December, 2024

As per (white background textboxes optional) ...




 " . $locsel . "
 " . $yourtzlist . "
 " . $calsel . "

  🔄✍️ 


"; echo $toendofform . $reveals . " "; //if ($delthis != '') { // sleep(10); // unlink($delthis); //} } } else if (isset($_GET['locale']) && isset($_GET['timezone']) && !isset($_GET['calendar'])) { //file_put_contents('xz.zx', $_GET['locale'] . ' ' . $_GET['timezone'] . ' '); $fmt = datefmt_create( urldecode($_GET['locale']), IntlDateFormatter::FULL, IntlDateFormatter::FULL, explode(' ',str_replace('+',' ',urldecode($_GET['timezone'])))[0], IntlDateFormatter::GREGORIAN ); echo '

' . datefmt_format($fmt, time()) . '


' . $revealp . '
'; $toendofform="

Show Current Time

RJM Programming - December, 2024

As per (white background textboxes optional) ...




 " . $locsel . "
 " . $yourtzlist . "
 " . $calsel . "

  🔄✍️ 


"; echo $toendofform . $reveals . " "; //if ($delthis != '') { // sleep(10); // unlink($delthis); //} } else if (isset($_POST['locale']) && isset($_POST['timezone']) && isset($_POST['calendar'])) { $DateTime = new DateTime(); $IntlDateFormatter = new IntlDateFormatter( urldecode($_POST['locale']) . '@calendar=' . urldecode($_POST['calendar']), IntlDateFormatter::FULL, IntlDateFormatter::FULL, explode(' ',str_replace('+',' ',urldecode($_POST['timezone'])))[0], IntlDateFormatter::TRADITIONAL); echo '

' . $IntlDateFormatter->format($DateTime) . '


' . $revealp . '
'; $toendofform="

Show Current Time

RJM Programming - December, 2024

As per (white background textboxes optional) ...




 " . $locsel . "
 " . $yourtzlist . "
 " . $calsel . "

  🔄✍️ 


"; echo $toendofform . $reveals . " "; //if ($delthis != '') { // sleep(10); // unlink($delthis); //} } else if (isset($_POST['locale']) && isset($_POST['timezone']) && !isset($_POST['calendar'])) { $fmt = datefmt_create( urldecode($_POST['locale']), IntlDateFormatter::FULL, IntlDateFormatter::FULL, explode(' ',str_replace('+',' ',urldecode($_POST['timezone'])))[0], IntlDateFormatter::GREGORIAN ); echo '

' . datefmt_format($fmt, time()) . '


' . $revealp . '
'; $toendofform="

Show Current Time

RJM Programming - December, 2024

As per (white background textboxes optional) ...




 " . $locsel . "
 " . $yourtzlist . "
 " . $calsel . "

  🔄✍️ 


"; echo $toendofform . $reveals . " "; //if ($delthis != '') { // sleep(10); // unlink($delthis); //} } else if (isset($_GET['test'])) { $fmt = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo '

First Formatted output is ' . datefmt_format($fmt, 0) . '


'; $fmt = datefmt_create( 'de-DE', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo '

Second Formatted output is ' . datefmt_format($fmt, 0) . '


'; $fmt = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN, 'MM/dd/yyyy' ); echo '

First Formatted output with pattern is ' . datefmt_format($fmt, 0) . '


'; $fmt = datefmt_create( 'de-DE', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN, 'MM/dd/yyyy' ); echo "

Second Formatted output with pattern is " . datefmt_format($fmt, 0) . '


'; } else { $toendofform="

Show Current Time

RJM Programming - December, 2024

As per (white background textboxes optional) ...




 " . $locsel . "
 " . $yourtzlist . "
 " . $calsel . "

  🔄✍️ 


"; echo $revealp . $toendofform . $reveals . " "; } echo ""; //if ($delthis != '') { // sleep(10); // unlink($delthis); //} ?>