Размер файла: 1.81Kb
<?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>Yksityisviesti</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);
}
$teoria=$salasana;
$salasana=crypt($salasana,'password');
$privaviestit=file('privnea.txt');
$salnim=file('nims.txt');
$salsan=file('sals.txt');
if ($kenelle==''){$kenelle='?';}
for ($i=0; $i<count($salnim); $i++)
{ if (rtrim($salsan[$i])==$salasana && rtrim($salnim[$i])==$nimi){$a="1";}}
if ($a !="1"){
echo "<a href=\"home_fi.php\">[Alkuun]</a>";
echo "</body>";
echo "</html>";
exit();
}
echo "<form action=\"prividis_fi.php\" method=\"get\">\n";
echo "<input type=\"hidden\" name=\"nimi\" value=\"".$nimi."\" />\n";
echo "<input type=\"hidden\" name=\"salasana\" value=\"".$teoria."\" />\n";
echo "Kenelle:<input type=\"text\" name=\"kenelle\" value=\"".$kenelle."\" maxlength=\"15\" size=\"8\"/>\n";
echo "<br>Viesti:<input type=\"text\" name=\"viesti\" maxlength=\"128\" size=\"10\">\n";
echo "<br><input type=\"submit\" value=\"Lдhetд/Takaisin\">\n";
echo "</form>\n";
echo "</body>\n";
echo "</html>\n";
?>