sub sticktopic { &getmember("$inmembername"); &moderator; $cleartoedit = "no"; &mischeader("Поднятие темы"); if (($membercode eq "ad") && ($inpassword eq $password)) { $cleartoedit = "yes"; } if (($inmembmod eq "yes") && ($inpassword eq $password)) { $cleartoedit = "yes"; } unless ($cleartoedit eq "yes") { $cleartoedit = "no"; } if ($cleartoedit eq "no" && $checked eq "yes") { &error("$ibtxt{'1553'}&$ibtxt{'0504'}"); } if (($cleartoedit eq "yes") && ($checked eq "yes")) { my $file = "$ikondir" . "forum$inforum/$intopic.pl"; open (ENT, $file); flock (ENT,2); $in = ; flock (ENT,8); close (ENT); ($topicid, $topictitle, $topicdescription, $threadstate, $threadposts ,$threadviews, $startedby, $startedpostdate, $lastposter, $lastpostdate, $sticky) = split(/\|/,$in); open(FILE, ">$file"); flock(FILE, 2); print FILE "$intopic|$topictitle|$topicdescription|$threadstate|$threadposts|$threadviews|$startedby|$startedpostdate|$lastposter|$lastpostdate|yes"; flock(FILE, 8); close(FILE); rebuildLIST(-Forum=>"$inforum"); $output .= qq~
Поднятие темы
~; } # end if clear to edit else { $inmembername =~ s/\_/ /g; $output .= qq~
Введите данные, чтобы войти в режим модерации [ Поднятия темы ]
$ibtxt{'0306'}
$ibtxt{'0307'}
~; } } # end sticktopic ########################### sub unsticktopic { &getmember("$inmembername"); &moderator; $cleartoedit = "no"; &mischeader("Освобождение темы"); if (($membercode eq "ad") && ($inpassword eq $password)) { $cleartoedit = "yes"; } if (($inmembmod eq "yes") && ($inpassword eq $password)) { $cleartoedit = "yes"; } unless ($cleartoedit eq "yes") { $cleartoedit = "no"; } if ($cleartoedit eq "no" && $checked eq "yes") { &error("$ibtxt{'1554'}&$ibtxt{'0504'}"); } if (($cleartoedit eq "yes") && ($checked eq "yes")) { my $file = "$ikondir" . "forum$inforum/$intopic.pl"; open (ENT, $file); flock (ENT,2); $in = ; flock (ENT,8); close (ENT); ($topicid, $topictitle, $topicdescription, $threadstate, $threadposts ,$threadviews, $startedby, $startedpostdate, $lastposter, $lastpostdate, $sticky) = split(/\|/,$in); open(FILE, ">$file"); flock(FILE, 2); print FILE "$intopic|$topictitle|$topicdescription|$threadstate|$threadposts|$threadviews|$startedby|$startedpostdate|$lastposter|$lastpostdate|no"; flock(FILE, 8); close(FILE); rebuildLIST(-Forum=>"$inforum"); $output .= qq~
Освобождение темы
~; } # end if clear to edit else { $inmembername =~ s/\_/ /g; $output .= qq~
Введите данные, чтобы войти в режим модерации [ Освобождение темы ]
$ibtxt{'0306'}
$ibtxt{'0307'}
~; } } # end unsticktopic