File size: 690B
<?
require("functionChat.ssp");
$r = GetRandom();
openDB();
$result = checkpass($login,$pass,"");
$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='$ThemeDel' where num='$num'";
mysql_query($sqlUpd) or die(mysql_error());
mysql_close();
LogResult(utf(12),utf(64), "dispT.php?p=$r&login=$login&pass=$pass&lev1=$lev1&lev2=$lev2&page=old");
?>