Email Encoder Bundle – Protect Email Address - Version 0.10

Version Description

  • Works with PHP4 and PHP5
  • Methods: default_encode, wp_antispambot, anti_email_spam, email_escape, hide_email
  • Use the tags: [email_encode email=".." display=".."], [email_encoder_form]
  • Template function: email_encode()

=

Download this release

Release Info

Developer freelancephp
Plugin Icon 128x128 Email Encoder Bundle – Protect Email Address
Version 0.10
Comparing to
See all releases

Code changes from version 0.12 to 0.10

Files changed (2) hide show
  1. email-encoder-bundle.php +4 -15
  2. readme.txt +10 -15
email-encoder-bundle.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Email Encoder Bundle
4
  Plugin URI: http://www.freelancephp.net/email-encoder
5
  Description: Protecting email-spamming by replacing them with one of the registered encoding-methods
6
  Author: Victor Villaverde Laan
7
- Version: 0.12
8
  Author URI: http://www.freelancephp.net
9
  License: Dual licensed under the MIT and GPL licenses
10
  */
@@ -28,7 +28,6 @@ class WP_Email_Encoder extends Lim_Email_Encoder {
28
  * @var array
29
  */
30
  var $wp_options = array(
31
- 'filter_widgets' => TRUE,
32
  'filter_comments' => TRUE,
33
  'form_on_site' => FALSE, // set encoder form on the website
34
  'powered_by' => TRUE,
@@ -59,10 +58,6 @@ class WP_Email_Encoder extends Lim_Email_Encoder {
59
  if ( $this->options['filter_comments'] )
60
  add_filter( 'comment_text', array( &$this, 'encode_filter' ), 100 );
61
 
62
- // also filter widgets
63
- if ( $this->options['filter_widgets'] )
64
- add_filter( 'widget_text', array( &$this, 'encode_filter' ), 100 );
65
-
66
  // add actions
67
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
68
  add_action( 'admin_init', array( &$this, 'admin_init' ) );
@@ -163,15 +158,11 @@ class WP_Email_Encoder extends Lim_Email_Encoder {
163
  </tr>
164
  <tr>
165
  <th><label for="<?php echo $this->prefix ?>options[replace_emails]"><?php _e( 'Replace plain text emails', $this->prefix ) ?></label></th>
166
- <td><input type="checkbox" id="<?php echo $this->prefix ?>options[replace_emails]" name="<?php echo $this->prefix ?>options[replace_emails]" value="1" <?php checked('1', (int) $options['replace_emails']); ?> /> <span class="description"><?php _e( 'replacing plain text emails to an encoded mailto link', $this->prefix ) ?></span></td>
167
- </tr>
168
- <tr>
169
- <th style="padding-top:25px"><label for="<?php echo $this->prefix ?>options[filter_comments]"><?php _e( 'Also filter comments', $this->prefix ) ?></label></th>
170
- <td style="padding-top:25px"><input type="checkbox" id="<?php echo $this->prefix ?>options[filter_comments]" name="<?php echo $this->prefix ?>options[filter_comments]" value="1" <?php checked('1', (int) $options['filter_comments']); ?> /> <span class="description"><?php _e( 'also filter all comments for encoding', $this->prefix ) ?></span></td>
171
  </tr>
172
  <tr>
173
- <th><label for="<?php echo $this->prefix ?>options[filter_widgets]"><?php _e( 'Also filter widgets', $this->prefix ) ?></label></th>
174
- <td><input type="checkbox" id="<?php echo $this->prefix ?>options[filter_widgets]" name="<?php echo $this->prefix ?>options[filter_widgets]" value="1" <?php checked('1', (int) $options['filter_widgets']); ?> /> <span class="description"><?php _e( 'also filter widgets for encoding', $this->prefix ) ?></span></td>
175
  </tr>
176
  <tr>
177
  <th style="padding-top:25px"><label for="<?php echo $this->prefix ?>options[form_on_site]"><?php _e( 'Encode form on your site', $this->prefix ) ?></label></th>
@@ -277,7 +268,6 @@ class WP_Email_Encoder extends Lim_Email_Encoder {
277
  $this->options['encode_mailto'] = (int) $this->options['encode_mailto'];
278
  $this->options['replace_emails'] = (int) $this->options['replace_emails'];
279
  $this->options['filter_comments'] = (int) $this->options['filter_comments'];
280
- $this->options['filter_widgets'] = (int) $this->options['filter_widgets'];
281
  $this->options['form_on_site'] = (int) $this->options['form_on_site'];
282
  $this->options['powered_by'] = (int) $this->options['powered_by'];
283
  } else {
@@ -287,7 +277,6 @@ class WP_Email_Encoder extends Lim_Email_Encoder {
287
  $this->options['encode_mailto'] = ! empty( $saved_options['encode_mailto'] );
288
  $this->options['replace_emails'] = ! empty( $saved_options['replace_emails'] );
289
  $this->options['filter_comments'] = ! empty( $saved_options['filter_comments'] );
290
- $this->options['filter_widgets'] = ! empty( $saved_options['filter_widgets'] );
291
  $this->options['form_on_site'] = ! empty( $saved_options['form_on_site'] );
292
  $this->options['powered_by'] = ! empty( $saved_options['powered_by'] );
293
  }
4
  Plugin URI: http://www.freelancephp.net/email-encoder
5
  Description: Protecting email-spamming by replacing them with one of the registered encoding-methods
6
  Author: Victor Villaverde Laan
7
+ Version: 0.1
8
  Author URI: http://www.freelancephp.net
9
  License: Dual licensed under the MIT and GPL licenses
10
  */
28
  * @var array
29
  */
30
  var $wp_options = array(
 
31
  'filter_comments' => TRUE,
32
  'form_on_site' => FALSE, // set encoder form on the website
33
  'powered_by' => TRUE,
58
  if ( $this->options['filter_comments'] )
59
  add_filter( 'comment_text', array( &$this, 'encode_filter' ), 100 );
60
 
 
 
 
 
61
  // add actions
62
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
63
  add_action( 'admin_init', array( &$this, 'admin_init' ) );
158
  </tr>
159
  <tr>
160
  <th><label for="<?php echo $this->prefix ?>options[replace_emails]"><?php _e( 'Replace plain text emails', $this->prefix ) ?></label></th>
161
+ <td><input type="checkbox" id="<?php echo $this->prefix ?>options[replace_emails]" name="<?php echo $this->prefix ?>options[replace_emails]" value="1" <?php checked('1', (int) $options['replace_emails']); ?> /> <span class="description"><?php _e( 'replacing plain text emails in the content to an encoded mailto link', $this->prefix ) ?></span></td>
 
 
 
 
162
  </tr>
163
  <tr>
164
+ <th><label for="<?php echo $this->prefix ?>options[filter_comments]"><?php _e( 'Also filter comments', $this->prefix ) ?></label></th>
165
+ <td><input type="checkbox" id="<?php echo $this->prefix ?>options[filter_comments]" name="<?php echo $this->prefix ?>options[filter_comments]" value="1" <?php checked('1', (int) $options['filter_comments']); ?> /> <span class="description"><?php _e( 'also filter all comments for encoding', $this->prefix ) ?></span></td>
166
  </tr>
167
  <tr>
168
  <th style="padding-top:25px"><label for="<?php echo $this->prefix ?>options[form_on_site]"><?php _e( 'Encode form on your site', $this->prefix ) ?></label></th>
268
  $this->options['encode_mailto'] = (int) $this->options['encode_mailto'];
269
  $this->options['replace_emails'] = (int) $this->options['replace_emails'];
270
  $this->options['filter_comments'] = (int) $this->options['filter_comments'];
 
271
  $this->options['form_on_site'] = (int) $this->options['form_on_site'];
272
  $this->options['powered_by'] = (int) $this->options['powered_by'];
273
  } else {
277
  $this->options['encode_mailto'] = ! empty( $saved_options['encode_mailto'] );
278
  $this->options['replace_emails'] = ! empty( $saved_options['replace_emails'] );
279
  $this->options['filter_comments'] = ! empty( $saved_options['filter_comments'] );
 
280
  $this->options['form_on_site'] = ! empty( $saved_options['form_on_site'] );
281
  $this->options['powered_by'] = ! empty( $saved_options['powered_by'] );
282
  }
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: freelancephp
3
  Donate link: http://www.freelancephp.net/email-encoder/
4
  Tags: email, email address, mailto, encoder, encode, spam, protection, antispam, spambots, spamming
5
- Requires at least: 2.8.0
6
- Tested up to: 2.9.2
7
- Stable tag: 0.12
8
 
9
  Encoding email adresses to protect them from spambots and being used for spamming.
10
 
@@ -12,13 +12,11 @@ Encoding email adresses to protect them from spambots and being used for spammin
12
 
13
  Encoding email adresses to protect them from spambots and being used for spamming.
14
 
15
- * Encodes email adresses (plain text and mailto links)
16
- * Choose the preferred method (or on every request randomly pick one of the methods)
17
- * Easy to use.
18
-
19
- Extra:
20
  * Put an email encoder form on your own site.
 
21
  * Add your own methods.
 
22
 
23
  == Installation ==
24
 
@@ -56,13 +54,7 @@ Now your function will be loaded automatically.
56
 
57
  == Changelog ==
58
 
59
- = 0.12 =
60
- * Nothing changed, but 0.11 had some errors because /methods directory was missing in the repository.
61
-
62
- = 0.11 =
63
- * also possible to use encode tag in widgets (activate "filter widget" option)
64
-
65
- = 0.1 =
66
  * Works with PHP4 and PHP5
67
  * Methods: default_encode, wp_antispambot, anti_email_spam, email_escape, hide_email
68
  * Use the tags: `[email_encode email=".." display=".."]`, `[email_encoder_form]`
@@ -78,3 +70,6 @@ Credit goes to:
78
  * [Faycal Tirich](http://faycaltirich.blogspot.com) for using the regular expression from his plugin [WP Emails Encoder](http://faycaltirich.blogspot.com/1979/01/fay-emails-encoder-plugin.html)
79
 
80
  == Upgrade Notice ==
 
 
 
2
  Contributors: freelancephp
3
  Donate link: http://www.freelancephp.net/email-encoder/
4
  Tags: email, email address, mailto, encoder, encode, spam, protection, antispam, spambots, spamming
5
+ Requires at least: 2.7.0
6
+ Tested up to: 2.9.1
7
+ Stable tag: 0.10
8
 
9
  Encoding email adresses to protect them from spambots and being used for spamming.
10
 
12
 
13
  Encoding email adresses to protect them from spambots and being used for spamming.
14
 
15
+ * Automatically encodes all email adresses (plain text and mailto links)
 
 
 
 
16
  * Put an email encoder form on your own site.
17
+ * Choose the prefered method (or on every request randomly pick one of the methods)
18
  * Add your own methods.
19
+ * Easy to use.
20
 
21
  == Installation ==
22
 
54
 
55
  == Changelog ==
56
 
57
+ = 0.10 =
 
 
 
 
 
 
58
  * Works with PHP4 and PHP5
59
  * Methods: default_encode, wp_antispambot, anti_email_spam, email_escape, hide_email
60
  * Use the tags: `[email_encode email=".." display=".."]`, `[email_encoder_form]`
70
  * [Faycal Tirich](http://faycaltirich.blogspot.com) for using the regular expression from his plugin [WP Emails Encoder](http://faycaltirich.blogspot.com/1979/01/fay-emails-encoder-plugin.html)
71
 
72
  == Upgrade Notice ==
73
+
74
+ = 0.10 =
75
+ The first release.