Просмотр файла mobilechat_v1.11color/paikalla_fi.php

Размер файла: 1.24Kb
<?php
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"
\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";

echo "<!-- MobiiliChat v1.11color -->\n";
echo "<!-- Copyright (C) 2004-2005 Keijo Kangas ([email protected]) -->\n";

echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head>\n";
echo "<title>Keskustelijat</title>\n";
echo "</head>\n";
echo "<body bgcolor=\"#99CCFF\" link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">";

$teoria=$salasana;
$salasana=crypt($salasana,'password');
$paikalla=file('chatpaikalla.txt');
$paikzat=count(file('paikalla.txt'));
$hhh=count($paikalla);

echo "<small>\n";
echo "<a href=\"chat_fi.php?time=".date('dmHis').'&amp;nimi='.$nimi.'&amp;salasana='.$teoria."\">[Chattiin]</a><br>\n";
echo $hhh." keskustelijaa:<br/>\n";
for ($i=0; $i<count($paikalla); $i++)
{ 
$a=explode("¤",$paikalla[$i]);
echo rtrim($a[0])."<br/>\n";
}
if (count($paikalla)>5)
{
echo "<a href=\"chat_fi.php?time=".date('dmHis').'&amp;nimi='.$nimi.'&amp;salasana='.$teoria."\">[Chattiin]</a><br>\n";
}
echo "</small>\n";
echo "</body>\n";
echo "</html>\n";
?>