View file magforum/undelR.php

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

LogResult(utf(12),utf(60), "dispR.php?p=$r&amp;page=old&amp;login=$login&amp;pass=$pass&amp;num=$num");
?>