Make WordPress Core


Ignore:
Timestamp:
09/08/2004 08:17:53 AM (21 years ago)
Author:
saxmatt
Message:

Retrospam check from Kitten

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-discussion.php

    r1599 r1620  
    4141include_once('admin-header.php');
    4242include('options-head.php');
     43
     44if ($action == 'retrospam') {
     45    if ( $_GET['move'] == 'true' ) {
     46        retrospam_mgr::move_spam( $_GET[ids] );
     47    }
     48    $retrospaminator = new retrospam_mgr();
     49    $result = $retrospaminator->find_spam();
     50    echo $retrospaminator->display_edit_form( $result );
     51    include('./admin-footer.php');
     52    exit;
     53}
    4354?>
    4455
     
    102113    <p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_settings('comment_max_links'). '" />' ) ?></p>
    103114
    104     <p><?php _e('When a comment contains any of these words in its content, name, URI, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.') ?></p>
     115    <p><?php _e('When a comment contains any of these words in its content, name, URI, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://codex.wordpress.org/Spam_Words">Common spam words</a>.') ?></p>
    105116        <p>
    106117            <textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea>
    107118        </p>
     119        <p>
     120            <a id="retrospambutton" href="options-discussion.php?action=retrospam" title="Click this link to check old comments for spam that your current filters would catch.">Check past comments against current word list</a>
     121        </p>
    108122</fieldset>
    109123        <p class="submit">
Note: See TracChangeset for help on using the changeset viewer.