<?
require("functionChat.ssp");
$r = GetRandom();
openDB();
$sqlSel="select * from users where nick='$login' and pass = '$pass'";
$result=mysql_query($sqlSel) or die(mysql_error());
$CountUsers=mysql_num_rows($result);
If ($CountUsers != 1) LogResult(utf(4),utf(5),"index.php?p=$r"); // Нет такого зарегестрированного пользователя
$sqlSel="select * from forum where num='$num'";
$result=mysql_query($sqlSel) or die(mysql_error());
$tonick = mysql_result($result,0, "tonick");
$lev1 = GetLev1($tonick);
$lev2 = GetLev2($tonick);
if (strtolower($login) != modername($lev1,$lev2) && !isadmin($login)) LogResult(utf(4),utf(57),"index.php?p=$r");
$sqlUpd = "update forum set messtype='$ReplyDel' where num='$lnum'";
mysql_query($sqlUpd) or die(mysql_error());
mysql_close();
LogResult(utf(12),utf(61), "dispR.php?p=$r&page=old&login=$login&pass=$pass&num=$num");
?>