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

Version Description

  • TWEAK: Translations File updated
  • TWEAK: Code for Including JSS, CSS Optimized
  • FIX: Redirection Bug Fixed
  • FIX: WP Editor Edition Bug Fixed
  • FIX: Install Script Optimized
  • FIX: Internal Server Error Fixed on Uninstall
  • 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.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

assets/global/img/mail-bank-banner.png CHANGED
Binary file
includes/footer.php CHANGED
@@ -497,10 +497,11 @@ else
497
  show_pop_up_mail_bank();
498
  });
499
  <?php
500
- $check_wp_mail_bank_wizard = get_option("wp-mail-bank-wizard-set-up");
 
501
  if(isset($_GET["page"]))
502
  {
503
- switch($_GET["page"])
504
  {
505
  case "wp_mail_bank_wizard":
506
  ?>
497
  show_pop_up_mail_bank();
498
  });
499
  <?php
500
+ $check_wp_mail_bank_wizard = get_option("wp-mail-bank-wizard-set-up");
501
+ $page_url = $check_wp_mail_bank_wizard == "" ? "wp_mail_bank_wizard" : esc_attr($_GET["page"]);
502
  if(isset($_GET["page"]))
503
  {
504
+ switch($page_url)
505
  {
506
  case "wp_mail_bank_wizard":
507
  ?>
lib/install-script.php CHANGED
@@ -216,7 +216,7 @@ else
216
  "SELECT * FROM ".$wpdb->prefix."mail_bank"
217
  );
218
 
219
- $wpdb->query("DROP TABLE ".$wpdb->prefix."mail_bank");
220
  mail_bank_table();
221
  mail_bank_meta_table();
222
 
216
  "SELECT * FROM ".$wpdb->prefix."mail_bank"
217
  );
218
 
219
+ $wpdb->query("DROP TABLE IF EXISTS ".$wpdb->prefix."mail_bank");
220
  mail_bank_table();
221
  mail_bank_meta_table();
222
 
lib/uninstall-script.php CHANGED
@@ -21,7 +21,11 @@ else
21
  else
22
  {
23
  global $wp_version, $wpdb;
24
-
 
 
 
 
25
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
26
  $type = get_option("wp-mail-bank-wizard-set-up");
27
 
@@ -36,7 +40,6 @@ else
36
  $theme_details["theme_version"] = strip_tags($active_theme->Version);
37
  $theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
38
  }
39
-
40
  $plugin_stat_data = array();
41
  $plugin_stat_data["plugin_slug"] = "wp-mail-bank";
42
  $plugin_stat_data["type"] = "standard_edition";
@@ -45,7 +48,6 @@ else
45
  $plugin_stat_data["event"] = "uninstall";
46
  $plugin_stat_data["domain_url"] = site_url();
47
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
48
-
49
  switch($type)
50
  {
51
  case "opt_in" :
@@ -57,7 +59,7 @@ else
57
  $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
58
  $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
59
  $plugin_stat_data["extensions"] = get_loaded_extensions();
60
- $plugin_stat_data["plugins"] = $plugin_info_wp_mail_bank->get_plugin_info_wp_mail_bank();
61
  $plugin_stat_data["themes"] = $theme_details;
62
  break;
63
  }
@@ -74,7 +76,7 @@ else
74
  curl_setopt($ch, CURLOPT_POSTFIELDS,
75
  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")));
76
  $result = curl_exec($ch);
77
- update_option("mb_tech_banker_site_id",$result);
78
  curl_close($ch);
79
  }
80
  else
@@ -91,42 +93,37 @@ else
91
  ));
92
  if(!is_wp_error($response))
93
  {
94
- $response["body"] != "" ? update_option("mb_tech_banker_site_id", $response["body"]) : "";
95
  }
96
  else
97
  {
98
- update_option("mb_tech_banker_site_id", "error");
99
  }
100
  }
101
  // Drop Tables
102
- if(count($wpdb->get_var("SHOW TABLES LIKE '" . mail_bank_meta() . "'")) != 0 && count($wpdb->get_var("SHOW TABLES LIKE '" . mail_bank() . "'")) != 0)
103
- {
104
- global $wpdb;
105
- $settings_remove_tables = $wpdb->get_var
106
  (
107
- $wpdb->prepare
108
- (
109
- "SELECT meta_value FROM ".mail_bank_meta()."
110
- WHERE meta_key = %s",
111
- "settings"
112
- )
113
- );
114
- $settings_remove_tables_unserialize = unserialize($settings_remove_tables);
115
-
116
- if($settings_remove_tables_unserialize["remove_tables_at_uninstall"] == "enable")
117
- {
118
- $wpdb->query("DROP TABLE " .mail_bank());
119
- $wpdb->query("DROP TABLE ".mail_bank_meta());
120
 
121
- // Delete options
122
- delete_option("mail-bank-version-number");
123
- }
124
-
125
- // Unschedule schedulers
126
- if(wp_next_scheduled("automatic_updates_mail_bank"))
127
- {
128
- wp_clear_scheduled_hook("automatic_updates_mail_bank");
129
- }
 
 
130
  }
131
  }
132
  }
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
 
40
  $theme_details["theme_version"] = strip_tags($active_theme->Version);
41
  $theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
42
  }
 
43
  $plugin_stat_data = array();
44
  $plugin_stat_data["plugin_slug"] = "wp-mail-bank";
45
  $plugin_stat_data["type"] = "standard_edition";
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" :
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
  }
76
  curl_setopt($ch, CURLOPT_POSTFIELDS,
77
  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")));
78
  $result = curl_exec($ch);
79
+ delete_option("mb_tech_banker_site_id");
80
  curl_close($ch);
81
  }
82
  else
93
  ));
94
  if(!is_wp_error($response))
95
  {
96
+ $response["body"] != "" ? delete_option("mb_tech_banker_site_id") : "";
97
  }
98
  else
99
  {
100
+ delete_option("mb_tech_banker_site_id");
101
  }
102
  }
103
  // Drop Tables
104
+ global $wpdb;
105
+ $settings_remove_tables = $wpdb->get_var
106
+ (
107
+ $wpdb->prepare
108
  (
109
+ "SELECT meta_value FROM ".mail_bank_meta()."
110
+ WHERE meta_key = %s",
111
+ "settings"
112
+ )
113
+ );
114
+ $settings_remove_tables_unserialize = unserialize($settings_remove_tables);
 
 
 
 
 
 
 
115
 
116
+ if($settings_remove_tables_unserialize["remove_tables_at_uninstall"] == "enable")
117
+ {
118
+ $wpdb->query("DROP TABLE IF EXISTS " .mail_bank());
119
+ $wpdb->query("DROP TABLE IF EXISTS ".mail_bank_meta());
120
+ // Delete options
121
+ delete_option("mail-bank-version-number");
122
+ }
123
+ // Unschedule schedulers
124
+ if(wp_next_scheduled("automatic_updates_mail_bank"))
125
+ {
126
+ wp_clear_scheduled_hook("automatic_updates_mail_bank");
127
  }
128
  }
129
  }
readme.txt CHANGED
@@ -294,6 +294,17 @@ It allows the users to view the debugging output of logged emails.
294
 
295
  == Changelog ==
296
 
 
 
 
 
 
 
 
 
 
 
 
297
  = 3.0.1 =
298
 
299
  * TWEAK: Translations File updated
294
 
295
  == Changelog ==
296
 
297
+ = 3.0.2 =
298
+
299
+ * TWEAK: Translations File updated
300
+ * TWEAK: Code for Including JSS, CSS Optimized
301
+ * FIX: Redirection Bug Fixed
302
+ * FIX: WP Editor Edition Bug Fixed
303
+ * FIX: Install Script Optimized
304
+ * FIX: Internal Server Error Fixed on Uninstall
305
+ * FIX: Obsolete Code Removed
306
+
307
+
308
  = 3.0.1 =
309
 
310
  * TWEAK: Translations File updated
views/premium-editions/premium-editions.php CHANGED
@@ -77,7 +77,7 @@ else
77
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
78
  </li>
79
  <li data-row-index="2">
80
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">11<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
81
  </li>
82
  <li class="gw-go-even" data-row-index="3">
83
  <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
@@ -133,7 +133,7 @@ else
133
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
134
  </li>
135
  <li data-row-index="2">
136
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">19<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
137
  </li>
138
  <li class="gw-go-even" data-row-index="3">
139
  <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
@@ -187,7 +187,7 @@ else
187
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
188
  </li>
189
  <li data-row-index="2">
190
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">59<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
191
  </li>
192
  <li class="gw-go-even" data-row-index="3">
193
  <div class="gw-go-body-cell" style="height: 16px;">5 Installations per License</div>
77
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
78
  </li>
79
  <li data-row-index="2">
80
+ <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">3<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
81
  </li>
82
  <li class="gw-go-even" data-row-index="3">
83
  <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
133
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
134
  </li>
135
  <li data-row-index="2">
136
+ <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">9<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
137
  </li>
138
  <li class="gw-go-even" data-row-index="3">
139
  <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
187
  <div class="gw-go-body-cell" style="height: 16px;">____</div>
188
  </li>
189
  <li data-row-index="2">
190
+ <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">28<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
191
  </li>
192
  <li class="gw-go-even" data-row-index="3">
193
  <div class="gw-go-body-cell" style="height: 16px;">5 Installations per License</div>
wp-mail-bank.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://beta.tech-banker.com/
5
  Description: Mail Bank easily configures sending emails and logging them from your WordPress site using your preferred PHPMailer or SMTP server.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
- Version: 3.0.1
9
  License: GPLv3
10
  Text Domain: wp-mail-bank
11
  Domain Path: /languages
@@ -34,7 +34,7 @@ else
34
  if(!defined("tech_banker_beta_url")) define("tech_banker_beta_url","http://beta.tech-banker.com");
35
  }
36
  if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "http://stats.tech-banker-services.org");
37
- if(!defined("mail_bank_version_number")) define("mail_bank_version_number","3.0.1");
38
 
39
  if(!function_exists("mail_bank_error_log_file"))
40
  {
@@ -261,7 +261,7 @@ if($version == "3.0.0")
261
  {
262
  if(!function_exists("backend_js_css_for_mail_bank"))
263
  {
264
- function backend_js_css_for_mail_bank($hook)
265
  {
266
  $pages_mail_bank = array(
267
  "wp_mail_bank_wizard",
@@ -276,41 +276,38 @@ if($version == "3.0.0")
276
  "mb_error_logs",
277
  "mb_upgrade"
278
  );
279
- foreach ($pages_mail_bank as $page_id => $page)
280
  {
281
- if(strpos($hook,$page) !== false)
 
 
 
 
 
 
 
 
 
 
 
 
282
  {
283
- wp_enqueue_script("jquery");
284
- wp_enqueue_script("jquery-ui-datepicker");
285
- wp_enqueue_script("mail-bank-bootstrap.js",plugins_url("assets/global/plugins/custom/js/custom.js",__FILE__));
286
- wp_enqueue_script("mail-bank-jquery.validate.js",plugins_url("assets/global/plugins/validation/jquery.validate.js",__FILE__));
287
- wp_enqueue_script("mail-bank-jquery.datatables.js",plugins_url("assets/global/plugins/datatables/media/js/jquery.datatables.js",__FILE__));
288
- wp_enqueue_script("mail-bank-jquery.fngetfilterednodes.js",plugins_url("assets/global/plugins/datatables/media/js/fngetfilterednodes.js",__FILE__));
289
- wp_enqueue_script("mail-bank-toastr.js",plugins_url("assets/global/plugins/toastr/toastr.js",__FILE__));
290
-
291
- wp_enqueue_style("mail-bank-simple-line-icons.css", plugins_url("assets/global/plugins/icons/icons.css",__FILE__));
292
- wp_enqueue_style("mail-bank-components.css", plugins_url("assets/global/css/components.css",__FILE__));
293
- wp_enqueue_style("mail-bank-custom.css", plugins_url("assets/admin/layout/css/mail-bank-custom.css",__FILE__));
294
- wp_enqueue_style("mail-bank-premium-editions.css", plugins_url("assets/admin/layout/css/premium-edition.css",__FILE__));
295
- if(is_rtl())
296
- {
297
- wp_enqueue_style("mail-bank-bootstrap.css", plugins_url("assets/global/plugins/custom/css/custom-rtl.css",__FILE__));
298
- wp_enqueue_style("mail-bank-layout.css", plugins_url("assets/admin/layout/css/layout-rtl.css",__FILE__));
299
- wp_enqueue_style("mail-bank-tech-banker-custom.css", plugins_url("assets/admin/layout/css/tech-banker-custom-rtl.css",__FILE__));
300
- }
301
- else
302
- {
303
- wp_enqueue_style("mail-bank-bootstrap.css", plugins_url("assets/global/plugins/custom/css/custom.css",__FILE__));
304
- wp_enqueue_style("mail-bank-layout.css", plugins_url("assets/admin/layout/css/layout.css",__FILE__));
305
- wp_enqueue_style("mail-bank-tech-banker-custom.css", plugins_url("assets/admin/layout/css/tech-banker-custom.css",__FILE__));
306
- }
307
- wp_enqueue_style("mail-bank-default.css", plugins_url("assets/admin/layout/css/themes/default.css",__FILE__));
308
- wp_enqueue_style("mail-bank-toastr.min.css", plugins_url("assets/global/plugins/toastr/toastr.css",__FILE__));
309
- wp_enqueue_style("mail-bank-jquery-ui.css", plugins_url("assets/global/plugins/datepicker/jquery-ui.css",__FILE__),false,"2.0",false);
310
- wp_enqueue_style("mail-bank-datatables.foundation.css", plugins_url("assets/global/plugins/datatables/media/css/datatables.foundation.css",__FILE__));
311
- break;
312
  }
 
 
 
 
 
 
 
 
 
 
313
  }
 
314
  }
315
  }
316
  add_action("admin_enqueue_scripts", "backend_js_css_for_mail_bank");
@@ -965,56 +962,40 @@ Created by: Tech Banker Team
965
  */
966
  add_filter("plugin_action_links_" . plugin_basename(__FILE__), "mail_bank_action_links");
967
 
968
- if(!class_exists("redirect_wizard_wp_mail_bank"))
 
 
 
 
 
 
 
969
  {
970
- if(!defined("WP_MAIL_BANK_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY")) define("WP_MAIL_BANK_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY", "_wp_mail_bank_activation_redirect");
971
- class redirect_wizard_wp_mail_bank
972
- {
973
- private static $instance ;
974
- public static function get_instance()
975
- {
976
- if(!isset( self::$instance ) && !self::$instance instanceof redirect_wizard_wp_mail_bank)
977
- {
978
- self::$instance = new redirect_wizard_wp_mail_bank();
979
- }
980
- return self::$instance;
981
- }
982
- private function __construct()
983
- {
984
- add_action("admin_init", array( $this, "check_for_activation_redirect_wizard_wp_mail_bank"));
985
- register_activation_hook( __FILE__, array("redirect_wizard_wp_mail_bank","activate"));
986
- }
987
- public static function activate($network_wide)
988
- {
989
- if(function_exists("is_multisite") && is_multisite())
990
- {
991
- }
992
- else
993
- {
994
- //Make sure we redirect to the welcome page
995
- set_transient( WP_MAIL_BANK_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY, true, 30 );
996
- }
997
- }
998
- public function check_for_activation_redirect_wizard_wp_mail_bank()
999
- {
1000
- // Bail if no activation redirect
1001
- if(!get_transient( WP_MAIL_BANK_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY))
1002
- {
1003
- return;
1004
- }
1005
- // Delete the redirect transient
1006
- delete_transient( WP_MAIL_BANK_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY );
1007
- // Bail if activating from network, or bulk
1008
- if(is_network_admin() || isset( $_GET['activate-multi']))
1009
- {
1010
- return;
1011
- }
1012
- $url = admin_url("admin.php?page=wp_mail_bank_wizard");
1013
- wp_safe_redirect($url);
1014
- die;
1015
- }
1016
- }
1017
  }
1018
- redirect_wizard_wp_mail_bank::get_instance();
1019
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1020
  ?>
5
  Description: Mail Bank easily configures sending emails and logging them from your WordPress site using your preferred PHPMailer or SMTP server.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
+ Version: 3.0.2
9
  License: GPLv3
10
  Text Domain: wp-mail-bank
11
  Domain Path: /languages
34
  if(!defined("tech_banker_beta_url")) define("tech_banker_beta_url","http://beta.tech-banker.com");
35
  }
36
  if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "http://stats.tech-banker-services.org");
37
+ if(!defined("mail_bank_version_number")) define("mail_bank_version_number","3.0.2");
38
 
39
  if(!function_exists("mail_bank_error_log_file"))
40
  {
261
  {
262
  if(!function_exists("backend_js_css_for_mail_bank"))
263
  {
264
+ function backend_js_css_for_mail_bank()
265
  {
266
  $pages_mail_bank = array(
267
  "wp_mail_bank_wizard",
276
  "mb_error_logs",
277
  "mb_upgrade"
278
  );
279
+ if(in_array(isset($_REQUEST["page"]) ? esc_attr($_REQUEST["page"]) : "",$pages_mail_bank))
280
  {
281
+ wp_enqueue_script("jquery");
282
+ wp_enqueue_script("jquery-ui-datepicker");
283
+ wp_enqueue_script("mail-bank-bootstrap.js",plugins_url("assets/global/plugins/custom/js/custom.js",__FILE__));
284
+ wp_enqueue_script("mail-bank-jquery.validate.js",plugins_url("assets/global/plugins/validation/jquery.validate.js",__FILE__));
285
+ wp_enqueue_script("mail-bank-jquery.datatables.js",plugins_url("assets/global/plugins/datatables/media/js/jquery.datatables.js",__FILE__));
286
+ wp_enqueue_script("mail-bank-jquery.fngetfilterednodes.js",plugins_url("assets/global/plugins/datatables/media/js/fngetfilterednodes.js",__FILE__));
287
+ wp_enqueue_script("mail-bank-toastr.js",plugins_url("assets/global/plugins/toastr/toastr.js",__FILE__));
288
+
289
+ wp_enqueue_style("mail-bank-simple-line-icons.css", plugins_url("assets/global/plugins/icons/icons.css",__FILE__));
290
+ wp_enqueue_style("mail-bank-components.css", plugins_url("assets/global/css/components.css",__FILE__));
291
+ wp_enqueue_style("mail-bank-custom.css", plugins_url("assets/admin/layout/css/mail-bank-custom.css",__FILE__));
292
+ wp_enqueue_style("mail-bank-premium-editions.css", plugins_url("assets/admin/layout/css/premium-edition.css",__FILE__));
293
+ if(is_rtl())
294
  {
295
+ wp_enqueue_style("mail-bank-bootstrap.css", plugins_url("assets/global/plugins/custom/css/custom-rtl.css",__FILE__));
296
+ wp_enqueue_style("mail-bank-layout.css", plugins_url("assets/admin/layout/css/layout-rtl.css",__FILE__));
297
+ wp_enqueue_style("mail-bank-tech-banker-custom.css", plugins_url("assets/admin/layout/css/tech-banker-custom-rtl.css",__FILE__));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  }
299
+ else
300
+ {
301
+ wp_enqueue_style("mail-bank-bootstrap.css", plugins_url("assets/global/plugins/custom/css/custom.css",__FILE__));
302
+ wp_enqueue_style("mail-bank-layout.css", plugins_url("assets/admin/layout/css/layout.css",__FILE__));
303
+ wp_enqueue_style("mail-bank-tech-banker-custom.css", plugins_url("assets/admin/layout/css/tech-banker-custom.css",__FILE__));
304
+ }
305
+ wp_enqueue_style("mail-bank-default.css", plugins_url("assets/admin/layout/css/themes/default.css",__FILE__));
306
+ wp_enqueue_style("mail-bank-toastr.min.css", plugins_url("assets/global/plugins/toastr/toastr.css",__FILE__));
307
+ wp_enqueue_style("mail-bank-jquery-ui.css", plugins_url("assets/global/plugins/datepicker/jquery-ui.css",__FILE__),false,"2.0",false);
308
+ wp_enqueue_style("mail-bank-datatables.foundation.css", plugins_url("assets/global/plugins/datatables/media/css/datatables.foundation.css",__FILE__));
309
  }
310
+
311
  }
312
  }
313
  add_action("admin_enqueue_scripts", "backend_js_css_for_mail_bank");
962
  */
963
  add_filter("plugin_action_links_" . plugin_basename(__FILE__), "mail_bank_action_links");
964
 
965
+ /*
966
+ Class Name: plugin_activate_wp_mail_bank
967
+ Description: This function is used to add option on plugin activation.
968
+ Created On: 24-04-2017 12:04
969
+ Created By: Tech Banker Team
970
+ */
971
+
972
+ if(!function_exists("plugin_activate_wp_mail_bank"))
973
  {
974
+ function plugin_activate_wp_mail_bank()
975
+ {
976
+ add_option("wp_mail_bank_do_activation_redirect", true);
977
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
978
  }
 
979
 
980
+ /*
981
+ Class Name: wp_mail_bank_redirect
982
+ Description: This function is used to redirect to email setup.
983
+ Created On: 24-04-2017 12:04
984
+ Created By: Tech Banker Team
985
+ */
986
+
987
+ if(!function_exists("wp_mail_bank_redirect"))
988
+ {
989
+ function wp_mail_bank_redirect()
990
+ {
991
+ if(get_option("wp_mail_bank_do_activation_redirect", false))
992
+ {
993
+ delete_option("wp_mail_bank_do_activation_redirect");
994
+ wp_redirect(admin_url("admin.php?page=mb_email_configuration"));
995
+ exit;
996
+ }
997
+ }
998
+ }
999
+ register_activation_hook(__FILE__, "plugin_activate_wp_mail_bank");
1000
+ add_action("admin_init", "wp_mail_bank_redirect");
1001
  ?>