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

Version Description

  • Security Patch Fixed
  • Few Urgent Bugs Fixed
Download this release

Release Info

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

Code changes from version 1.46 to 1.47

lib/add_mail_class_file.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
lib/wp-include-menus.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  //--------------------------------------------------------------------------------------------------------------//
3
  // CODE FOR CREATING MENUS
4
  //---------------------------------------------------------------------------------------------------------------//
@@ -44,11 +45,11 @@ else
44
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
45
  break;
46
  }
47
-
48
  //--------------------------------------------------------------------------------------------------------------//
49
  // CODE FOR CREATING PAGES
50
  //---------------------------------------------------------------------------------------------------------------//
51
-
52
  if(!function_exists( "smtp_mail" ))
53
  {
54
  function smtp_mail()
@@ -64,8 +65,14 @@ else
64
  $current_user->role = array_keys($current_user->$role);
65
  $role = $current_user->role[0];
66
  }
67
- include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
68
- include_once MAIL_BK_PLUGIN_DIR ."/views/mail_settings.php";
 
 
 
 
 
 
69
  }
70
  }
71
  if(!function_exists( "mail_system_status" ))
@@ -83,8 +90,14 @@ else
83
  $current_user->role = array_keys($current_user->$role);
84
  $role = $current_user->role[0];
85
  }
86
- include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
87
- include_once MAIL_BK_PLUGIN_DIR . "/views/wp_system_status.php";
 
 
 
 
 
 
88
  }
89
  }
90
  if(!function_exists( "send_test_email" ))
@@ -102,8 +115,14 @@ else
102
  $current_user->role = array_keys($current_user->$role);
103
  $role = $current_user->role[0];
104
  }
105
- include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
106
- include_once MAIL_BK_PLUGIN_DIR . "/views/test_email.php";
 
 
 
 
 
 
107
  }
108
  }
109
  if(!function_exists( "recommended_plugins" ))
@@ -181,7 +200,7 @@ else
181
  }
182
  }
183
  }
184
-
185
  if(!function_exists( "mail_feature_requests" ))
186
  {
187
  function mail_feature_requests()
@@ -208,4 +227,4 @@ else
208
  }
209
  }
210
  }
211
- ?>
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  //--------------------------------------------------------------------------------------------------------------//
4
  // CODE FOR CREATING MENUS
5
  //---------------------------------------------------------------------------------------------------------------//
45
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
46
  break;
47
  }
48
+
49
  //--------------------------------------------------------------------------------------------------------------//
50
  // CODE FOR CREATING PAGES
51
  //---------------------------------------------------------------------------------------------------------------//
52
+
53
  if(!function_exists( "smtp_mail" ))
54
  {
55
  function smtp_mail()
65
  $current_user->role = array_keys($current_user->$role);
66
  $role = $current_user->role[0];
67
  }
68
+ if(file_exists(MAIL_BK_PLUGIN_DIR ."/views/mail_header.php"))
69
+ {
70
+ include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
71
+ }
72
+ if(file_exists(MAIL_BK_PLUGIN_DIR ."/views/mail_settings.php"))
73
+ {
74
+ include_once MAIL_BK_PLUGIN_DIR ."/views/mail_settings.php";
75
+ }
76
  }
77
  }
78
  if(!function_exists( "mail_system_status" ))
90
  $current_user->role = array_keys($current_user->$role);
91
  $role = $current_user->role[0];
92
  }
93
+ if(file_exists(MAIL_BK_PLUGIN_DIR ."/views/mail_header.php"))
94
+ {
95
+ include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
96
+ }
97
+ if(file_exists(MAIL_BK_PLUGIN_DIR . "/views/wp_system_status.php"))
98
+ {
99
+ include_once MAIL_BK_PLUGIN_DIR . "/views/wp_system_status.php";
100
+ }
101
  }
102
  }
103
  if(!function_exists( "send_test_email" ))
115
  $current_user->role = array_keys($current_user->$role);
116
  $role = $current_user->role[0];
117
  }
118
+ if(file_exists(MAIL_BK_PLUGIN_DIR ."/views/mail_header.php"))
119
+ {
120
+ include_once MAIL_BK_PLUGIN_DIR ."/views/mail_header.php";
121
+ }
122
+ if(file_exists(MAIL_BK_PLUGIN_DIR . "/views/test_email.php"))
123
+ {
124
+ include_once MAIL_BK_PLUGIN_DIR . "/views/test_email.php";
125
+ }
126
  }
127
  }
128
  if(!function_exists( "recommended_plugins" ))
200
  }
201
  }
202
  }
203
+
204
  if(!function_exists( "mail_feature_requests" ))
205
  {
206
  function mail_feature_requests()
227
  }
228
  }
229
  }
230
+ ?>
lib/wp-install-script.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  if(!function_exists("create_table_mail_detail"))
3
  {
4
  function create_table_mail_detail()
@@ -55,4 +56,4 @@ if($option_auto_update_mail)
55
  {
56
  update_option("mail-bank-automatic-update", "1");
57
  }
58
- ?>
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  if(!function_exists("create_table_mail_detail"))
4
  {
5
  function create_table_mail_detail()
56
  {
57
  update_option("mail-bank-automatic-update", "1");
58
  }
59
+ ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer, mail bank
4
  Requires at least: 2.7
5
  Tested up to: 4.6
6
- Stable tag: 1.46
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
@@ -222,6 +222,11 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
222
 
223
  == Changelog ==
224
 
 
 
 
 
 
225
  = 1.46 =
226
 
227
  * Compatibility with 4.6
3
  Tags: email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer, mail bank
4
  Requires at least: 2.7
5
  Tested up to: 4.6
6
+ Stable tag: 1.47
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
222
 
223
  == Changelog ==
224
 
225
+ = 1.47 =
226
+
227
+ * Security Patch Fixed
228
+ * Few Urgent Bugs Fixed
229
+
230
  = 1.46 =
231
 
232
  * Compatibility with 4.6
views/automatic-plugin-update.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  if (!is_user_logged_in())
3
  {
4
  return;
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  if (!is_user_logged_in())
4
  {
5
  return;
views/mail-feedback.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
views/mail_header.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
views/mail_settings.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  switch($role)
4
  {
5
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
views/other-services.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
@@ -341,7 +342,7 @@ else
341
  </div>
342
  <div class="plugin-card-bottom_settings">
343
  <div class="vers column-rating">
344
-
345
  </div>
346
  <div class="column-downloaded">
347
  <strong><?php _e("Cost of this Service is 799 Pounds.", tech_bank); ?></strong><br/>
@@ -894,7 +895,7 @@ else
894
  </div>
895
  <div class="plugin-card-bottom_settings">
896
  <div class="vers column-rating">
897
-
898
  </div>
899
  <div class="column-downloaded">
900
  <strong><?php _e("Cost of this Service is 499 Pounds.", tech_bank); ?></strong><br/>
@@ -925,7 +926,7 @@ else
925
  </div>
926
  <div class="plugin-card-bottom_settings">
927
  <div class="vers column-rating">
928
-
929
  </div>
930
  <div class="column-downloaded">
931
  <strong><?php _e("Cost of this Service is 499 Pounds.", tech_bank); ?></strong><br/>
@@ -967,7 +968,7 @@ else
967
  <div id="ecommerce" class="framework_tab">
968
  <div class="wp-list-table plugin-install">
969
  <div id="the-list">
970
-
971
  <div class="service-div-settings">
972
  <div class="service-div-settings-top">
973
  <div class="service-div-inner-content">
@@ -1162,8 +1163,8 @@ else
1162
  </div>
1163
  </div>
1164
  </div>
1165
-
1166
-
1167
  <div class="service-div-settings">
1168
  <div class="service-div-settings-top">
1169
  <div class="service-div-inner-content">
@@ -1250,6 +1251,6 @@ else
1250
  e.preventDefault();
1251
  });
1252
  </script>
1253
- <?php
1254
  }
1255
- ?>
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
342
  </div>
343
  <div class="plugin-card-bottom_settings">
344
  <div class="vers column-rating">
345
+
346
  </div>
347
  <div class="column-downloaded">
348
  <strong><?php _e("Cost of this Service is 799 Pounds.", tech_bank); ?></strong><br/>
895
  </div>
896
  <div class="plugin-card-bottom_settings">
897
  <div class="vers column-rating">
898
+
899
  </div>
900
  <div class="column-downloaded">
901
  <strong><?php _e("Cost of this Service is 499 Pounds.", tech_bank); ?></strong><br/>
926
  </div>
927
  <div class="plugin-card-bottom_settings">
928
  <div class="vers column-rating">
929
+
930
  </div>
931
  <div class="column-downloaded">
932
  <strong><?php _e("Cost of this Service is 499 Pounds.", tech_bank); ?></strong><br/>
968
  <div id="ecommerce" class="framework_tab">
969
  <div class="wp-list-table plugin-install">
970
  <div id="the-list">
971
+
972
  <div class="service-div-settings">
973
  <div class="service-div-settings-top">
974
  <div class="service-div-inner-content">
1163
  </div>
1164
  </div>
1165
  </div>
1166
+
1167
+
1168
  <div class="service-div-settings">
1169
  <div class="service-div-settings-top">
1170
  <div class="service-div-inner-content">
1251
  e.preventDefault();
1252
  });
1253
  </script>
1254
+ <?php
1255
  }
1256
+ ?>
views/recommended-plugins.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
@@ -46,20 +47,20 @@ else
46
  'number' => 0,
47
  );
48
  $r = wp_parse_args( $args, $defaults );
49
-
50
  // Non-english decimal places when the $rating is coming from a string
51
  $rating = str_replace( ',', '.', $r['rating'] );
52
-
53
  // Convert Percentage to star rating, 0..5 in .5 increments
54
  if ( 'percent' == $r['type'] ) {
55
  $rating = round( $rating / 10, 0 ) / 2;
56
  }
57
-
58
  // Calculate the number of each type of star needed
59
  $full_stars = floor( $rating );
60
  $half_stars = ceil( $rating - $full_stars );
61
  $empty_stars = 5 - $full_stars - $half_stars;
62
-
63
  if ( $r['number'] ) {
64
  /* translators: 1: The rating, 2: The number of ratings */
65
  $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
@@ -68,7 +69,7 @@ else
68
  /* translators: 1: The rating */
69
  $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
70
  }
71
-
72
  echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
73
  echo '<span class="screen-reader-text">' . $title . '</span>';
74
  echo str_repeat( '<div class="star star-full"></div>', $full_stars );
@@ -89,8 +90,8 @@ else
89
  <div class="layout-span12">
90
  <div class="wp-list-table plugin-install">
91
  <div id="the-list">
92
- <?php
93
- foreach ((array) $item as $plugin)
94
  {
95
  if (is_object( $plugin))
96
  {
@@ -99,16 +100,16 @@ else
99
  if (!empty($plugin["icons"]["svg"]))
100
  {
101
  $plugin_icon_url = $plugin["icons"]["svg"];
102
- }
103
- elseif (!empty( $plugin["icons"]["2x"]))
104
  {
105
  $plugin_icon_url = $plugin["icons"]["2x"];
106
- }
107
  elseif (!empty( $plugin["icons"]["1x"]))
108
  {
109
  $plugin_icon_url = $plugin["icons"]["1x"];
110
- }
111
- else
112
  {
113
  $plugin_icon_url = $plugin["icons"]["default"];
114
  }
@@ -126,7 +127,7 @@ else
126
  $name = strip_tags( $title . " " . $version );
127
  $details_link = self_admin_url( "plugin-install.php?tab=plugin-information&amp;plugin=" . $plugin["slug"] .
128
  "&amp;TB_iframe=true&amp;width=600&amp;height=550" );
129
-
130
  /* translators: 1: Plugin name and version. */
131
  $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf("More information about %s", $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
132
  $action_links = array();
@@ -186,7 +187,7 @@ else
186
  {
187
  echo implode("</li><li>", $action_links);
188
  }
189
-
190
  switch($plugin["slug"])
191
  {
192
  case "gallery-bank" :
@@ -217,7 +218,7 @@ else
217
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/" target="_blank" >
218
  <?php _e("Visit Website", tech_bank); ?>
219
  </a>
220
- <?php
221
  break;
222
  case "wp-clean-up-optimizer" :
223
  ?>
@@ -227,7 +228,7 @@ else
227
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/" target="_blank" >
228
  <?php _e("Visit Website", tech_bank); ?>
229
  </a>
230
- <?php
231
  break;
232
  case "google-maps-bank" :
233
  ?>
@@ -237,7 +238,7 @@ else
237
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/" target="_blank" >
238
  <?php _e("Visit Website", tech_bank); ?>
239
  </a>
240
- <?php
241
  break;
242
  }
243
  ?>
@@ -265,11 +266,11 @@ else
265
  if ( !empty($plugin["tested"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["tested"])), $plugin["tested"], ">"))
266
  {
267
  echo '<span class="compatibility-untested">' . __( "<strong>Untested</strong> with your version of WordPress" ) . '</span>';
268
- }
269
- elseif (!empty($plugin["requires"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["requires"])), $plugin["requires"], "<"))
270
  {
271
  echo '<span class="compatibility-incompatible">' . __("Incompatible with your version of WordPress") . '</span>';
272
- }
273
  else
274
  {
275
  echo '<span class="compatibility-compatible">' . __("Compatible with your version of WordPress") . '</span>';
@@ -281,7 +282,7 @@ else
281
  <?php
282
  }
283
  ?>
284
- </div>
285
  </div>
286
  </div>
287
  </div>
@@ -289,6 +290,6 @@ else
289
  </div>
290
  </div>
291
  </div>
292
- <?php
293
  }
294
- ?>
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
47
  'number' => 0,
48
  );
49
  $r = wp_parse_args( $args, $defaults );
50
+
51
  // Non-english decimal places when the $rating is coming from a string
52
  $rating = str_replace( ',', '.', $r['rating'] );
53
+
54
  // Convert Percentage to star rating, 0..5 in .5 increments
55
  if ( 'percent' == $r['type'] ) {
56
  $rating = round( $rating / 10, 0 ) / 2;
57
  }
58
+
59
  // Calculate the number of each type of star needed
60
  $full_stars = floor( $rating );
61
  $half_stars = ceil( $rating - $full_stars );
62
  $empty_stars = 5 - $full_stars - $half_stars;
63
+
64
  if ( $r['number'] ) {
65
  /* translators: 1: The rating, 2: The number of ratings */
66
  $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
69
  /* translators: 1: The rating */
70
  $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
71
  }
72
+
73
  echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
74
  echo '<span class="screen-reader-text">' . $title . '</span>';
75
  echo str_repeat( '<div class="star star-full"></div>', $full_stars );
90
  <div class="layout-span12">
91
  <div class="wp-list-table plugin-install">
92
  <div id="the-list">
93
+ <?php
94
+ foreach ((array) $item as $plugin)
95
  {
96
  if (is_object( $plugin))
97
  {
100
  if (!empty($plugin["icons"]["svg"]))
101
  {
102
  $plugin_icon_url = $plugin["icons"]["svg"];
103
+ }
104
+ elseif (!empty( $plugin["icons"]["2x"]))
105
  {
106
  $plugin_icon_url = $plugin["icons"]["2x"];
107
+ }
108
  elseif (!empty( $plugin["icons"]["1x"]))
109
  {
110
  $plugin_icon_url = $plugin["icons"]["1x"];
111
+ }
112
+ else
113
  {
114
  $plugin_icon_url = $plugin["icons"]["default"];
115
  }
127
  $name = strip_tags( $title . " " . $version );
128
  $details_link = self_admin_url( "plugin-install.php?tab=plugin-information&amp;plugin=" . $plugin["slug"] .
129
  "&amp;TB_iframe=true&amp;width=600&amp;height=550" );
130
+
131
  /* translators: 1: Plugin name and version. */
132
  $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf("More information about %s", $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
133
  $action_links = array();
187
  {
188
  echo implode("</li><li>", $action_links);
189
  }
190
+
191
  switch($plugin["slug"])
192
  {
193
  case "gallery-bank" :
218
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/" target="_blank" >
219
  <?php _e("Visit Website", tech_bank); ?>
220
  </a>
221
+ <?php
222
  break;
223
  case "wp-clean-up-optimizer" :
224
  ?>
228
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/" target="_blank" >
229
  <?php _e("Visit Website", tech_bank); ?>
230
  </a>
231
+ <?php
232
  break;
233
  case "google-maps-bank" :
234
  ?>
238
  <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/" target="_blank" >
239
  <?php _e("Visit Website", tech_bank); ?>
240
  </a>
241
+ <?php
242
  break;
243
  }
244
  ?>
266
  if ( !empty($plugin["tested"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["tested"])), $plugin["tested"], ">"))
267
  {
268
  echo '<span class="compatibility-untested">' . __( "<strong>Untested</strong> with your version of WordPress" ) . '</span>';
269
+ }
270
+ elseif (!empty($plugin["requires"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["requires"])), $plugin["requires"], "<"))
271
  {
272
  echo '<span class="compatibility-incompatible">' . __("Incompatible with your version of WordPress") . '</span>';
273
+ }
274
  else
275
  {
276
  echo '<span class="compatibility-compatible">' . __("Compatible with your version of WordPress") . '</span>';
282
  <?php
283
  }
284
  ?>
285
+ </div>
286
  </div>
287
  </div>
288
  </div>
290
  </div>
291
  </div>
292
  </div>
293
+ <?php
294
  }
295
+ ?>
views/test_email.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
views/wp_system_status.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  switch($role)
3
  {
4
  case "administrator":
1
  <?php
2
+ if(!defined("ABSPATH")) exit; //exit if accessed directly
3
  switch($role)
4
  {
5
  case "administrator":
wp-mail-bank.php CHANGED
@@ -4,14 +4,12 @@ Plugin Name: Wp Mail Bank
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
- Version: 1.46
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
11
-
12
-
13
  ///////////////////////////////////// Define WP Mail Bank Constants ////////////////////////////////////////
14
-
15
  if (!defined("MAIL_BK_PLUGIN_DIR")) define("MAIL_BK_PLUGIN_DIR", plugin_dir_path( __FILE__ ));
16
  if (!defined("MAIL_BK_PLUGIN_DIRNAME")) define("MAIL_BK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
17
  if (!defined("mail_bank")) define("mail_bank", "mail-banker");
@@ -35,7 +33,10 @@ if(!function_exists("create_global_menus_for_mail_bank"))
35
  $current_user->role = array_keys($current_user->$role);
36
  $role = $current_user->role[0];
37
  }
38
- include MAIL_BK_PLUGIN_DIR . "/lib/wp-include-menus.php";
 
 
 
39
  }
40
  }
41
 
@@ -153,7 +154,10 @@ if(isset($_REQUEST["action"]))
153
  $current_user->role = array_keys($current_user->$role);
154
  $role = $current_user->role[0];
155
  }
156
- include MAIL_BK_PLUGIN_DIR . "/lib/add_mail_class_file.php";
 
 
 
157
  }
158
  }
159
  break;
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
+ Version: 1.47
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
 
 
11
  ///////////////////////////////////// Define WP Mail Bank Constants ////////////////////////////////////////
12
+ if (!defined("ABSPATH")) exit; //exit if accessed directly
13
  if (!defined("MAIL_BK_PLUGIN_DIR")) define("MAIL_BK_PLUGIN_DIR", plugin_dir_path( __FILE__ ));
14
  if (!defined("MAIL_BK_PLUGIN_DIRNAME")) define("MAIL_BK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
15
  if (!defined("mail_bank")) define("mail_bank", "mail-banker");
33
  $current_user->role = array_keys($current_user->$role);
34
  $role = $current_user->role[0];
35
  }
36
+ if(file_exists(MAIL_BK_PLUGIN_DIR . "/lib/wp-include-menus.php"))
37
+ {
38
+ include MAIL_BK_PLUGIN_DIR . "/lib/wp-include-menus.php";
39
+ }
40
  }
41
  }
42
 
154
  $current_user->role = array_keys($current_user->$role);
155
  $role = $current_user->role[0];
156
  }
157
+ if(file_exists(MAIL_BK_PLUGIN_DIR . "/lib/add_mail_class_file.php"))
158
+ {
159
+ include MAIL_BK_PLUGIN_DIR . "/lib/add_mail_class_file.php";
160
+ }
161
  }
162
  }
163
  break;