View file magforum/undelT.php

File size: 691B
<? 
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='$ThemeType' where num='$num'";
mysql_query($sqlUpd) or die(mysql_error());
mysql_close();

LogResult(utf(12),utf(65), "dispT.php?p=$r&amp;login=$login&amp;pass=$pass&amp;lev1=$lev1&amp;lev2=$lev2&amp;page=old");
?>