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

Размер файла: 1.73Kb
<?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>Luodaan tunnus</title>\n";
echo "</head>\n";
echo "<body bgcolor=\"#99CCFF\" link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">";

 $swe_from = array("ГҐ","Г¤","Г¶","Г…","Г„","Г–","$","&"); 
$swe_to = array("е", "д", "ц", "Е", "Д", "Ц","d","j"); 

for ($t=0; $t<count($swe_from); $t++) 
{ 
$nimi = str_replace ($swe_from[$t], $swe_to[$t], $nimi); 
$salasana = str_replace ($swe_from[$t], $swe_to[$t], $salasana); 
} 

$nimi = strtolower($nimi);
$salasana = strtolower($salasana);
$salsan=file('sals.txt');
$salnim=file('nims.txt');
$salasanapieni=$salasana;
for ($u=0; $u<count($salnim); $u++) 
{ if (rtrim($salnim[$u])==$nimi){$nimi='';}}


if ($salasana !='' && $nimi !='') {

 $tiedsal = fopen('sals.txt', 'a');
$salasana = crypt($salasana,'password');
 $lissal=$salasana.'
';
   fputs($tiedsal, $lissal);
  fclose($tiedsal);

$tiednim= fopen('nims.txt', 'a');
 $lisnim=$nimi.'
';
   fputs($tiednim, $lisnim);
  fclose($tiednim);}

if ($nimi !='') {echo "Ok.<br/>";
echo "Nimi:".$nimi."<br/>";
echo "Salasana:".$salasanapieni."<br/>";
echo "<a href=\"home_fi.php\">[Alkuun]</a>";}

        
if ($nimi =='') {echo "Nimi on jo kдytцssд.<br/>Kirjoita eri nimi.<br/>";
echo "<a href=\"luonti_fi.html\">[Back]</a>";}
echo "</body>\n";
echo "</html>\n";
?>