Plugin Directory

Changeset 737526

Timestamp:
07/07/2013 11:14:17 PM (11 years ago)
Author:
tha_sun
Message:

Preparing release 2.0.

Location:
mollom/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • mollom/trunk/includes/Admin.php

    r736896 r737526  
    9999      'type' => 'checkbox',
    100100      'name' => 'mollom_privacy_link',
    101       'label' => __('Link to Mollom\'s privacy policy', MOLLOM_L10N),
     101      'label' => __(, MOLLOM_L10N),
    102102      'value' => get_option('mollom_privacy_link'),
    103103      'description' => vsprintf(__('Displays a link to the recommended <a href="%s">privacy policy on mollom.com</a> on all protected forms. When disabling this option, you are required to inform visitors about data privacy through other means, as stated in the <a href="%s">terms of service</a>.', MOLLOM_L10N), array(
  • mollom/trunk/includes/Moderation.php

    r736896 r737526  
    4242      header($_SERVER['SERVER_PROTOCOL'] . ' 410 Gone');
    4343      self::log(array(
    44         'message' => __('Not Found', MOLLOM_L10N),
     44        'message' => ,
    4545      ));
    4646      return FALSE;
     
    9090    if ($publicKey === '' || $privateKey === '') {
    9191      self::log(array(
    92         'message' => __('Missing module configuration', MOLLOM_L10N),
     92        'message' => ,
    9393      ));
    9494      return FALSE;
     
    102102    if (!isset($header['oauth_consumer_key'], $header['oauth_nonce'], $header['oauth_timestamp'], $header['oauth_signature_method'], $header['oauth_signature'])) {
    103103      self::log(array(
    104         'message' => __('Missing protocol parameters', MOLLOM_L10N),
     104        'message' => ,
    105105        'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
    106106        'Request headers:' => $header,
     
    117117    if ($header['oauth_consumer_key'] !== $publicKey) {
    118118      self::log(array(
    119         'message' => __('Invalid public/consumer key', MOLLOM_L10N),
     119        'message' => ,
    120120        'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
    121121        'Request headers:' => $header,
     
    133133      }
    134134      self::log(array(
    135         'message' => __('Outdated authentication timestamp', MOLLOM_L10N),
     135        'message' => ,
    136136        'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
    137137        'Request headers:' => $header,
     
    144144    if (empty($header['oauth_nonce'])) {
    145145      self::log(array(
    146         'message' => __('Missing authentication nonce', MOLLOM_L10N),
     146        'message' => ,
    147147        'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
    148148        'Request headers:' => $header,
     
    183183    if (!$valid) {
    184184      self::log(array(
    185         'message' => __('Invalid authentication signature', MOLLOM_L10N),
     185        'message' => ,
    186186        'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
    187187        'Request headers:' => $header + array('oauth_signature' => $sent_signature),
  • mollom/trunk/includes/Schema.php

    r736896 r737526  
    3131  public static function getSchema() {
    3232    global $wpdb;
    33     $table = $wpdb->prefix . 'mollom';
     33    $;
    3434
    3535    // Note: dbDelta() requires no spaces between column names in the primary
    3636    // key definition.
    37     return "CREATE TABLE $table (
     37    $table = $wpdb->prefix . 'mollom';
     38    $schema[$table] = "
    3839  entity_type VARCHAR(32) DEFAULT '' NOT NULL,
    3940  entity_id BIGINT DEFAULT 0 NOT NULL,
     
    4344  KEY content_id (content_id),
    4445  KEY created (created)
    45 )";
     46";
     47    return $schema;
    4648  }
    4749
     
    5153  public static function install() {
    5254    require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    53     dbDelta(self::getSchema());
     55    $schema = self::getSchema();
     56    foreach ($schema as $table => $spec) {
     57      dbDelta("CREATE TABLE $table ($spec)");
     58    }
     59
     60    // Do not autoload the schema version option.
     61    // Mind the WPWTF: No, not FALSE, but "no".
     62    add_option('mollom_schema_version', 0, '', 'no');
    5463
    5564    update_option('mollom_schema_version', self::getVersion());
     
    6675  }
    6776
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
    6888}
  • mollom/trunk/readme.txt

    r736954 r737526  
    11=== Mollom ===
    22Contributors: Netsensei, tha_sun
    3 Donate link: http://mollom.com
     3Donate link: http
    44Tags: comments, spam, social, content, moderation, captcha, mollom
    55Requires at least: 3.1.0
     
    1313== Description ==
    1414
    15 [Mollom](http://mollom.com) protects you from spam and unwanted posts.  Mollom enables you to focus on quality content, and to embrace social, user-contributed content and public engagement.
     15[Mollom](http://mollom.com) protects you user-contributed content and public engagement.
    1616
    17 Mollom blocks all bad spam, accepts the good user-contributed content, and honestly admits when it is _unsure_ — asking the author to solve a [CAPTCHA](http://en.wikipedia.org/wiki/CAPTCHA) to be sure.  To learn more, check [how Mollom works](http://mollom.com/how-mollom-works).
     17Mollom .  To learn more, check [how Mollom works](http://mollom.com/how-mollom-works).
    1818
    19 Obvious spam does not even enter your site; it's outright discarded instead.  You should not have to deal with spam.  Mollom supplies a cutting-edge content classification technology that learns and automatically adapts — to allow you to focus on content:  Quality content.
     19s — to allow you to focus on content:  Quality content.
    2020
    21 You have multiple WordPress blogs and potentially other sites that need your attention and moderation?  This plugin integrates with Mollom's [Content Moderation Platform](http://mollom.com/moderation) out of the box — Moderate them all at once.  Focus on important topics instead.
     21.
    2222
    23 Note:  Mollom is an all-in-one solution.  To get the best performance out of Mollom, ensure to disable all other spam protection plugins.
     23Do you have multiple WordPress and other sites that need moderation?  Mollom's [Content Moderation Platform](http://mollom.com/moderation) is supported out of the box — Save time & moderate them all at once.
     24
     25If you like Mollom, consider to [write a review](http://wordpress.org/support/view/plugin-reviews/mollom) and blog about it! :)
     26
     27= Support =
     28
     29To get the best performance out of Mollom, ensure to disable other spam filter plugins.
     30
     31* Contact [Mollom Support](http://mollom.com/contact) for issues pertaining to the Mollom service; e.g., uncaught spam posts, inappropriately classified posts, etc.
     32* Use the [issue queue](https://github.com/Mollom/wordpress-mollom/issues) for bug reports and feature requests pertaining to the WordPress plugin.
     33
     34= Development =
     35
     36This plugin is maintained on [GitHub](https://github.com/Mollom/wordpress-mollom).  Contributions are welcome!
    2437
    2538
     
    2740
    28411. Install and activate the plugin.
    29 1. [Sign up](https://mollom.com/pricing) to create Mollom API keys for your site.
    30 1. Enter them on the settings page of the Mollom plugin on your site.
     421. [Sign up API keys for your site.
     431. Enter them on the on your site.
    3144
    3245
     
    3851= Requirements for Content Moderation Platform =
    3952
    40 Optionally, to enable the [Content Moderation Platform (CMP)](http://mollom.com/moderation) integration:
     53Optionally, to enable the [Content Moderation Platform (CMP)](http://mollom.com/moderation):
    4154
    4255* [Pretty Permalinks](http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks) must be enabled.
    43 * On servers running PHP <5.4 as CGI, ensure the Apache `mod_rewrite` module is enabled and add the following lines to your `.htaccess` file:
     56* On servers running PHP <5.4 , ensure the Apache `mod_rewrite` module is enabled and add the following lines to your `.htaccess` file:
    4457
    4558        RewriteEngine On
    4659        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     60
     61
     62
     63
     64
     65
     66
    4767
    4868
     
    5777= 2.0 =
    5878
    59 * Rewritten and re-architected for Mollom's new REST API.
     79* Rewritten and re-architected for Mollom's new .
    6080
  • mollom/trunk/uninstall.php

    r736896 r737526  
    1111}
    1212
    13 // @todo Delete mollom table.
    14 // @todo Delete meta data.
     13// Delete content meta data.
     14delete_metadata('comment', 0, 'mollom', NULL, TRUE);
     15delete_metadata('comment', 0, 'mollom_content_id', NULL, TRUE);
     16delete_metadata('post', 0, 'mollom', NULL, TRUE);
     17delete_metadata('post', 0, 'mollom_content_id', NULL, TRUE);
     18delete_metadata('user', 0, 'mollom', NULL, TRUE);
     19delete_metadata('user', 0, 'mollom_content_id', NULL, TRUE);
     20
     21// Drop database tables.
     22require_once dirname(__FILE__) . '/includes/Schema.php';
     23MollomSchema::uninstall();
     24
     25delete_option('mollom_schema_version');
    1526
    1627delete_option('mollom_public_key');
     
    2435delete_option('mollom_reverse_proxy_addresses');
    2536delete_option('mollom_testing_mode');
     37
     38
     39
     40
     41
Note: See TracChangeset for help on using the changeset viewer.