1:" . $tzsofar . "
" . $inwithtz . "
" . $GETtitle . "
");
$dtz=new DateTimeZone($tzsofar);
//if (isset($_GET['x'])) file_put_contents("xx.html", "2:" . $tzsofar . "
" . $inwithtz . "
" . $GETtitle . "
");
$cloc=$dtz->getLocation();
// ,[51.5072,-0.1275,~London~]
//$ctzsfa.=$cm . "//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=" . ", [" . $cloc['latitude'] . "," . $cloc['longitude'] . ",~" . $lpv . "~]";
//$itzsfa++;
//$cm="#";
//$bl="//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=";
//if (isset($_GET['x'])) file_put_contents("xx.html", "3:" . $tzsofar . "
" . $inwithtz . "
" . $GETtitle . "
");
$okcc=$cloc['country_code'];
//if (isset($_GET['x'])) file_put_contents("x.html", "" . $fcs . "
" . $inwithtz . "
" . $GETtitle . "
");
} catch (Exception $eqwd) { }
}
}
$ootz = new DateTimeZone("UTC");
$jj=0;
$dorigin_dt = new DateTime("now", $ootz);
for ($best1=0; $best1getLocation();
if (strcmp($okcc,$cloc['country_code']) == 0) {
$yokcc=true;
// ,[51.5072,-0.1275,~London~]
//$ctzsfa.=$cm . "//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=" . ", [" . $cloc['latitude'] . "," . $cloc['longitude'] . ",~" . str_replace("_","%20",explode("/",$nearname[$best1])[-1 + sizeof(explode("/",$nearname[$best1]))]) . "~]";
//$itzsfa++;
//$cm="#";
//$bl="//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=";
}
} catch (Exception $epou) {
//if (isset($_GET['x']) && strpos($epou->getMessage(), "Unknown or bad timezone") === false) file_put_contents("xxxxxx.html", $epou->getMessage());
}
}
if ($yokcc || strpos(str_replace("+("," (",str_replace(","," ",$GETtitle)), (" " . $nearname[$best1] . "/")) !== false) {
if ($inwithtz == "") {
$inwithtz=",[";
$sdp="~]";
$pdp="";
$lastb="";
} else if (strpos($inwithtz,"~") === false) {
$inwithtz=",[";
$sdp="~]";
$pdp="";
$lastb="";
} else {
$lastb="[";
}
try {
//if (isset($_GET['x'])) echo "here
";
//if (isset($_GET['x'])) exit;
if (!$yokcc) $dtz = new DateTimeZone($nearname[$best1]);
$dremote_dt = new DateTime("now", $dtz);
$ooffset = ($dtz->getOffset($dremote_dt) - $ootz->getOffset($dorigin_dt)) / 3600;
// ,[-33.869999,151.210007,~Sydney, Australia|11https://www.wunderground.com/q/zmw:00000.16.94768|13:10|Australia/Sydney~],[33.869999,-28.78999300000001,~Other side of the world to ... Sydney, Australia| | | ~]
$xw="";
//$arContext['http']['timeout'] = 3;
//$context = stream_context_create($arContext);
$ddb=@file_get_contents("HTTP://autocomplete.wunderground.com/aq?query=" . str_replace(" ","%20",str_replace("-"," ",str_replace("_"," ",explode("/",$nearname[$best1])[-1 + sizeof(explode("/",$nearname[$best1]))] . "," . (substr($fcs,1)))))); //,0,$context);
//if (isset($_GET['x'])) file_put_contents("xx.html", "" . "HTTP://autocomplete.wunderground.com/aq?query=" . str_replace(" ","%20",str_replace("-"," ",str_replace("_"," ",explode("/",$nearlatitude[$best1])[-1 + sizeof(explode("/",$nearlatitude[$best1]))] . "," . (substr($fcs,1))))) . "");
if (sizeof(explode('"l": "', $ddb)) == 2) {
$restdd=explode('"',explode('"l": "', $ddb)[1])[0];
$xw="https://www.wunderground.com" . $restdd;
}
//if (strlen($fcs) > 1) $fcs=""; //"%20" . substr($fcs,1);
if ($yokcc) {
$inhereto.=$pdp . $nearlatitude[$best1] . "," . $nearlongitude[$best1] . ",~" . str_replace(" |","|",explode("/", $nearname[$best1])[-1 + sizeof(explode("/", $nearname[$best1]))] . $fcs . "|" . $ooffset . $xw . "|" . $dremote_dt->format('Y-m-d_H:i:s') . "|" . $nearname[$best1]) . $sdp;
$ctzsfa.=$cm . "//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=" . ", [" . $nearlatitude[$best1] . "," . $nearlongitude[$best1] . ",~" . $nearname[$best1] . "~]";
$itzsfa++;
$cm="#";
$bl="//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=";
} else {
$xbitsare=explode((" " . $nearname[$best1] . "/"), str_replace("+("," (",str_replace(","," ",$GETtitle)));
$inhereto.=$pdp . $nearlatitude[$best1] . "," . $nearlongitude[$best1] . ",~" . str_replace(" |","|",explode("/", $nearname[$best1])[-1 + sizeof(explode("/", $nearname[$best1]))] . $fcs . "|" . $ooffset . $xw . "|" . explode(" ", $xbitsare[1])[0] . "|" . $nearname[$best1]) . $sdp;
$ctzsfa.=$cm . "//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=" . ", [" . $nearlatitude[$best1] . "," . $nearlongitude[$best1] . ",~" . $nearname[$best1] . "~]";
$itzsfa++;
$cm="#";
$bl="//www.rjmprogramming.com.au/PHP/Map/map.php?title=TimeZone%20Place&onclick=y&label=['Lat',&value='Lon','Name']&data=";
}
if ($sdp == "~]") {
$pdp=",[";
} else {
$pdp="[";
}
} catch (Exception $excc) { }
}
}
}
//if (isset($_GET['x'])) file_put_contents("xxx.html", "" . $inhereto . "
" . $inwithtz . "
" . $GETtitle . "
");
$inwithtz=str_replace($inherefrom, $inhereto . $lastb, $inwithtz);
if ($inhereto != ",['") {
echo "\n paramdata=paramdata.replace(',' + '[','" . str_replace(',[',",' + '[",$inhereto . $lastb) . "'); \n pardata=encodeURIComponent(paramdata); \n";
if (strlen($fcs) > 1 && $tzsofar != "") {
$flagfor=@file_get_contents("HTTP://emojiterra.com/flag-for-" . str_replace(" ","-",strtolower(substr($fcs,1))));
if (strpos($flagfor, ">HTML decHTML dec | ", $fbitsare[1])[1])[0])))));
$ehd=str_replace("&","&",explode("<",explode(">", $fbitsare[1])[1])[0]);
$GETtitle=str_replace($tzsofar, " " . $ehd . " " . $tzsofar, $GETtitle);
if (strpos($GETtitle, "TimeZone Offset ") !== false) { $agy="Y"; }
}
}
}
//if (isset($_GET['x'])) file_put_contents("xxxx.html", "" . $inhereto . "
" . $inwithtz . "
" . $GETtitle . " ");
if (strpos($inwithtz, "]") === false) {
//$inwithtz=urldecode($inwithtz);
$inwithtz=urldecode(urldecode($inwithtz));
}
$outwithouttz=$inwithtz;
$wparts=explode("]", $inwithtz);
if (strpos($inwithtz, "|") !== false) {
if ($dllt == "") {
$withinbar=explode("|", $inwithtz);
$stuff="";
$gweather="";
for ($iiz=0; $iiz" . $stuff . " |