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

Размер файла: 1.54Kb
<?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=\"refresh\" content=\"3;url=home_fi.php?time=".date('dmHis').'&amp;nimi='.$nimi.'&amp;salasana='.$teoria."\">\n";
echo "<title>Uloskirjautuminen</title>\n";
echo "</head>\n";
echo "<body bgcolor=\"#99CCFF\" link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">";



$nimet=file_get_contents('paikalla.txt');
$nim=file('paikalla.txt');
$chatpaik=file('chatpaikalla.txt');
$chatpaikcont=file_get_contents('chatpaikalla.txt');
$l="0";
for ($i=0; $i<count($nim); $i++) 
{
if ($nimi==rtrim($nim[$i])){$l="1";}
}
if ($l=="1"){

$nimet = str_replace ($nimi .'
',"", $nimet); 
$ne= fopen('paikalla.txt', 'r+');
 ftruncate ($ne,0);
fputs($ne, $nimet);
  fclose($ne);

$chatpaikcont = str_replace ($nimi .'
',"", $chatpaikcont); 
$ne= fopen('chatpaikalla.txt', 'r+');
 ftruncate ($ne,0);
fputs($ne, $chatpaikcont);
  fclose($ne);



}


echo "Olet kirjautunut ulos.<br/>\n";
echo "Siirrytддn etusivulle..<br/>\n";
echo "<a href=\"home_fi.php?time=".date('dmHis').'&amp;nimi='.$nimi.'&amp;salasana='.$teoria."\">[Alkuun]</a>\n";
echo "</body>\n";
echo "</html>\n";
?>