if ($PermissionUser >= "Q")
{
...
$MID = ForumAddMessage("REPLY", $FID, $TID, 0, $arFieldsG, $strErrorMessage, $strOKMessage, false, $_POST["captcha_word"], 0, $_POST["captcha_code"]);
$MID = IntVal($MID);
if ($MID <= 0)
{
$bVarsFromForm = true;
}
else
{
ForumOpenCloseTopic($TID, "CLOSE", $strErrorMessage, $strOKMessage);
LocalRedirect("read.php?FID=".$FID."&TID=".$TID);
}
}
.....
if (($arTopic["STATE"]=="Y") && ($PermissionUser >= "Q"))
{
...
$APPLICATION->IncludeFile("forum/forum_tmpl_1/post_form.php", $arFormParams);
}
else
{
...
}
|