WP Mail Bank: WordPress SMTP Plugin & Email Logs - Version 3.0.3

Version Description

  • FIX: Code Removed from Skip Action Hook on Wizard Page
  • FIX: Code Removed from De-activation Hook in case of Skipped Wizard Page
  • FIX: Code Removed from Uninstall Hook in case of Skipped Wizard Page
  • FIX: Obsolete Code Removed
  • FIX: Obsolete Code Removed
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 WP Mail Bank: WordPress SMTP Plugin & Email Logs
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

assets/global/img/wizard-icon.png CHANGED
Binary file
includes/footer.php CHANGED
@@ -379,7 +379,6 @@ else
379
var targeted_popup_class = jQuery(this).attr("data-popup-close-translator");
380
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
381
}
382
-
383
e.preventDefault();
384
});
385
if(typeof(open_popup_mail_bank) != "function")
@@ -390,7 +389,6 @@ else
390
{
391
var targeted_popup_class = jQuery(this).attr("data-popup-open");
392
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
393
-
394
e.preventDefault();
395
});
396
// Close popup
@@ -398,7 +396,6 @@ else
398
{
399
var targeted_popup_class = jQuery(this).attr("data-popup-close");
400
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
401
-
402
e.preventDefault();
403
});
404
jQuery(document).keydown(function(e)
@@ -1006,14 +1003,14 @@ else
1006
overlay_loading_mail_bank();
1007
jQuery.post(ajaxurl,
1008
{
1009
- smtp_host: jQuery("#ux_txt_conn_search").val(),
1010
- param: "mail_bank_connectivity_test",
1011
- action: "mail_bank_action",
1012
- _wp_nonce: "<?php echo $connectivity_test_nonce; ?>"
1013
},
1014
function(data)
1015
{
1016
- jQuery("#ux_tbody_smtp").html(data);
1017
setTimeout(function()
1018
{
1019
remove_overlay_mail_bank();
@@ -1021,11 +1018,11 @@ else
1021
});
1022
}
1023
});
1024
- var sidebar_load_interval = setInterval(load_sidebar_content_mail_bank ,1000);
1025
- setTimeout(function()
1026
- {
1027
- clearInterval(sidebar_load_interval);
1028
- }, 5000);
1029
<?php
1030
}
1031
break;
379
var targeted_popup_class = jQuery(this).attr("data-popup-close-translator");
380
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
381
}
382
e.preventDefault();
383
});
384
if(typeof(open_popup_mail_bank) != "function")
389
{
390
var targeted_popup_class = jQuery(this).attr("data-popup-open");
391
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
392
e.preventDefault();
393
});
394
// Close popup
396
{
397
var targeted_popup_class = jQuery(this).attr("data-popup-close");
398
jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
399
e.preventDefault();
400
});
401
jQuery(document).keydown(function(e)
1003
overlay_loading_mail_bank();
1004
jQuery.post(ajaxurl,
1005
{
1006
+ smtp_host: jQuery("#ux_txt_conn_search").val(),
1007
+ param: "mail_bank_connectivity_test",
1008
+ action: "mail_bank_action",
1009
+ _wp_nonce: "<?php echo $connectivity_test_nonce; ?>"
1010
},
1011
function(data)
1012
{
1013
+ jQuery("#ux_tbody_smtp").html(data);
1014
setTimeout(function()
1015
{
1016
remove_overlay_mail_bank();
1018
});
1019
}
1020
});
1021
+ var sidebar_load_interval = setInterval(load_sidebar_content_mail_bank ,1000);
1022
+ setTimeout(function()
1023
+ {
1024
+ clearInterval(sidebar_load_interval);
1025
+ }, 5000);
1026
<?php
1027
}
1028
break;
includes/mail-bank-manage-email.php CHANGED
@@ -334,7 +334,7 @@ if(!class_exists("mail_bank_manage_email"))
334
}
335
foreach($attributes_array as $file)
336
{
337
- if(!empty($file))
338
{
339
$at = new mail_bank_Zend_Mime_Part(file_get_contents($file));
340
$at->disposition = mail_bank_Zend_Mime::DISPOSITION_ATTACHMENT;
334
}
335
foreach($attributes_array as $file)
336
{
337
+ if(file_exists($file))
338
{
339
$at = new mail_bank_Zend_Mime_Part(file_get_contents($file));
340
$at->disposition = mail_bank_Zend_Mime::DISPOSITION_ATTACHMENT;
includes/queries.php CHANGED
@@ -68,7 +68,16 @@ else
68
{
69
case "mb_roles_and_capabilities":
70
$details_roles_capabilities = get_mail_bank_meta_value("roles_and_capabilities");
71
- $other_roles_array = $details_roles_capabilities["capabilities"];
72
break;
73
74
case "mb_settings":
68
{
69
case "mb_roles_and_capabilities":
70
$details_roles_capabilities = get_mail_bank_meta_value("roles_and_capabilities");
71
+ $other_roles_access_array = array(
72
+ "manage_options",
73
+ "edit_plugins",
74
+ "edit_posts",
75
+ "publish_posts",
76
+ "publish_pages",
77
+ "edit_pages",
78
+ "read"
79
+ );
80
+ $other_roles_array = isset($details_roles_capabilities["capabilities"]) && $details_roles_capabilities["capabilities"] != "" ? $details_roles_capabilities["capabilities"] : $other_roles_access_array;
81
break;
82
83
case "mb_settings":
includes/sidebar.php CHANGED
@@ -35,7 +35,7 @@ else
35
<ul class="page-sidebar-menu-tech-banker" data-slide-speed="200">
36
<div class="sidebar-search-wrapper" style="padding:20px;text-align:center">
37
<a class="plugin-logo" href="<?php echo tech_banker_beta_url; ?>" target="_blank">
38
- <img src="<?php echo plugins_url("assets/global/img/mail-bank-logo.png",dirname(__FILE__));?>">
39
</a>
40
</div>
41
<li id="ux_mb_li_email_configuration">
@@ -166,7 +166,7 @@ else
166
</div>
167
</div>
168
</div>
169
- <?php
170
}
171
}
172
?>
35
<ul class="page-sidebar-menu-tech-banker" data-slide-speed="200">
36
<div class="sidebar-search-wrapper" style="padding:20px;text-align:center">
37
<a class="plugin-logo" href="<?php echo tech_banker_beta_url; ?>" target="_blank">
38
+ <img src="<?php echo plugins_url("assets/global/img/mail-bank-logo.png",dirname(__FILE__));?>" alt="Mail Bank">
39
</a>
40
</div>
41
<li id="ux_mb_li_email_configuration">
166
</div>
167
</div>
168
</div>
169
+ <?php
170
}
171
}
172
?>
includes/translations.php CHANGED
@@ -62,7 +62,6 @@ else
62
$wp_langs["en_ca"] = "English (Canada)";
63
$wp_langs["en_nz"] = "English (New Zealand)";
64
$wp_langs["en_za"] = "English (South Africa)";
65
- $wp_langs["en_gb"] = "English (UK)";
66
$wp_langs["eo"] = "Esperanto";
67
$wp_langs["et"] = "Eesti";
68
$wp_langs["fo"] = "Føroyskt";
@@ -160,7 +159,6 @@ else
160
$wp_langs["ta_lk"] = "தமிழ்";
161
$wp_langs["tt_ru"] = "Татар теле";
162
$wp_langs["te"] = "తెలుగు";
163
- $wp_langs["th"] = "ไทย";
164
$wp_langs["bo"] = "བོད་སྐད";
165
$wp_langs["tir"] = "ትግርኛ";
166
$wp_langs["tuk"] = "Türkmençe";
62
$wp_langs["en_ca"] = "English (Canada)";
63
$wp_langs["en_nz"] = "English (New Zealand)";
64
$wp_langs["en_za"] = "English (South Africa)";
65
$wp_langs["eo"] = "Esperanto";
66
$wp_langs["et"] = "Eesti";
67
$wp_langs["fo"] = "Føroyskt";
159
$wp_langs["ta_lk"] = "தமிழ்";
160
$wp_langs["tt_ru"] = "Татар теле";
161
$wp_langs["te"] = "తెలుగు";
162
$wp_langs["bo"] = "བོད་སྐད";
163
$wp_langs["tir"] = "ትግርኛ";
164
$wp_langs["tuk"] = "Türkmençe";
languages/wp-mail-bank-th.mo ADDED
Binary file
languages/wp-mail-bank-th.po ADDED
@@ -0,0 +1,1041 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Mail Bank\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-05-08 09:36+0530\n"
6
+ "PO-Revision-Date: 2017-05-08 09:37+0530\n"
7
+ "Last-Translator: Tech Banker\n"
8
+ "Language-Team: Thai (Thailand)\n"
9
+ "Language: th_TH\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=1; plural=0;\n"
14
+ "X-Generator: Poedit 1.8.11\n"
15
+ "X-Loco-Source-Locale: en-IN\n"
16
+ "X-Loco-Project-Id: 22543\n"
17
+ "X-Loco-Api-Version: 1.0.17 20170505-1\n"
18
+ "X-Poedit-KeywordsList: __;_e;.;gettext\n"
19
+ "X-Poedit-Basepath: ..\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: assets\n"
22
+
23
+ #: includes/translations.php:179
24
+ msgid "If Interested, Kindly click "
25
+ msgstr "หากสนใจคลิกที่นี่"
26
+
27
+ #: includes/translations.php:180
28
+ msgid "here."
29
+ msgstr "ที่นี่"
30
+
31
+ #: includes/translations.php:190
32
+ msgid "Upgrade"
33
+ msgstr "อัพเกรด"
34
+
35
+ #: includes/translations.php:191
36
+ msgid "Premium Edition"
37
+ msgstr "Premium Edition"
38
+
39
+ #: includes/translations.php:192
40
+ msgid "This feature is available only in Premium Editions! <br> Kindly Purchase to unlock it!"
41
+ msgstr "คุณสมบัตินี้จะใช้ได้เฉพาะ Premium Edition เท่านั้น! <br> กรุณาทำการสั่งซื้อเพื่อปลกล็อคการใช้งาน"
42
+
43
+ #: includes/translations.php:195
44
+ msgid "Basic Info"
45
+ msgstr "ข้อมูลพื้นฐาน"
46
+
47
+ #: includes/translations.php:196
48
+ msgid "Account Setup"
49
+ msgstr "ตั้งค่าบัญชี"
50
+
51
+ #: includes/translations.php:197
52
+ msgid "Confirm"
53
+ msgstr "ยืนยัน"
54
+
55
+ #: includes/translations.php:200 includes/translations.php:433
56
+ msgid "Mail Bank"
57
+ msgstr "Mail Bank"
58
+
59
+ #: includes/translations.php:201
60
+ msgid "Email Setup"
61
+ msgstr "ตั้งค่าอีเมล"
62
+
63
+ #: includes/translations.php:202
64
+ msgid "Email Logs"
65
+ msgstr "บันทึกข้อมูลอีเมล"
66
+
67
+ #: includes/translations.php:203 includes/translations.php:257
68
+ msgid "Test Email"
69
+ msgstr "ทดสอบอีเมล"
70
+
71
+ #: includes/translations.php:204
72
+ msgid "Plugin Settings"
73
+ msgstr "ตั้งค่าปลั๊กอิน"
74
+
75
+ #: includes/translations.php:205
76
+ msgid "Feedbacks"
77
+ msgstr "ข้อเสนอแนะ"
78
+
79
+ #: includes/translations.php:206
80
+ msgid "Roles & Capabilities"
81
+ msgstr "บทบาทและความสามารถ"
82
+
83
+ #: includes/translations.php:207
84
+ msgid "System Information"
85
+ msgstr "ข้อมูลของระบบ"
86
+
87
+ #: includes/translations.php:208 includes/translations.php:434
88
+ msgid "Error Logs"
89
+ msgstr "บันทึกข้อผิดพลาด"
90
+
91
+ #: includes/translations.php:211
92
+ msgid "Success!"
93
+ msgstr "สำเร็จ!"
94
+
95
+ #: includes/translations.php:212
96
+ msgid "Email Setup has been updated Successfully"
97
+ msgstr "การตั้งค่าอีเมลได้รับการปรับปรุงเรียบร้อยแล้ว"
98
+
99
+ #: includes/translations.php:213
100
+ msgid "Your Feedback has been sent Successfully"
101
+ msgstr "ข้อเสนอแนะของคุณได้ถูกส่งไปเรียบร้อยแล้ว"
102
+
103
+ #: includes/translations.php:214
104
+ msgid "Test Email was sent Successfully!"
105
+ msgstr "อีเมลทดสอบได้ส่งไปเรียบร้อยแล้ว!"
106
+
107
+ #: includes/translations.php:215
108
+ msgid "Test Email was not sent!"
109
+ msgstr "อีเมลทดสอบไม่ได้ส่งออกไป!"
110
+
111
+ #: includes/translations.php:216
112
+ msgid "Plugin Settings have been updated Successfully"
113
+ msgstr "การตั้งค่าปลั๊กอินได้รับการปรับปรุงเรียบร้อยแล้ว"
114
+
115
+ #: includes/translations.php:217
116
+ msgid "The OAuth is not supported by providing SMTP Host, kindly provide username and password"
117
+ msgstr "OAuth ไม่ได้การรับรองโดย SMTP จากโฮส, กรุณาให้ชื่อผู้ใช้ และรหัสผ่าน"
118
+
119
+ #: includes/translations.php:218
120
+ msgid "Query"
121
+ msgstr "สอบถาม"
122
+
123
+ #: includes/translations.php:219
124
+ msgid "Language Interested to Translate"
125
+ msgstr "ภาษาที่ต้องการแปล"
126
+
127
+ #: includes/translations.php:220
128
+ msgid "Please enter the language you want to translate."
129
+ msgstr "กรุณาระบุภาษาที่คุณต้องการแปล"
130
+
131
+ #: includes/translations.php:221
132
+ msgid "Please enter the language"
133
+ msgstr "กรุณาระบุภาษา"
134
+
135
+ #: includes/translations.php:222
136
+ msgid "In this field, You would need to provide your name which will be sent along with your request"
137
+ msgstr "ในส่วนนี้, คุณจำเป็นต้องให้ชื่อของคุณ ซึ่งจะถูกส่งไปพร้อมกัยคำร้องขอของคุณ"
138
+
139
+ #: includes/translations.php:223
140
+ msgid "Important Disclaimer!"
141
+ msgstr "คำเตือน!"
142
+
143
+ #: includes/translations.php:224
144
+ msgid "In this field, You would need to provide your valid email which wiil be sent along with your request"
145
+ msgstr "ในส่วนนี้, คุณจะต้องระบุอีเมลที่ถูกต้อง ซึ่งจะถูกส่งไปพร้อมกับคำขอของคุณ"
146
+
147
+ #: includes/translations.php:225
148
+ msgid "Please enter your query."
149
+ msgstr "กรุณาระบุข้อสอบถามของคุณ"
150
+
151
+ #: includes/translations.php:226
152
+ msgid "Please enter the query."
153
+ msgstr "กรุณาระบุข้อสอบถาม"
154
+
155
+ #: includes/translations.php:227 includes/translations.php:345
156
+ msgid "Close"
157
+ msgstr "ปิด"
158
+
159
+ #: includes/translations.php:228
160
+ msgid "Send Request"
161
+ msgstr "ส่งคำร้อง"
162
+
163
+ #: includes/translations.php:229
164
+ msgid "Translation Request"
165
+ msgstr "คำขอแปล"
166
+
167
+ #: includes/translations.php:230
168
+ msgid "Are you sure you want to close without sending Translation Request?"
169
+ msgstr "คุณแน่ใจหรือไม่ว่าต้องการปิดโดยไม่ต้องส่งคำขอการแปล?"
170
+
171
+ #: includes/translations.php:231 includes/translations.php:402
172
+ msgid "Your Email"
173
+ msgstr "อีเมลของคุณ"
174
+
175
+ #: includes/translations.php:232 includes/translations.php:399
176
+ msgid "Your Name"
177
+ msgstr "ชื่อของคุณ"
178
+
179
+ #: includes/translations.php:233 includes/translations.php:401
180
+ msgid "Please provide your Name"
181
+ msgstr "กรุณาระบุชื่อของคุณ"
182
+
183
+ #: includes/translations.php:237
184
+ msgid "Sent"
185
+ msgstr "ส่งแล้ว"
186
+
187
+ #: includes/translations.php:238
188
+ msgid "Not Sent"
189
+ msgstr "ไม่ได้ส่ง"
190
+
191
+ #: includes/translations.php:239
192
+ msgid "You don't have Sufficient Access to this Page. Kindly contact the Administrator for more Privileges"
193
+ msgstr "คุณไม่มีสิทธิ์เพียงพอที่จะเข้าถึงหน้านี้ โปรดติดต่อผู้ดูแลระบบเพื่อรับสิทธิพิเศษเพิ่มเติม"
194
+
195
+ #: includes/translations.php:240
196
+ msgid "Enable"
197
+ msgstr "เปิด"
198
+
199
+ #: includes/translations.php:241
200
+ msgid "Disable"
201
+ msgstr "ปิด"
202
+
203
+ #: includes/translations.php:242
204
+ msgid "Override"
205
+ msgstr "แทนที"
206
+
207
+ #: includes/translations.php:243
208
+ msgid "Don't Override"
209
+ msgstr "ห้ามแทนที่"
210
+
211
+ #: includes/translations.php:244
212
+ msgid "Save Settings"
213
+ msgstr "บันทึกการตั้งค่า"
214
+
215
+ #: includes/translations.php:245
216
+ msgid "Subject"
217
+ msgstr "หัวข้อ"
218
+
219
+ #: includes/translations.php:246
220
+ msgid "Next Step"
221
+ msgstr "ขั้นถัดไป"
222
+
223
+ #: includes/translations.php:247
224
+ msgid "Previous Step"
225
+ msgstr "ขั้นก่อนหน้า"
226
+
227
+ #: includes/translations.php:250
228
+ msgid "Cc"
229
+ msgstr "Cc"
230
+
231
+ #: includes/translations.php:251
232
+ msgid "Bcc"
233
+ msgstr "Bcc"
234
+
235
+ #: includes/translations.php:252
236
+ msgid "Please provide valid Cc Email Address"
237
+ msgstr "กรุณาระบุอีเมลที่ถูกต้องสำหรับ Cc"
238
+
239
+ #: includes/translations.php:253
240
+ msgid "Please provide valid Bcc Email Address"
241
+ msgstr "กรุณาระบุอีเมลที่ถูกต้องสำหรับ Bcc"
242
+
243
+ #: includes/translations.php:254
244
+ msgid "Please provide Cc Email"
245
+ msgstr "กรุณาระบุอีเมลสำหรับ Cc"
246
+
247
+ #: includes/translations.php:255
248
+ msgid "Please provide Bcc Email"
249
+ msgstr "กรุณาระบุอีเมลสำหรับ Bcc"
250
+
251
+ #: includes/translations.php:256
252
+ msgid "Mailer Settings"
253
+ msgstr "การตั้งค่าการส่งอีเมล"
254
+
255
+ #: includes/translations.php:258
256
+ msgid "From Name"
257
+ msgstr "จากชื่อ"
258
+
259
+ #: includes/translations.php:259
260
+ msgid ""
261
+ "From Name is the inbox field that tells your recipient who sent the messages. If you would like to override the pre-configured From Name, then "
262
+ "you would need to insert the name in the inbox field"
263
+ msgstr "\"จากชื่อ\" คือ ช่องกล่องจดหมายซึ่งจะบอกผู้รับของคุณว่าใครเป็นผู้ส่งข้อความ หากคุณต้องการแทนที่\"จากชื่อ\"ที่กำหนดไว้ล่วงหน้า จากนั้นคุณจะต้องใส่ชื่อในช่องกล่องจดหมาย"
264
+
265
+ #: includes/translations.php:260
266
+ msgid "Please provide From Name"
267
+ msgstr "กรุณาระบุ จากชื่อ"
268
+
269
+ #: includes/translations.php:261
270
+ msgid "From Email"
271
+ msgstr "จากอีเมล"
272
+
273
+ #: includes/translations.php:262
274
+ msgid ""
275
+ "From Email is the inbox field that tells your recipient from which Email Address the messages are coming. If you would like to override the "
276
+ "pre-configured From Email, then you would need to insert an Email Address in the inbox field"
277
+ msgstr "จากอีเมล คือ ฟิลด์กล่องจดหมายซึ่งจะบอกผู้รับของคุณว่าอีเมลใดที่มีข้อความมาถึง ถ้าคุณต้องการแทนที่อีเมล ที่กำหนดไว้ล่วงหน้าจากนั้นคุณจะต้องใส่ที่อยู่อีเมลในกล่องขาเข้า"
278
+
279
+ #: includes/translations.php:263
280
+ msgid "Please provide From Email Address"
281
+ msgstr "กรุณาระบอีเมลแอดเดรส"
282
+
283
+ #: includes/translations.php:264
284
+ msgid "Mailer Type"
285
+ msgstr "ประเภทการส่งอีเมล"
286
+
287
+ #: includes/translations.php:265
288
+ msgid ""
289
+ "This field provides you an ability to choose a specific option for Mailer Type. If you would like to send an Email via SMTP mailer, you would "
290
+ "need to select Send Email via SMTP from the drop down or you could use PHP mail () Function"
291
+ msgstr ""
292
+ "ฟิลด์นี้ให้คุณสามารถเลือกตัวเลือกเฉพาะสำหรับ ประเภทการส่งอีเมล ได้ หากคุณต้องการส่งอีเมลผ่าน SMTP mailer คุณจะต้องเลือกส่งอีเมลผ่าน SMTP "
293
+ "จากเมนูแบบเลื่อนลงหรือคุณสามารถใช้ฟังก์ชัน PHP mail () ได้"
294
+
295
+ #: includes/translations.php:266
296
+ msgid "Send Email via SMTP"
297
+ msgstr "ส่งอีเมลผ่าน SMTP"
298
+
299
+ #: includes/translations.php:267
300
+ msgid "Use The PHP mail() Function"
301
+ msgstr "ใช้ PHP mail() Function"
302
+
303
+ #: includes/translations.php:268
304
+ msgid "SMTP Host"
305
+ msgstr "โฮส SMTP"
306
+
307
+ #: includes/translations.php:269
308
+ msgid ""
309
+ "If you would like to send an Email via different host, you would need to insert that specific host name like smtp.gmail.com in the inbox field"
310
+ msgstr "ถ้าคุณต้องการส่งอีเมลผ่านโฮสต์อื่น คุณจะต้องใส่ชื่อโฮสต์เฉพาะดังกล่าวเช่น smtp.gmail.com ในช่อง"
311
+
312
+ #: includes/translations.php:270 includes/translations.php:404
313
+ msgid "Please provide your Email Address"
314
+ msgstr "กรุณาระบอีเมลแอดเดรสของคุณ"
315
+
316
+ #: includes/translations.php:271
317
+ msgid "Please provide SMTP Host"
318
+ msgstr "กรุณาระบุโฮส SMTP"
319
+
320
+ #: includes/translations.php:272
321
+ msgid "SMTP Port"
322
+ msgstr "พอร์ต SMTP"
323
+
324
+ #: includes/translations.php:273
325
+ msgid "This inbox field is specified to provide a valid SMTP Port for authentication"
326
+ msgstr "ช่องนี้มีไว้สำหรับระบุพอร์ต SMTP ที่ถูกต้องสำหรับการตรวจสอบสิทธิ์"
327
+
328
+ #: includes/translations.php:274
329
+ msgid "Please provide SMTP Port"
330
+ msgstr "กรุณาระบุพอร์ต SMTP"
331
+
332
+ #: includes/translations.php:275
333
+ msgid "Encryption"
334
+ msgstr "การเข้ารหัส"
335
+
336
+ #: includes/translations.php:276
337
+ msgid ""
338
+ "It provides you an ability to choose a specific option for Encryption. If you would like to send an Email with TLS encryption, you would need "
339
+ "to select Use TLS Encryption from the drop down or you could use SSL Encryption. For that you would need to select Use SSL Encryption from the "
340
+ "drop down. If you would like to send an Email without encryption, you would need to select No Encryption from the drop down"
341
+ msgstr ""
342
+ "ช่วยให้คุณสามารถเลือกตัวเลือกเฉพาะสำหรับการเข้ารหัสได้ หากคุณต้องการส่งอีเมลด้วย TLS การเข้ารหัสลับคุณจะต้องเลือกใช้ TLS Encryption จากเมนูแบบเลื่อนลงหรือคุณสามารถใช้ SSL "
343
+ "Encryption เพื่อที่คุณจะต้องเลือก Use SSL Encryption จากเมนูแบบเลื่อนลง ถ้าคุณต้องการส่งอีเมลโดยไม่มีการเข้ารหัสคุณจะต้องเลือกไม่มีการเข้ารหัสจากเมนูแบบเลื่อนลง"
344
+
345
+ #: includes/translations.php:277
346
+ msgid "No Encryption"
347
+ msgstr "ไม่เข้ารหัส"
348
+
349
+ #: includes/translations.php:278
350
+ msgid "Use SSL Encryption"
351
+ msgstr "ใช้ SSL Encryption"
352
+
353
+ #: includes/translations.php:279
354
+ msgid "Use TLS Encryption"
355
+ msgstr "ใช้ TLS Encryption"
356
+
357
+ #: includes/translations.php:280 includes/translations.php:421
358
+ msgid "Authentication"
359
+ msgstr "การรับรอง"
360
+
361
+ #: includes/translations.php:281
362
+ msgid ""
363
+ "This inbox field allows you to choose an appropriate option for authentication. It provides you the Two-way authentication factor; If you "
364
+ "would like to authenticate yourself via Username and Password, you would need to select Use Username and Password from the drop down. You can "
365
+ "also authenticate by an OAuth 2.0 protocol, which requires Client Id and Secret Key, for that you would need to select Use OAuth (Client ID "
366
+ "and Secret Key) from the drop down. You can easily get Client Id and Secret Key from respective SMTP Server Developers section"
367
+ msgstr ""
368
+ "ช่องนี้ช่วยให้คุณสามารถเลือกตัวเลือกที่เหมาะสมสำหรับการตรวจสอบสิทธิ์ จะให้ปัจจัยพิสูจน์ตัวตนแบบสองทาง หากคุณต้องการตรวจสอบตัวตนผ่านทาง Username และ Password "
369
+ "คุณจำเป็นต้องเลือก Use Username and Password จากเมนูแบบเลื่อนลง คุณสามารถรับรองความถูกต้องโดยใช้โปรโตคอล OAuth 2.0 ซึ่งต้องใช้รหัสลูกค้าและคีย์ลับเพราะคุณต้องเลือกใช้ "
370
+ "OAuth (รหัสลูกค้าและคีย์ลับ) จากเมนูแบบเลื่อนลง คุณสามารถรับ ID ไคลเอ็นต์และคีย์ลับจากส่วนนักพัฒนาซอฟต์แวร์ SMTP ได้โดยง่าย"
371
+
372
+ #: includes/translations.php:282
373
+ msgid "Use SMTP Authentication"
374
+ msgstr "ใช้ SMTP Authentication"
375
+
376
+ #: includes/translations.php:283
377
+ msgid "Don't Use SMTP Authentication"
378
+ msgstr "ไม่ใช้ SMTP Authentication"
379
+
380
+ #: includes/translations.php:284
381
+ msgid "Test Email Address"
382
+ msgstr "อีเมลสำหรับทดสอบ"
383
+
384
+ #: includes/translations.php:285
385
+ msgid "In this field, you would need to provide a valid Email Address in the inbox field on which you would like to receive Test email"
386
+ msgstr "ในฟิลด์นี้คุณจะต้องระบุที่อยู่อีเมลที่ถูกต้องในกล่องขาเข้าที่คุณต้องการรับอีเมลทดสอบ"
387
+
388
+ #: includes/translations.php:286
389
+ msgid "Please provide Test Email Address"
390
+ msgstr "กรุณาระบอีเมลสำหรับการทดสอบ"
391
+
392
+ #: includes/translations.php:287
393
+ msgid "In this field, you would need to provide a subject for Test Email"
394
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุหัวข้อสำหรับใช้อีเมลทดสอบ"
395
+
396
+ #: includes/translations.php:288
397
+ msgid "Please provide Subject"
398
+ msgstr "กรุณาระบุหัวข้อ"
399
+
400
+ #: includes/translations.php:289
401
+ msgid "Email Content"
402
+ msgstr "เนื้อหาของอีเมล"
403
+
404
+ #: includes/translations.php:290
405
+ msgid "In this field, you would need to provide the content for Test Email"
406
+ msgstr "ในฟิลด์นี้ คุณจำเป้นต้องระบุเนื้อหาสำหรับอีเมลทดสอบ"
407
+
408
+ #: includes/translations.php:291
409
+ msgid "Send Test Email"
410
+ msgstr "ส่งอีเมลสำหรับทดสอบ"
411
+
412
+ #: includes/translations.php:292
413
+ msgid "SMTP Debugging Output"
414
+ msgstr "ข้อมูลที่ส่งออกมาจาก ข้อบกพร้องจาก SMTP"
415
+
416
+ #: includes/translations.php:293
417
+ msgid "Checking your settings"
418
+ msgstr "กำลังตรวจสอบการตั้งค่าของคุณ"
419
+
420
+ #: includes/translations.php:294
421
+ msgid "Result"
422
+ msgstr "ผลลัพธ์"
423
+
424
+ #: includes/translations.php:295
425
+ msgid "Send Another Test Email"
426
+ msgstr "ส่งอีเมลสำหรับทดสอบอีกอันหนึ่ง"
427
+
428
+ #: includes/translations.php:296
429
+ msgid "From Name Configuration"
430
+ msgstr "การตั้งค่า \"จากชื่อ\""
431
+
432
+ #: includes/translations.php:297
433
+ msgid ""
434
+ "If you would like to override the pre-configured name which will be used while sending Emails, then you would need to choose Override from the "
435
+ "drop down and vice-versa"
436
+ msgstr "ถ้าคุณต้องการแทนที่ชื่อที่กำหนดไว้ล่วงหน้าซึ่งจะใช้ในขณะที่ส่งอีเมลจากนั้นคุณจะต้องเลือกแทนที่จากเมนูแบบเลื่อนลงและกลับกัน"
437
+
438
+ #: includes/translations.php:298
439
+ msgid "From Email Configuration"
440
+ msgstr "การตั้งค่า \"จากอีเมล\""
441
+
442
+ #: includes/translations.php:299
443
+ msgid ""
444
+ "If you would like to override your pre-configured Email Address which will be used while sending Emails, then you would need to choose "
445
+ "Override from the drop down and vice-versa"
446
+ msgstr "ถ้าคุณต้องการแทนที่อีเมล์แอดเดรสที่กำหนดไว้ล่วงหน้าซึ่งจะใช้ในขณะที่ส่งอีเมลจากนั้นคุณจะต้องเลือกแทนที่จากเมนูแบบเลื่อนลงและในทางกลับกัน"
447
+
448
+ #: includes/translations.php:300
449
+ msgid "Username"
450
+ msgstr "ชื่อผู้ใช้"
451
+
452
+ #: includes/translations.php:301
453
+ msgid "In this field, you would need to provide a username to authenticate your SMTP details"
454
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุ ชื่อผู้ใช้ เพื่อรับรองข้อมูล SMTP ของคุณ"
455
+
456
+ #: includes/translations.php:302
457
+ msgid "Please provide username"
458
+ msgstr "กรุณาระบุชื่อผู้ใช้"
459
+
460
+ #: includes/translations.php:303
461
+ msgid "Password"
462
+ msgstr "รหัสผ่าน"
463
+
464
+ #: includes/translations.php:304
465
+ msgid "In this field, you would need to provide a password to authenticate your SMTP details"
466
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุรหัสผ่าน เพื่อรับรองข้อมูล SMTP ของคุณ"
467
+
468
+ #: includes/translations.php:305
469
+ msgid "Please provide password"
470
+ msgstr "กรุณาระบุรหัสผ่าน"
471
+
472
+ #: includes/translations.php:306
473
+ msgid "Redirect URI"
474
+ msgstr "Redirect URL"
475
+
476
+ #: includes/translations.php:307
477
+ msgid "Please copy this Redirect URI and Paste into Redirect URI field when creating your app"
478
+ msgstr "กรุณาคะดลอก URL นี้ และวาง ในฟิลด์ของ Redirect URL ในขณะกำลังสร้างแอปของคุณ"
479
+
480
+ #: includes/translations.php:308
481
+ msgid "Use OAuth (Client Id and Secret Key required)"
482
+ msgstr "ใช้ OAuth (จำเป็นต้องมี Client Id และ Secret Key)"
483
+
484
+ #: includes/translations.php:309
485
+ msgid "None"
486
+ msgstr "ไม่มี"
487
+
488
+ #: includes/translations.php:310
489
+ msgid "Plain Authentication"
490
+ msgstr "การรับรองความถูกต้องแบบธรรมดา"
491
+
492
+ #: includes/translations.php:311
493
+ msgid "Cram-MD5"
494
+ msgstr "Cram-MD5"
495
+
496
+ #: includes/translations.php:312
497
+ msgid "Login"
498
+ msgstr "เข้าสู่ระบบ"
499
+
500
+ #: includes/translations.php:313
501
+ msgid "Client Id"
502
+ msgstr "Client Id"
503
+
504
+ #: includes/translations.php:314
505
+ msgid "Secret Key"
506
+ msgstr "Secret Key"
507
+
508
+ #: includes/translations.php:315
509
+ msgid "Please provide valid Client Id issued by your SMTP Host"
510
+ msgstr "กรุณาระบุ Client ID ที่ออกโดยโฮสของ SMTP ของคุณ"
511
+
512
+ #: includes/translations.php:316
513
+ msgid "Please provide valid Secret Key issued by your SMTP Host"
514
+ msgstr "กรุณาระบุ Secret Key ที่ออกโดยโฮสของ SMTP ของคุณ"
515
+
516
+ #: includes/translations.php:317
517
+ msgid "Please provide Client Id"
518
+ msgstr "กรุณาระบุ Client ID"
519
+
520
+ #: includes/translations.php:318
521
+ msgid "Please provide Secret Key"
522
+ msgstr "กรุณาระบุ Secret Key"
523
+
524
+ #: includes/translations.php:319
525
+ msgid "Yes, automatically send a Test Email upon clicking on the Next Step Button to verify settings"
526
+ msgstr "ใช่ ส่งอีเมลทดสอบโดยอัตโนมัติ เมื่อคลิกที่ปุ่มขั้นถัดไปเพื่อยืนยันการตั้งค่า"
527
+
528
+ #: includes/translations.php:320
529
+ msgid "Email Address"
530
+ msgstr "อีเมลแอดเดรส"
531
+
532
+ #: includes/translations.php:321
533
+ msgid "In this field, you would need to add a valid Email Address in the inbox field from which you would like to send Emails"
534
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุอีเมลแอดเดรสที่ถูกต้อง ในช่อง โดยเือกอีเมลที่คุณต้องการจะทำการส่ง"
535
+
536
+ #: includes/translations.php:322
537
+ msgid "Please provide valid Email Address"
538
+ msgstr "กรุณาระบุอีเมลแอดเดรสที่ถูกต้อง"
539
+
540
+ #: includes/translations.php:323
541
+ msgid "Reply To"
542
+ msgstr "ตอบกลับถึง"
543
+
544
+ #: includes/translations.php:324
545
+ msgid ""
546
+ "In this field, you would need to add a valid Email Address that is automatically inserted into the Reply To field when a user replies to an "
547
+ "email message"
548
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุอีเมลแอดเดรสที่ถูกต้อง ซึ่งจะถูกใส่ให้โดยอัตโนมัติในฟิลด์ของ \"ตอบกลับถึง\" เมื่อผู้ใช้ตอบกลับข้อความ"
549
+
550
+ #: includes/translations.php:325
551
+ msgid "Please provide Reply To Email Address"
552
+ msgstr "กรุณาระบอีเมลสำหรับการตอบกลับ"
553
+
554
+ #: includes/translations.php:326
555
+ msgid "Get Google Client Id and Secret Key"
556
+ msgstr "รับ Google Client Id และ Secret Key"
557
+
558
+ #: includes/translations.php:327
559
+ msgid "Get Microsoft Client Id and Secret Key"
560
+ msgstr "รับ Microsoft Client Id และ Secret Key"
561
+
562
+ #: includes/translations.php:328
563
+ msgid "Get Yahoo Client Id and Secret Key"
564
+ msgstr "รับ Yahoo Client Id และ Secret Key"
565
+
566
+ #: includes/translations.php:331
567
+ msgid "Start Date"
568
+ msgstr "วันที่เริ่มต้น"
569
+
570
+ #: includes/translations.php:332
571
+ msgid "Resend"
572
+ msgstr "ส่งใหม่"
573
+
574
+ #: includes/translations.php:333
575
+ msgid "Please provide Start Date"
576
+ msgstr "กรุณาระบุวันที่เริ่มต้น"
577
+
578
+ #: includes/translations.php:334
579
+ msgid "This field shows starting date of Email Logs"
580
+ msgstr "ฟิลด์นี้แสดงวันที่เริ่มต้นของการบันทึกอีเมล"
581
+
582
+ #: includes/translations.php:335
583
+ msgid "End Date"
584
+ msgstr "วันที่สิ้นสุด"
585
+
586
+ #: includes/translations.php:336
587
+ msgid "Please provide End Date"
588
+ msgstr "กรุณาระบุวันที่สิ้นสุด"
589
+
590
+ #: includes/translations.php:337
591
+ msgid "This field shows ending date of Email Logs"
592
+ msgstr "ฟิลด์นี้แสดงวันที่สิ้นสุดของการบันทึกอีเมล"
593
+
594
+ #: includes/translations.php:338
595
+ msgid "Submit"
596
+ msgstr "ยอมรับ"
597
+
598
+ #: includes/translations.php:339
599
+ msgid "Bulk Action"
600
+ msgstr "การกระทำเป็นกลุ่ม"
601
+
602
+ #: includes/translations.php:340
603
+ msgid "Delete"
604
+ msgstr "ลบ"
605
+
606
+ #: includes/translations.php:341
607
+ msgid "Apply"
608
+ msgstr "ใช้"
609
+
610
+ #: includes/translations.php:342
611
+ msgid "Email To"
612
+ msgstr "อีเมลถึง"
613
+
614
+ #: includes/translations.php:343
615
+ msgid "Action"
616
+ msgstr "กระทำ"
617
+
618
+ #: includes/translations.php:344
619
+ msgid "Show Details"
620
+ msgstr "แสดงรายละเอียด"
621
+
622
+ #: includes/translations.php:346
623
+ msgid "Debugging Output"
624
+ msgstr "ผลของ Debugging"
625
+
626
+ #: includes/translations.php:347
627
+ msgid "Show Debugging Output"
628
+ msgstr "แสดงผล Debugging"
629
+
630
+ #: includes/translations.php:348
631
+ msgid "Email Sent To"
632
+ msgstr "อีเมลส่งไปยัง"
633
+
634
+ #: includes/translations.php:349
635
+ msgid "Date/Time"
636
+ msgstr "วันที่/เวลา"
637
+
638
+ #: includes/translations.php:350 includes/translations.php:418
639
+ msgid "Status"
640
+ msgstr "สถานะ"
641
+
642
+ #: includes/translations.php:351
643
+ msgid "From"
644
+ msgstr "จาก"
645
+
646
+ #: includes/translations.php:352
647
+ msgid "Back to Email Logs"
648
+ msgstr "ย้อนกลับไปยังบันทึกอีเมล"
649
+
650
+ #: includes/translations.php:355
651
+ msgid "Automatic Plugin Updates"
652
+ msgstr "อัพเดทปลั๊กอินอัตโนมัติ"
653
+
654
+ #: includes/translations.php:356
655
+ msgid "Please choose a specific option whether to allow Automatic Plugin Updates"
656
+ msgstr "โปรดเลือกตัวเลือกเฉพาะ ว่าจะอนุญาตให้อัปเดตปลั๊กอินอัตโนมัติหรือไม่"
657
+
658
+ #: includes/translations.php:357
659
+ msgid "Debug Mode"
660
+ msgstr "โหมด Debug"
661
+
662
+ #: includes/translations.php:358
663
+ msgid "Please choose a specific option for Debug Mode"
664
+ msgstr "โปรดเลือกตัวเลือกเฉพาะสำหรับโหมด Debug"
665
+
666
+ #: includes/translations.php:359
667
+ msgid "Remove Tables at Uninstall"
668
+ msgstr "นำ Table ออกเมื่อถอนการติดตั้ง"
669
+
670
+ #: includes/translations.php:360
671
+ msgid "Please choose a specific option whether to allow Remove Tables at Uninstall"
672
+ msgstr "โปรดเลือกตัวเลือกเฉพาะ เพื่ออนุญาตให้ลบ Table เมื่อถอนการติดตั้ง"
673
+
674
+ #: includes/translations.php:361
675
+ msgid "Monitoring Email Logs"
676
+ msgstr "กำลังตรวจสอบบันทึกอีเมล"
677
+
678
+ #: includes/translations.php:362
679
+ msgid "This field is used to allow Email Logs to monitor or not"
680
+ msgstr "ฟิลด์นี้ใช้เพื่ออนุญาตให้บันทึกอีเมลเพื่อตรวจสอบหรือไม่"
681
+
682
+ #: includes/translations.php:363
683
+ msgid "Error Reporting"
684
+ msgstr "รายงานข้อผิดพลาด"
685
+
686
+ #: includes/translations.php:364
687
+ msgid "If you would like to Report your Errors in Error Logs Menu, then you would need to Choose Enable from dropdown or vice-versa"
688
+ msgstr "หากต้องการรายงานข้อผิดพลาดในเมนูบันทึกข้อผิดพลาดคุณจะต้องเลือกเปิดใช้งานจากเมนูแบบเลื่อนลง หรือปิด"
689
+
690
+ #: includes/translations.php:368
691
+ msgid "Show Mail Bank Menu"
692
+ msgstr "แสดงเมนูของ Mail Bank"
693
+
694
+ #: includes/translations.php:369
695
+ msgid "Please choose a specific role who can see Sidebar Menu"
696
+ msgstr "โปรดเลือกบทบาทเฉพาะที่สามารถดูเมนูแถบด้านข้าง"
697
+
698
+ #: includes/translations.php:370
699
+ msgid "Administrator"
700
+ msgstr "ผู้ดูแลระบบ"
701
+
702
+ #: includes/translations.php:371
703
+ msgid "Author"
704
+ msgstr "ผู้แต่ง"
705
+
706
+ #: includes/translations.php:372
707
+ msgid "Editor"
708
+ msgstr "บรรณาธิการ"
709
+
710
+ #: includes/translations.php:373
711
+ msgid "Contributor"
712
+ msgstr "ผู้สนับสนุน"
713
+
714
+ #: includes/translations.php:374
715
+ msgid "Subscriber"
716
+ msgstr "สมาชิก"
717
+
718
+ #: includes/translations.php:375
719
+ msgid "Others"
720
+ msgstr "อื่นๆ"
721
+
722
+ #: includes/translations.php:376
723
+ msgid "Show Mail Bank Top Bar Menu"
724
+ msgstr "แสดงเมนูด้านบนของ Mail Bank"
725
+
726
+ #: includes/translations.php:377
727
+ msgid "Please choose a specific option from Mail Bank Top Bar Menu"
728
+ msgstr "โปรดเลือกตัวเลือกเฉพาะจากเมนูแถบด้านบนของ Mail Bank"
729
+
730
+ #: includes/translations.php:378
731
+ msgid "An Administrator Role can do the following "
732
+ msgstr "ผู้ดูแลระบบมีสิทธิทำได้ดังต่อไปนี้"
733
+
734
+ #: includes/translations.php:379
735
+ msgid "Please choose specific page available for the Administrator Access"
736
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของผู้ดูแลระบบ"
737
+
738
+ #: includes/translations.php:380
739
+ msgid "Full Control"
740
+ msgstr "ควบคุมทั้งหมด"
741
+
742
+ #: includes/translations.php:381
743
+ msgid "An Author Role can do the following "
744
+ msgstr "ผู้แต่งมีสิทธิทำได้ดังต่อไปนี้"
745
+
746
+ #: includes/translations.php:382
747
+ msgid "Please choose specific page available for Author Access"
748
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของผู้แต่ง"
749
+
750
+ #: includes/translations.php:383
751
+ msgid "An Editor Role can do the following "
752
+ msgstr "บรรณาธิการมีสิทธิทำได้ดังต่อไปนี้"
753
+
754
+ #: includes/translations.php:384
755
+ msgid "Please choose specific page available for Editor Access"
756
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของบรรณาธิการ"
757
+
758
+ #: includes/translations.php:385
759
+ msgid "A Contributor Role can do the following "
760
+ msgstr "ผู้สนับสนุนมีสิทธิทำได้ดังต่อไปนี้"
761
+
762
+ #: includes/translations.php:386
763
+ msgid "Please choose specific page available for Contributor Access"
764
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของผู้สนับสนุน"
765
+
766
+ #: includes/translations.php:387
767
+ msgid "Other Roles can do the following "
768
+ msgstr "อื่นๆ มีสิทธิทำได้ดังต่อไปนี้"
769
+
770
+ #: includes/translations.php:388
771
+ msgid "Please choose specific page available for Others Role Access"
772
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของอื่นๆ"
773
+
774
+ #: includes/translations.php:389
775
+ msgid "Please tick the appropriate capabilities for security purposes "
776
+ msgstr "โปรดเลือกตามที่เหมาะสมเพื่อความปลอดภัย"
777
+
778
+ #: includes/translations.php:390
779
+ msgid "Only users with these capabilities can access Mail Bank"
780
+ msgstr "เฉพาะผู้ใช้ที่มีคุณสมบัติเหล่านี้เท่านั้นที่สามารถเข้าถึง Mail Bank"
781
+
782
+ #: includes/translations.php:391
783
+ msgid "A Subscriber Role can do the following"
784
+ msgstr "สมาชิกมีสิทธิทำได้ดังต่อไปนี้"
785
+
786
+ #: includes/translations.php:392
787
+ msgid "Please choose specific page available for Subscriber Access"
788
+ msgstr "กรุณาเลือกหน้าเฉพาะสำหรับเข้าถึงข้อมูลของสมาชิก"
789
+
790
+ #: includes/translations.php:395
791
+ msgid "Thank You!"
792
+ msgstr "ขอบคุณ!"
793
+
794
+ #: includes/translations.php:396
795
+ msgid "Kindly fill in the below form, if you would like to suggest some features which are not in the Plugin"
796
+ msgstr "กรุณากรอกข้อมูลในแบบฟอร์มด้านล่าง หากคุณต้องการแนะนำคุณลักษณะบางอย่างที่ไม่ได้อยู่ในปลั๊กอิน"
797
+
798
+ #: includes/translations.php:397
799
+ msgid "If you also have any suggestion/complaint, you can use the same form below"
800
+ msgstr "หากคุณมีข้อเสนอแนะ / คำร้องเรียนใด ๆ คุณสามารถใช้แบบฟอร์มด้านล่างนี้ได้"
801
+
802
+ #: includes/translations.php:398
803
+ msgid "You can also write us on"
804
+ msgstr "คุณยังสามารถเขียนถึงเราได้"
805
+
806
+ #: includes/translations.php:400
807
+ msgid "Please provide your Name which will be sent along with your Feedback"
808
+ msgstr "โปรดระบุชื่อของคุณ ซึ่งจะถูกส่งไปพร้อมกับข้อเสนอแนะของคุณ"
809
+
810
+ #: includes/translations.php:403
811
+ msgid "Please provide your Email Address which will be sent along with your Feedback"
812
+ msgstr "โปรดระบุอีเมลของคุณ ซึ่งจะถูกส่งไปพร้อมกับข้อเสนอแนะของคุณ"
813
+
814
+ #: includes/translations.php:405
815
+ msgid "Please provide your Feedback which will be sent along"
816
+ msgstr "โปรดระบุข้อเสนอแนะของคุณ ซึ่งจะถูกส่งไปพร้อมกัน"
817
+
818
+ #: includes/translations.php:406
819
+ msgid "Please provide your Feedback"
820
+ msgstr "โปรดระบุข้อเสนอแนะของคุณ"
821
+
822
+ #: includes/translations.php:407
823
+ msgid "Send Feedback"
824
+ msgstr "ส่งข้อเสนอแนะ"
825
+
826
+ #: includes/translations.php:408
827
+ msgid "Your request Email has been sent Successfully"
828
+ msgstr "อีเมลคำร้องของคุณได้ส่งไปเรียบร้อยแล้ว"
829
+
830
+ #: includes/translations.php:411
831
+ msgid "Sending Test Email to"
832
+ msgstr "กำลังส่งอีเมลไปยัง"
833
+
834
+ #: includes/translations.php:412
835
+ msgid "Email Status"
836
+ msgstr "สถานะอีเมล"
837
+
838
+ #: includes/translations.php:415
839
+ msgid "Connectivity Test"
840
+ msgstr "ทดสอบระบบการติดต่อ"
841
+
842
+ #: includes/translations.php:416
843
+ msgid "Transport"
844
+ msgstr "ขนส่ง"
845
+
846
+ #: includes/translations.php:417
847
+ msgid "Socket"
848
+ msgstr "Socket"
849
+
850
+ #: includes/translations.php:419
851
+ msgid "Service Available"
852
+ msgstr "พร้อมบริการ"
853
+
854
+ #: includes/translations.php:420
855
+ msgid "Server ID"
856
+ msgstr "Server ID"
857
+
858
+ #: includes/translations.php:422
859
+ msgid "Plain"
860
+ msgstr "Plain"
861
+
862
+ #: includes/translations.php:423
863
+ msgid "CRAM-MD5"
864
+ msgstr "CRAM-MD5"
865
+
866
+ #: includes/translations.php:424
867
+ msgid "OAuth 2.0"
868
+ msgstr "OAuth 2.0"
869
+
870
+ #: includes/translations.php:425
871
+ msgid "SMTP"
872
+ msgstr "SMTP"
873
+
874
+ #: includes/translations.php:426
875
+ msgid "Gmail API"
876
+ msgstr "Gmail API"
877
+
878
+ #: includes/translations.php:427
879
+ msgid "Outgoing Mail Server Hostname"
880
+ msgstr "Outgoing Mail Server Hostname"
881
+
882
+ #: includes/translations.php:428
883
+ msgid "Begin Test"
884
+ msgstr "เริ่มต้นทดสอบ"
885
+
886
+ #: includes/translations.php:429
887
+ msgid "localhost"
888
+ msgstr "localhost"
889
+
890
+ #: includes/translations.php:430
891
+ msgid "In this field, you would need to provide Outgoing Mail Server Hostname"
892
+ msgstr "ในฟิลด์นี้ คุณจำเป็นต้องระบุ Outgoing Mail Server Hostname"
893
+
894
+ #: includes/translations.php:435
895
+ msgid "In this field you would be able to see all PHP Errors"
896
+ msgstr "ในฟิลด์นี้ คุณจะสามารถเห็นข้อผิดพลาดทั้งหมดของ PHP"
897
+
898
+ #: includes/translations.php:436
899
+ msgid "Download Error Logs"
900
+ msgstr "ดาวน์โหลดบันทึกข้อผิดพลาด"
901
+
902
+ #: includes/translations.php:437
903
+ msgid "Clear Error Logs"
904
+ msgstr "ล้างบันทึกข้อผิดพลาด"
905
+
906
+ #: includes/translations.php:438
907
+ msgid "Output"
908
+ msgstr "ผลลัพธ์"
909
+
910
+ #: includes/translations.php:439
911
+ msgid "Error Logs has been cleared successfully"
912
+ msgstr "บันทึกข้อผิดพลาดได้ถูกล้างเรียบร้อยแล้ว"
913
+
914
+ #~ msgid "Email Log Details"
915
+ #~ msgstr "รายละเอียดการบันทึกอีเมล"
916
+
917
+ #~ msgid "Your request email has been sent Successfully"
918
+ #~ msgstr "อีเมลคำร้องของคุณได้ส่งไปเรียบร้อยแล้ว"
919
+
920
+ #~ msgid "Roles & Capabilities have been updated Successfully"
921
+ #~ msgstr "บทบาทและความสามารถ ได้ปรับปรุงเรียบร้อยแล้ว"
922
+
923
+ #~ msgid "Please choose an Action from Dropdown!"
924
+ #~ msgstr "กรุณาเลือก การกระทำ จากรายการเลื่อนลงนี้!"
925
+
926
+ #~ msgid "Please choose at least 1 record to delete!"
927
+ #~ msgstr "กรุณาเลือกอย่างน้อย 1 ข้อมูล เพื่อทำการลบ!"
928
+
929
+ #~ msgid "Are you sure you want to delete Email Logs?"
930
+ #~ msgstr "คุณมั่นใจหรือไม่ที่จะลบบัยทึกอีเมล?"
931
+
932
+ #~ msgid "Selected Logs have been deleted Successfully"
933
+ #~ msgstr "บันทึกที่เลือกไว้ได้ถูกลบเรียบร้อยแล้ว"
934
+
935
+ #~ msgid "Are you sure you want to delete Email Log?"
936
+ #~ msgstr "คุณมั่นใจหรือไม่ที่จะลบบัยทึกอีเมล?"
937
+
938
+ #~ msgid "Email Log has been deleted Successfully"
939
+ #~ msgstr "บันทึกอีเมลได้ถูกลบเรียบร้อยแล้ว"
940
+
941
+ #~ msgid "Invalid Secret Key. Please rectify and try again!"
942
+ #~ msgstr "Secret Key ไม่ถูกต้อง กรุณาปรับปรุงแก้ไข และทดลองใหม่!"
943
+
944
+ #~ msgid "Licensing"
945
+ #~ msgstr "การออกใบอนุญาต"
946
+
947
+ #~ msgid "Your Email has been Resent Successfully"
948
+ #~ msgstr "อีเมลของคุณได้ส่งใหม่เรียบร้อยแล้ว"
949
+
950
+ #~ msgid "Unfortunately, Your Email has not been Sent"
951
+ #~ msgstr "ขออภัย อีเมลของคุณยังไม่ได้รับการส่ง"
952
+
953
+ #~ msgid "Are you sure you want to Resend Email?"
954
+ #~ msgstr "คุณแน่ใจหรือว่าต้องการจะส่งอีเมลอีกครั้ง?"
955
+
956
+ #~ msgid "Like Button has been deleted Successfully"
957
+ #~ msgstr "ปุ่ม Like ได้ถูกลบเรียบร้อยแล้ว"
958
+
959
+ #~ msgid "In this field, you would need to provide your Name which will be sent along with your Feature Request"
960
+ #~ msgstr "ในฟิลด์นี้ คุณจะต้องระบุชื่อของคุณซึ่งจะถูกส่งไปพร้อมกับคำขอคุณลักษณะของคุณ"
961
+
962
+ #~ msgid "Your License has been activated Successfully"
963
+ #~ msgstr "ใบอนุญาตของคุณได้รับการเปิดใช้งานเรียบร้อยแล้ว"
964
+
965
+ #~ msgid "Settings"
966
+ #~ msgstr "การตั้งค่า"
967
+
968
+ #~ msgid "Not available"
969
+ #~ msgstr "ไม่พร้อมใช้งาน"
970
+
971
+ #~ msgid ""
972
+ #~ "The following php extensions are not found on your server or are currently disabled. These might create few problems in configuring Mail "
973
+ #~ "Bank. Please contact your WebHost to setup these extensions on your server."
974
+ #~ msgstr ""
975
+ #~ "php extensions ต่อไปนี้ไม่พบในเซิร์ฟเวอร์ของคุณหรือถูกปิดการใช้งานอยู่ในขณะนี้ ปัญหาเหล่านี้อาจสร้างปัญหาในการกำหนดค่า Mail Bank โปรดติดต่อ WebHost "
976
+ #~ "เพื่อตั้งค่าส่วนขยายเหล่านี้บนเซิร์ฟเวอร์ของคุณ"
977
+
978
+ #~ msgid "Email Details"
979
+ #~ msgstr "รายละเอียดอีเมล"
980
+
981
+ #~ msgid "Email Debugging output"
982
+ #~ msgstr "Email Debugging output"
983
+
984
+ #~ msgid "Important Notice!"
985
+ #~ msgstr "ข้อควรระวัง!"
986
+
987
+ #~ msgid ""
988
+ #~ "Congratulations! You have recently purchased Mail Bank Business Edition and now you would need to activate the license in order to unlock "
989
+ #~ "it!"
990
+ #~ msgstr "ขอแสดงความยินดี! คุณเพิ่งซื้อ Mail Bank Business Edition เมื่อเร็ว ๆ นี้และตอนนี้คุณจะต้องเปิดใช้งานใบอนุญาตเพื่อปลดล็อก!"
991
+
992
+ #~ msgid "Kindly fill in the required details and click on Validate License to unlock it"
993
+ #~ msgstr "กรุณากรอกรายละเอียดที่จำเป็นและคลิกที่ \"ตรวจสอบใบอนุญาต\" เพื่อปลดล็อค"
994
+
995
+ #~ msgid "If you face any issues activating the license, you may contact us at "
996
+ #~ msgstr "หากคุณประสบปัญหาใด ๆ ในการเปิดใช้งานใบอนุญาตคุณสามารถติดต่อเราได้ที่"
997
+
998
+ #~ msgid "Product Name"
999
+ #~ msgstr "ชื่อสินค้า"
1000
+
1001
+ #~ msgid "Current Version"
1002
+ #~ msgstr "เวอร์ชันปัจจุบัน"
1003
+
1004
+ #~ msgid "Website URL"
1005
+ #~ msgstr "URL เว็บไซต์"
1006
+
1007
+ #~ msgid "Order ID"
1008
+ #~ msgstr "รหัสคำสั่งซื้อ"
1009
+
1010
+ #~ msgid "API KEY"
1011
+ #~ msgstr "API KEY"
1012
+
1013
+ #~ msgid "Validate License"
1014
+ #~ msgstr "ตรวจสอบใบอนุญาต"
1015
+
1016
+ #~ msgid "This field shows your Installed Product"
1017
+ #~ msgstr "ฟิลด์นี้แสดงผลิตภัณฑ์ที่ติดตั้งของคุณ"
1018
+
1019
+ #~ msgid "This field shows your Installed Product Version"
1020
+ #~ msgstr "ฟิลด์นี้แสดงเวอร์ชันผลิตภัณฑ์ที่ติดตั้งไว้"
1021
+
1022
+ #~ msgid "This field shows your Website URL"
1023
+ #~ msgstr "ฟิลด์นี้แสดง URL เว็บไซต์"
1024
+
1025
+ #~ msgid "Please provide your Order ID which you have received after purchasing the Product. This will be used for Validating the License"
1026
+ #~ msgstr "โปรดระบุรหัสคำสั่งซื้อที่คุณได้รับหลังจากซื้อผลิตภัณฑ์ นี้จะใช้สำหรับการตรวจสอบสิทธิ์การใช้งาน"
1027
+
1028
+ #~ msgid "Please provide your API Key which you have received after purchasing the Product. This will be used for Validating the License"
1029
+ #~ msgstr "โปรดระบุ API Key ที่คุณได้รับหลังจากซื้อผลิตภัณฑ์ นี้จะใช้สำหรับการตรวจสอบสิทธิ์การใช้งาน"
1030
+
1031
+ #~ msgid "Please provide Order ID received after making the purchase"
1032
+ #~ msgstr "โปรดระบุรหัสคำสั่งซื้อที่ได้รับหลังจากทำการสั่งซื้อ"
1033
+
1034
+ #~ msgid "Please provide API Key received after making the purchase"
1035
+ #~ msgstr "โปรดระบุ API Key ที่ได้รับหลังจากทำการสั่งซื้อ"
1036
+
1037
+ #~ msgid "This feature is only available in Business and Developer Editions! <br> Kindly Purchase to unlock it!."
1038
+ #~ msgstr "คุณลักษณะนี้ใช้ได้เฉพาะใน Business and Developer Editions เท่านั้น! <br> กรุณาสั่งซื้อเพื่อปลดล็อก!"
1039
+
1040
+ #~ msgid "Business Edition"
1041
+ #~ msgstr "Business Edition"
lib/action-library.php CHANGED
@@ -1,411 +1,349 @@
1
<?php
2
/**
3
- * This file is used for managing data in database.
4
- *
5
- * @author Tech Banker
6
- * @package wp-mail-bank/lib
7
- * @version 2.0.0
8
- */
9
-
10
- if(!defined("ABSPATH")) exit; // Exit if accessed directly
11
- if(!is_user_logged_in())
12
- {
13
- return;
14
- }
15
- else
16
- {
17
- $access_granted = false;
18
- foreach($user_role_permission as $permission)
19
- {
20
- if(current_user_can($permission))
21
- {
22
- $access_granted = true;
23
- break;
24
- }
25
- }
26
- if(!$access_granted)
27
- {
28
- return;
29
- }
30
- else
31
- {
32
- if(!function_exists("get_mail_bank_details_unserialize"))
33
- {
34
- function get_mail_bank_details_unserialize($email_data_manage,$mb_date1,$mb_date2)
35
- {
36
- $email_details = array();
37
- foreach($email_data_manage as $raw_row)
38
- {
39
- $unserialize_data = unserialize($raw_row->meta_value);
40
- $unserialize_data["id"] = $raw_row->id;
41
- $unserialize_data["meta_id"] = $raw_row->meta_id;
42
- if($unserialize_data["timestamp"] >= $mb_date1 && $unserialize_data["timestamp"] <= $mb_date2)
43
- array_push($email_details,$unserialize_data);
44
- }
45
- return $email_details;
46
- }
47
- }
48
-
49
- if(isset($_REQUEST["param"]))
50
- {
51
- $obj_dbHelper_mail_bank = new dbHelper_mail_bank();
52
- switch(esc_attr($_REQUEST["param"]))
53
- {
54
- case "wizard_wp_mail_bank":
55
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "wp_mail_bank_check_status"))
56
- {
57
- $plugin_info_wp_mail_bank= new plugin_info_wp_mail_bank();
58
-
59
- global $wp_version;
60
-
61
- $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
62
- $type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
63
-
64
- update_option("wp-mail-bank-wizard-set-up", $type);
65
-
66
- $theme_details = array();
67
- if($wp_version >= 3.4)
68
- {
69
- $active_theme = wp_get_theme();
70
- $theme_details["theme_name"] = strip_tags($active_theme->Name);
71
- $theme_details["theme_version"] = strip_tags($active_theme->Version);
72
- $theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
73
- }
74
-
75
- $plugin_stat_data = array();
76
- $plugin_stat_data["plugin_slug"] = "wp-mail-bank";
77
- $plugin_stat_data["type"] = "standard_edition";
78
- $plugin_stat_data["version_number"] = mail_bank_version_number;
79
- $plugin_stat_data["status"] = $type;
80
- $plugin_stat_data["event"] = "activate";
81
- $plugin_stat_data["domain_url"] = site_url();
82
- $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
83
-
84
- switch($type)
85
- {
86
- case "opt_in" :
87
- $plugin_stat_data["email"] = get_option("admin_email");
88
- $plugin_stat_data["wp_version"] = $wp_version;
89
- $plugin_stat_data["php_version"] = esc_html(phpversion());
90
- $plugin_stat_data["mysql_version"] = $wpdb->db_version();
91
- $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
92
- $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
93
- $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
94
- $plugin_stat_data["extensions"] = get_loaded_extensions();
95
- $plugin_stat_data["plugins"] = $plugin_info_wp_mail_bank->get_plugin_info_wp_mail_bank();
96
- $plugin_stat_data["themes"] = $theme_details;
97
- break;
98
- }
99
-
100
- if(function_exists("curl_init"))
101
- {
102
- $ch = curl_init();
103
- curl_setopt($ch, CURLOPT_URL, $url);
104
- curl_setopt($ch, CURLOPT_POST, 1);
105
- curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
106
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
107
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
108
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
109
- curl_setopt($ch, CURLOPT_POSTFIELDS,
110
- http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("mb_tech_banker_site_id") !="" ? get_option("mb_tech_banker_site_id") : "", "action"=>"plugin_analysis_data")));
111
- $result = curl_exec($ch);
112
- update_option("mb_tech_banker_site_id",$result);
113
- curl_close($ch);
114
- }
115
- else
116
- {
117
- $response = wp_safe_remote_post($url, array
118
- (
119
- "method" => "POST",
120
- "timeout" => 45,
121
- "redirection" => 5,
122
- "httpversion" => "1.0",
123
- "blocking" => false,
124
- "headers" => array(),
125
- "body" => array( "data" => serialize($plugin_stat_data), "site_id" => get_option("mb_tech_banker_site_id") != "" ? get_option("mb_tech_banker_site_id") : "","action"=>"plugin_analysis_data")
126
- ));
127
-
128
- if(!is_wp_error($response))
129
- {
130
- $response["body"] != "" ? update_option("mb_tech_banker_site_id", $response["body"]) : "";
131
- }
132
- else
133
- {
134
- update_option("mb_tech_banker_site_id", "error");
135
- }
136
- }
137
- }
138
- break;
139
-
140
- case "mail_bank_set_hostname_port_module":
141
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_set_hostname_port" ))
142
- {
143
- $smtp_user = isset($_REQUEST["smtp_user"]) ? esc_attr($_REQUEST["smtp_user"]) : "";
144
- $hostname = substr(strrchr($smtp_user,"@"),1);
145
- $obj_mail_bank_discover_host = new mail_bank_discover_host();
146
- $hostname_to_set = $obj_mail_bank_discover_host->get_smtp_from_email($hostname);
147
- echo $hostname_to_set;
148
- }
149
- break;
150
-
151
- case "mail_bank_test_email_configuration_module":
152
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_test_email_configuration"))
153
- {
154
-
155
- parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "",$form_data);
156
- global $phpmailer;
157
- $logs = array();
158
- if(!is_object($phpmailer) || !is_a($phpmailer,"PHPMailer"))
159
- {
160
- if(file_exists(ABSPATH . WPINC . "/class-phpmailer.php"))
161
- require_once ABSPATH . WPINC . "/class-phpmailer.php";
162
-
163
- if(file_exists(ABSPATH . WPINC . "/class-smtp.php"))
164
- require_once ABSPATH . WPINC . "/class-smtp.php";
165
-
166
- $phpmailer = new PHPMailer(true) ;
167
- }
168
- $phpmailer->SMTPDebug = true;
169
-
170
- $to = esc_attr($form_data["ux_txt_email"]);
171
- $subject = stripcslashes(htmlspecialchars_decode($form_data["ux_txt_subject"], ENT_QUOTES));
172
- $message = htmlspecialchars_decode(!empty($form_data["ux_email_configuration_text_area"]) ? esc_attr($form_data["ux_email_configuration_text_area"]) : "This is a demo Test Email for Email Setup - Mail Bank");
173
- $headers = "Content-Type: text/html; charset= utf-8". "\r\n";
174
- $result = wp_mail($to,$subject,$message,$headers);
175
- $mb_email_configuration_data = $wpdb->get_row
176
- (
177
- $wpdb->prepare
178
- (
179
- "SELECT meta_value FROM ".mail_bank_meta().
180
- " WHERE meta_key = %s",
181
- "email_configuration"
182
- )
183
- );
184
- $unserialized_email_configuration_data = unserialize($mb_email_configuration_data->meta_value);
185
-
186
- $settings_data = $wpdb->get_var
187
- (
188
- $wpdb->prepare
189
- (
190
- "SELECT meta_value FROM ".mail_bank_meta().
191
- " WHERE meta_key=%s",
192
- "settings"
193
- )
194
- );
195
- $settings_data_array = unserialize($settings_data);
196
- $debugging_output = "";
197
-
198
- if($unserialized_email_configuration_data["mailer_type"] == "smtp")
199
- {
200
- $mail_bank_mail_status = get_option("mail_bank_mail_status");
201
- if($settings_data_array["debug_mode"] == "enable")
202
- {
203
- $debugging_output .= $mb_email_configuration_send_test_email_textarea."\n";
204
- $debugging_output .= $mb_test_email_sending_test_email." ".$to."\n";
205
- $debugging_output .= $mb_test_email_status." : ";
206
- $debugging_output .= get_option("mail_bank_is_mail_sent") == "Sent" ? $mb_status_sent : $mb_status_not_sent;
207
- $debugging_output .= "\n----------------------------------------------------------------------------------------\n";
208
- $debugging_output .= $mb_email_logs_debugging_output." :\n";
209
- $debugging_output .= "----------------------------------------------------------------------------------------\n";
210
- }
211
- $debugging_output .= $mail_bank_mail_status;
212
- echo $debugging_output;
213
- }
214
- else
215
- {
216
- $to_address = $phpmailer->getToAddresses();
217
-
218
- $email_logs_data_array = array();
219
- $email_logs_data_array["email_to"] = $to_address[0][0];
220
-
221
- if($settings_data_array["monitor_email_logs"] == "enable")
222
- {
223
- $email_logs_data_array["sender_name"] = $unserialized_email_configuration_data["sender_name"];
224
- $email_logs_data_array["sender_email"] = $unserialized_email_configuration_data["sender_email"];
225
- $email_logs_data_array["cc"] = "";
226
- $email_logs_data_array["bcc"] = "";
227
- $email_logs_data_array["subject"] = $phpmailer->Subject;
228
- $email_logs_data_array["content"] = $phpmailer->Body;
229
- $email_logs_data_array["timestamp"] = MAIL_BANK_LOCAL_TIME;
230
-
231
- if($result == "true" || $result == "1")
232
- {
233
- $email_logs_data_array["status"] = "Sent";
234
- }
235
- else
236
- {
237
- $email_logs_data_array["status"] = "Not Sent";
238
- }
239
- $email_logs_id = $wpdb->get_var
240
- (
241
- $wpdb->prepare
242
- (
243
- "SELECT id FROM ".mail_bank().
244
- " WHERE type = %s",
245
- "email_logs"
246
- )
247
- );
248
-
249
- $email_logs_data = array();
250
- $email_logs_data["meta_id"] = $email_logs_id;
251
- $email_logs_data["meta_key"] = "email_logs";
252
- $email_logs_data["meta_value"] = serialize($email_logs_data_array);
253
- $obj_dbHelper_mail_bank->insertCommand(mail_bank_meta(),$email_logs_data);
254
- }
255
- echo $result;
256
- }
257
- }
258
- break;
259
-
260
- case "mail_bank_settings_module":
261
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_settings"))
262
- {
263
- parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "",$settings_array);
264
-
265
- $settings_data = array();
266
- $settings_data["automatic_plugin_update"] = esc_attr($settings_array["ux_ddl_automatic_plugin_updates"]);
267
- $settings_data["debug_mode"] = esc_attr($settings_array["ux_ddl_debug_mode"]);
268
- $settings_data["remove_tables_at_uninstall"] = esc_attr($settings_array["ux_ddl_remove_tables"]);
269
- $settings_data["monitor_email_logs"] = esc_attr($settings_array["ux_ddl_monitor_email_logs"]);
270
- $settings_data["error_reporting"] = esc_attr($settings_array["ux_ddl_error_reporting"]);
271
-
272
- $where = array();
273
- $settings_data_array = array();
274
- $where["meta_key"] = "settings";
275
- $settings_data_array["meta_value"] = serialize($settings_data);
276
- $obj_dbHelper_mail_bank->updateCommand(mail_bank_meta(),$settings_data_array,$where);
277
- }
278
- break;
279
-
280
- case "mail_bank_email_configuration_settings_module":
281
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_email_configuration_settings"))
282
- {
283
- parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "",$form_data);
284
- $update_email_configuration_array = array();
285
- $update_email_configuration_array["email_address"] = esc_attr($form_data["ux_txt_email_address"]);
286
- $update_email_configuration_array["reply_to"] = "";
287
- $update_email_configuration_array["cc"] = "";
288
- $update_email_configuration_array["bcc"] = "";
289
- $update_email_configuration_array["mailer_type"] = esc_attr($form_data["ux_ddl_type"]);
290
- $update_email_configuration_array["sender_name_configuration"] = esc_attr($form_data["ux_ddl_from_name"]);
291
- $update_email_configuration_array["sender_name"] = isset($form_data["ux_txt_mb_from_name"]) ? esc_html($form_data["ux_txt_mb_from_name"]) : "";
292
- $update_email_configuration_array["from_email_configuration"] = esc_attr($form_data["ux_ddl_from_email"]);
293
- $update_email_configuration_array["sender_email"] = isset($form_data["ux_txt_mb_from_email_configuration"]) ? esc_html($form_data["ux_txt_mb_from_email_configuration"]) : "";
294
- $update_email_configuration_array["hostname"] = esc_html($form_data["ux_txt_host"]);
295
- $update_email_configuration_array["port"] = intval($form_data["ux_txt_port"]);
296
- $update_email_configuration_array["enc_type"]= esc_attr($form_data["ux_ddl_encryption"]);
297
- $update_email_configuration_array["auth_type"] = esc_attr($form_data["ux_ddl_mb_authentication"]);
298
- $update_email_configuration_array["client_id"] = esc_html(trim($form_data["ux_txt_client_id"]));
299
- $update_email_configuration_array["client_secret"] = esc_html(trim($form_data["ux_txt_client_secret"]));
300
- $update_email_configuration_array["username"] = esc_html($form_data["ux_txt_username"]);
301
- $update_email_configuration_array["automatic_mail"] = isset($form_data["ux_chk_automatic_sent_mail"]) ? esc_html($form_data["ux_chk_automatic_sent_mail"]) : "";
302
-
303
- if(preg_match( '/^\**#x2F;',$form_data["ux_txt_password"]))
304
- {
305
- $email_configuration_data = $wpdb->get_var
306
- (
307
- $wpdb->prepare
308
- (
309
- "SELECT meta_value FROM ".mail_bank_meta().
310
- " WHERE meta_key=%s",
311
- "email_configuration"
312
- )
313
- );
314
- $email_configuration_array = unserialize($email_configuration_data);
315
- $update_email_configuration_array["password"] = $email_configuration_array["password"];
316
- }
317
- else
318
- {
319
- $update_email_configuration_array["password"] = base64_encode(esc_html($form_data["ux_txt_password"]));
320
- }
321
-
322
- $update_email_configuration_array["redirect_uri"] = esc_html($form_data["ux_txt_redirect_uri"]);
323
-
324
- update_option("update_email_configuration",$update_email_configuration_array);
325
-
326
- $mail_bank_auth_host = new mail_bank_auth_host($update_email_configuration_array);
327
- if(!in_array($form_data["ux_txt_host"],$mail_bank_auth_host->oauth_domains) && $form_data["ux_ddl_mb_authentication"] == "oauth2")
328
- {
329
- echo "100";
330
- die();
331
- }
332
-
333
- if($update_email_configuration_array["auth_type"] == "oauth2" && $update_email_configuration_array["mailer_type"] == "smtp")
334
- {
335
- if($update_email_configuration_array["hostname"] == "smtp.gmail.com")
336
- {
337
- $mail_bank_auth_host->google_authentication();
338
- }
339
- elseif($update_email_configuration_array["hostname"] == "smtp.live.com" && $update_email_configuration_array["mailer_type"] == "smtp")
340
- {
341
- $mail_bank_auth_host->microsoft_authentication();
342
- }
343
- elseif(in_array($update_email_configuration_array["hostname"],$mail_bank_auth_host->yahoo_domains))
344
- {
345
- $mail_bank_auth_host->yahoo_authentication();
346
- }
347
- }
348
- else
349
- {
350
- $update_email_configuration_data_array = array();
351
- $where = array();
352
- $where["meta_key"] = "email_configuration";
353
- $update_email_configuration_data_array["meta_value"] = serialize($update_email_configuration_array);
354
- $obj_dbHelper_mail_bank->updateCommand(mail_bank_meta(),$update_email_configuration_data_array,$where);
355
- }
356
- }
357
- break;
358
-
359
- case "error_logs_module":
360
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "","clear_error_logs_nonce"))
361
- {
362
- if(file_exists(MAIL_BANK_ERROR_LOGS_FILE))
363
- {
364
- file_put_contents(MAIL_BANK_ERROR_LOGS_FILE,"");
365
- }
366
- }
367
- break;
368
-
369
- case "mail_bank_connectivity_test":
370
- if(wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "connectivity_test_nonce"))
371
- {
372
- $host = isset($_REQUEST["smtp_host"]) ? esc_attr($_REQUEST["smtp_host"]) : "";
373
- $ports = array(25, 587, 465, 2525, 4065, 25025);
374
- $ports_result = array();
375
- foreach ($ports as $port)
376
- {
377
- $connection = @fsockopen($host, $port);
378
- if(is_resource($connection))
379
- {
380
- $ports_result[$port] = "Open";
381
- fclose($connection);
382
- }
383
- else
384
- {
385
- $ports_result[$port] = "Close";
386
- }
387
- }
388
- foreach($ports_result as $results => $val)
389
- {
390
- ?>
391
- <tr>
392
- <td>
393
- <?php echo $mb_smtp;?>
394
- </td>
395
- <td>
396
- <?php echo $host .":". intval($results);?>
397
- </td>
398
- <td>
399
- <span style="<?php echo $val == 'Close' ? 'color:red' : "";?>"><?php echo $val;?>
400
- </td>
401
- </tr>
402
- <?php
403
- }
404
- }
405
- break;
406
- }
407
- die();
408
- }
409
- }
410
}
411
?>
1
<?php
2
/**
3
+ * This file is used for managing data in database.
4
+ *
5
+ * @author Tech Banker
6
+ * @package wp-mail-bank/lib
7
+ * @version 2.0.0
8
+ */
9
+ if (!defined("ABSPATH"))
10
+ exit; // Exit if accessed directly
11
+ if (!is_user_logged_in()) {
12
+ return;
13
+ } else {
14
+ $access_granted = false;
15
+ foreach ($user_role_permission as $permission) {
16
+ if (current_user_can($permission)) {
17
+ $access_granted = true;
18
+ break;
19
+ }
20
+ }
21
+ if (!$access_granted) {
22
+ return;
23
+ } else {
24
+ if (!function_exists("get_mail_bank_details_unserialize")) {
25
+
26
+ function get_mail_bank_details_unserialize($email_data_manage, $mb_date1, $mb_date2) {
27
+ $email_details = array();
28
+ foreach ($email_data_manage as $raw_row) {
29
+ $unserialize_data = unserialize($raw_row->meta_value);
30
+ $unserialize_data["id"] = $raw_row->id;
31
+ $unserialize_data["meta_id"] = $raw_row->meta_id;
32
+ if ($unserialize_data["timestamp"] >= $mb_date1 && $unserialize_data["timestamp"] <= $mb_date2)
33
+ array_push($email_details, $unserialize_data);
34
+ }
35
+ return $email_details;
36
+ }
37
+
38
+ }
39
+
40
+ if (isset($_REQUEST["param"])) {
41
+ $obj_dbHelper_mail_bank = new dbHelper_mail_bank();
42
+ switch (esc_attr($_REQUEST["param"])) {
43
+ case "wizard_wp_mail_bank":
44
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "wp_mail_bank_check_status")) {
45
+ $type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
46
+ update_option("wp-mail-bank-wizard-set-up", $type);
47
+ if ($type == "opt_in") {
48
+ $plugin_info_wp_mail_bank = new plugin_info_wp_mail_bank();
49
+
50
+ global $wp_version;
51
+
52
+ $url = tech_banker_stats_url . "/wp-admin/admin-ajax.php";
53
+
54
+ $theme_details = array();
55
+ if ($wp_version >= 3.4) {
56
+ $active_theme = wp_get_theme();
57
+ $theme_details["theme_name"] = strip_tags($active_theme->Name);
58
+ $theme_details["theme_version"] = strip_tags($active_theme->Version);
59
+ $theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
60
+ }
61
+
62
+ $plugin_stat_data = array();
63
+ $plugin_stat_data["plugin_slug"] = "wp-mail-bank";
64
+ $plugin_stat_data["type"] = "standard_edition";
65
+ $plugin_stat_data["version_number"] = mail_bank_version_number;
66
+ $plugin_stat_data["status"] = $type;
67
+ $plugin_stat_data["event"] = "activate";
68
+ $plugin_stat_data["domain_url"] = site_url();
69
+ $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
70
+ $plugin_stat_data["email"] = get_option("admin_email");
71
+ $plugin_stat_data["wp_version"] = $wp_version;
72
+ $plugin_stat_data["php_version"] = esc_html(phpversion());
73
+ $plugin_stat_data["mysql_version"] = $wpdb->db_version();
74
+ $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
75
+ $plugin_stat_data["operating_system"] = PHP_OS . " (" . PHP_INT_SIZE * 8 . ") BIT";
76
+ $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
77
+ $plugin_stat_data["extensions"] = get_loaded_extensions();
78
+ $plugin_stat_data["plugins"] = $plugin_info_wp_mail_bank->get_plugin_info_wp_mail_bank();
79
+ $plugin_stat_data["themes"] = $theme_details;
80
+
81
+
82
+ if (function_exists("curl_init")) {
83
+ $ch = curl_init();
84
+ curl_setopt($ch, CURLOPT_URL, $url);
85
+ curl_setopt($ch, CURLOPT_POST, 1);
86
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
87
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
88
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
89
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
90
+ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array("data" => serialize($plugin_stat_data), "site_id" => get_option("mb_tech_banker_site_id") != "" ? get_option("mb_tech_banker_site_id") : "", "action" => "plugin_analysis_data")));
91
+ $result = curl_exec($ch);
92
+ update_option("mb_tech_banker_site_id", $result);
93
+ curl_close($ch);
94
+ } else {
95
+ $response = wp_safe_remote_post($url, array
96
+ (
97
+ "method" => "POST",
98
+ "timeout" => 45,
99
+ "redirection" => 5,
100
+ "httpversion" => "1.0",
101
+ "blocking" => false,
102
+ "headers" => array(),
103
+ "body" => array("data" => serialize($plugin_stat_data), "site_id" => get_option("mb_tech_banker_site_id") != "" ? get_option("mb_tech_banker_site_id") : "", "action" => "plugin_analysis_data")
104
+ ));
105
+
106
+ if (!is_wp_error($response)) {
107
+ $response["body"] != "" ? update_option("mb_tech_banker_site_id", $response["body"]) : "";
108
+ } else {
109
+ update_option("mb_tech_banker_site_id", "error");
110
+ }
111
+ }
112
+ }
113
+ }
114
+ break;
115
+
116
+ case "mail_bank_set_hostname_port_module":
117
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_set_hostname_port")) {
118
+ $smtp_user = isset($_REQUEST["smtp_user"]) ? esc_attr($_REQUEST["smtp_user"]) : "";
119
+ $hostname = substr(strrchr($smtp_user, "@"), 1);
120
+ $obj_mail_bank_discover_host = new mail_bank_discover_host();
121
+ $hostname_to_set = $obj_mail_bank_discover_host->get_smtp_from_email($hostname);
122
+ echo $hostname_to_set;
123
+ }
124
+ break;
125
+
126
+ case "mail_bank_test_email_configuration_module":
127
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_test_email_configuration")) {
128
+ parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "", $form_data);
129
+ global $phpmailer;
130
+ $logs = array();
131
+ if (!is_object($phpmailer) || !is_a($phpmailer, "PHPMailer")) {
132
+ if (file_exists(ABSPATH . WPINC . "/class-phpmailer.php"))
133
+ require_once ABSPATH . WPINC . "/class-phpmailer.php";
134
+
135
+ if (file_exists(ABSPATH . WPINC . "/class-smtp.php"))
136
+ require_once ABSPATH . WPINC . "/class-smtp.php";
137
+
138
+ $phpmailer = new PHPMailer(true);
139
+ }
140
+ $phpmailer->SMTPDebug = true;
141
+
142
+ $to = esc_attr($form_data["ux_txt_email"]);
143
+ $subject = stripcslashes(htmlspecialchars_decode($form_data["ux_txt_subject"], ENT_QUOTES));
144
+ $message = htmlspecialchars_decode(!empty($form_data["ux_email_configuration_text_area"]) ? esc_attr($form_data["ux_email_configuration_text_area"]) : "This is a demo Test Email for Email Setup - Mail Bank");
145
+ $headers = "Content-Type: text/html; charset= utf-8" . "\r\n";
146
+ $result = wp_mail($to, $subject, $message, $headers);
147
+ $mb_email_configuration_data = $wpdb->get_row
148
+ (
149
+ $wpdb->prepare
150
+ (
151
+ "SELECT meta_value FROM " . mail_bank_meta() .
152
+ " WHERE meta_key = %s", "email_configuration"
153
+ )
154
+ );
155
+ $unserialized_email_configuration_data = unserialize($mb_email_configuration_data->meta_value);
156
+
157
+ $settings_data = $wpdb->get_var
158
+ (
159
+ $wpdb->prepare
160
+ (
161
+ "SELECT meta_value FROM " . mail_bank_meta() .
162
+ " WHERE meta_key=%s", "settings"
163
+ )
164
+ );
165
+ $settings_data_array = unserialize($settings_data);
166
+ $debugging_output = "";
167
+
168
+ if ($unserialized_email_configuration_data["mailer_type"] == "smtp") {
169
+ $mail_bank_mail_status = get_option("mail_bank_mail_status");
170
+ if ($settings_data_array["debug_mode"] == "enable") {
171
+ $debugging_output .= $mb_email_configuration_send_test_email_textarea . "\n";
172
+ $debugging_output .= $mb_test_email_sending_test_email . " " . $to . "\n";
173
+ $debugging_output .= $mb_test_email_status . " : ";
174
+ $debugging_output .= get_option("mail_bank_is_mail_sent") == "Sent" ? $mb_status_sent : $mb_status_not_sent;
175
+ $debugging_output .= "\n----------------------------------------------------------------------------------------\n";
176
+ $debugging_output .= $mb_email_logs_debugging_output . " :\n";
177
+ $debugging_output .= "----------------------------------------------------------------------------------------\n";
178
+ }
179
+ $debugging_output .= $mail_bank_mail_status;
180
+ echo $debugging_output;
181
+ } else {
182
+ $to_address = $phpmailer->getToAddresses();
183
+
184
+ $email_logs_data_array = array();
185
+ $email_logs_data_array["email_to"] = $to_address[0][0];
186
+
187
+ if ($settings_data_array["monitor_email_logs"] == "enable") {
188
+ $email_logs_data_array["sender_name"] = $unserialized_email_configuration_data["sender_name"];
189
+ $email_logs_data_array["sender_email"] = $unserialized_email_configuration_data["sender_email"];
190
+ $email_logs_data_array["cc"] = "";
191
+ $email_logs_data_array["bcc"] = "";
192
+ $email_logs_data_array["subject"] = $phpmailer->Subject;
193
+ $email_logs_data_array["content"] = $phpmailer->Body;
194
+ $email_logs_data_array["timestamp"] = MAIL_BANK_LOCAL_TIME;
195
+
196
+ if ($result == "true" || $result == "1") {
197
+ $email_logs_data_array["status"] = "Sent";
198
+ } else {
199
+ $email_logs_data_array["status"] = "Not Sent";
200
+ }
201
+ $email_logs_id = $wpdb->get_var
202
+ (
203
+ $wpdb->prepare
204
+ (
205
+ "SELECT id FROM " . mail_bank() .
206
+ " WHERE type = %s", "email_logs"
207
+ )
208
+ );
209
+
210
+ $email_logs_data = array();
211
+ $email_logs_data["meta_id"] = $email_logs_id;
212
+ $email_logs_data["meta_key"] = "email_logs";
213
+ $email_logs_data["meta_value"] = serialize($email_logs_data_array);
214
+ $obj_dbHelper_mail_bank->insertCommand(mail_bank_meta(), $email_logs_data);
215
+ }
216
+ echo $result;
217
+ }
218
+ }
219
+ break;
220
+
221
+ case "mail_bank_settings_module":
222
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_settings")) {
223
+ parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "", $settings_array);
224
+
225
+ $settings_data = array();
226
+ $settings_data["automatic_plugin_update"] = esc_attr($settings_array["ux_ddl_automatic_plugin_updates"]);
227
+ $settings_data["debug_mode"] = esc_attr($settings_array["ux_ddl_debug_mode"]);
228
+ $settings_data["remove_tables_at_uninstall"] = esc_attr($settings_array["ux_ddl_remove_tables"]);
229
+ $settings_data["monitor_email_logs"] = esc_attr($settings_array["ux_ddl_monitor_email_logs"]);
230
+ $settings_data["error_reporting"] = esc_attr($settings_array["ux_ddl_error_reporting"]);
231
+
232
+ $where = array();
233
+ $settings_data_array = array();
234
+ $where["meta_key"] = "settings";
235
+ $settings_data_array["meta_value"] = serialize($settings_data);
236
+ $obj_dbHelper_mail_bank->updateCommand(mail_bank_meta(), $settings_data_array, $where);
237
+ }
238
+ break;
239
+
240
+ case "mail_bank_email_configuration_settings_module":
241
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "mail_bank_email_configuration_settings")) {
242
+ parse_str(isset($_REQUEST["data"]) ? base64_decode($_REQUEST["data"]) : "", $form_data);
243
+ $update_email_configuration_array = array();
244
+ $update_email_configuration_array["email_address"] = esc_attr($form_data["ux_txt_email_address"]);
245
+ $update_email_configuration_array["reply_to"] = "";
246
+ $update_email_configuration_array["cc"] = "";
247
+ $update_email_configuration_array["bcc"] = "";
248
+ $update_email_configuration_array["mailer_type"] = esc_attr($form_data["ux_ddl_type"]);
249
+ $update_email_configuration_array["sender_name_configuration"] = esc_attr($form_data["ux_ddl_from_name"]);
250
+ $update_email_configuration_array["sender_name"] = isset($form_data["ux_txt_mb_from_name"]) ? esc_html($form_data["ux_txt_mb_from_name"]) : "";
251
+ $update_email_configuration_array["from_email_configuration"] = esc_attr($form_data["ux_ddl_from_email"]);
252
+ $update_email_configuration_array["sender_email"] = isset($form_data["ux_txt_mb_from_email_configuration"]) ? esc_html($form_data["ux_txt_mb_from_email_configuration"]) : "";
253
+ $update_email_configuration_array["hostname"] = esc_html($form_data["ux_txt_host"]);
254
+ $update_email_configuration_array["port"] = intval($form_data["ux_txt_port"]);
255
+ $update_email_configuration_array["enc_type"] = esc_attr($form_data["ux_ddl_encryption"]);
256
+ $update_email_configuration_array["auth_type"] = esc_attr($form_data["ux_ddl_mb_authentication"]);
257
+ $update_email_configuration_array["client_id"] = esc_html(trim($form_data["ux_txt_client_id"]));
258
+ $update_email_configuration_array["client_secret"] = esc_html(trim($form_data["ux_txt_client_secret"]));
259
+ $update_email_configuration_array["username"] = esc_html($form_data["ux_txt_username"]);
260
+ $update_email_configuration_array["automatic_mail"] = isset($form_data["ux_chk_automatic_sent_mail"]) ? esc_html($form_data["ux_chk_automatic_sent_mail"]) : "";
261
+
262
+ if (preg_match('/^\**#x2F;', $form_data["ux_txt_password"])) {
263
+ $email_configuration_data = $wpdb->get_var
264
+ (
265
+ $wpdb->prepare
266
+ (
267
+ "SELECT meta_value FROM " . mail_bank_meta() .
268
+ " WHERE meta_key=%s", "email_configuration"
269
+ )
270
+ );
271
+ $email_configuration_array = unserialize($email_configuration_data);
272
+ $update_email_configuration_array["password"] = $email_configuration_array["password"];
273
+ } else {
274
+ $update_email_configuration_array["password"] = base64_encode(esc_html($form_data["ux_txt_password"]));
275
+ }
276
+
277
+ $update_email_configuration_array["redirect_uri"] = esc_html($form_data["ux_txt_redirect_uri"]);
278
+
279
+ update_option("update_email_configuration", $update_email_configuration_array);
280
+
281
+ $mail_bank_auth_host = new mail_bank_auth_host($update_email_configuration_array);
282
+ if (!in_array($form_data["ux_txt_host"], $mail_bank_auth_host->oauth_domains) && $form_data["ux_ddl_mb_authentication"] == "oauth2") {
283
+ echo "100";
284
+ die();
285
+ }
286
+
287
+ if ($update_email_configuration_array["auth_type"] == "oauth2" && $update_email_configuration_array["mailer_type"] == "smtp") {
288
+ if ($update_email_configuration_array["hostname"] == "smtp.gmail.com") {
289
+ $mail_bank_auth_host->google_authentication();
290
+ } elseif ($update_email_configuration_array["hostname"] == "smtp.live.com" && $update_email_configuration_array["mailer_type"] == "smtp") {
291
+ $mail_bank_auth_host->microsoft_authentication();
292
+ } elseif (in_array($update_email_configuration_array["hostname"], $mail_bank_auth_host->yahoo_domains)) {
293
+ $mail_bank_auth_host->yahoo_authentication();
294
+ }
295
+ } else {
296
+ $update_email_configuration_data_array = array();
297
+ $where = array();
298
+ $where["meta_key"] = "email_configuration";
299
+ $update_email_configuration_data_array["meta_value"] = serialize($update_email_configuration_array);
300
+ $obj_dbHelper_mail_bank->updateCommand(mail_bank_meta(), $update_email_configuration_data_array, $where);
301
+ }
302
+ }
303
+ break;
304
+
305
+ case "error_logs_module":
306
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "clear_error_logs_nonce")) {
307
+ if (file_exists(MAIL_BANK_ERROR_LOGS_FILE)) {
308
+ file_put_contents(MAIL_BANK_ERROR_LOGS_FILE, "");
309
+ }
310
+ }
311
+ break;
312
+
313
+ case "mail_bank_connectivity_test":
314
+ if (wp_verify_nonce(isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : "", "connectivity_test_nonce")) {
315
+ $host = isset($_REQUEST["smtp_host"]) ? esc_attr($_REQUEST["smtp_host"]) : "";
316
+ $ports = array(25, 587, 465, 2525, 4065, 25025);
317
+ $ports_result = array();
318
+ foreach ($ports as $port) {
319
+ $connection = @fsockopen($host, $port);
320
+ if (is_resource($connection)) {
321
+ $ports_result[$port] = "Open";
322
+ fclose($connection);
323
+ } else {
324
+ $ports_result[$port] = "Close";
325
+ }
326
+ }
327
+ foreach ($ports_result as $results => $val) {
328
+ ?>
329
+ <tr>
330
+ <td>
331
+ <?php echo $mb_smtp; ?>
332
+ </td>
333
+ <td>
334
+ <?php echo $host . ":" . intval($results); ?>
335
+ </td>
336
+ <td>
337
+ <span style="<?php echo $val == 'Close' ? 'color:red' : ""; ?>"><?php echo $val; ?>
338
+ </td>
339
+ </tr>
340
+ <?php
341
+ }
342
+ }
343
+ break;
344
+ }
345
+ die();
346
+ }
347
+ }
348
}
349
?>
lib/admin-bar-menu.php CHANGED
@@ -50,7 +50,7 @@ else
50
}
51
else
52
{
53
- $mb_role = check_user_roles_mail_bank($current_user);
54
}
55
switch($mb_role)
56
{
50
}
51
else
52
{
53
+ $mb_role = check_user_roles_mail_bank();
54
}
55
switch($mb_role)
56
{
lib/helper.php CHANGED
@@ -213,7 +213,6 @@ else
213
}
214
}
215
216
-
217
if(!class_exists("plugin_info_wp_mail_bank"))
218
{
219
class plugin_info_wp_mail_bank
213
}
214
}
215
216
if(!class_exists("plugin_info_wp_mail_bank"))
217
{
218
class plugin_info_wp_mail_bank
lib/sidebar-menu.php CHANGED
@@ -50,7 +50,7 @@ else
50
}
51
else
52
{
53
- $mb_role = check_user_roles_mail_bank($current_user);
54
}
55
switch($mb_role)
56
{
@@ -134,33 +134,33 @@ else
134
135
136
/*
137
- Function Name: wp_mail_bank_wizard
138
- Parameters: No
139
- Description: This function is used for creating wp_mail_bank_wizard.
140
- Created On: 21-04-2017 10:17
141
- Created By: Tech Banker Team
142
- */
143
-
144
- if(!function_exists("wp_mail_bank_wizard"))
145
- {
146
- function wp_mail_bank_wizard()
147
{
148
- global $wpdb;
149
- $user_role_permission = get_users_capabilities_mail_bank();
150
- if(file_exists(MAIL_BANK_DIR_PATH."includes/translations.php"))
151
- {
152
- include MAIL_BANK_DIR_PATH."includes/translations.php";
153
- }
154
- if(file_exists(MAIL_BANK_DIR_PATH."views/wizard/wizard.php"))
155
- {
156
- include_once MAIL_BANK_DIR_PATH."views/wizard/wizard.php";
157
- }
158
- if(file_exists(MAIL_BANK_DIR_PATH."includes/footer.php"))
159
{
160
- include_once MAIL_BANK_DIR_PATH."includes/footer.php";
161
}
162
}
163
- }
164
/*
165
Function Name: mb_email_configuration
166
Parameters: No
@@ -366,7 +366,6 @@ else
366
}
367
}
368
369
-
370
/*
371
Function Name: mb_roles_and_capabilities
372
Parameters: No
50
}
51
else
52
{
53
+ $mb_role = check_user_roles_mail_bank();
54
}
55
switch($mb_role)
56
{
134
135
136
/*
137
+ Function Name: wp_mail_bank_wizard
138
+ Parameters: No
139
+ Description: This function is used for creating wp_mail_bank_wizard.
140
+ Created On: 21-04-2017 10:17
141
+ Created By: Tech Banker Team
142
+ */
143
+
144
+ if(!function_exists("wp_mail_bank_wizard"))
145
{
146
+ function wp_mail_bank_wizard()
147
{
148
+ global $wpdb;
149
+ $user_role_permission = get_users_capabilities_mail_bank();
150
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/translations.php"))
151
+ {
152
+ include MAIL_BANK_DIR_PATH."includes/translations.php";
153
+ }
154
+ if(file_exists(MAIL_BANK_DIR_PATH."views/wizard/wizard.php"))
155
+ {
156
+ include_once MAIL_BANK_DIR_PATH."views/wizard/wizard.php";
157
+ }
158
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/footer.php"))
159
+ {
160
+ include_once MAIL_BANK_DIR_PATH."includes/footer.php";
161
+ }
162
}
163
}
164
/*
165
Function Name: mb_email_configuration
166
Parameters: No
366
}
367
}
368
369
/*
370
Function Name: mb_roles_and_capabilities
371
Parameters: No
lib/uninstall-script.php CHANGED
@@ -20,16 +20,19 @@ else
20
}
21
else
22
{
23
- global $wp_version, $wpdb;
24
$user_role_permission = get_users_capabilities_mail_bank();
25
if(file_exists(MAIL_BANK_DIR_PATH."lib/helper.php"))
26
{
27
include_once MAIL_BANK_DIR_PATH."lib/helper.php";
28
}
29
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
30
- $type = get_option("wp-mail-bank-wizard-set-up");
31
32
- delete_option("wp-mail-bank-wizard-set-up");
33
34
$theme_details = array();
35
@@ -48,21 +51,17 @@ else
48
$plugin_stat_data["event"] = "uninstall";
49
$plugin_stat_data["domain_url"] = site_url();
50
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
51
- switch($type)
52
- {
53
- case "opt_in" :
54
- $plugin_stat_data["email"] = get_option("admin_email");
55
- $plugin_stat_data["wp_version"] = $wp_version;
56
- $plugin_stat_data["php_version"] = esc_html(phpversion());
57
- $plugin_stat_data["mysql_version"] = $wpdb->db_version();
58
- $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
59
- $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
60
- $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
61
- $plugin_stat_data["extensions"] = get_loaded_extensions();
62
- $plugin_stat_data["plugins"] = plugin_info_wp_mail_bank::get_plugin_info_wp_mail_bank();
63
- $plugin_stat_data["themes"] = $theme_details;
64
- break;
65
- }
66
67
if(function_exists("curl_init"))
68
{
@@ -100,6 +99,8 @@ else
100
delete_option("mb_tech_banker_site_id");
101
}
102
}
103
// Drop Tables
104
global $wpdb;
105
$settings_remove_tables = $wpdb->get_var
20
}
21
else
22
{
23
+ $type = get_option("wp-mail-bank-wizard-set-up");
24
+ delete_option("wp-mail-bank-wizard-set-up");
25
+ if($type == "opt_in")
26
+ {
27
+ global $wp_version, $wpdb;
28
$user_role_permission = get_users_capabilities_mail_bank();
29
if(file_exists(MAIL_BANK_DIR_PATH."lib/helper.php"))
30
{
31
include_once MAIL_BANK_DIR_PATH."lib/helper.php";
32
}
33
+ $plugin_info_wp_mail_bank = new plugin_info_wp_mail_bank();
34
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
35
36
37
$theme_details = array();
38
51
$plugin_stat_data["event"] = "uninstall";
52
$plugin_stat_data["domain_url"] = site_url();
53
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
54
+ $plugin_stat_data["email"] = get_option("admin_email");
55
+ $plugin_stat_data["wp_version"] = $wp_version;
56
+ $plugin_stat_data["php_version"] = esc_html(phpversion());
57
+ $plugin_stat_data["mysql_version"] = $wpdb->db_version();
58
+ $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
59
+ $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
60
+ $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
61
+ $plugin_stat_data["extensions"] = get_loaded_extensions();
62
+ $plugin_stat_data["plugins"] = $plugin_info_wp_mail_bank->get_plugin_info_wp_mail_bank();
63
+ $plugin_stat_data["themes"] = $theme_details;
64
+
65
66
if(function_exists("curl_init"))
67
{
99
delete_option("mb_tech_banker_site_id");
100
}
101
}
102
+ }
103
+
104
// Drop Tables
105
global $wpdb;
106
$settings_remove_tables = $wpdb->get_var
lib/zend/mail/protocol/smtp.php CHANGED
@@ -218,15 +218,18 @@ class mail_bank_Zend_Mail_Protocol_Smtp extends mail_bank_Zend_Mail_Protocol_Abs
218
$this->_expect(220, 180);
219
stream_context_set_option($this->_socket, 'ssl', 'verify_peer', false);
220
stream_context_set_option($this->_socket, 'ssl', 'verify_peer_name', false);
221
- if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))
222
{
223
- /**
224
- * @see mail_bank_Zend_Mail_Protocol_Exception
225
- */
226
- if(file_exists(MAIL_BANK_DIR_PATH.'lib/zend/mail/protocol/exception.php'))
227
- require_once MAIL_BANK_DIR_PATH.'lib/zend/mail/protocol/exception.php';
228
229
- throw new mail_bank_Zend_Mail_Protocol_Exception('Unable to connect via TLS');
230
}
231
$this->_ehlo($host);
232
}
218
$this->_expect(220, 180);
219
stream_context_set_option($this->_socket, 'ssl', 'verify_peer', false);
220
stream_context_set_option($this->_socket, 'ssl', 'verify_peer_name', false);
221
+ if(extension_loaded("openssl"))
222
{
223
+ if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))
224
+ {
225
+ /**
226
+ * @see mail_bank_Zend_Mail_Protocol_Exception
227
+ */
228
+ if(file_exists(MAIL_BANK_DIR_PATH.'lib/zend/mail/protocol/exception.php'))
229
+ require_once MAIL_BANK_DIR_PATH.'lib/zend/mail/protocol/exception.php';
230
231
+ throw new mail_bank_Zend_Mail_Protocol_Exception('Unable to connect via TLS');
232
+ }
233
}
234
$this->_ehlo($host);
235
}
lib/zend/validate/hostname.php CHANGED
@@ -1757,13 +1757,18 @@ class mail_bank_Zend_Validate_Hostname extends mail_bank_Zend_Validate_Abstract
1757
if((count($domainParts) > 1) && (strlen($value) >= 4) && (strlen($value) <= 254))
1758
{
1759
$status = false;
<