File size: 795B
<?php
ignore_user_abort (TRUE);
header("Content-type: text/vnd.wap.wml");
header("display_errors=0");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
$salasana=crypt($salasana,'password');
$paikalla=file('chatpaikalla.txt');
echo "<wml>";
echo "<card title=\"Users\">";
echo "<p>";
echo "<anchor>Chat";
echo "<go method=\"post\" href=\"chat.php\">";
echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";
echo "</go>";
echo "</anchor><br/>";
echo "Online users:<br/>";
for ($i=0; $i<count($paikalla); $i++)
{
$a=explode("¤",$paikalla[$i]);
echo rtrim($a[0])."<br/>";
}
echo "</p>";
echo "</card>";
echo "</wml>";
?>