Пример #1
0
 $editerror = false;
 if ($forumpost->islocked()) {
     if ($xoopsUser) {
         if (!$xoopsUser->isAdmin($xoopsModule->mid()) || !is_moderator($forum, $xoopsUser->uid())) {
             $editerror = true;
         }
     } else {
         $editerror = true;
     }
 }
 if ($editerror) {
     redirect_header("viewtopic.php?topic_id={$topic_id}&post_id={$post_id}&order={$order}&viewmode={$viewmode}&pid={$pid}&forum={$forum}", 2, _MD_NORIGHTTOPOST);
     exit;
 }
 $nohtml = $forumpost->nohtml();
 $nosmiley = $forumpost->nosmiley();
 $icon = $forumpost->icon();
 $attachsig = $forumpost->attachsig();
 $topic_id = $forumpost->topic();
 if ($forumpost->istopic()) {
     $istopic = 1;
 } else {
     $istopic = 0;
 }
 $subject = $forumpost->subject("Edit");
 $message = $forumpost->text("Edit");
 $hidden = "";
 $myts =& MyTextSanitizer::getInstance();
 $viewmode = $myts->htmlspecialchars($viewmode);
 include 'include/forumform.inc.php';
 include XOOPS_ROOT_PATH . '/footer.php';