<?php 
$time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $startload = $time;
$uri=parse_url("http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
if(!$uri) { header("Status: 400 Bad Request"); exit; }
$path_excess=substr($uri["path"], strlen($_SERVER["SCRIPT_NAME"]));
if(strlen($path_excess)) { header("Status: 404 Not Found"); exit; }
header("Content-type: text/html; charset=utf-8");
header("Last-Modified: " . gmdate("D, d M Y H:i:s", getlastmod()) . " GMT");
ob_start();
$gzipthis = (filesize(__FILE__)>65535);
if($gzipthis) ob_start("ob_gzhandler");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="application/xhtml\+xml; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-gb" />
<link rel="stylesheet" type="text/css" href="../genstyles.css" />
<title>Untitled 1</title>
<link rel="search" href="/search.html" />
<link rel="author" href="/Niall_stuff/vdiary/bio.html" />
 
</head>
 
<body>
    <div>
<a href="http://www.gocurrency.com/" id="gocurrencytable">Currency Converter</a>
<script type="text/javascript" src="http://gocurrency.com/v2/table_f.php?cur=GBP;USD;EUR&amp;v=1"></script>
<div style="text-align:center; font-weight:bold;">£2.99 is currently around <script type="text/javascript"><!--
tbl=document.getElementsByTagName("table")[0];
tblbody=tbl.getElementsByTagName("tbody")[0];
tblrow=tblbody.getElementsByTagName("tr")[1];
tblcells=tblrow.getElementsByTagName("td");
USDRate=Math.round(299*tblcells[3].childNodes[0].data)/100;
EURRate=Math.round(299*tblcells[4].childNodes[0].data)/100;
 
document.write("<span style=\"color: #ee0000;\">US$"+USDRate.toFixed(2)+"</span> or <span style=\"color: #00cc00;\">?"+EURRate.toFixed(2)+"</span>");
--></script><noscript><p>&lt;Javascript is disabled&gt;</p></noscript>
</div>
        </div>
</body>
</html>
<?php if($gzipthis) ob_end_flush();
header("Content-Length: " . ob_get_length());
$time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $startload), 4); header("X-Page-Build-Time: " . $total_time);
ob_end_flush();
?>