} else { $actionstring = "delete:\tp:" . $threadid . "\tb:" . $postarray['board'] . "\tp:" . $postarray['globalid']; if (THuserewrite) { $diereturn = 'Post(s) deleted.<br /><a href="' . THurl . $boardname . '/thread/' . $threadop . '">Return to thread</a>'; } else { $diereturn = 'Post(s) deleted.<br /><a href="' . THurl . 'drydock.php?b=' . $boardname . '&i=' . $threadop . '">Return to thread</a>'; } } if ($_POST['moddo'] == "killpost") { smclearcache($board, -1, $thread); // clear the associated cache for this thread smclearcache($board, -1, -1); // AND the board delimgs($moddb->delpost($targetid, $targetisthread)); } elseif ($_POST['moddo'] == "killip") { delimgs($moddb->delipfrompost($targetid, $targetisthread, false)); // Indicate that an entire IP is getting its posts deleted $actionstring = $actionstring . "\tip:" . $ipstring; } elseif ($_POST['moddo'] == "killsub") { delimgs($moddb->delipfrompost($targetid, $targetisthread, true)); // Indicate that an entire subnet is getting its posts deleted // We do this by writing "sub" instead of "ip" and calling ipsub so that // the last octet will be a 0 $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!");