i'm using 3.03 ..
i will reinstall this hack and take what you request : ( all open/close section )
PHP Code:
// ############################### start do open / close thread ###############################
if ($_POST['do'] == 'openclosethread')
{
// permission check
if (!can_moderate($threadinfo['forumid'], 'canopenclose'))
{
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & CANVIEW) OR !($forumperms & CANOPENCLOSE))
{
print_no_permission();
}
else
{
if (!is_first_poster($threadid))
{
print_no_permission();
}
}
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
if ($threadinfo['open'])
{
$threadinfo['open'] = 0;
$logaction = $vbphrase['closed_thread'];
$action = $vbphrase['closed'];
}
else
{
$threadinfo['open'] = 1;
$logaction = $vbphrase['opened_thread'];
$action = $vbphrase['opened'];
$_POST['reason'] = null;
}
log_moderator_action($threadinfo, $logaction);
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = $threadinfo[open], reason = '" . addslashes($_POST[reason]) . "' WHERE threadid = $threadid");
$_REQUEST['forceredirect'] = 1;
$url = "showthread.php?$session[sessionurl]t=$threadid";
eval(print_standard_redirect('redirect_openclose'));
}
// ############################### start delete thread ###############################