// ############################### start do set on frontpage ############################### if ($_POST['onfrontpage'] != $threadinfo['onfrontpage']) { if($threadinfo['onfrontpage'] == '1') { $value = '0'; } else { $value = '1'; } $DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET onfrontpage = $value WHERE threadid = $threadid"); $_REQUEST['forceredirect'] = 1; $url = "showthread.php?$session[sessionurl]t=$threadid"; eval(print_standard_redirect('redirect_openclose')); }