$actionstring = $actionstring . "\tsub:" . long2ip(ipsub($postarray['ip'])); } // Write to the log writelog($actionstring, "moderator"); //Display our link back. THdie($diereturn); } elseif ($_POST['moddo'] != "nil") { THdie("You lack sufficient ability to delete this post!"); } } } // Attempt to move a thread (we can if we're an admin) if (isset($_POST['movethread']) && $_POST['movethread'] != "nil") { if ($adminpowers > 0 && $postarray['thread'] == 0) { $destboard = intval($_POST['movethread']); $destboard_name = $db->getboardname($destboard); if ($destboard_name == null) { THdie("You can't move a thread to a board that doesn't exist!"); } // Pass the rest off to the DB $newthreadspot = $db->movethread($id, $destboard); // Check if it failed if ($newthreadspot == null) { THdie("Move failed!"); } // Clear the relevant caches smclearcache($board_id, -1, $threadid); // clear the associated cache for this thread smclearcache($board_id, -1, -1); // clear the associated cache for the original board smclearcache($destboard, -1, -1);