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 { echo "document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"\";"; } } else { echo "document.getElementById('defv" . urldecode($_GET['lldefvnum']) . "').value=\"\";"; } } exit; } $burl=""; $bdivstart=""; $bdivend=""; $cdivc="background-color: yellow;"; $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'"; $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 the Fiji Islands', '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', 'LA','Laos', 'LV','Latvia', 'LB','Lebanon', 'LS','Lesotho', 'LR','Liberia', 'LY','Libyan Arab Jamahiriya', 'LI','Liechtenstein', 'LT','Lithuania', 'LU','Luxembourg', 'MO','Macao', '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','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']; // 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 wlook($fupa) { global $GETdata; // = "['Germany',200],['United States',300],['Brazil',400],['Canada',500],['France',600],['RU',700] "; if (strpos(strtolower(str_replace("https.","http.",$fupa)), "http.") === false) return $fupa; $fgsis=explode(",",str_replace("https.","http.",str_replace("HTTPS.","http.",$fupa))); $ofupa=$fgsis[0]; $fdel=","; $wurll=""; for ($jfgsis=0; $jfgsis' . str_replace("_"," ",$wplace) . ',') !== false && sizeof(explode("',explode('>' . str_replace("_"," ",$wplace) . ',', $wcont)[1])[0]); if (strpos($newwurll, "<") === false) { $wcont=@file_get_contents($newwurll); } 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) { if (!$dc) $inwithtz=($inwith); if ($dc) $inwithtz=urldecode($inwith); if (strpos($inwithtz, "~http;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~http;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~Http;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~Http;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~HTTP;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~HTTP;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~https;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~https;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~Https;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~Https;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~HTTPS;") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http;" . explode("~",explode("~HTTPS;", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~http") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http" . explode("~",explode("~http", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~Http") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("http" . explode("~",explode("~Http", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos($inwithtz, "~HTTP") !== false) { // co-ordinates via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array("HTTP" . explode("~",explode("~HTTP", $inwithtz)[1])[0], str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos(str_replace("https;","http;",substr(strtolower($inwithtz . " "),0,6)), "http;") !== false) { // co-ordinates longhand via prompt $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array($inwithtz, str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else if (strpos(str_replace("https:","http:",substr(strtolower($inwithtz . " "),0,6)), "http:") !== false) { // co-ordinates via URL via net $inwithtz=str_replace("`","",str_replace("`,","",'`' . read_and_array($inwithtz, str_replace('geo_chart.php','pie_chart.php',str_replace('index.php','pie_chart.php',$_SERVER['REQUEST_URI']))))); } else { return $inwith; } echo "\n pardata=\"" . urlencode("," . $inwithtz) . "\"; paramdata=decodeURIComponent(pardata); \n xcom=paramdata.replace(/, 66]/g,'').replace(/,66]/g,'').replace(/\\[/g,'').replace(/~/g,'').replace(/'/g,''); \n var xxpardata=\"" . ("," . $inwithtz) . "\"; \n"; return $inwithtz; } function recode($iniso) { global $iso_country_codes, $inplace; $outiso=$iniso . $inplace; for ($ic=0; $ic
'); 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 "

" . $GETtitle . " Geo Map

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

" . $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) { 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"; } } } 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 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 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 = prompt(\"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 = prompt(\"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 { datalinesuffix = prompt("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 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 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 = ""; ' . "\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 ' title = prompt("Enter Geo Map Title (background image URL or background image data URI ; separated (followed by ;) before title are available options, 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 &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 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?))", "' . $GETtitle . '"); if (title != null) { 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 = prompt("Enter Geo Map Width", "' . $GETwidth . '"); ' . "\n"; echo ' height = prompt("Enter Geo Map Height", "' . $GETheight . '"); ' . "\n"; echo ' if (title.indexOf("&are") != -1) { country = prompt("Enter Places Label", "Places"); } else { country = prompt("Enter Country Label", "' . $GETcountry . '"); } ' . "\n"; echo ' popularity = prompt("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 (fti) { datalineprefix = ''; dlpll = ''; } else { dlpll=''; if (alttitle.indexOf('&aregeographicals=') != -1) { datalineprefix = prompt(\"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 = ''; datalineprefix = prompt(\"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 = prompt(\"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 = prompt(\"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 { datalinesuffix = prompt("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) window.location = "./geo_chart.php?title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + nojwinextra + "&popularity=" + popularity.replace(" ercent ", "") + "&data=" + datac; ' . "\n"; } else { echo ' if (allowed) window.location = "./geo_chart.php?isMobile=y&title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + nojwinextra + "&popularity=" + popularity.replace(" ercent ", "") + "&data=" + datac; ' . "\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"; } ?>