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

Размер файла: 1.34Kb
<?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 "<meta http-equiv=\"Cache-Control\" content=\"max-age=0\">\n";
echo "<title>MobiiliChat v1.11color</title>\n";
echo "</head>\n";
echo "<body bgcolor=\"#99CCFF\" link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">";



$tie = fopen('chatpaikalla.txt', 'r+');
$jui=file('chatpaikalla.txt');
  $ko=file_get_contents ('chatpaikalla.txt');
 for ($i=0; $i<count($jui); $i++) 
{
$hee=$jui[$i];
$alo=explode("¤",$jui[$i]);
$erotus=time()-$alo[1];
if ($erotus>=120){$ko = str_replace ($hee,'',$ko);}
}
  ftruncate($tie,0);


  fputs($tie, $ko);
  fclose($tie);

$chatpaik=file('chatpaikalla.txt');
$paikk=file('paikalla.txt');

echo "Testialue:<br/>\n";
echo count($chatpaik).' vapaaehtoista testaajaa paikalla.<br/>';
echo "<a href=\"sisaan_fi.php\">[Kirjautuminen]</a><br/>\n";
echo "<a href=\"luonti_fi.html\">[Luo oma tunnus]</a><br/>\n";
echo "</body>\n";
echo "</html>\n";

?>