Changeset 737526
- Timestamp:
- 07/07/2013 11:14:17 PM (11 years ago)
- Location:
- mollom/trunk
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
mollom/trunk/includes/Admin.php
r736896 r737526 99 99 'type' => 'checkbox', 100 100 'name' => 'mollom_privacy_link', 101 'label' => __( 'Link to Mollom\'s privacy policy', MOLLOM_L10N),101 'label' => __(, MOLLOM_L10N), 102 102 'value' => get_option('mollom_privacy_link'), 103 103 '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 42 42 header($_SERVER['SERVER_PROTOCOL'] . ' 410 Gone'); 43 43 self::log(array( 44 'message' => __('Not Found', MOLLOM_L10N),44 'message' => , 45 45 )); 46 46 return FALSE; … … 90 90 if ($publicKey === '' || $privateKey === '') { 91 91 self::log(array( 92 'message' => __('Missing module configuration', MOLLOM_L10N),92 'message' => , 93 93 )); 94 94 return FALSE; … … 102 102 if (!isset($header['oauth_consumer_key'], $header['oauth_nonce'], $header['oauth_timestamp'], $header['oauth_signature_method'], $header['oauth_signature'])) { 103 103 self::log(array( 104 'message' => __('Missing protocol parameters', MOLLOM_L10N),104 'message' => , 105 105 'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'], 106 106 'Request headers:' => $header, … … 117 117 if ($header['oauth_consumer_key'] !== $publicKey) { 118 118 self::log(array( 119 'message' => __('Invalid public/consumer key', MOLLOM_L10N),119 'message' => , 120 120 'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'], 121 121 'Request headers:' => $header, … … 133 133 } 134 134 self::log(array( 135 'message' => __('Outdated authentication timestamp', MOLLOM_L10N),135 'message' => , 136 136 'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'], 137 137 'Request headers:' => $header, … … 144 144 if (empty($header['oauth_nonce'])) { 145 145 self::log(array( 146 'message' => __('Missing authentication nonce', MOLLOM_L10N),146 'message' => , 147 147 'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'], 148 148 'Request headers:' => $header, … … 183 183 if (!$valid) { 184 184 self::log(array( 185 'message' => __('Invalid authentication signature', MOLLOM_L10N),185 'message' => , 186 186 'Request:' => $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'], 187 187 'Request headers:' => $header + array('oauth_signature' => $sent_signature), -
mollom/trunk/includes/Schema.php
r736896 r737526 31 31 public static function getSchema() { 32 32 global $wpdb; 33 $ table = $wpdb->prefix . 'mollom';33 $; 34 34 35 35 // Note: dbDelta() requires no spaces between column names in the primary 36 36 // key definition. 37 return "CREATE TABLE $table ( 37 $table = $wpdb->prefix . 'mollom'; 38 $schema[$table] = " 38 39 entity_type VARCHAR(32) DEFAULT '' NOT NULL, 39 40 entity_id BIGINT DEFAULT 0 NOT NULL, … … 43 44 KEY content_id (content_id), 44 45 KEY created (created) 45 )"; 46 "; 47 return $schema; 46 48 } 47 49 … … 51 53 public static function install() { 52 54 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'); 54 63 55 64 update_option('mollom_schema_version', self::getVersion()); … … 66 75 } 67 76 77 78 79 80 81 82 83 84 85 86 87 68 88 } -
mollom/trunk/readme.txt
r736954 r737526 1 1 === Mollom === 2 2 Contributors: Netsensei, tha_sun 3 Donate link: http ://mollom.com3 Donate link: http 4 4 Tags: comments, spam, social, content, moderation, captcha, mollom 5 5 Requires at least: 3.1.0 … … 13 13 == Description == 14 14 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. 16 16 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).17 Mollom . To learn more, check [how Mollom works](http://mollom.com/how-mollom-works). 18 18 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.19 s — to allow you to focus on content: Quality content. 20 20 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 . 22 22 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. 23 Do 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 25 If you like Mollom, consider to [write a review](http://wordpress.org/support/view/plugin-reviews/mollom) and blog about it! :) 26 27 = Support = 28 29 To 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 36 This plugin is maintained on [GitHub](https://github.com/Mollom/wordpress-mollom). Contributions are welcome! 24 37 25 38 … … 27 40 28 41 1. Install and activate the plugin. 29 1. [Sign up ](https://mollom.com/pricing) to create MollomAPI keys for your site.30 1. Enter them on the settings page of the Mollom pluginon your site.42 1. [Sign up API keys for your site. 43 1. Enter them on the on your site. 31 44 32 45 … … 38 51 = Requirements for Content Moderation Platform = 39 52 40 Optionally, to enable the [Content Moderation Platform (CMP)](http://mollom.com/moderation) integration:53 Optionally, to enable the [Content Moderation Platform (CMP)](http://mollom.com/moderation): 41 54 42 55 * [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: 44 57 45 58 RewriteEngine On 46 59 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 60 61 62 63 64 65 66 47 67 48 68 … … 57 77 = 2.0 = 58 78 59 * Rewritten and re-architected for Mollom's new REST API.79 * Rewritten and re-architected for Mollom's new . 60 80 -
mollom/trunk/uninstall.php
r736896 r737526 11 11 } 12 12 13 // @todo Delete mollom table. 14 // @todo Delete meta data. 13 // Delete content meta data. 14 delete_metadata('comment', 0, 'mollom', NULL, TRUE); 15 delete_metadata('comment', 0, 'mollom_content_id', NULL, TRUE); 16 delete_metadata('post', 0, 'mollom', NULL, TRUE); 17 delete_metadata('post', 0, 'mollom_content_id', NULL, TRUE); 18 delete_metadata('user', 0, 'mollom', NULL, TRUE); 19 delete_metadata('user', 0, 'mollom_content_id', NULL, TRUE); 20 21 // Drop database tables. 22 require_once dirname(__FILE__) . '/includes/Schema.php'; 23 MollomSchema::uninstall(); 24 25 delete_option('mollom_schema_version'); 15 26 16 27 delete_option('mollom_public_key'); … … 24 35 delete_option('mollom_reverse_proxy_addresses'); 25 36 delete_option('mollom_testing_mode'); 37 38 39 40 41
Note: See TracChangeset
for help on using the changeset viewer.