67,74c67
< $selcountry = "\n", $selfrom);
< } else {
< $selfrom .= str_replace("option value=", "option selected='selected' value=", $fromthis);
< }
< } else {
< if (strpos($selfrom, "") !== false) {
< $selfrom=str_replace("", $fromthis . "", $selfrom);
< } else {
< $selfrom .= $fromthis;
< }
< }
< $tothis = "\n";
< if ($toparam != "" && strpos($tothis, $toparam) !== false) {
< if (strpos($selto, "") !== false) {
< $selto=str_replace("", str_replace("option value=", "option selected='selected' value=", $tothis) . "", $selto);
< } else {
< $selto .= str_replace("option value=", "option selected='selected' value=", $tothis);
< }
< } else {
< if (strpos($selto, "") !== false) {
< $selto=str_replace("", $tothis . "", $selto);
< } else {
< $selto .= $tothis;
< }
< }
< }
< }
< }
<
< }
<
< // selfrom ... http://www.rjmprogramming.com.au/PHP/Distance/index.php?fromlatd=50&fromlatm=48&fromlats=0&fromlongd=4&fromlongm=21&fromlongs=0&from=from&country=BELGIUM&fromplace=Brussels
<
< // Add TimeZone places here
< //
<
< // if ($lastcountry != $country) {
< // $countrythis = "\n";
< // if ($countryparam != "" && strpos($countrythis, $countryparam) !== false) {
< // $selcountry .= str_replace("option value=", "option selected='selected' value=", $countrythis);
< // } else {
< // $selcountry .= $countrythis;
< // }
< // }
< // $lastcountry = $country;
<
<
< // End of TimeZone places add
< return "";
< }
<
247c118
< global $extras, $selcountry, $selfrom, $selto, $latarr, $longarr, $cntryarr, $valuearr, $bigscript, $mapidea, $scnt, $outddata, $latarr, $longarr, $cntryarr, $valuearr;
---
> global $latarr, $longarr, $cntryarr, $valuearr, $bigscript, $mapidea;
249,250c120,121
< //$scnt = 0;
< //$outddata = "";
---
> $scnt = 0;
> $outddata = "";
425,427c296,298
< //$selcountry = "\n";
< //$selfrom = "\n";
< //$selto = "\n";
---
> $selcountry = "\n";
> $selfrom = "\n";
> $selto = "\n";
543,545d413
< addtimezones($outmode, $countryparam, $fromparam, $toparam);
<
<
581c449
< return $outddata . explode("",$selto)[0] . "" . $bigscript;
---
> return $outddata . $selto . $bigscript;
583c451
< return $outddata . explode("",$selfrom)[0] . "" . $bigscript;
---
> return $outddata . $selfrom . $bigscript;