writelog($actionstring, "moderator"); if (THuserewrite) { THdie('Thread moved.<br /><a href="' . THurl . $destboard_name . '/thread/' . $newthreadspot . '">Return to thread</a>'); } else { THdie('Thread moved.<br /><a href="' . THurl . 'drydock.php?b=' . $destboard_name . '&i=' . $newthreadspot . '">Return to thread</a>'); } } else { THdie("Invalid move thread attempt!"); } } // Some stuff might have changed after all that, so let's refetch the data $postarray = $db->getsinglepost($postid, $board_id); $postarray['images'] = $db->getimgs($postarray['imgidx']); // Get the boards array, to possibly show a list for moving $boards = array(); $boards = $db->getboard(); // No parameters means everything gets fetched $sm = sminit("adminedit.tpl", null, "_admin", true); // Admin mode means NO caching. (and we provided a null id anyway) // $sm->debugging = true; // debug for now // $sm->debug_tpl = THpath."_Smarty/debug.tpl"; // These can be pretty big, so we're going to assign by reference. $sm->assign_by_ref("boards", $boards); $sm->assign_by_ref("postarray", $postarray); // Contains all the post data // Board information $sm->assign("boardname", $board_folder); $sm->assign("boardid", $board_id); // Specific post location information $sm->assign("threadid", $threadid); $sm->assign("postid", $postid);