Changeset 139043
- Timestamp:
- 07/25/2009 03:56:33 AM (17 years ago)
- Location:
- export-emails/trunk
- Files:
-
- 2 edited
-
export-emails.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
export-emails/trunk/export-emails.php
r125881 r139043 2 2 3 3 /* 4 5 Plugin Name: Export emails 6 Plugin URI: http://www.joeswebtools.com/wordpress-plugins/export-emails/ 7 Description: Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments. Go to <a href="tools.php?page=export-emails/export-emails.php">Tools → Export Emails</a> after activating the plugin to access the email lists. 8 Version: 1.2.1 9 Author: Joe's Web Tools 10 Author URI: http://www.joeswebtools.com/ 11 12 Copyright 2009 Philippe Paquet (email: [email protected]) 13 14 This program is free software; you can redistribute it and/or modify 15 it under the terms of the GNU General Public License as published by 16 the Free Software Foundation; either version 2 of the License, or 17 (at your option) any later version. 18 19 This program is distributed in the hope that it will be useful, 20 but WITHOUT ANY WARRANTY; without even the implied warranty of 21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 GNU General Public License for more details. 23 24 You should have received a copy of the GNU General Public License 25 along with this program; if not, write to the Free Software 26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 27 28 */ 4 * 5 * Plugin Name: Export emails 6 * Plugin URI: http://www.joeswebtools.com/wordpress-plugins/export-emails/ 7 * Description: Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments. Go to <a href="tools.php?page=export-emails/export-emails.php">Tools → Export Emails</a> after activating the plugin to access the email lists. 8 * Version: 1.3 9 * Author: Joe's Web Tools 10 * Author URI: http://www.joeswebtools.com/ 11 * 12 * Copyright (c) 2009 Joe's Web Tools. All Rights Reserved. 13 * 14 * This program is free software; you can redistribute it and/or modify 15 * it under the terms of the GNU General Public License as published by 16 * the Free Software Foundation; either version 2 of the License, or 17 * (at your option) any later version. 18 * 19 * This program is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU General Public License for more details. 23 * 24 * You should have received a copy of the GNU General Public License 25 * along with this program; if not, write to the Free Software 26 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 27 * 28 * If you are unable to comply with the terms of this license, 29 * contact the copyright holder for a commercial license. 30 * 31 * We kindly ask that you keep links to Joe's Web Tools so 32 * other people can find out about this plugin. 33 * 34 */ 29 35 30 36 31 37 38 39 40 /* 41 * 42 * export_email_page 43 * 44 */ 45 32 46 function export_email_page() { 33 34 // Load language file35 $current_locale = get_locale();36 if(!empty($current_locale)) {37 $mo_file = dirname(__FILE__) . '/languages/export-emails-' . $current_locale . ".mo";38 if(@file_exists($mo_file) && is_readable($mo_file)) {39 load_textdomain('export-emails', $mo_file);40 }41 }42 47 43 48 global $wpdb; … … 53 58 echo '<div id="poststuff" class="ui-sortable">'; 54 59 echo '<div class="postbox opened">'; 55 echo '<h3> ' . __('Emails from the user database', 'export-emails') . '</h3>';60 echo '<h3>Emails from the user database</h3>'; 56 61 echo '<div class="inside">'; 57 62 echo '<form method="post">'; … … 59 64 echo '<tr>'; 60 65 echo '<th scope="row" valign="top">'; 61 echo '<b> ' . __('Users emails', 'export-emails') . '</b>';66 echo '<b>Users emails</b>'; 62 67 echo '</th>'; 63 68 echo '<td>'; … … 79 84 echo '<div id="poststuff" class="ui-sortable">'; 80 85 echo '<div class="postbox opened">'; 81 echo '<h3> ' . __('Emails from the comment database', 'export-emails') . '</h3>';86 echo '<h3>Emails from the comment database</h3>'; 82 87 echo '<div class="inside">'; 83 88 echo '<form method="post">'; … … 85 90 echo '<tr>'; 86 91 echo '<th scope="row" valign="top">'; 87 echo '<b> ' . __('Commenters emails', 'export-emails') . '</b>';92 echo '<b>Commenters emails</b>'; 88 93 echo '</th>'; 89 94 echo '<td>'; 90 95 echo '<textarea readonly="readonly" rows="10" cols="40" onfocus="javascript:this.select();">'; 91 $email = $wpdb->get_col("SELECT comment_author_email FROM $wpdb->comments GROUP BY comment_author_email");96 $email = $wpdb->get_col("SELECT comment_author_email FROM $wpdb->comments WHERE comment_approved<>'spam' GROUP BY comment_author_email"); 92 97 foreach($email as $email_out) { 93 98 echo $email_out . "\r\n"; … … 105 110 echo '<div id="poststuff" class="ui-sortable">'; 106 111 echo '<div class="postbox opened">'; 107 echo '<h3> ' . __('About') . '</h3>';112 echo '<h3>About</h3>'; 108 113 echo '<div class="inside">'; 109 114 echo '<form method="post">'; … … 111 116 echo '<tr>'; 112 117 echo '<th scope="row" valign="top">'; 113 echo '<b> ' . __('Like this plugin?', 'export-emails') . '</b>';118 echo '<b>Like this plugin?</b>'; 114 119 echo '</th>'; 115 120 echo '<td>'; 116 echo __('Developing, maintaining and supporting this plugin requires time. Why not do any of the following:', 'export-emails') . '<br />';117 echo ' • ' . __('Check out our <a href="http://www.joeswebtools.com/wordpress-plugins/">other plugins</a>.', 'export-emails') . '<br />';118 echo ' • ' . __('Link to the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>, so other folks can find out about it.', 'export-emails') . '<br />';119 echo ' • ' . __('Give this plugin a good rating on <a href="http://wordpress.org/extend/plugins/export-emails/">WordPress.org</a>.', 'export-emails') . '<br />';120 echo ' • ' . __('Support further development with a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912">donation</a>.', 'export-emails') . '<br />';121 echo 'Developing, maintaining and supporting this plugin requires time. Why not do any of the following:<br />'; 122 echo ' • Check out our <a href="http://www.joeswebtools.com/wordpress-plugins/">other plugins</a>.<br />'; 123 echo ' • Link to the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>, so other folks can find out about it.<br />'; 124 echo ' • Give this plugin a good rating on <a href="http://wordpress.org/extend/plugins/export-emails/">WordPress.org</a>.<br />'; 125 echo ' • Support further development with a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912">donation</a>.<br />'; 121 126 echo '</td>'; 122 127 echo '</tr>'; 123 128 echo '<tr>'; 124 129 echo '<th scope="row" valign="top">'; 125 echo '<b> ' . __('Need support?', 'export-emails') . '</b>';130 echo '<b>Need support?</b>'; 126 131 echo '</th>'; 127 132 echo '<td>'; 128 echo __('If you have any problems or good ideas, please talk about them on the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>.', 'export-emails') . '<br />';133 echo 'If you have any problems or good ideas, please talk about them on the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>.<br />'; 129 134 echo '</td>'; 130 135 echo '</tr>'; 131 136 echo '<tr>'; 132 137 echo '<th scope="row" valign="top">'; 133 echo '<b> ' . __('Credits', 'export-emails') . '</b>';138 echo '<b>Credits</b>'; 134 139 echo '</th>'; 135 140 echo '<td>'; 136 echo __('<a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">Export Emails</a> is developped by Philippe Paquet for <a href="http://www.joeswebtools.com/">Joe\'s Web Tools</a>. This plugin is released under the GNU GPL version 2.', 'export-emails') . '<br />';141 echo '<a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">Export Emails</a> is developped by Philippe Paquet for <a href="http://www.joeswebtools.com/">Joe\'s Web Tools</a>. This plugin is released under the GNU GPL version 2. If you are unable to comply with the terms of the GNU General Public License, contact the copyright holder for a commercial license.<br />'; 137 142 echo '</td>'; 138 143 echo '</tr>'; … … 149 154 150 155 156 157 158 /* 159 * 160 * add_export_email_menu 161 * 162 */ 163 151 164 function add_export_email_menu() { 152 165 … … 155 168 } 156 169 157 158 159 170 add_action('admin_menu', 'add_export_email_menu'); 160 171 -
export-emails/trunk/readme.txt
r125881 r139043 4 4 Tags: export email, export emails, export, email, emails, mailinglist, mailing, list, phplist, autoresponder, auto, responder, getresponse, get, response, constantcontact, constant, contact, aweber, icontact 5 5 Requires at least: 2.5 6 Tested up to: 2.8 7 Stable tag: 1. 2.16 Tested up to: 2.8.2 7 Stable tag: 1.3 8 8 9 9 Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments. … … 32 32 33 33 34 == Changelog == 35 36 = 1.3 = 37 * Remove emails from comments marked as spam from the list 38 * Compatibility check with WordPress 2.8.2 39 40 = 1.2.1 = 41 * Compatibility check with WordPress 2.8 42 43 = 1.2 = 44 * Minor localisation work 45 46 = 1.1 = 47 * New look for the export emails page 48 49 = 1.0 = 50 * Initial release 51 52 53 34 54 == Frequently Asked Questions == 35 55 36 56 = Why not exporting the email lists as files? = 37 57 The very first implementation of this plugin was actually creating files for download. While it's a very convenient solution, there are security and privacy issues with it. The simple fact of having, even momentarily, a file on your server that contain the email addresses of all your subscribers is a significant risk. Because of that, it was decided against using downloadable files. 58 59 = How can I support this plugin? = 60 If you enjoy this plugin and would like to help with the development, please consider [donating](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912). Otherwise, spread the word, report bugs and give this plugin a good rating. 61 62 = How do I report a bug? = 63 If you find any bugs with the plugin or if you have any suggestions, please go to [the Export Emails plugin homepage](http://www.joeswebtools.com/wordpress-plugins/export-emails/) and leave a comment to let me know.
Note: See TracChangeset
for help on using the changeset viewer.