Email Log - Version 0.8

Version Description

Download this release

Release Info

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

Code changes from version 0.7 to 0.8

email-log.php CHANGED
@@ -5,7 +5,7 @@ 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
 
@@ -23,6 +23,9 @@ Text Domain: email-log
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)
@@ -191,13 +194,13 @@ class EmailLog {
191
  $base_name = plugin_basename('email-log');
192
  $base_page = 'admin.php?page='.$base_name;
193
 
194
- $email_log_page = intval($_GET['emaillog_page']);
195
- $emaillogs_filterid = trim(addslashes($_GET['id']));
196
- $emaillogs_filter_to_email = trim(addslashes($_GET['to_email']));
197
- $emaillogs_filter_subject = trim(addslashes($_GET['subject']));
198
- $emaillog_sort_by = trim($_GET['by']);
199
  $emaillog_sortby_text = '';
200
- $emaillog_sortorder = trim($_GET['order']);
201
  $emaillog_sortorder_text = '';
202
  $email_log_perpage = intval($this->get_per_page());
203
  $emaillog_sort_url = '';
@@ -632,6 +635,20 @@ jQuery('document').ready(function() {
632
  return $mail_info;
633
  }
634
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  // PHP4 compatibility
636
  function EmailLog() {
637
  $this->__construct();
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.8
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
11
 
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
+ 2012-07-12 - v0.8 - (Dev time: 1 hour)
27
+ - Fixed undefined notices - http://wordpress.org/support/topic/plugin-email-log-notices-undefined-indices
28
+ - Added Dutch translations
29
 
30
  */
31
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
194
  $base_name = plugin_basename('email-log');
195
  $base_page = 'admin.php?page='.$base_name;
196
 
197
+ $email_log_page = intval($this->array_get($_GET, 'emaillog_page'));
198
+ $emaillogs_filterid = trim(addslashes($this->array_get($_GET, 'id')));
199
+ $emaillogs_filter_to_email = trim(addslashes($this->array_get($_GET, 'to_email')));
200
+ $emaillogs_filter_subject = trim(addslashes($this->array_get($_GET, 'subject')));
201
+ $emaillog_sort_by = trim($this->array_get($_GET, 'by'));
202
  $emaillog_sortby_text = '';
203
+ $emaillog_sortorder = trim($this->array_get($_GET, 'order'));
204
  $emaillog_sortorder_text = '';
205
  $email_log_perpage = intval($this->get_per_page());
206
  $emaillog_sort_url = '';
635
  return $mail_info;
636
  }
637
 
638
+ /**
639
+ * Check whether a key is present. If present returns the value, else returns the default value
640
+ *
641
+ * @param <array> $array - Array whose key has to be checked
642
+ * @param <string> $key - key that has to be checked
643
+ * @param <string> $default - the default value that has to be used, if the key is not found (optional)
644
+ *
645
+ * @return <mixed> If present returns the value, else returns the default value
646
+ * @author Sudar
647
+ */
648
+ private function array_get($array, $key, $default = NULL) {
649
+ return isset($array[$key]) ? $array[$key] : $default;
650
+ }
651
+
652
  // PHP4 compatibility
653
  function EmailLog() {
654
  $this->__construct();
languages/email-log-nl_NL.mo ADDED
Binary file
languages/email-log-nl_NL.po ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Email Log WordPress Plugin 0.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/email-log\n"
5
+ "POT-Creation-Date: 2012-04-29 17:11:23+00:00\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Zjan Preijde <zjanpreijde@gmail.com>\n"
8
+ "Language-Team: Frank Weichbrodt\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: German\n"
13
+ "X-Poedit-Country: GERMANY\n"
14
+
15
+ #. #-#-#-#-# plugin.pot (Email Log 0.6) #-#-#-#-#
16
+ #. Plugin Name of the plugin/theme
17
+ #: email-log.php:85
18
+ msgid "Email Log"
19
+ msgstr "E-Mail Log"
20
+
21
+ #: email-log.php:106
22
+ msgid "About Plugin"
23
+ msgstr "Over de plugin"
24
+
25
+ #: email-log.php:108
26
+ msgid "Email Log WordPress Plugin, allows you to log all emails that are sent through WordPress."
27
+ msgstr "Email Log WordPress Plugin, maakt het mogelijk al je e-mails te loggen die verstuurd worden via Wordpress."
28
+
29
+ #: email-log.php:115
30
+ msgid "More information"
31
+ msgstr "Meer informatie"
32
+
33
+ #: email-log.php:116
34
+ msgid "Plugin Homepage/support"
35
+ msgstr "Plugin Homepage/support"
36
+
37
+ #: email-log.php:117
38
+ msgid "Plugin author's blog"
39
+ msgstr "Blog van plugin auteur"
40
+
41
+ #: email-log.php:118
42
+ msgid "Other Plugin's by Author"
43
+ msgstr "Andere plugins door deze auteur"
44
+
45
+ #: email-log.php:125
46
+ msgid "Entries per page"
47
+ msgstr "Logs per pagina"
48
+
49
+ #: email-log.php:163
50
+ msgid "Settings"
51
+ msgstr "Instellingen"
52
+
53
+ #: email-log.php:173
54
+ msgid "plugin"
55
+ msgstr "plugin"
56
+
57
+ #: email-log.php:173
58
+ msgid "Version"
59
+ msgstr "Versie"
60
+
61
+ #: email-log.php:173
62
+ msgid "by"
63
+ msgstr "door"
64
+
65
+ #: email-log.php:203
66
+ #: email-log.php:555
67
+ #: email-log.php:578
68
+ msgid "Delete Logs"
69
+ msgstr "Logs verwijderen"
70
+
71
+ #: email-log.php:212
72
+ msgid "The selected Email Logs have been deleted."
73
+ msgstr "De geselecteerde e-mail logs zijn verwijderd."
74
+
75
+ #: email-log.php:214
76
+ msgid "An error has occurred while deleting the selected Email logs"
77
+ msgstr "Bij het verwijderen van de geselecteerde e-mail logs is er een fout opgetreden."
78
+
79
+ #: email-log.php:223
80
+ msgid "All Email Logs For email id %s Have Been Deleted."
81
+ msgstr "Alle e-mail logs met ID %s zijn verwijderd."
82
+
83
+ #: email-log.php:225
84
+ msgid "An error has occurred while deleting All Email Logs For email id %s."
85
+ msgstr "Bij het verwijderen van alle e-mail logs met ID %s is er een fout opgetreden."
86
+
87
+ #: email-log.php:233
88
+ msgid "All Email Logs With Subject %s Have Been Deleted."
89
+ msgstr "Alle e-mail logs met het onderwerp %s zijn verwijderd."
90
+
91
+ #: email-log.php:235
92
+ msgid "An Error Has Occurred While Deleting All Email Logs With Subject %s."
93
+ msgstr "Bij het verwijderen van alle e-mail logs met onderwerp %s is er een fout opgetreden."
94
+
95
+ #: email-log.php:243
96
+ msgid "All Email log Has Been Deleted."
97
+ msgstr "Alle e-mail logs zijn verwijderd."
98
+
99
+ #: email-log.php:245
100
+ msgid "An Error Has Occurred While Deleting All Email Logs"
101
+ msgstr "Bij het verwijderen van alle e-mail logs is er een fout opgetreden"
102
+
103
+ #: email-log.php:275
104
+ #: email-log.php:370
105
+ #: email-log.php:452
106
+ #: email-log.php:489
107
+ msgid "ID"
108
+ msgstr "ID"
109
+
110
+ #: email-log.php:279
111
+ #: email-log.php:371
112
+ #: email-log.php:571
113
+ msgid "To Email"
114
+ msgstr "Ontvanger"
115
+
116
+ #: email-log.php:283
117
+ #: email-log.php:372
118
+ #: email-log.php:455
119
+ #: email-log.php:492
120
+ #: email-log.php:573
121
+ msgid "Subject"
122
+ msgstr "Onderwerp"
123
+
124
+ #: email-log.php:288
125
+ #: email-log.php:373
126
+ msgid "Date"
127
+ msgstr "Datum"
128
+
129
+ #: email-log.php:295
130
+ #: email-log.php:377
131
+ msgid "Ascending"
132
+ msgstr "Oplopend"
133
+
134
+ #: email-log.php:300
135
+ #: email-log.php:378
136
+ msgid "Descending"
137
+ msgstr "Aflopend"
138
+
139
+ #: email-log.php:348
140
+ msgid "Email Log Settings"
141
+ msgstr "E-mail log - Instellingen"
142
+
143
+ #: email-log.php:356
144
+ msgid "Filter Options:"
145
+ msgstr "Filter Opties:"
146
+
147
+ #: email-log.php:358
148
+ msgid "ID:"
149
+ msgstr "ID:"
150
+
151
+ #: email-log.php:360
152
+ msgid "To Email:"
153
+ msgstr "Ontvanger:"
154
+
155
+ #: email-log.php:362
156
+ msgid "Subject:"
157
+ msgstr "Onderwerp:"
158
+
159
+ #: email-log.php:367
160
+ msgid "Sort Options:"
161
+ msgstr "Sorteer opties:"
162
+
163
+ #: email-log.php:383
164
+ msgid "Filter"
165
+ msgstr "Filter"
166
+
167
+ #: email-log.php:388
168
+ msgid "Displaying <strong>%s</strong> to <strong>%s</strong> of <strong>%s</strong> Email log entries."
169
+ msgstr "Getoond: <strong>%s</strong> tot <strong>%s</strong> van <strong>%s</strong> e-mail logs."
170
+
171
+ #: email-log.php:389
172
+ msgid "Sorted by <strong>%s</strong> in <strong>%s</strong> order."
173
+ msgstr "Gesorteerd op <strong>%s</strong> in <strong>%se</strong> volgorde."
174
+
175
+ #: email-log.php:401
176
+ #: email-log.php:504
177
+ msgid "Previous Page"
178
+ msgstr "Vorige pagina"
179
+
180
+ #: email-log.php:408
181
+ #: email-log.php:511
182
+ msgid "Pages (%s): "
183
+ msgstr "Pagina's (%s): "
184
+
185
+ #: email-log.php:411
186
+ #: email-log.php:514
187
+ msgid "Go to First Page"
188
+ msgstr "Ga naar de eerste pagina"
189
+
190
+ #: email-log.php:411
191
+ #: email-log.php:514
192
+ msgid "First"
193
+ msgstr "Eerste"
194
+
195
+ #: email-log.php:414
196
+ #: email-log.php:426
197
+ #: email-log.php:517
198
+ #: email-log.php:529
199
+ msgid "Go to Page"
200
+ msgstr "Ga naar pagina"
201
+
202
+ #: email-log.php:421
203
+ #: email-log.php:524
204
+ msgid "Page"
205
+ msgstr "Pagina"
206
+
207
+ #: email-log.php:429
208
+ #: email-log.php:532
209
+ msgid "Go to Last Page"
210
+ msgstr "Ga naar laatste pagina"
211
+
212
+ #: email-log.php:429
213
+ #: email-log.php:532
214
+ msgid "Last"
215
+ msgstr "Laatste"
216
+
217
+ #: email-log.php:436
218
+ #: email-log.php:539
219
+ msgid "Next Page"
220
+ msgstr "Volgende pagina"
221
+
222
+ #: email-log.php:453
223
+ #: email-log.php:490
224
+ msgid "Date / Time"
225
+ msgstr "Datum / Tijd"
226
+
227
+ #: email-log.php:454
228
+ #: email-log.php:491
229
+ msgid "To"
230
+ msgstr "Aan"
231
+
232
+ #: email-log.php:469
233
+ msgid "%s @ %s"
234
+ msgstr "%s @ %s"
235
+
236
+ #: email-log.php:482
237
+ msgid "No email Logs Found"
238
+ msgstr "Geen e-mail logs gevonden"
239
+
240
+ #: email-log.php:559
241
+ msgid "Delete Type : "
242
+ msgstr "Verwijder type:"
243
+
244
+ #: email-log.php:562
245
+ msgid "Selected entries"
246
+ msgstr "Geselecteerde logs"
247
+
248
+ #: email-log.php:563
249
+ msgid "Based on"
250
+ msgstr "Gebaseerd op"
251
+
252
+ #: email-log.php:564
253
+ msgid "All Logs"
254
+ msgstr "Alle logs"
255
+
256
+ #: email-log.php:569
257
+ msgid "Condition:"
258
+ msgstr "Voorwaarde:"
259
+
260
+ #: email-log.php:572
261
+ msgid "or"
262
+ msgstr "of"
263
+
264
+ #: email-log.php:578
265
+ msgid ""
266
+ "You Are About To Delete Email Logs.\\n"
267
+ "This Action Is Not Reversible.\\n"
268
+ "\\n"
269
+ " Choose \\'Cancel\\' to stop, \\'OK\\' to delete."
270
+ msgstr ""
271
+ "Je gaat je e-mail logs verwijderen.\\n"
272
+ "Deze actie kan niet ongedaan gemaakt worden.\\n"
273
+
274
+ #. Plugin URI of the plugin/theme
275
+ msgid "http://sudarmuthu.com/wordpress/email-log"
276
+ msgstr "http://sudarmuthu.com/wordpress/email-log"
277
+
278
+ #. Description of the plugin/theme
279
+ msgid "Logs every email sent through WordPress. Compatiable with WPMU too."
280
+ msgstr "Logt alle door WordPress verzonden e-mail. Compatibel met WPMU."
281
+
282
+ #. Author of the plugin/theme
283
+ msgid "Sudar"
284
+ msgstr "Sudar"
285
+
286
+ #. Author URI of the plugin/theme
287
+ msgid "http://sudarmuthu.com/"
288
+ msgstr "http://sudarmuthu.com/"
289
+
290
+ #~ msgid "Per Page"
291
+ #~ msgstr "Per pagina"
292
+
293
+ #~ msgid "Go"
294
+ #~ msgstr "Ga"
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.4
6
- Stable tag: 0.7
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
@@ -29,6 +29,7 @@ As [recommended by Ozh][1], the Plugin has uninstall hook which will clean up th
29
 
30
  * German (Thanks Frank)
31
  * Lithuanian (Thanks Vincent G , from [http://www.host1free.com][6])
 
32
 
33
  The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
34
 
@@ -102,6 +103,10 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
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.
2
  Contributors: sudar
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 2.8
5
+ Tested up to: 3.4.1
6
+ Stable tag: 0.8
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
29
 
30
  * German (Thanks Frank)
31
  * Lithuanian (Thanks Vincent G , from [http://www.host1free.com][6])
32
+ * Dutch (Thanks Zjan Preijde)
33
 
34
  The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
35
 
103
  - Changed Timestamp(n) MySQL datatype to Timestamp (now compatible with MySQL 5.5+)
104
  - Added the ability to bulk delete checkboxes
105
 
106
+ ###v0.8 (2012-07-12) (Dev time: 1 hour)
107
+ - Fixed undefined notices - http://wordpress.org/support/topic/plugin-email-log-notices-undefined-indices
108
+ - Added Dutch translations
109
+
110
  ==Readme Generator==
111
 
112
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.