Просмотр файла magboard/writeMess.php

Размер файла: 1.66Kb
<?
                    
require("functionChat.ssp");

$r = GetRandom();

openDB();


$result=mysql_query("select * from users where nick='$to'") or die(mysql_error());
$CountUsers=mysql_num_rows($result);
If ($CountUsers != 1) LogResult(utf(4),utf(9),"index.php?p=$r&amp;login=$login&amp;pass=$pass"); 
// Нет такого зарегистрированного имени
$tonick = mysql_result($result,0, "nick");
$toid = mysql_result($result,0, "ind");
mysql_close();




require("headerwml.ssp");
echo "<card id=\"$MagBoard\" title=\"$login:".utf(15)."\">\n";
echo "<p align=\"center\">";
echo utf(14).":&nbsp;".NoClones($tonick)."<br/>\n";
   
echo "<br/><input name=\"mymess\" maxlength=\"160\" emptyok=\"true\" title=\"=\" type=\"text\"/></p><p>\n";   

echo "<anchor>- ".utf(16);
echo "<go method=\"post\" href=\"addMess.php?p=$r&amp;login=$login&amp;pass=$pass&amp;lev1=$lev1&amp;lev2=$lev2\">\n";
echo "<postfield name=\"log\" value=\"next\"/>\n";
echo "<postfield name=\"messtype\" value=\"$UnReadType\"/>\n";
echo "<postfield name=\"toid\" value=\"$toid\"/>\n";
echo "<postfield name=\"tonick\" value=\"$tonick\"/>\n";
echo "<postfield name=\"mymess\" value=\"$(mymess)\"/>\n";
echo "</go>\n";
echo "</anchor>\n"; 
echo "<br/><a href=\"profile.php?p=$r&amp;login=$login&amp;pass=$pass&amp;to=$to\">- ".utf(17)."</a>\n";
echo "<br/><a href=\"dispMess.php?p=$r&amp;login=$login&amp;pass=$pass&amp;lev1=$lev1&amp;lev2=$lev2&amp;page=old\">- ".utf(9)."</a>\n";
echo "<br/><a href=\"boards.php?p=$r&amp;login=$login&amp;pass=$pass\">- ".utf(18)."</a>\n";

echo "<do type=\"prev\" label=\"".utf(9)."\">\n";
echo "<prev/>\n";
echo "</do>\n";

echo "</p>";
include ("bottom.inc");
?>