Просмотр файла wap.rzz.ru/chat/paikalla.php

Размер файла: 915B
<?php
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<!-- MobiiliChat v1.07 -->\n";
echo "<!-- Copyright (C) 2004-2005 Keijo Kangas ([email protected]) -->\n";
$salasana=crypt($salasana,'password');
$paikalla=file('chatpaikalla.txt');

echo "<wml>";
echo "<card title=\"Users\">";
echo "<p>";
echo "<anchor>[Chatroom]";
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>";
?>