Email Log - Version 0.7

Version Description

Download this release

Release Info

Developer sudar
Plugin Icon 128x128 Email Log
Version 0.7
Comparing to
See all releases

Code changes from version 0.6 to 0.7

Files changed (2) hide show
  1. email-log.php +23 -5
  2. readme.txt +6 -2
email-log.php CHANGED
@@ -3,8 +3,9 @@
3
  Plugin Name: Email Log
4
  Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatiable with WPMU too.
 
6
  Author: Sudar
7
- Version: 0.6
8
  Author URI: http://sudarmuthu.com/
9
  Text Domain: email-log
10
 
@@ -19,6 +20,10 @@ Text Domain: email-log
19
  - Moved pages per screen option to Screen options panel
20
  - Added information to the screen help tab
21
  - Added Lithuanian translations
 
 
 
 
22
  */
23
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
24
 
@@ -342,7 +347,20 @@ class EmailLog {
342
 
343
  // Get The Logs
344
  $email_logs = $wpdb->get_results("SELECT * FROM $this->table_name WHERE 1=1 $emaillog_where ORDER BY $emaillog_sort_by $emaillog_sortorder LIMIT $offset, $email_log_perpage");
 
 
345
  ?>
 
 
 
 
 
 
 
 
 
 
 
346
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
347
  <div class="wrap">
348
  <?php screen_icon(); ?>
@@ -449,7 +467,7 @@ class EmailLog {
449
  <table class="widefat">
450
  <thead>
451
  <tr>
452
- <th width="5%">&nbsp;</th>
453
  <th width="5%"><?php _e('ID', 'email-log'); ?></th>
454
  <th width="20%"><?php _e('Date / Time', 'email-log'); ?></th>
455
  <th width="30%"><?php _e('To', 'email-log'); ?></th>
@@ -471,7 +489,7 @@ class EmailLog {
471
  $email_to = stripslashes($email_log->to_email);
472
  $email_subject = stripslashes($email_log->subject);
473
  echo "<tr $style>\n";
474
- echo '<td><input type = "checkbox" name = "selected_ids[]" value = "' . $email_id . '"></td>'."\n";
475
  echo '<td>'.$email_id.'</td>'."\n";
476
  echo "<td>$email_date</td>\n";
477
  echo "<td>$email_to</td>\n";
@@ -486,7 +504,7 @@ class EmailLog {
486
  </tbody>
487
  <tfoot>
488
  <tr>
489
- <th width="5%">&nbsp;</th>
490
  <th width="5%"><?php _e('ID', 'email-log'); ?></th>
491
  <th width="20%"><?php _e('Date / Time', 'email-log'); ?></th>
492
  <th width="30%"><?php _e('To', 'email-log'); ?></th>
@@ -642,7 +660,7 @@ function smel_on_install() {
642
  message TEXT NOT NULL,
643
  headers TEXT NOT NULL,
644
  attachments TEXT NOT NULL,
645
- sent_date timestamp(14) NOT NULL,
646
  PRIMARY KEY (id)
647
  );";
648
 
3
  Plugin Name: Email Log
4
  Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatiable with WPMU too.
6
+ Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  Author: Sudar
8
+ Version: 0.7
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
11
 
20
  - Moved pages per screen option to Screen options panel
21
  - Added information to the screen help tab
22
  - Added Lithuanian translations
23
+ 2012-06-23 - v0.7 - (Dev time: 1 hour)
24
+ - Changed Timestamp(n) MySQL datatype to Timestamp (now compatible with MySQL 5.5+)
25
+ - Added the ability to bulk delete checkboxes
26
+
27
  */
28
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
29
 
347
 
348
  // Get The Logs
349
  $email_logs = $wpdb->get_results("SELECT * FROM $this->table_name WHERE 1=1 $emaillog_where ORDER BY $emaillog_sort_by $emaillog_sortorder LIMIT $offset, $email_log_perpage");
350
+
351
+ // TODO: Should move this to a seperate js file
352
  ?>
353
+ <script type = "text/javascript">
354
+ jQuery('document').ready(function() {
355
+ jQuery('.selectall').click(function (e) {
356
+ if (jQuery(e.target).is(':checked')) {
357
+ jQuery('.select_box').attr('checked', 'checked');
358
+ } else {
359
+ jQuery('.select_box').removeAttr('checked');
360
+ }
361
+ });
362
+ });
363
+ </script>
364
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
365
  <div class="wrap">
366
  <?php screen_icon(); ?>
467
  <table class="widefat">
468
  <thead>
469
  <tr>
470
+ <td width="5%"><input type = "checkbox" name = "selectall" class = "selectall" ></td>
471
  <th width="5%"><?php _e('ID', 'email-log'); ?></th>
472
  <th width="20%"><?php _e('Date / Time', 'email-log'); ?></th>
473
  <th width="30%"><?php _e('To', 'email-log'); ?></th>
489
  $email_to = stripslashes($email_log->to_email);
490
  $email_subject = stripslashes($email_log->subject);
491
  echo "<tr $style>\n";
492
+ echo '<td><input type = "checkbox" class = "select_box" name = "selected_ids[]" value = "' . $email_id . '"></td>'."\n";
493
  echo '<td>'.$email_id.'</td>'."\n";
494
  echo "<td>$email_date</td>\n";
495
  echo "<td>$email_to</td>\n";
504
  </tbody>
505
  <tfoot>
506
  <tr>
507
+ <td width="5%"><input type = "checkbox" name = "selectall" class = "selectall" ></td>
508
  <th width="5%"><?php _e('ID', 'email-log'); ?></th>
509
  <th width="20%"><?php _e('Date / Time', 'email-log'); ?></th>
510
  <th width="30%"><?php _e('To', 'email-log'); ?></th>
660
  message TEXT NOT NULL,
661
  headers TEXT NOT NULL,
662
  attachments TEXT NOT NULL,
663
+ sent_date timestamp NOT NULL,
664
  PRIMARY KEY (id)
665
  );";
666
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: sudar
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 2.8
5
- Tested up to: 3.3.2
6
- Stable tag: 0.6
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
@@ -98,6 +98,10 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
98
  * Added information to the screen help tab
99
  * Added Lithuanian translations
100
 
 
 
 
 
101
  ==Readme Generator==
102
 
103
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
2
  Contributors: sudar
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 2.8
5
+ Tested up to: 3.4
6
+ Stable tag: 0.7
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
98
  * Added information to the screen help tab
99
  * Added Lithuanian translations
100
 
101
+ ###v0.7 (2012-06-23) (Dev time: 1 hour)
102
+ - Changed Timestamp(n) MySQL datatype to Timestamp (now compatible with MySQL 5.5+)
103
+ - Added the ability to bulk delete checkboxes
104
+
105
  ==Readme Generator==
106
 
107
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.