<?php

list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;

$love=rand (53,100);

header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card id="index" title="Love Meter">
<p align="center"><small>';

print "Your Score<br/>$love/100<br/>";

echo "...<br/><a href=\"love.php?username=$username&amp;password=$password\">[ Back ]</a><br/><br/>";

list($msec,$sec)=explode(chr(32),microtime());
echo "[".round(($sec+$msec)-$HeadTime,4)."]";

print '
</small></p>
</card>
</wml>';

?>
