20 && strpos($xqwqpx, ":") !== false && strpos($xqwqpx, ".") !== false) { $ipv=file_get_contents('./index.php'); if (strpos(("~" . $ipv), '~document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"" . explode(',',explode('{"lat":',$wcontll)[1])[0] . '|' . explode('}',explode(',"lon":',$wcontll)[1])[0] . '|' . urldecode($_GET['llplace']) . "\";"; } else if (strpos($wcontll, '>' . str_replace('_',' ',urldecode($_GET['llplace'])) . ',') !== false) { $wurl.=',' . str_replace(' ','_',explode('', explode('>' . str_replace('_',' ',urldecode($_GET['llplace'])) . ',', $wcontll)[1])[0]); if (strpos($wurl, "<") === false) { $wcontll=@file_get_contents($wurl); } if (strpos($wcontll, '{"lat":') !== false && strpos($wcontll, ',"lon":') !== false) { echo "document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"" . explode(',',explode('{"lat":',$wcontll)[1])[0] . '|' . explode('}',explode(',"lon":',$wcontll)[1])[0] . '|' . urldecode($_GET['llplace']) . "\";"; } else { //if (!file_exists("nogoes.txt")) { //file_put_contents("nogoes.txt", $wurl . "\n"); //} else { //$bads=file_get_contents("nogoes.txt"); //if (strpos($bads, $wurl) === false) { //file_put_contents("nogoes.txt", $wurl . "\n" . $bads); //} //} echo "document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"\";"; } } else { //if (!file_exists("nogoes.txt")) { //file_put_contents("nogoes.txt", $wurl . "\n\n"); //} else { //$bads=file_get_contents("nogoes.txt"); //if (strpos($bads, $wurl) === false) { //file_put_contents("nogoes.txt", $wurl . "\n\n" . $bads); //} //} echo "document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"\";"; } } exit; } $drc=""; $wqform="
"; $quizhtml=""; $quizcontinent=""; $isoreplace=""; $burl=""; $bdivstart=""; $bdivend=""; $cdivc="background-color: yellow;"; $mapspanstyle=""; $gspanstyle=" .border { border: 1px solid blue; } .bcoly { background-color: yellow; } .wmrl { writing-mode:vertical-rl; } .wmlr { writing-mode:vertical-lr; } .wmtb { writing-mode:horizontal-tb; } .xxsmall { font-size:xx-small; } .xsmall { font-size:x-small; } .small { font-size:small; } .medium { font-size:medium; } .large { font-size:large; } .xlarge { font-size:x-large; } .xxlarge { font-size:xx-large; } .smaller { font-size:smaller; } .larger { font-size:larger; } .tenp { font-size:10%; } .twentyp { font-size:20%; } .fiftyp { font-size:50%; } .onefiftyp { font-size:150%; } .twohundredp { font-size:200%; } .threehundredp { font-size:300%; } .fourhundredp { font-size:400%; } .fivehundredp { font-size:500%; } .sixhundredp { font-size:600%; } .glow { -webkit-animation: glow 1s ease-in-out infinite alternate; -moz-animation: glow 1s ease-in-out infinite alternate; animation: glow 1s ease-in-out infinite alternate; } @-webkit-keyframes glow { from { box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073; } to { box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6; } } .cglow { box-shadow-bottom-right-radius: 50%; box-shadow-bottom-left-radius: 50%; box-shadow-top-right-radius: 50%; box-shadow-top-left-radius: 50%; -webkit-animation: cglow 1s ease-in-out infinite alternate; -moz-animation: cglow 1s ease-in-out infinite alternate; animation: cglow 1s ease-in-out infinite alternate; -webkit-border-radius: 50%; border-radius: 50%; } @-webkit-keyframes cglow { from { box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073; box-shadow-bottom-right-radius: 50%; box-shadow-bottom-left-radius: 50%; box-shadow-top-right-radius: 50%; box-shadow-top-left-radius: 50%; } to { box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6; box-shadow-bottom-right-radius: 50%; box-shadow-bottom-left-radius: 50%; box-shadow-top-right-radius: 50%; box-shadow-top-left-radius: 50%; } } "; $nondefs=" "; $guess=""; $guessquestion=""; if (isset($_POST['guess'])) { $nondefs="legend: 'none',"; $guess=urldecode($_POST['guess']); if (isset($_POST['question'])) { $guessquestion=urldecode($_POST['question']); } else if (isset($_GET['question'])) { $guessquestion=urldecode($_GET['question']); } } else if (isset($_GET['guess'])) { $nondefs="legend: 'none',"; $guess=urldecode($_GET['guess']); if (isset($_POST['question'])) { $guessquestion=urldecode($_POST['question']); } else if (isset($_GET['question'])) { $guessquestion=urldecode($_GET['question']); } } else { $nondefs=""; } $top=""; if (isset($_POST['area']) || isset($_GET['area'])) $top=" "; $ntop="1"; $roff="0"; $mtop="1"; $newextras=""; $lastgo = ""; $GETimage = ""; $myextras = " + ' or maybe perhaps ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\"' + '\\n\\n'"; $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=["U+1F1E6","U+1F1E7","U+1F1E8","U+1F1E9","U+1F1EA","U+1F1EB","U+1F1EC","U+1F1ED","U+1F1EE","U+1F1EF","U+1F1F0","U+1F1F1","U+1F1F2","U+1F1F3","U+1F1F4","U+1F1F5","U+1F1F6","U+1F1F7","U+1F1F8","U+1F1F9","U+1F1FA","U+1F1FB","U+1F1FC","U+1F1FD","U+1F1FE","U+1F1FF"]; $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"]; $ourtzlist=""; $flagentity=""; $ourtitles=[""]; $whblurb = " ... note that floats to three decimal places of abscissa up to 100 represent negative percentage offsets proportional to integer part."; $inplace=""; $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 the', '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 the', 'CD','Congo', 'CG','Congo the', '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 (Malvinas)', 'FJ','Fiji', 'FI','Finland', 'FR','France, French Republic', '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','Korea', 'KR','Korea', 'KW','Kuwait', 'KG','Kyrgyz Republic', 'kg','Kyrgyzstan', 'LA','Laos', 'LV','Latvia', 'LB','Lebanon', 'LS','Lesotho', 'LR','Liberia', 'LY','Libyan Arab Jamahiriya', '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', 'NA','Namibia', 'NR','Nauru', 'NP','Nepal', 'AN','Netherlands Antilles', 'NL','Netherlands the', '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','Palestinian Territory', 'PA','Panama', 'PG','Papua New Guinea', 'PY','Paraguay', 'PE','Peru', 'PH','Philippines', 'PN','Pitcairn Islands', 'PL','Poland', 'PT','Portugal, Portuguese Republic', 'PR','Puerto Rico', 'QA','Qatar', 'RE','Reunion', 'RO','Romania', 'RU','Russia', 'Ru','Russian Federation', '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 (Slovak Republic)', 'SI','Slovenia', 'SB','Solomon Islands', 'SO','Somalia, Somali Republic', '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, Swiss Confederation', 'SY','Syrian Arab Republic', 'TW','Taiwan', 'TJ','Tajikistan', 'TZ','Tanzania', 'TH','Thailand', 'TL','Timor-Leste', 'TG','Togo', 'TK','Tokelau', 'TO','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']; $gwqp=""; $qinterim=""; if (isset($_GET['wqperspective'])) { $gwqp=str_replace('+',' ',urldecode($_GET['wqperspective'])); if ($gwqp != "") { // Monday 10 Feb 2020 06:38:54 $dotbits=explode(".", $gwqp); if (strlen($gwqp) > 20 && strpos($gwqp, ":") !== false && strpos($gwqp, ".") !== false) { $ipv=file_get_contents('./index.php'); if (strpos($ipv, '// ' . $gwqp . "\n") !== false) { if (strlen($dotbits[-1 + sizeof($dotbits)]) == 4) { file_put_contents('./index.php', str_replace('// ' . $gwqp . "\n", "", $ipv)); $gwqp=chr(substr($dotbits[-1 + sizeof($dotbits)],0,2)) . chr(substr($dotbits[-1 + sizeof($dotbits)],2,2)); //$qinterim="\n alert(String.fromCharCode(64) + String.fromCharCode(32) + firstchoice); \n"; } else { $gwqp="AD"; } } else { $gwqp=""; } } else { $gwqp=""; } } } if (isset($_POST['wqperspective']) || $gwqp != "") { $thedate=date('l d M Y H:i:s'); $ghf=""; if ($gwqp == "") { $ghf=strtoupper(str_replace('+',' ',urldecode($_POST['wqperspective']))); } else { $ghf=strtoupper($gwqp); } $mygurl="//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=AD;My%20World%20Quiz%20Zoom%20In%20Question&arexplaces=y&aregeographicals=http.South_Pole%2Chttp.Round_from_South_Pole&peninfo=South%20Pole,+Round%20fromn%20South%20Pole&width=556&height=347&country=Places&popularity=Quiz&data=%20[-89.99|-179.99|~South%20Pole~,1]%20,%20[-89.99|178.99|~Round%20from%20South%20Pole~,1]%20,%20[-89.99|178.99|~AD~,1]"; $myrurl="//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=Quiz%20Zoom%20Out%20Answer&width=556&height=347&country=Places&popularity=Quiz&arexplaces=y&aregeographicals=http.South_Pole%2Chttp.Round_from_South_Pole&peninfo=South%20Pole,+Round%20fromn%20South%20Pole&data=%20[-89.99|-179.99|~South%20Pole~,1]%20,%20[-89.99|178.99|~Round%20from%20South%20Pole~,1]"; $jsis=" var myrorig='', score=0, goes=0, selihis='', answer='', lastanswer='ad', lastfanswer='Andorra', thisanswer=''; var yourtzlist=''; var chfrom='', chto='', gsv=''; var smsorig=''; var smsdateorig=''; var firstchoice='" . $ghf . "'; 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']; if (!String.fromCodePoint) { // thanks to http://xahlee.info/js/js_unicode_code_point.html // ES6 Unicode Shims 0.1 , © 2012 Steven Levithan , MIT License String.fromCodePoint = function fromCodePoint () { var chars = [], point, offset, units, i; for (i = 0; i < arguments.length; ++i) { point = arguments[i]; offset = point - 0x10000; units = point > 0xFFFF ? [0xD800 + (offset >> 10), 0xDC00 + (offset & 0x3FF)] : [point]; chars.push(String.fromCharCode.apply(null, units)); } return chars.join(''); } } function smswho() { if (smsorig == '') { smsorig=document.getElementById('smssend').href.split('0000')[0]; } if (smsdateorig == '') { smsdateorig=document.getElementById('smsdate').value; } var smsto=prompt('SMS to?', document.getElementById('smssend').href.split('sms:')[1].split('?')[0].split('&')[0]); if (smsto == null) { smsto = ''; } if (smsto.trim() != '') { document.getElementById('smsdate').value=smsdateorig + '.' + gsv.substring(0,1).charCodeAt(0) + gsv.substring(1).substring(0,1).charCodeAt(0); document.getElementById('smsbut').click(); document.getElementById('smssend').href=(smsorig + '' + gsv.substring(0,1).charCodeAt(0) + gsv.substring(1).substring(0,1).charCodeAt(0)).replace('sms:?','sms:' + smsto + '?').replace('sms:&','sms:' + smsto + '&'); document.getElementById('smssend').click(); } } function emailwho() { var emto=prompt('Email to?', document.getElementById('emailto').value); if (emto == null) { emto = ''; } if (emto.indexOf('@') != -1) { document.getElementById('emailto').value=emto; document.getElementById('hcont').value='
'; document.getElementById('iemail').click(); } } function orflag(thiscc) { var ccsuff='', ccchar=' ', cde=''; for (var iccsuff=0; iccsuff 0) { gsv=answer; document.getElementById('iswas').innerHTML='Was ' + orflag(answer) + '🕒 📧 📟 '; if (selopt.value == answer) { score++; document.getElementById('myifrurl').style.visibility='hidden'; } else { ourdelay=19000; selopt.value=answer; scoresuffix=' ... answer was ' + lastfanswer; // &arexplaces=y&aregeographicals=http.South_Pole%2Chttp.Round_from_South_Pole&peninfo=South%20Pole,+Round%20fromn%20South%20Pole&data=%20[-89.99|-179.99|~South%20Pole~,0]%20,%20[-89.99|178.99|~Round%20from%20South%20Pole~,0] //alert(myrorig.replace(chfrom, '&arexplaces=y&aregeographicals=http.' + lastfanswer.replace(/\ /g,'_') + '&peninfo=' + encodeURIComponent(lastfanswer) + '&data=%20[' + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"')[eval(-1 + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"').length)].split(',')[0] + '|' + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"')[eval(-1 + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"').length)].split(',')[1] + '|~' + encodeURIComponent(lastfanswer) + '~,1]')); document.getElementById('myifrurl').src=myrorig.replace(chfrom, '&arexplaces=y&aregeographicals=http.' + lastfanswer.replace(/\ /g,'_') + '&peninfo=' + encodeURIComponent(lastfanswer) + '&data=%20[' + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"')[eval(-1 + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"').length)].split(',')[0] + '|' + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"')[eval(-1 + yourtzlist.split(',' + answer + ',')[0].split(' data-geo=\"').length)].split(',')[1] + '|~' + encodeURIComponent(lastfanswer) + '~,1]'); document.getElementById('myifrurl').style.visibility='visible'; } goes++; document.getElementById('score').innerHTML='Score: ' + score + '/' + goes + scoresuffix; setTimeout(pickone, ourdelay); } } function pickone() { if (selihis.length == 0) { selihis=document.getElementById('selceqwq').innerHTML; } if (myrorig.length == 0) { myrorig=document.getElementById('myifrurl').src; chfrom='&arexplaces=' + myrorig.split('&arexplaces=')[1]; // &arexplaces=y&aregeographicals=http.South_Pole%2Chttp.Round_from_South_Pole&peninfo=South%20Pole,+Round%20fromn%20South%20Pole&data=%20[-89.99|-179.99|~South%20Pole~,0]%20,%20[-89.99|178.99|~Round%20from%20South%20Pole~,0] } document.getElementById('iswas').innerHTML='Is'; var chares=selihis.split('>?')[1].split(''); var cisq=Math.floor(Math.random() * eval(-1 + chares.length)); " . $qinterim . " if (firstchoice.length == 2 && firstchoice >= 'AA' && firstchoice <= 'ZZ') { //alert(firstchoice); for (var iyrt=0; iyrt')[0].substring(1).substring(0,2) == firstchoice) { cisq=iyrt; } } firstchoice=' '; } thisanswer=chares[cisq].split(' value=')[eval(-1 + chares[cisq].split(' value=').length)].split(' ')[0].split('>')[0].substring(1).substring(0,2); //if (firstchoice == ' ') { alert(thisanswer); } while (yourtzlist.indexOf(',' + thisanswer + ',') == -1 || thisanswer == lastanswer) { cisq=Math.floor(Math.random() * eval(-1 + chares.length)); thisanswer=chares[cisq].split(' value=')[eval(-1 + chares[cisq].split(' value=').length)].split(' ')[0].split('>')[0].substring(1).substring(0,2); } lastfanswer=chares[cisq].split('>')[eval(-1 + chares[cisq].split('>').length)]; document.getElementById('myifgurl').src=document.getElementById('myifgurl').src.replace(lastanswer.toUpperCase() + ';', thisanswer + ';').replace('~' + lastanswer.toUpperCase() + '~', '~' + thisanswer + '~'); answer=thisanswer; lastanswer=thisanswer; } function lookforpath(ioiso) { if (ioiso != null) { var atwoconto = (ioiso.contentWindow || ioiso.contentDocument); if (atwoconto != null) { if (atwoconto.document) { atwoconto = atwoconto.document; } var pathsare=atwoconto.body.innerHTML.split('"; echo "" . $jsis . "My World Quiz

My World Zoom In Quiz

RJM Programming - February, 2020

Score: 0/0

" . $tablehead . $tablebody . "
"; exit; } function expandh($xymd) { //file_put_contents("ymd.ymd", $ymd); //exit; $bigret=""; $bigretd=""; //file_put_contents("xymd.xymd", $xymd); $preplss=explode("[", $xymd); $ymd=""; //for ($ipl=0; $ipl"; $cdivc.="margin-left:" . round(-0.01 * (explode(".", $w_in)[1]) * explode(".", $w_in)[0]) . ";margin-top:" . round(-0.01 * (explode(".", $h_in)[1]) * explode(".", $h_in)[0]) ."px;"; $mapspanstyle=" #mapspan { text-decoration: underline;} "; } } } return $retv; } // https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=My%20World%20Survey&arexplaces=y&aregeographicals=http.128249_Sydney%2Chttp.128249_Brisbane&peninfo=128249%20Sydney,128249%20Brisbane&width=556&height=347&country=Places&popularity=Popularity&data=%20[-33.865|151.20944444444|~Sydney~,2]%20,%20[-27.466666666667|153.03333333333|~Brisbane~,2] function noemoji($inentity) { $allnum=true; if ($inentity != '' && explode(' ',str_replace("_"," ",$inentity))[0] != str_replace("_"," ",$inentity)) { if (substr(str_replace("_"," ",$inentity),0,1) != ' ') { for ($iu=0; $iu '9')) $allnum=false; } if ($allnum && strpos($inentity,"_") !== false) { return str_replace(" ","_",substr($inentity, (strlen(explode(' ',str_replace("_"," ",$inentity))[0]) + 1))); } if ($allnum) { return substr($inentity, (strlen(explode(' ',$inentity)[0]) + 1)); } } } return $inentity; } // https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=My%20World%20Survey&arexplaces=y&aregeographicals=http.128249_Sydney%2Chttp.128249_Brisbane&peninfo=128249%20Sydney,128249%20Brisbane&width=556&height=347&country=Places&popularity=Popularity&data=%20[-33.865|151.20944444444|~Sydney~,2]%20,%20[-27.466666666667|153.03333333333|~Brisbane~,2] function lfb($zcisis) { //global $udirname; $zimgsx=explode("' . str_replace("_"," ",$wplace) . ',') !== false && sizeof(explode("',explode('>' . str_replace("_"," ",$wplace) . ',', $wcont)[1])[0]); if (strpos($newwurll, "<") === false) { $wcont=""; if ($okaytodo) { $wcont=@file_get_contents($newwurll); $wcont=lfb($wcont); } } else { $wurll=$wasw; } } if (strpos($wcont, ' id="content"') !== false) { $isc=sizeof(explode("= 8) { if (strpos($wcont, ' id="firstHeading"') !== false) { $wconts=explode(' id="firstHeading"', $wcont); $wcont=str_replace($wconts[0],"",$wcont); } else { $wcont=$wcont; } } else { $wcont=""; } } else { $wcont=""; } if (strpos($wcont, " 0) { $ofupa.=$fdel . " "; //$gfsis[$jfgsis]; } } else if ($jfgsis > 0) { $ofupa.=$fdel . ""; //$gfsis[$jfgsis]; } else { $ofupa=""; } } } else if ($jfgsis > 0) { $ofupa.=$fdel . $gfsis[$jfgsis] . "#" . $wurll; } } else if ($jfgsis > 0) { $ofupa.=$fdel . $gfsis[$jfgsis] . "#" . $wurll; } } return $ofupa; } function tzl($inwith, $dc) { global $iso_country_codes, $isoreplace; if (!$dc) { $inwithtz=($inwith); } if ($dc) { //$inwithtz=urldecode($inwith); $inwithtz=urldecode(urldecode($inwith)); } for ($icc=1; $icc
'); fclose($file_handle); $lastgo = "   
Last" . "  Email  W?  H?  +"; if (isset($_GET['isMobile']) || isset($_POST['isMobile'])) { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { $lastgo .= '  Another?' . $lastgo . "\n"; } else { $lastgo .= '  Another?' . $lastgo . "\n"; } } else { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { $lastgo .= '  Another?'; } else { $lastgo .= '  Another?'; } } } else if (strlen($inst) > 0 && file_exists("TestGeoChart_" . $rma . ".url")) { $file_handle = fopen("TestGeoChart_" . $rma . ".url", "r"); $rma=fgets($file_handle); fclose($file_handle); $timesuff = date("Y-m-d-H-i-s"); while (file_exists("GeoChart_" . $rma . "_" . $timesuff . ".html")) { $timesuff = date("Y-m-d-H-i-s"); } $file_handle = fopen("GeoChart_" . $timesuff . ".html", "w"); fwrite($file_handle, '
'); fclose($file_handle); $rma = "   Last" . "  Email  W?  H?  +"; if (isset($_GET['isMobile']) || isset($_POST['isMobile'])) { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { $rma .= '  Another?' . $lastgo . "\n"; } else { $rma .= '  Another?' . $lastgo . "\n"; } } else { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { $rma .= '  Another?'; } else { $rma .= '  Another?'; } } $lastgo = $rma; } return $rma; } function retval($inv) { if (strpos($inv, "E-") !== false) return "0"; return $inv; } echo '' . "\n"; echo ' ' . "\n"; echo 'Geo Map - RJM Programming - //www.rjmprogramming.com.au (Copyright © 2013 rjmprogramming.com.au all rights reserved.)' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo ' \n"; if ((!isset($_GET['onclick']) && !isset($_POST['onclick'])) && (isset($_GET['data']) || isset($_POST['data']))) echo ' ' . " \n"; //echo " \n"; echo "
\n"; if (isset($_GET['isMobile']) || isset($_POST['isMobile'])) { echo "

" . $quizhtml . " " . str_replace("+"," ",urldecode($GETtitle)) . " Geo Map

" . $GETimage . " \n"; } else { echo "

" . $quizhtml . " " . str_replace("+"," ",urldecode($GETtitle)) . " Geo Map

" . $GETimage . " \n"; } if ((!isset($_GET['isMobile']) && !isset($_POST['isMobile'])) || isset($_GET['popularity'])) { echo $bdivstart . '
' . $bdivend . "\n"; if (isset($_GET['isMobile']) || isset($_POST['isMobile'])) { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { if (strpos($_SERVER['QUERY_STRING'], "|~") !== false || 1 == 1) { echo '
Another Geo Map?' . $lastgo . "\n"; } else { echo '
Another Geo Map?' . $lastgo . "\n"; } } else { if (strpos($_SERVER['QUERY_STRING'], "|~") !== false || 1 == 1) { echo '
Another Geo Map?' . $lastgo . "\n"; } else { echo '
Another Geo Map?' . $lastgo . "\n"; } } } else { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { if (strpos($_SERVER['QUERY_STRING'], "|~") !== false || 1 == 1) { echo '
Another Geo Map?' . $lastgo . "\n"; } else { echo '
Another Geo Map?' . $lastgo . "\n"; } } else { if (strpos($_SERVER['QUERY_STRING'], "|~") !== false || 1 == 1) { echo '
Another Geo Map?' . $lastgo . "\n"; } else { echo '
Another Geo Map?' . $lastgo . "\n"; } } } } if (!isset($_GET['popularity']) && !isset($_POST['popularity']) && strpos($_SERVER['QUERY_STRING'], "x=x") === false) { if ((isset($_GET['isMobile']) || isset($_POST['isMobile'])) && strpos($_SERVER['QUERY_STRING'], "x=x") === false) { echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; //echo '
Title
Via
Basis
' . server_remote_addr('1') . '
' . "\n"; echo '' . "\n"; echo '
' . "\n"; //echo '
' . "\n"; if (strpos($lastgo, "Another") === false) { if (isset($_GET['isMobile']) || isset($_POST['isMobile'])) { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { echo 'Another geo map?' . $lastgo . "\n"; } else { echo 'Another geo map?' . $lastgo . "\n"; } } else { if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { echo 'Another geo map?' . $lastgo . "\n"; } else { echo 'Another geo map?' . $lastgo . "\n"; } } } } echo '<' . 'script' . ' type="text/javascript">' . "\n "; if (!isset($_GET['isMobile']) && !isset($_POST['isMobile'])) { //echo '<' . 'script type="text/javascript">' . "\n"; echo ' setTimeout(prelater, 2 * 1000);' . "\n"; //echo '<' . '/' . 'script>' . "\n"; } echo ' function styleit(indef) { ' . "\n"; echo " if (document.getElementById('chart_div').innerHTML.indexOf(document.getElementById(indef).outerHTML) != -1) { " . "\n"; echo " if (1 == 1) { document.getElementById('chart_div').innerHTML=document.getElementById('chart_div').innerHTML.replace(document.getElementById(indef).outerHTML, ' \" + document.getElementById(indef).outerHTML); } " . "\n"; echo " if (1 == 3) { document.getElementById(indef).innerHTML+=(' \"); } " . "\n"; echo ' } ' . "\n" . "\n"; echo ' return indef; } ' . "\n" . "\n"; echo ' function clearit() { ' . "\n" . ' if (document.getElementById("data").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("data").value=""; ' . "\n"; echo ' if (document.getElementById("title").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("title").value=""; ' . "\n"; echo ' if (document.getElementById("width").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("width").value=""; ' . "\n"; echo ' if (document.getElementById("height").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("height").value=""; ' . "\n"; echo ' if (document.getElementById("country").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("country").value=""; ' . "\n"; echo ' if (document.getElementById("popularity").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("popularity").value=""; ' . "\n" . ' } ' . "\n"; if (1 == 7) { echo ' var datalineprefix = " "; ' . "\n"; echo ' var acnt = -1; ' . "\n"; echo ' var defv = ""; ' . "\n"; echo ' var dlpll = ""; ' . "\n"; echo ' var defsid="_ABSTRACT_RENDERER_ID_0", alldefs=[]; ' . "\n"; echo ' var datalinesuffix = ""; ' . "\n"; echo ' var extra = "", four; ' . "\n"; echo ' var thisline = 1; ' . "\n"; echo ' var totalleft = 100.0; ' . "\n"; echo ' var title = ""; ' . "\n"; echo ' var alttitle = ""; ' . "\n"; echo ' var width = ""; ' . "\n"; echo ' var height = ""; ' . "\n"; echo ' var country = ""; ' . "\n"; echo ' var popularity = ""; ' . "\n"; echo ' function whileinnards() { if (datalinesuffix.length != 0) { ' . "\n"; echo " if (fti) { datalineprefix = ''; dlpll = ''; } else { dlpll=''; if (alttitle.indexOf('&aregeographicals=') != -1) { datalineprefix = geoprompt(\"Enter Latitude|Longitude|\" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (for no more please hit Cancel button and optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); if (datalineprefix == null) { datalineprefix=''; } dlpll=datalineprefix.split('|')[0]; if (dlpll != '') { dlpll+='|' + datalineprefix.split('|')[1] + '|'; datalineprefix=datalineprefix.replace(dlpll,''); } } else { dlpll = ''; datalineprefix = geoprompt(\"Enter \" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (for no more please hit Cancel button and optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); } } " . "\n"; echo ' if (datalineprefix != null) { datalineprefix=dlp(datalineprefix); iof=0; dlsa=datalineprefix.split(","); if (dlsa.length > 1 && (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(",")))) { while (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(","))) { datalineprefix=datalineprefix.replace(",", "%2C"); iof+=0; } } datalineprefix=datalineprefix.replace(/#/g, "%23"); if (datalineprefix.indexOf("{country}") != -1 && datalineprefix.indexOf(",") != -1) { dlsa=datalineprefix.split(","); if (dlsa.length > 1) { datalineprefix=datalineprefix.replace("{country}",encodeURIComponent(dlsa[0])).replace("{country}",encodeURIComponent(dlsa[0])); } } } ' . "\n"; echo ' } ' . "\n"; //echo ' } ' . "\n"; echo ' if (datalineprefix == null) { ' . "\n"; echo ' datalineprefix = ""; ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (datalineprefix.length != 0) { ' . "\n"; echo ' extra = ""; ' . "\n"; echo ' if (popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) extra = " (for " + totalleft + " enter nothing or hit Cancel button)"; ' . "\n"; echo ' if (fti) { datalinesuffix = ""; } else { if (isquiz.length > 0) { if (iquiziso < quizisos.length) { datalinesuffix="" + theval; iquiziso++; } else { datalinesuffix = geoprompt("Enter " + popularity.replace(" ercent ", "") + " " + thisline + extra, "" + theval); } theval--; } else { datalinesuffix = geoprompt("Enter " + popularity.replace(" ercent ", "") + " " + thisline + extra, "0"); } } ' . "\n"; echo ' if (datalinesuffix == null && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) datalinesuffix = totalleft; ' . "\n"; echo ' if (datalinesuffix == null) datalinesuffix = "0"; ' . "\n"; echo ' if (datalinesuffix != null) datalineprefix = datalineprefix.replace("{popularity}", datalinesuffix); ' . "\n"; echo ' if (datalinesuffix.length == 0) { ' . "\n"; echo ' datalinesuffix = eval(totalleft); ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(totalleft) == eval(datalinesuffix) && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(datalinesuffix) > eval(totalleft) && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' datalinesuffix = eval(totalleft); ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(datalinesuffix) > eval(totalleft) && popularity.indexOf("ercent") == (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' popularity = popularity + " ercent "; ' . "\n"; echo ' } else { ' . "\n"; echo ' totalleft = eval(totalleft) - eval(datalinesuffix); ' . "\n"; echo ' } ' . "\n"; //echo ' datac = datac + ",[~" + datalineprefix + "~," + datalinesuffix + "]"; ' . "\n"; echo ' if (datalineprefix.indexOf("' . "'" . '") == -1) { four=("" + datalinesuffix).split(","); if (exra != "") { exra=String.fromCharCode(39) + "Regarding " + popularity + four[0] + String.fromCharCode(39) + ","; } datac = datac + comma + " [" + dlpll + "~" + datalineprefix + "~," + exra + datalinesuffix + "] "; } ' . "\n"; echo ' if (datalineprefix.indexOf("' . "'" . '") != -1) { four=("" + datalinesuffix).split(","); exra=String.fromCharCode(39) + "Regarding " + popularity + four[0] + String.fromCharCode(39) + ","; datac = datac + comma + " [" + dlpll + "~" + datalineprefix.replace(",", "~,") + "," + datalinesuffix + "] "; } ' . "\n"; echo ' thisline++; defv=""; acnt=eval(-1 + thisline); if (document.getElementById("defv" + acnt)) { defv=document.getElementById("defv" + acnt).value; } ' . "\n comma=','; \n"; echo ' } ' . "\n"; echo ' if (datalineprefix.length != 0 && (popularity.indexOf("ercent") == (0 - 1) || popularity.indexOf(" ercent ") != (0 - 1) || (popularity.indexOf("ercent") != (0 - 1) && totalleft > 0))) { ' . "\n"; echo ' alert(1); } else { alert(2); ' . "\n"; echo ' } ' . "\n"; echo ' } ' . "\n"; } echo "function prelater() { \n if (saetc) { saetc(); } later('','','','','',''); \n } \n function later(t,w,h,c,p,m) { \n"; echo "\n if (document.getElementById('od1')) { document.getElementById('od1').style.width='' + eval(window.getComputedStyle(document.body, null).getPropertyValue('width').replace('px','')) + 'px'; } \n"; echo "\n if (document.getElementById('od2')) { document.getElementById('od2').style.width='' + eval(window.getComputedStyle(document.body, null).getPropertyValue('width').replace('px','')) + 'px'; } \n"; if (1 == 1) { echo ' var datalineprefix = " "; ' . "\n"; echo ' var acnt = -1; ' . "\n"; echo ' var iswq = false; ' . "\n"; echo ' var defv = ""; ' . "\n"; echo ' var dlpll = ""; ' . "\n"; echo ' var datalinesuffix = ""; ' . "\n"; echo ' var extra = "", four; ' . "\n"; echo ' var thisline = 1; ' . "\n"; echo ' var totalleft = 100.0; ' . "\n"; echo ' var title = ""; ' . "\n"; echo ' var alttitle = ""; ' . "\n"; echo ' var width = "", widthblurb=""; ' . "\n"; echo ' if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) ) { widthblurb=" (for quiz entries append &flag=y for Emoji Flags on tooltips)"; } else { widthblurb=" (for quiz entries append &istn=y for top left thumbnails and/or &flag=y for Emoji Flags on tooltips)"; } ' . "\n"; echo ' var height = ""; ' . "\n"; echo ' var country = ""; ' . "\n"; echo ' var popularity = ""; ' . "\n"; } echo ' if ((t.length + w.length + h.length + c.length + p.length) == 0) { ' . "\n"; echo ' saetc(); title = geoprompt("Enter Geo Map Title (background image URL or background image data URI ; separated (followed by ;) before title are available options, and you can replace Survey with Quiz for a quiz, and you can prefix by a Region Code (eg. IT) (followed by ;) before title as an available options, and you can suffix by &onclick=y for added onclick functionality and/or ®ion=145 to display Western Asia (for example) and/or &text=y to display text and/or &aregeographicals=y (or instead of y put an http marker image URL like http://www.rjmprogramming.com.au/PHP/GeoChart/mapc64b.png) for you prefixing Labels by lat|long| values and/or &areplaces=y (or instead of y put a comma separated http marker image URL (or use hTtP for link but no image) or placename list (with ,+ usage indicating to plot a line)) for places (prefixable by the number part of an emoji HTML Entity (decimal) eg. 128249 is video camera) rather than countries, Email Attachment Title suffixes are &emailto=[emailTo] &emailsubject=[EmailSubject] (and to make a quiz question for someone after all your entries also append (things like) &guess=Brazil&question=Which country had Tijuana brass?))", "' . str_replace("+"," ",urldecode($GETtitle)) . '"); if (title != null) { if (title == "My World Quiz") { iswq=true; t=title; allowed=false; fti=true; document.getElementById("wq").click(); } alttitle=title; if (title.indexOf("&are") != -1) { alttitle=placelook(title); title=alttitle; } } else { alttitle=""; } ' . "\n"; echo ' defv=""; acnt++; if (document.getElementById("defv" + acnt)) { defv=document.getElementById("defv" + acnt).value; } ' . "\n"; echo ' } ' . "\n"; echo ' if ((t.length + w.length + h.length + c.length + p.length) != 0) { ' . "\n"; echo ' title = t; ' . "\n"; echo ' width = w; ' . "\n"; echo ' height = h; ' . "\n"; echo ' country = c; ' . "\n"; echo ' popularity = p; ' . "\n"; echo ' } else if (title != null) { ' . "\n"; echo ' width = geoprompt("Enter Geo Map Width' . $whblurb . ' (7860.045 for Europe quiz) (3930.068 for South East Asia and Oceania quiz) (3230.035 for Africa quiz) (3001.011 for South America quiz) (2201.001 for North and Central America quiz) (2202.056 for Asia quiz)" + widthblurb, "' . $GETwidth . '"); if (width.split("&")[0] == "2202.056") { isquiz="Asia"; height="2002.029"; } else if (width.split("&")[0] == "2201.001") { isquiz="North and Central America"; height="2001.029"; } else if (width.split("&")[0] == "3001.011") { isquiz="South America"; height="2801.059"; } else if (width.split("&")[0] == "3230.035") { isquiz="Africa"; height="2737.052"; } else if (width.split("&")[0] == "7860.045") { isquiz="Europe"; height="6875.041"; } else if (width.split("&")[0] == "3930.068") { isquiz="South East Asia and Oceania"; height="3437.054"; } ' . "\n"; echo ' if (isquiz.length > 0) { if (isquiz == "Asia") { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (2002.029 for Asia quiz ... add spaces for more quiz places)", "2002.029"); if ((height.trim() + ".").indexOf("2002.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } else if (isquiz == "North and Central America") { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (2001.029 for North and Central America quiz ... add spaces for more quiz places)", "2001.029"); if ((height.trim() + ".").indexOf("2001.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } else if (isquiz == "South America") { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (2801.059 for South America quiz ... add spaces for more quiz places)", "2801.059"); if ((height.trim() + ".").indexOf("2801.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } else if (isquiz == "Africa") { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (2737.052 for Africa quiz ... add spaces for more quiz places)", "2737.052"); if ((height.trim() + ".").indexOf("2737.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } else if (isquiz == "South East Asia and Oceania ... add spaces for more quiz places") { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (3437.054 for South East Asia and Oceania quiz)", "3437.054"); if ((height.trim() + ".").indexOf("3437.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } else { height = geoprompt("Enter Geo Map Height' . $whblurb . ' (6875.041 for Europe quiz ... add spaces for more quiz places)", "6875.041"); if ((height.trim() + ".").indexOf("6875.") != 0) { isquiz=""; } else { height=setsixteenquiz(height); } } } else { height = geoprompt("Enter Geo Map Height' . $whblurb . '", "' . $GETheight . '"); } ' . "\n"; echo ' if (title.indexOf("&are") != -1) { if (isquiz.length > 0) { if (1 == 1) { country="Places"; } else { country = geoprompt("Enter Places Label", "Places"); } } else { country = geoprompt("Enter Places Label", "Places"); } } else { if (isquiz.length > 0) { if (1 == 1) { country = "Country"; } else { country = geoprompt("Enter Country Label", "' . $GETcountry . '"); } } else { country = geoprompt("Enter Country Label", "' . $GETcountry . '"); } } ' . "\n"; echo ' if (isquiz.length > 0) { if (1 == 1) { popularity="Countdown"; } else { popularity = geoprompt("Enter " + country + " Numerical Measure(s) (ie. can be comma separated)", "Countdown"); } } else { popularity = geoprompt("Enter " + country + " Numerical Measure(s) (ie. can be comma separated)", "' . $GETpopularity . '"); } ' . "\n"; echo ' } ' . "\n"; echo ' var datac = ""; ' . "\n"; echo ' var sq = "' . "'" . '"; ' . "\n"; //echo ' datalineprefix = prompt("Enter " + country + " Name " + thisline, ""); ' . "\n"; echo " if (iswq) { document.getElementById('wq').click(); allowed=false; fti=true; } if (fti) { datalineprefix = ''; dlpll = ''; } else { dlpll=''; if (alttitle.indexOf('&aregeographicals=') != -1) { datalineprefix = geoprompt(\"Enter Latitude|Longitude|\" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); if (datalineprefix == null) { datalineprefix=''; } dlpll=datalineprefix.split('|')[0]; if (dlpll != '') { dlpll+='|' + datalineprefix.split('|')[1] + '|'; datalineprefix=datalineprefix.replace(dlpll,''); } } else { dlpll = ''; if (isquiz.length > 0 && iquiziso < quizisos.length) { datalineprefix=quizisos[iquiziso]; } else { datalineprefix = geoprompt(\"Enter \" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); } } } " . "\n"; echo ' if (datalineprefix == null) { datalineprefix=""; } ' . "\n" . ' if (datalineprefix != null) { datalineprefix=dlp(datalineprefix); iof=0; dlsa=datalineprefix.split(","); if (dlsa.length > 1 && (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(",")))) { while (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(","))) { datalineprefix=datalineprefix.replace(",", "%2C"); iof+=0; } } datalineprefix=datalineprefix.replace(/#/g, "%23"); if (datalineprefix.indexOf("{country}") != -1 && datalineprefix.indexOf(",") != -1) { dlsa=datalineprefix.split(","); if (dlsa.length > 1) { datalineprefix=datalineprefix.replace("{country}",encodeURIComponent(dlsa[0])).replace("{country}",encodeURIComponent(dlsa[0])); } } } ' . "\n"; echo ' while (datalineprefix.length != 0 && (popularity.indexOf("ercent") == (0 - 1) || popularity.indexOf(" ercent ") != (0 - 1) || (popularity.indexOf("ercent") != (0 - 1) && totalleft > 0))) { ' . "\n"; if (1 == 1) { echo ' if (datalinesuffix.length != 0) { ' . "\n"; echo " if (fti) { datalineprefix = ''; dlpll = ''; } else { dlpll=''; if (alttitle.indexOf('&aregeographicals=') != -1) { datalineprefix = geoprompt(\"Enter Latitude|Longitude|\" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (for no more please hit Cancel button and optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); if (datalineprefix == null) { datalineprefix=''; } dlpll=datalineprefix.split('|')[0]; if (dlpll != '') { dlpll+='|' + datalineprefix.split('|')[1] + '|'; datalineprefix=datalineprefix.replace(dlpll,''); } } else { dlpll = ''; if (isquiz.length > 0 && iquiziso < quizisos.length) { datalineprefix=quizisos[iquiziso]; } else { datalineprefix = geoprompt(\"Enter \" + country + \" Name (can enter URL whose contents contains country,numerical sets or your own list entered here comma separated) \" + thisline + ' (for no more please hit Cancel button and optionally append with ' + '\\n\\n' + ',\"A tooltip (regarding {popularity}) of some sort like {country}\" ' + '\\n\\n'" . $myextras . " + ' as an example of what is possible with HTML included)', ('`' + defv).replace('`0|0|','').replace('`','')); } } } " . "\n"; echo ' if (datalineprefix != null) { datalineprefix=dlp(datalineprefix); iof=0; dlsa=datalineprefix.split(","); if (dlsa.length > 1 && (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(",")))) { while (eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(39))) > eval(datalineprefix.indexOf(",")) && eval(-1 + iof + datalineprefix.indexOf(String.fromCharCode(34))) > eval(datalineprefix.indexOf(","))) { datalineprefix=datalineprefix.replace(",", "%2C"); iof+=0; } } datalineprefix=datalineprefix.replace(/#/g, "%23"); if (datalineprefix.indexOf("{country}") != -1 && datalineprefix.indexOf(",") != -1) { dlsa=datalineprefix.split(","); if (dlsa.length > 1) { datalineprefix=datalineprefix.replace("{country}",encodeURIComponent(dlsa[0])).replace("{country}",encodeURIComponent(dlsa[0])); } } } ' . "\n"; echo ' } ' . "\n"; //echo ' } ' . "\n"; echo ' if (datalineprefix == null) { ' . "\n"; echo ' datalineprefix = ""; ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (datalineprefix.length != 0) { ' . "\n"; echo ' extra = ""; ' . "\n"; echo ' if (popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) extra = " (for " + totalleft + " enter nothing or hit Cancel button)"; ' . "\n"; echo ' if (fti) { datalinesuffix = ""; } else { if (isquiz.length > 0) { if (iquiziso < quizisos.length) { datalinesuffix="" + theval; iquiziso++; } else { datalinesuffix = geoprompt("Enter " + popularity.replace(" ercent ", "") + " " + thisline + extra, "" + theval); } theval--; } else { datalinesuffix = geoprompt("Enter " + popularity.replace(" ercent ", "") + " " + thisline + extra, "0"); } } ' . "\n"; echo ' if (datalinesuffix == null && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) datalinesuffix = totalleft; ' . "\n"; echo ' if (datalinesuffix == null) datalinesuffix = "0"; ' . "\n"; echo ' if (datalinesuffix != null) datalineprefix = datalineprefix.replace("{popularity}", datalinesuffix); ' . "\n"; echo ' if (datalinesuffix.length == 0) { ' . "\n"; echo ' datalinesuffix = eval(totalleft); ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(totalleft) == eval(datalinesuffix) && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(datalinesuffix) > eval(totalleft) && popularity.indexOf("ercent") != (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' datalinesuffix = eval(totalleft); ' . "\n"; echo ' totalleft = 0; ' . "\n"; echo ' } else if (eval(datalinesuffix) > eval(totalleft) && popularity.indexOf("ercent") == (0 - 1) && popularity.indexOf(" ercent ") == (0 - 1)) { ' . "\n"; echo ' popularity = popularity + " ercent "; ' . "\n"; echo ' } else { ' . "\n"; echo ' totalleft = eval(totalleft) - eval(datalinesuffix); ' . "\n"; echo ' } ' . "\n"; //echo ' datac = datac + ",[~" + datalineprefix + "~," + datalinesuffix + "]"; ' . "\n"; echo ' if (datalineprefix.indexOf("' . "'" . '") == -1) { four=("" + datalinesuffix).split(","); if (exra != "") { exra=String.fromCharCode(39) + "Regarding " + popularity + four[0] + String.fromCharCode(39) + ","; } datac = datac + comma + " [" + dlpll + "~" + datalineprefix.replace(/\%5f/g,"%20").replace(/\_/g,"%20") + "~," + exra + datalinesuffix + "] "; } ' . "\n"; echo ' if (datalineprefix.indexOf("' . "'" . '") != -1) { four=("" + datalinesuffix).split(","); exra=String.fromCharCode(39) + "Regarding " + popularity + four[0] + String.fromCharCode(39) + ","; datac = datac + comma + " [" + dlpll + "~" + datalineprefix.replace(",", "~,").replace(/\%5f/g,"%20").replace(/\_/g,"%20") + "," + datalinesuffix + "] "; } ' . "\n"; echo ' thisline++; defv=""; acnt=eval(-1 + thisline); if (document.getElementById("defv" + acnt)) { defv=document.getElementById("defv" + acnt).value; } ' . "\n comma=','; \n"; echo ' } ' . "\n"; } else { echo "\n whileinnards(); \n"; } echo ' } ' . "\n"; if (!isset($_GET['isMobile']) && !isset($_POST['isMobile'])) { echo ' if (allowed) { var windowlocation = "./geo_chart.php?title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + nojwinextra + "&popularity=" + popularity.replace(" ercent ", "") + "&data=" + assess_small(datac); if (windowlocation.length > 800) { document.getElementById("dpostform").innerHTML="
"; var wwl=iftoobig("",windowlocation); if (wwl != "#") { location.href=wwl; } } else { window.location=windowlocation; } } ' . "\n"; } else { echo ' if (allowed) { var windowlocation = "./geo_chart.php?isMobile=y&title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + nojwinextra + "&popularity=" + popularity.replace(" ercent ", "") + "&data=" + assess_small(datac); if (windowlocation.length > 800) { document.getElementById("dpostform").innerHTML="
"; var wwl=iftoobig("",windowlocation); if (wwl != "#") { location.href=wwl; } } else { window.location=windowlocation; } } ' . "\n"; } echo "} \n"; // . "} \n"; echo '' . "\n"; } echo "\n" . '' . "\n"; if (strpos($_SERVER['QUERY_STRING'], "justmenu") === false && strpos($_SERVER['HTTP_REFERER'], "justmenu") === false) { echo '
' . "\n"; } else { echo '   Menu' . "\n"; } ?>
"; } if (isset($_GET['overlay']) || isset($_POST['overlay'])) { $gois=""; if (isset($_POST['overlay'])) { $gois="y"; } echo " "; } if (isset($_GET['quiz']) || isset($_POST['quiz'])) { $ageop="\n placelist=documentURL.split('&data=')[1].split('&')[0].split('~'); \n"; if (isset($_GET['aregeographicals'])) { $ageo=str_replace("+"," ",urldecode($_GET['aregeographicals'])); $ageop="\n placelist=('" . str_replace(",","",$ageo) . "').split('http.'); \n"; } else if (isset($_POST['aregeographicals'])) { $ageo=str_replace("+"," ",urldecode($_POST['aregeographicals'])); $ageop="\n placelist=('" . str_replace(",","",$ageo) . "').split('http.'); \n"; } echo " "; } else if (strpos($_SERVER['QUERY_STRING'],'%20Quiz') !== false && strpos($newextras,'region:') !== false) { echo ""; } ?>