array( "label" => "Message body", "matches" => array( "contains" => "body LIKE '%QUERY%'", "does not contain" => "body NOT LIKE '%QUERY%'", ), "queryfield" => "string" ), "subject" => array( "label" => "Message subject", "matches" => array( "equal to" => "subject = 'QUERY'", "not equal to" => "subject != 'QUERY'", "contains" => "subject LIKE '%QUERY%'", "does not contain" => "subject NOT LIKE '%QUERY%'", ), "queryfield" => "string" ), "author" => array( "label" => "Message author", "matches" => array( "equal to" => "author = 'QUERY'", "not equal to" => "author != 'QUERY'", "contains" => "author LIKE '%QUERY%'", "does not contain" => "author NOT LIKE '%QUERY%'", "starts with" => "author LIKE 'QUERY%'", "does not start with" => "author NOT LIKE 'QUERY%'", "ends with" => "author LIKE '%QUERY'", "does not end with" => "author NOT LIKE 'QUERY%'", ), "queryfield" => "string" ), "date" => array( "label" => "Message date", "matches" => array( "posted on" => "datestamp = 'QUERY'", "posted on or before" => "datestamp <= 'QUERY'", "posted before" => "datestamp < 'QUERY'", "posted after" => "datestamp > 'QUERY'", "posted on or after" => "datestamp >= 'QUERY'", ), "queryfield" => "date" ), "ipaddress" => array( "label" => "Author IP-address", "matches" => array( "equal to" => "ip = 'QUERY'", "not equal to" => "ip != 'QUERY'", "starts with" => "ip LIKE 'QUERY%'", "does not start with" => "ip NOT LIKE 'QUERY%'", ), "queryfield" => "ipaddress" ), "status" => array( "label" => "Message status", "matches" => array( "approved" => "status = ".PHORUM_STATUS_APPROVED, "on hold (waiting for approval)" => "status = ".PHORUM_STATUS_HOLD, "disapproved by moderator" => "status = ".PHORUM_STATUS_HIDDEN, "hidden (on hold or disapproved)" => "status != ".PHORUM_STATUS_APPROVED, ), ), "threadstate" => array( "label" => "Thread status", "matches" => array( "open for posting" => "threadclosed = 0", "closed for posting" => "threadclosed = 1", ), ), "messagetype" => array( "label" => "Message type", "matches" => array( "thread starting messages" => "parent_id = 0", "followup messages" => "parent_id != 0", ) ), ); // ---------------------------------------------------------------------- // Javascript representation of the filter description // ---------------------------------------------------------------------- ?>
Select messages to delete
ATTENTION!
This script can delete A LOT of messages at once. So be careful which messages you select for deleting. Use it at your own risk. If you do not feel comfortable with this, please make a good database backup before deleting any messages.

The first step in deleting messages, is setting up a set of filters, which select the messages that you want to delete. Please add these filters below. After you are done, click the "Show selected messages" button to preview what messages you will be deleting.

">