" . "http://www.timezoneconverter.com/cgi-bin/zoneinfo?tz=" . urlencode(str_replace("+","_",urldecode($_GET['timezone']))) . "";
$midbit="http://www.timezoneconverter.com/cgi-bin/zoneinfo?tz=" . urlencode(str_replace("+","_",urldecode($_GET['timezone'])));
date_default_timezone_set(str_replace("+"," ",urldecode($_GET['timezone'])));
}
} else {
date_default_timezone_set("UTC");
}
$thedate=date('l H:i:s d M Y e I~') . $emflag;
if (strpos($thedate, " 1~") !== false) {
$thedate=str_replace(" 1~", " ", $thedate);
} else if (strpos($thedate, " 0~") !== false) {
$midbit="";
$thedate=str_replace(" 0~", " ", $thedate);
}
$csuff='';
if (isset($_GET['both'])) {
$csuff='' . $midbit . '';
} else if (isset($_GET['analogue'])) {
$csuff='' . $midbit . '';
}
if (strpos(('' . $_SERVER['QUERY_STRING']), "localtime") !== false) {
if (strpos(('' . $_SERVER['QUERY_STRING']), "firstcall") !== false) {
if (strpos(('' . $_SERVER['QUERY_STRING']), "nowis=") !== false) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg')) {
$fsvg=file_get_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg');
if (strpos($fsvg, '') !== false) {
$curts=explode('>', explode('', $fsvg)[0])[-1 + sizeof(explode('>', explode('', $fsvg)[0]))];
if (strpos($fsvg, '>' . $curts . '')) {
$pdt=" parent.document.title+=' you started at " . str_replace('+',' ',urldecode($_GET['nowis'])) . " local time'; parent.document.getElementById('myh1').innerHTML+=' ... you started at " . str_replace('+',' ',urldecode($_GET['nowis'])) . " local time'; ";
file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg', str_replace('>' . $curts . '', '>' . str_replace('+',' ',urldecode($_GET['nowis'])) . '', $fsvg));
}
}
}
} else {
$localtime = localtime();
if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg')) {
$fsvg=file_get_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg');
if (strpos($fsvg, '') !== false) {
$curts=explode('>', explode('', $fsvg)[0])[-1 + sizeof(explode('>', explode('', $fsvg)[0]))];
if (strpos($fsvg, '>' . $curts . '')) {
$pdt=" parent.document.title+=' you started at " . substr(('0' . $localtime[2]),-2,2) . ':' . substr(('0' . $localtime[1]),-2,2) . " local time'; parent.document.getElementById('myh1').innerHTML+=' ... you started at " . str_replace('+',' ',urldecode($_GET['nowis'])) . " local time'; ";
file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'favicon.svg', str_replace('>' . $curts . '', '>' . substr(('0' . $localtime[2]),-2,2) . ':' . substr(('0' . $localtime[1]),-2,2) . '', $fsvg));
}
}
}
}
}
echo "
";
} else {
if (isset($_GET['both'])) {
echo $thedate . $midbit . '' . $midbit . '';
} else if (isset($_GET['analogue'])) {
echo $thedate . $midbit . '' . $midbit . '';
} else {
echo $thedate . $midbit;
}
}
?>