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

Version Description

  • Obsolete Code removed
  • Unused Files removed
  • Code Optimized
  • Major Bugs Fixed
  • Translation File Updated
Download this release

Release Info

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

Code changes from version 2.0.15 to 2.0.16

assets/admin/layout/css/layout-rtl.css CHANGED
@@ -189,8 +189,10 @@
189
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker li > a > .badge
190
  {
191
  float: right;
192
- margin-top: 1px;
193
  margin-right: 0px;
 
 
 
194
  }
195
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker .sub-menu
196
  {
189
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker li > a > .badge
190
  {
191
  float: right;
 
192
  margin-right: 0px;
193
+ color: #fff;
194
+ background-color: #ed6b75;
195
+ padding : 2px 5px;
196
  }
197
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker .sub-menu
198
  {
assets/admin/layout/css/layout.css CHANGED
@@ -174,8 +174,10 @@
174
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker li > a > .badge
175
  {
176
  float: right;
177
- margin-top: 1px;
178
  margin-right: 0px;
 
 
 
179
  }
180
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker .sub-menu
181
  {
174
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker li > a > .badge
175
  {
176
  float: right;
 
177
  margin-right: 0px;
178
+ color: #fff;
179
+ background-color: #ed6b75;
180
+ padding : 2px 5px;
181
  }
182
  .page-sidebar-tech-banker .page-sidebar-menu-tech-banker .sub-menu
183
  {
assets/global/img/mail-bank-banner.png ADDED
Binary file
assets/global/img/mail-bank-demos-button.png ADDED
Binary file
assets/global/img/mail-bank-features-button.png ADDED
Binary file
assets/global/img/mail-bank-user-guide-button.png ADDED
Binary file
includes/footer.php CHANGED
@@ -29,6 +29,8 @@ else
29
  else
30
  {
31
  ?>
 
 
32
  </div>
33
  <script type="text/javascript">
34
  jQuery(".tooltips").tooltip_tip({placement: "right"});
@@ -1111,6 +1113,34 @@ else
1111
  <?php
1112
  }
1113
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1114
  case "mb_premium_editions":
1115
  ?>
1116
  jQuery("#ux_li_premium_editions").addClass("active");
29
  else
30
  {
31
  ?>
32
+ </div>
33
+ </div>
34
  </div>
35
  <script type="text/javascript">
36
  jQuery(".tooltips").tooltip_tip({placement: "right"});
1113
  <?php
1114
  }
1115
  break;
1116
+ case "mb_error_logs":
1117
+ ?>
1118
+ jQuery("#ux_mb_li_error_logs").addClass("active");
1119
+ <?php
1120
+ if(error_logs_mail_bank == "1")
1121
+ {
1122
+ ?>
1123
+ jQuery(".btn_clear_log").click(function()
1124
+ {
1125
+ jQuery.post(ajaxurl,
1126
+ {
1127
+ param: "error_logs_module",
1128
+ action: "mail_bank_action",
1129
+ _wp_nonce: "<?php echo $clear_error_logs_nonce;?>"
1130
+ },
1131
+ function(data)
1132
+ {
1133
+ overlay_loading_mail_bank(<?php echo json_encode($mb_error_logs_message);?>);
1134
+ setTimeout(function()
1135
+ {
1136
+ remove_overlay_mail_bank();
1137
+ window.location.href = "admin.php?page=mb_error_logs";
1138
+ }, 3000);
1139
+ });
1140
+ });
1141
+ <?php
1142
+ }
1143
+ break;
1144
  case "mb_premium_editions":
1145
  ?>
1146
  jQuery("#ux_li_premium_editions").addClass("active");
includes/queries.php CHANGED
@@ -62,20 +62,6 @@ else
62
  }
63
  }
64
 
65
- if(function_exists("get_loaded_extensions"))
66
- {
67
- $all_extensions = get_loaded_extensions();
68
- $required_extensions = array("openssl","sockets","zlib","mcrypt","iconv");
69
- $extension_not_found = array();
70
- foreach($required_extensions as $extension)
71
- {
72
- if(!in_array($extension,$all_extensions))
73
- {
74
- array_push($extension_not_found,$extension);
75
- }
76
- }
77
- }
78
-
79
  if(isset($_GET["page"]))
80
  {
81
  switch(esc_attr($_GET["page"]))
62
  }
63
  }
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  if(isset($_GET["page"]))
66
  {
67
  switch(esc_attr($_GET["page"]))
includes/sidebar.php CHANGED
@@ -60,6 +60,7 @@ else
60
  <span class="title">
61
  <?php echo $mb_email_logs; ?>
62
  </span>
 
63
  </a>
64
  </li>
65
  <li id="ux_mb_li_settings">
@@ -76,6 +77,7 @@ else
76
  <span class="title">
77
  <?php echo $mb_roles_and_capabilities; ?>
78
  </span>
 
79
  </a>
80
  </li>
81
  <li id="ux_mb_li_feedbacks">
@@ -94,6 +96,14 @@ else
94
  </span>
95
  </a>
96
  </li>
 
 
 
 
 
 
 
 
97
  <li class="" id="ux_li_premium_editions">
98
  <a href="admin.php?page=mb_premium_editions">
99
  <i class="icon-custom-briefcase"></i>
@@ -106,6 +116,28 @@ else
106
  </div>
107
  </div>
108
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  <?php
110
  }
111
  }
60
  <span class="title">
61
  <?php echo $mb_email_logs; ?>
62
  </span>
63
+ <span class="badge">Pro</span>
64
  </a>
65
  </li>
66
  <li id="ux_mb_li_settings">
77
  <span class="title">
78
  <?php echo $mb_roles_and_capabilities; ?>
79
  </span>
80
+ <span class="badge">Pro</span>
81
  </a>
82
  </li>
83
  <li id="ux_mb_li_feedbacks">
96
  </span>
97
  </a>
98
  </li>
99
+ <li id="ux_mb_li_error_logs">
100
+ <a href="admin.php?page=mb_error_logs">
101
+ <i class="icon-custom-shield"></i>
102
+ <span class="title">
103
+ <?php echo $mb_error_logs; ?>
104
+ </span>
105
+ </a>
106
+ </li>
107
  <li class="" id="ux_li_premium_editions">
108
  <a href="admin.php?page=mb_premium_editions">
109
  <i class="icon-custom-briefcase"></i>
116
  </div>
117
  </div>
118
  </div>
119
+ <div class="page-content-wrapper">
120
+ <div class="page-content">
121
+ <a href="http://beta.tech-banker.com/products/mail-bank/" target="_blank">
122
+ <img title="Mail Bank" src="<?php echo plugins_url("assets/global/img/mail-bank-banner.png",dirname(__FILE__));?>" width="100%">
123
+ </a>
124
+ <div class="row">
125
+ <div class="col-md-4">
126
+ <a href="http://beta.tech-banker.com/products/mail-bank/" target="_blank">
127
+ <img title="Find out More!" src="<?php echo plugins_url("assets/global/img/mail-bank-features-button.png",dirname(__FILE__));?>" width="100%">
128
+ </a>
129
+ </div>
130
+ <div class="col-md-4">
131
+ <a href="http://beta.tech-banker.com/products/mail-bank/user-guide/" target="_blank">
132
+ <img title="Need help?" src="<?php echo plugins_url("assets/global/img/mail-bank-user-guide-button.png",dirname(__FILE__));?>" width="100%">
133
+ </a>
134
+ </div>
135
+ <div class="col-md-4">
136
+ <a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank">
137
+ <img title="Find out How it Works?" src="<?php echo plugins_url("assets/global/img/mail-bank-demos-button.png",dirname(__FILE__));?>" width="100%">
138
+ </a>
139
+ </div>
140
+ </div>
141
  <?php
142
  }
143
  }
includes/translations.php CHANGED
@@ -90,6 +90,8 @@ else
90
  $mb_settings_link = __("Settings",wp_mail_bank);
91
  $mb_not_available = __("Not available",wp_mail_bank);
92
  $mb_contact_to_host = __("The following php extensions are not found on your server or are currently disabled. These might create few problems in configuring Mail Bank. Please contact your WebHost to setup these extensions on your server.",wp_mail_bank);
 
 
93
 
94
  // Email Setup
95
  $mb_email_configuration_cc_label = __("Cc",wp_mail_bank);
@@ -179,7 +181,7 @@ else
179
  $mb_end_date_tooltip = __("This field shows ending date of Email Logs",wp_mail_bank);
180
  $mb_submit = __("Submit",wp_mail_bank);
181
  $mb_email_logs_bulk_action = __("Bulk Action",wp_mail_bank);
182
- $mb_email_logs_delete = __("Delete",wp_mail_bank);
183
  $mb_email_logs_apply = __("Apply",wp_mail_bank);
184
  $mb_email_logs_email_to = __("Email To",wp_mail_bank);
185
  $mb_email_logs_actions = __("Action",wp_mail_bank);
@@ -251,6 +253,14 @@ else
251
  $mb_test_email_sending_test_email = __("Sending Test Email to",wp_mail_bank);
252
  $mb_test_email_status = __("Email Status",wp_mail_bank);
253
 
 
 
 
 
 
 
 
 
254
  }
255
  }
256
  ?>
90
  $mb_settings_link = __("Settings",wp_mail_bank);
91
  $mb_not_available = __("Not available",wp_mail_bank);
92
  $mb_contact_to_host = __("The following php extensions are not found on your server or are currently disabled. These might create few problems in configuring Mail Bank. Please contact your WebHost to setup these extensions on your server.",wp_mail_bank);
93
+ $premium_edition = __("( Premium Edition )",wp_mail_bank);
94
+ $mb_error_logs = __("Error Logs",wp_mail_bank);
95
 
96
  // Email Setup
97
  $mb_email_configuration_cc_label = __("Cc",wp_mail_bank);
181
  $mb_end_date_tooltip = __("This field shows ending date of Email Logs",wp_mail_bank);
182
  $mb_submit = __("Submit",wp_mail_bank);
183
  $mb_email_logs_bulk_action = __("Bulk Action",wp_mail_bank);
184
+ $mb_email_logs_delete = __("Delete ( Bussiness Edition )",wp_mail_bank);
185
  $mb_email_logs_apply = __("Apply",wp_mail_bank);
186
  $mb_email_logs_email_to = __("Email To",wp_mail_bank);
187
  $mb_email_logs_actions = __("Action",wp_mail_bank);
253
  $mb_test_email_sending_test_email = __("Sending Test Email to",wp_mail_bank);
254
  $mb_test_email_status = __("Email Status",wp_mail_bank);
255
 
256
+ //Error Logs
257
+ $mb_error_output = __("Output",wp_mail_bank);
258
+ $mb_error_logs_tooltip = __("In this field, you would be able to see all PHP Errors",wp_mail_bank);
259
+ $mb_error_download = __("Download Error Log",wp_mail_bank);
260
+ $mb_error_clear = __("Clear Error Log",wp_mail_bank);
261
+ $mb_clear_data = __("Are you sure you want to clear error log ?",wp_mail_bank);
262
+ $mb_error_logs_message = __("Error Logs has been cleared successfully",wp_mail_bank);
263
+
264
  }
265
  }
266
  ?>
lib/action-library.php CHANGED
@@ -293,6 +293,13 @@ else
293
  }
294
  }
295
  break;
 
 
 
 
 
 
 
296
  }
297
  die();
298
  }
293
  }
294
  }
295
  break;
296
+
297
+ case "error_logs_module":
298
+ if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "clear_error_logs_nonce"))
299
+ {
300
+ file_put_contents(MAIL_BANK_LOGFILE_PATH,"");
301
+ }
302
+ break;
303
  }
304
  die();
305
  }
lib/admin-bar-menu.php CHANGED
@@ -139,6 +139,13 @@ else
139
  "href"=>admin_url("admin.php?page=mb_system_information")
140
  ));
141
  $wp_admin_bar->add_menu(array
 
 
 
 
 
 
 
142
  (
143
  "parent"=>"wp_mail_bank",
144
  "id"=>"$mb_premium_editions_label",
139
  "href"=>admin_url("admin.php?page=mb_system_information")
140
  ));
141
  $wp_admin_bar->add_menu(array
142
+ (
143
+ "parent"=>"wp_mail_bank",
144
+ "id"=>"error_logs_mail_bank",
145
+ "title"=>$mb_error_logs,
146
+ "href"=>admin_url("admin.php?page=mb_error_logs")
147
+ ));
148
+ $wp_admin_bar->add_menu(array
149
  (
150
  "parent"=>"wp_mail_bank",
151
  "id"=>"$mb_premium_editions_label",
lib/helper.php CHANGED
@@ -100,6 +100,24 @@ else
100
  "DELETE FROM $table_name WHERE $where IN ($data)"
101
  );
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
  }
105
 
100
  "DELETE FROM $table_name WHERE $where IN ($data)"
101
  );
102
  }
103
+
104
+ /*
105
+ Function Name: file_reader
106
+ Parameters: No
107
+ Decription: This function is used to file read.
108
+ Created On: 18-1-2017 11:26
109
+ Created By: Tech Banker Team
110
+ */
111
+
112
+ public static function file_reader($filePath)
113
+ {
114
+ $reader = "";
115
+ if(file_exists($filePath))
116
+ {
117
+ $reader = file_get_contents($filePath);
118
+ }
119
+ return $reader;
120
+ }
121
  }
122
  }
123
 
lib/install-script.php CHANGED
@@ -167,12 +167,12 @@ else
167
  $roles_capabilities_data_array["roles_and_capabilities"] = "1,1,1,0,0,0";
168
  $roles_capabilities_data_array["show_mail_bank_top_bar_menu"] = "enable";
169
  $roles_capabilities_data_array["others_full_control_capability"] = "0";
170
- $roles_capabilities_data_array["administrator_privileges"] = "1,1,1,1,1,1,1,1";
171
- $roles_capabilities_data_array["author_privileges"] = "0,0,1,0,0,0,0,0";
172
- $roles_capabilities_data_array["editor_privileges"] = "0,0,1,0,0,1,0,0";
173
- $roles_capabilities_data_array["contributor_privileges"] = "0,0,0,0,0,1,0,0";
174
- $roles_capabilities_data_array["subscriber_privileges"] = "0,0,0,0,0,0,0,0";
175
- $roles_capabilities_data_array["other_roles_privileges"] = "0,0,0,0,0,0,0,0";
176
  $user_capabilities = get_others_capabilities_mail_bank();
177
  $other_roles_array = array();
178
  $other_roles_access_array = array(
@@ -297,16 +297,6 @@ else
297
  )
298
  );
299
 
300
- $get_roles_settings_data = $wpdb->get_var
301
- (
302
- $wpdb->prepare
303
- (
304
- "SELECT meta_value FROM ".mail_bank_meta().
305
- " WHERE meta_key=%s",
306
- "roles_and_capabilities"
307
- )
308
- );
309
-
310
  $settings_data_array = unserialize($settings_data);
311
 
312
  if(!array_key_exists("monitor_email_logs", $settings_data_array))
@@ -320,56 +310,108 @@ else
320
  $obj_dbHelper_install_script_mail_bank->updateCommand(mail_bank_meta(),$settings_array, $where);
321
  }
322
 
 
 
 
 
 
 
 
 
 
 
323
  $get_roles_settings_data_array = unserialize($get_roles_settings_data);
324
 
325
- if(!array_key_exists("other_roles_privileges", $get_roles_settings_data_array))
326
  {
327
- $get_roles_settings_data_array["other_roles_privileges"] = "0,0,0,0,0,0,0,0";
328
- $roles_capabilities_data = explode("," ,$get_roles_settings_data_array["roles_and_capabilities"]);
329
- if(count($roles_capabilities_data) == 5)
 
 
 
 
 
 
330
  {
331
- array_push($roles_capabilities_data,0);
332
- $get_roles_settings_data_array["roles_and_capabilities"] = implode(",",$roles_capabilities_data);
333
  }
334
- $where = array();
335
- $roles_capabilities_array = array();
336
- $where["meta_key"] = "roles_and_capabilities";
337
- $roles_capabilities_array["meta_value"] = serialize($get_roles_settings_data_array);
338
- $obj_dbHelper_install_script_mail_bank->updateCommand(mail_bank_meta(),$roles_capabilities_array, $where);
339
- }
340
 
341
- if(!array_key_exists("others_full_control_capability", $get_roles_settings_data_array))
342
- {
343
- $get_roles_settings_data_array["others_full_control_capability"] = "0";
 
 
 
344
 
345
- $where = array();
346
- $roles_capabilities_array = array();
347
- $where["meta_key"] = "roles_and_capabilities";
348
- $roles_capabilities_array["meta_value"] = serialize($get_roles_settings_data_array);
349
- $obj_dbHelper_install_script_mail_bank->updateCommand(mail_bank_meta(),$roles_capabilities_array, $where);
350
- }
351
 
352
- if(!array_key_exists("capabilities", $get_roles_settings_data_array))
353
- {
354
- $user_capabilities = get_others_capabilities_mail_bank();
355
- $other_roles_array = array();
356
- $other_roles_access_array = array(
357
- "manage_options",
358
- "edit_plugins",
359
- "edit_posts",
360
- "publish_posts",
361
- "publish_pages",
362
- "edit_pages",
363
- "read"
364
- );
365
- foreach($other_roles_access_array as $role)
 
366
  {
367
- if(in_array($role,$user_capabilities))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  {
369
- array_push($other_roles_array,$role);
 
 
 
370
  }
 
371
  }
372
- $get_roles_settings_data_array["capabilities"] = $other_roles_array;
373
  $where = array();
374
  $roles_capabilities_array = array();
375
  $where["meta_key"] = "roles_and_capabilities";
@@ -379,7 +421,7 @@ else
379
 
380
  }
381
  }
382
- update_option("mail-bank-version-number","2.0.2");
383
  }
384
  }
385
  ?>
167
  $roles_capabilities_data_array["roles_and_capabilities"] = "1,1,1,0,0,0";
168
  $roles_capabilities_data_array["show_mail_bank_top_bar_menu"] = "enable";
169
  $roles_capabilities_data_array["others_full_control_capability"] = "0";
170
+ $roles_capabilities_data_array["administrator_privileges"] = "1,1,1,1,1,1,1,1,1";
171
+ $roles_capabilities_data_array["author_privileges"] = "0,0,1,0,0,0,0,0,0";
172
+ $roles_capabilities_data_array["editor_privileges"] = "0,0,1,0,0,1,0,0,0";
173
+ $roles_capabilities_data_array["contributor_privileges"] = "0,0,0,0,0,1,0,0,0";
174
+ $roles_capabilities_data_array["subscriber_privileges"] = "0,0,0,0,0,0,0,0,0";
175
+ $roles_capabilities_data_array["other_roles_privileges"] = "0,0,0,0,0,0,0,0,0";
176
  $user_capabilities = get_others_capabilities_mail_bank();
177
  $other_roles_array = array();
178
  $other_roles_access_array = array(
297
  )
298
  );
299
 
 
 
 
 
 
 
 
 
 
 
300
  $settings_data_array = unserialize($settings_data);
301
 
302
  if(!array_key_exists("monitor_email_logs", $settings_data_array))
310
  $obj_dbHelper_install_script_mail_bank->updateCommand(mail_bank_meta(),$settings_array, $where);
311
  }
312
 
313
+ $get_roles_settings_data = $wpdb->get_var
314
+ (
315
+ $wpdb->prepare
316
+ (
317
+ "SELECT meta_value FROM ".mail_bank_meta().
318
+ " WHERE meta_key=%s",
319
+ "roles_and_capabilities"
320
+ )
321
+ );
322
+
323
  $get_roles_settings_data_array = unserialize($get_roles_settings_data);
324
 
325
+ if(array_key_exists("roles_and_capabilities", $get_roles_settings_data_array))
326
  {
327
+ $roles_and_capabilities_data = isset($get_roles_settings_data_array["roles_and_capabilities"]) ? explode("," ,$get_roles_settings_data_array["roles_and_capabilities"]) : array();
328
+ $administrator_privileges_data = isset($get_roles_settings_data_array["administrator_privileges"]) ? explode("," ,$get_roles_settings_data_array["administrator_privileges"]) : array();
329
+ $author_privileges_data = isset($get_roles_settings_data_array["author_privileges"]) ? explode("," ,$get_roles_settings_data_array["author_privileges"]) : array();
330
+ $editor_privileges_data = isset($get_roles_settings_data_array["editor_privileges"]) ? explode("," ,$get_roles_settings_data_array["editor_privileges"]) : array();
331
+ $contributor_privileges_data = isset($get_roles_settings_data_array["contributor_privileges"]) ? explode("," ,$get_roles_settings_data_array["contributor_privileges"]) : array();
332
+ $subscriber_privileges_data = isset($get_roles_settings_data_array["subscriber_privileges"]) ? explode("," ,$get_roles_settings_data_array["subscriber_privileges"]) : array();
333
+ $other_privileges_data = isset($get_roles_settings_data_array["other_roles_privileges"]) ? explode("," ,$get_roles_settings_data_array["other_roles_privileges"]) : array();
334
+
335
+ if(count($roles_and_capabilities_data) == 5)
336
  {
337
+ array_push($roles_and_capabilities_data,0);
338
+ $get_roles_settings_data_array["roles_and_capabilities"] = implode(",",$roles_and_capabilities_data);
339
  }
 
 
 
 
 
 
340
 
341
+ if(count($administrator_privileges_data) == 8)
342
+ {
343
+ $administrator_privileges_data[8] = $administrator_privileges_data[7];
344
+ $administrator_privileges_data[7] = 1;
345
+ $get_roles_settings_data_array["administrator_privileges"] = implode(",",$administrator_privileges_data);
346
+ }
347
 
348
+ if(count($author_privileges_data) == 8)
349
+ {
350
+ $author_privileges_data[8] = $author_privileges_data[7];
351
+ $author_privileges_data[7] = 0;
352
+ $get_roles_settings_data_array["author_privileges"] = implode(",",$author_privileges_data);
353
+ }
354
 
355
+ if(count($editor_privileges_data) == 8)
356
+ {
357
+ $editor_privileges_data[8] = $editor_privileges_data[7];
358
+ $editor_privileges_data[7] = 0;
359
+ $get_roles_settings_data_array["editor_privileges"] = implode(",",$editor_privileges_data);
360
+ }
361
+
362
+ if(count($contributor_privileges_data) == 8)
363
+ {
364
+ $contributor_privileges_data[8] = $contributor_privileges_data[7];
365
+ $contributor_privileges_data[7] = 0;
366
+ $get_roles_settings_data_array["contributor_privileges"] = implode(",",$contributor_privileges_data);
367
+ }
368
+
369
+ if(count($subscriber_privileges_data) == 8)
370
  {
371
+ $subscriber_privileges_data[8] = $subscriber_privileges_data[7];
372
+ $subscriber_privileges_data[7] = 0;
373
+ $get_roles_settings_data_array["subscriber_privileges"] = implode(",",$subscriber_privileges_data);
374
+ }
375
+
376
+ if(count($other_privileges_data) == 8)
377
+ {
378
+ $other_privileges_data[8] = $other_privileges_data[7];
379
+ $other_privileges_data[7] = 0;
380
+ $get_roles_settings_data_array["other_roles_privileges"] = implode(",",$other_privileges_data);
381
+ }
382
+ else
383
+ {
384
+ $get_roles_settings_data_array["other_roles_privileges"] = "0,0,0,0,0,0,0,0,0";
385
+ }
386
+
387
+ if(!array_key_exists("others_full_control_capability", $get_roles_settings_data_array))
388
+ {
389
+ $get_roles_settings_data_array["others_full_control_capability"] = "0";
390
+ }
391
+
392
+ if(!array_key_exists("capabilities", $get_roles_settings_data_array))
393
+ {
394
+ $user_capabilities = get_others_capabilities_mail_bank();
395
+ $other_roles_array = array();
396
+ $other_roles_access_array = array(
397
+ "manage_options",
398
+ "edit_plugins",
399
+ "edit_posts",
400
+ "publish_posts",
401
+ "publish_pages",
402
+ "edit_pages",
403
+ "read"
404
+ );
405
+ foreach($other_roles_access_array as $role)
406
  {
407
+ if(in_array($role,$user_capabilities))
408
+ {
409
+ array_push($other_roles_array,$role);
410
+ }
411
  }
412
+ $get_roles_settings_data_array["capabilities"] = $other_roles_array;
413
  }
414
+
415
  $where = array();
416
  $roles_capabilities_array = array();
417
  $where["meta_key"] = "roles_and_capabilities";
421
 
422
  }
423
  }
424
+ update_option("mail-bank-version-number","2.0.3");
425
  }
426
  }
427
  ?>
lib/sidebar-menu.php CHANGED
@@ -101,7 +101,8 @@ else
101
  if(!defined("email_logs_mail_bank")) define("email_logs_mail_bank","$full_control[3]");
102
  if(!defined("settings_mail_bank")) define("settings_mail_bank","$full_control[4]");
103
  if(!defined("roles_and_capabilities_mail_bank")) define("roles_and_capabilities_mail_bank","$full_control[5]");
104
- if(!defined("system_information_mail_bank")) define("system_information_mail_bank","$full_control[6]");
 
105
 
106
  if($flag == "1")
107
  {
@@ -117,6 +118,7 @@ else
117
  add_submenu_page("mb_email_configuration",$mb_roles_and_capabilities,$mb_roles_and_capabilities,"read","mb_roles_and_capabilities","mb_roles_and_capabilities");
118
  add_submenu_page("mb_email_configuration",$mb_feedbacks,$mb_feedbacks,"read","mb_feedbacks","mb_feedbacks");
119
  add_submenu_page("mb_email_configuration",$mb_system_information,$mb_system_information,"read","mb_system_information","mb_system_information");
 
120
  add_submenu_page("mb_email_configuration",$mb_premium_editions_label,$mb_premium_editions_label,"read","mb_premium_editions","mb_premium_editions");
121
  }
122
 
@@ -407,6 +409,48 @@ else
407
  }
408
  }
409
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  /*
411
  Function Name: mb_premium_editions
412
  Parameter: No
101
  if(!defined("email_logs_mail_bank")) define("email_logs_mail_bank","$full_control[3]");
102
  if(!defined("settings_mail_bank")) define("settings_mail_bank","$full_control[4]");
103
  if(!defined("roles_and_capabilities_mail_bank")) define("roles_and_capabilities_mail_bank","$full_control[5]");
104
+ if(!defined("error_logs_mail_bank")) define("error_logs_mail_bank","$full_control[6]");
105
+ if(!defined("system_information_mail_bank")) define("system_information_mail_bank","$full_control[7]");
106
 
107
  if($flag == "1")
108
  {
118
  add_submenu_page("mb_email_configuration",$mb_roles_and_capabilities,$mb_roles_and_capabilities,"read","mb_roles_and_capabilities","mb_roles_and_capabilities");
119
  add_submenu_page("mb_email_configuration",$mb_feedbacks,$mb_feedbacks,"read","mb_feedbacks","mb_feedbacks");
120
  add_submenu_page("mb_email_configuration",$mb_system_information,$mb_system_information,"read","mb_system_information","mb_system_information");
121
+ add_submenu_page("mb_email_configuration",$mb_error_logs,$mb_error_logs,"read","mb_error_logs","mb_error_logs");
122
  add_submenu_page("mb_email_configuration",$mb_premium_editions_label,$mb_premium_editions_label,"read","mb_premium_editions","mb_premium_editions");
123
  }
124
 
409
  }
410
  }
411
  }
412
+
413
+ /*
414
+ Function Name: mb_error_logs
415
+ Parameters: No
416
+ Description: This function is used to create mb_error_logs menu.
417
+ Created On: 18-01-2017 12:29
418
+ Created By: Tech Banker Team
419
+ */
420
+
421
+ if(!function_exists("mb_error_logs"))
422
+ {
423
+ function mb_error_logs()
424
+ {
425
+ global $wpdb;
426
+ $user_role_permission = get_users_capabilities_mail_bank();
427
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/translations.php"))
428
+ {
429
+ include MAIL_BANK_DIR_PATH."includes/translations.php";
430
+ }
431
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/header.php"))
432
+ {
433
+ include_once MAIL_BANK_DIR_PATH."includes/header.php";
434
+ }
435
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/sidebar.php"))
436
+ {
437
+ include_once MAIL_BANK_DIR_PATH."includes/sidebar.php";
438
+ }
439
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/queries.php"))
440
+ {
441
+ include_once MAIL_BANK_DIR_PATH."includes/queries.php";
442
+ }
443
+ if(file_exists(MAIL_BANK_DIR_PATH."views/error-logs/error-logs.php"))
444
+ {
445
+ include_once MAIL_BANK_DIR_PATH."views/error-logs/error-logs.php";
446
+ }
447
+ if(file_exists(MAIL_BANK_DIR_PATH."includes/footer.php"))
448
+ {
449
+ include_once MAIL_BANK_DIR_PATH."includes/footer.php";
450
+ }
451
+ }
452
+ }
453
+
454
  /*
455
  Function Name: mb_premium_editions
456
  Parameter: No
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank, wordpress-empire
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.7.1
6
- Stable tag: 2.0.15
7
 
8
  Mail Bank reconfigures the Mail Function and provides sophisticated SMTP settings to send and log emails from your WordPress site.
9
 
@@ -11,36 +11,33 @@ Mail Bank reconfigures the Mail Function and provides sophisticated SMTP setting
11
 
12
  [**Mail Bank**](http://beta.tech-banker.com/products/mail-bank/) is one of the highly productive WordPress plugin.
13
 
14
- It is one of the best plugin in the WordPress to send or receive emails.
15
 
16
- The Plugin has options to choose between your custom SMTP server or the inbuilt phpmailer.
17
 
18
- This plugin provides the easily configurable email parameters for sending emails.
19
-
20
- It allows the view the detailed records of each and every logged emails such as Email To, Subject, Cc, Bcc, From, Debugging Output, Date/Time.
21
-
22
- Mail Bank configures the settings to send or log emails whether successful or failure with debugging output to troubleshoot your outgoing emails.
23
-
24
- It automatically send emails to verify setings just by a single click.
25
-
26
- You can also configure debug mode settings to view the debugging output with complete details.
27
-
28
- It is the primary plugin to support various Oauth 2.0 implementations such as Gmail, Microsoft and Yahoo.
29
-
30
- This plugin lets you customize the email details that appear on emails sent from WordPress. With this plugin you can configure your SMTP email to use instead php mail().
31
- You can customize both (from email & from name) fields with this plugin so your users are not confused.
32
-
33
- You can also hide your email and name by override From name and From email.
34
 
35
  It provides two types of Encryption that are the following:
36
 
37
  * TLS (Transport Layer Security) - It proceed to the secure connections after successful communication between Client & Server.
38
  * SSL (Secure Sockets Layer) - It directly proceed to secure connections.
39
 
40
- It allows users to view the complete details including Status, Delivery Report, Test Email Address, Date, MIME version and cause of unsuccessful delivery when Mail was not send due to some
41
- problems.
42
 
43
- It also provides Oauth authentication to send emails with more security.
 
 
 
 
 
44
 
45
  This Plugin is compatible with SMTP Servers such as Gmail, Microsoft and Yahoo and many more.
46
 
@@ -67,7 +64,6 @@ This Plugin is compatible with SMTP Servers such as Gmail, Microsoft and Yahoo a
67
  > * [Feedbacks Screen](http://beta.tech-banker.com/products/mail-bank/user-guide/feedbacks/)
68
  > * [System Information Screen](http://beta.tech-banker.com/products/mail-bank/user-guide/system-information/)
69
 
70
-
71
  List of Settings that you can set with this plugin are the following:
72
 
73
  * From Name
@@ -86,19 +82,11 @@ List of Settings that you can set with this plugin are the following:
86
  * Client ID
87
  * Secret Key
88
 
89
- There are two ways to send Emails from your WordPress site to SMTP servers.
90
-
91
- The first method uses OAuth Authentication. This is a more secure method to send emails. It requires both Client ID and Secret key.
92
 
93
- The second method is by allowing to use less secure apps. This method is not recommended because it's less secure. You have to type in your Username and Password. It should only be used if
94
- you are unable to use the first method.
95
 
96
- It allows to determine the access level or permissions of Mail Bank among different authorized users.
97
-
98
- An ambition of this plugin is to make end users more comfortable and utilize all features that comes built in. We are providing you the beneficial steps for an installation purpose.
99
-
100
- Mail Bank Regularly updates the simplicity of usage along with efficient functionality makes it a perfect choice for your WordPress site to send emails to multiple recipients just in seconds.
101
- There are also Premium Editions of the plugin with more useful features available.
102
 
103
  There are lot of features also available in Premium Editions, you can check before downloading & purchasing.
104
  Click [here](http://beta.tech-banker.com/products/mail-bank/) for Mail Bank Premium Editions.
@@ -360,9 +348,18 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
360
  8. Roles & Capabilities Screen
361
  9. Feedbacks Screen
362
  10. System Information Screen
 
363
 
364
  == Changelog ==
365
 
 
 
 
 
 
 
 
 
366
  = 2.0.15 =
367
 
368
  * Translations File updated
@@ -693,4 +690,4 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
693
 
694
  = 1.0 =
695
 
696
- * Initial Release
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.7.1
6
+ Stable tag: 2.0.16
7
 
8
  Mail Bank reconfigures the Mail Function and provides sophisticated SMTP settings to send and log emails from your WordPress site.
9
 
11
 
12
  [**Mail Bank**](http://beta.tech-banker.com/products/mail-bank/) is one of the highly productive WordPress plugin.
13
 
14
+ Mail Bank is an substantial tool known for excellence deliverability through safe and secure way. It has following two options to send emails one is SMTP server and other is inbuilt PHPMailer.
15
 
16
+ This plugin
17
 
18
+ * provides easily configurable email parameters for sending emails
19
+ * allows to view the detailed records of each and every logged emails such as Email To, Subject, Cc, Bcc, From, Debugging Output, Date/Time
20
+ * configures the settings to send or log emails
21
+ * it configures emails whether successful or failure with debugging output to troubleshoot your outgoing emails
22
+ * can configure debug mode settings to view the debugging output with complete details
23
+ * support various Oauth 2.0 implementations such as Gmail, Microsoft and Yahoo
24
+ * let you customize the email details that appear on emails sent from WordPress
25
+ * allows you override your email and name by other details
26
+ * allows you to send emails to multiple recipients just in few seconds
 
 
 
 
 
 
 
27
 
28
  It provides two types of Encryption that are the following:
29
 
30
  * TLS (Transport Layer Security) - It proceed to the secure connections after successful communication between Client & Server.
31
  * SSL (Secure Sockets Layer) - It directly proceed to secure connections.
32
 
33
+ It allows user to view
 
34
 
35
+ * complete details including status
36
+ * Delivery Report
37
+ * Test Emails Address
38
+ * Date
39
+ * MIME version
40
+ * cause of unsuccessful delivery of Mail
41
 
42
  This Plugin is compatible with SMTP Servers such as Gmail, Microsoft and Yahoo and many more.
43
 
64
  > * [Feedbacks Screen](http://beta.tech-banker.com/products/mail-bank/user-guide/feedbacks/)
65
  > * [System Information Screen](http://beta.tech-banker.com/products/mail-bank/user-guide/system-information/)
66
 
 
67
  List of Settings that you can set with this plugin are the following:
68
 
69
  * From Name
82
  * Client ID
83
  * Secret Key
84
 
85
+ There are two ways to send Emails from your WordPress site to SMTP servers
 
 
86
 
87
+ * The first method uses OAuth Authentication : This is a more secure method to send emails. It requires both Client ID and Secret key.
 
88
 
89
+ * The second method is by allowing to use less secure apps : This method is not recommended because it's less secure. You have to type in your Username and Password. It should only be used if you are unable to use the first method.
 
 
 
 
 
90
 
91
  There are lot of features also available in Premium Editions, you can check before downloading & purchasing.
92
  Click [here](http://beta.tech-banker.com/products/mail-bank/) for Mail Bank Premium Editions.
348
  8. Roles & Capabilities Screen
349
  9. Feedbacks Screen
350
  10. System Information Screen
351
+ 11. Error Logs Screen
352
 
353
  == Changelog ==
354
 
355
+ = 2.0.16 =
356
+
357
+ * Obsolete Code removed
358
+ * Unused Files removed
359
+ * Code Optimized
360
+ * Major Bugs Fixed
361
+ * Translation File Updated
362
+
363
  = 2.0.15 =
364
 
365
  * Translations File updated
690
 
691
  = 1.0 =
692
 
693
+ * Initial Release
views/email-logs/email-logs.php CHANGED
@@ -31,198 +31,149 @@ else
31
  $end_date = time();
32
  $start_date = $end_date - 864000;
33
  ?>
34
- <div class="page-content-wrapper">
35
- <div class="page-content">
36
- <div class="page-bar">
37
- <ul class="page-breadcrumb">
38
- <li>
39
- <i class="icon-custom-home"></i>
40
- <a href="admin.php?page=mb_email_configuration">
41
- <?php echo $wp_mail_bank; ?>
42
- </a>
43
- <span>></span>
44
- </li>
45
- <li>
46
- <span>
47
- <?php echo $mb_email_logs; ?>
48
- </span>
49
- </li>
50
- </ul>
51
- </div>
52
- <div class="row">
53
- <div class="col-md-12">
54
- <div class="portlet box vivid-green">
55
- <div class="portlet-title">
56
- <div class="caption">
57
- <i class="icon-custom-note"></i>
58
- <?php echo $mb_email_logs; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </div>
60
- </div>
61
- <div class="portlet-body form">
62
- <form id="ux_frm_email_logs">
63
- <div class="form-body">
64
- <div class="note note-danger">
65
- <h4 class="block">
66
- <?php echo $mb_premium_edition_features_disclaimer; ?>
67
- </h4>
68
- <ul>
69
- <div class="row">
70
- <div class="col-md-3">
71
- <li><?php echo $mb_filters_disclaimer;?></li>
72
- </div>
73
- <div class="col-md-3">
74
- <li><?php echo $mb_delete_logs_disclaimer;?></li>
75
- </div>
76
- <div class="col-md-3">
77
- <li><?php echo $mb_debugging_output_disclaimer;?></li>
78
- </div>
79
- <div class="col-md-3">
80
- <li><?php echo $mb_show_details_disclaimer;?></li>
81
- </div>
82
- </div>
83
- </ul>
84
- <ul>
85
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
86
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/email-logs/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
87
- <li><?php echo $mb_click_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a><?php echo $mb_unblock_premium_disclaimer ?></li>
88
- </ul>
89
- <ul>
90
- <?php
91
- if(isset($extension_not_found) && count($extension_not_found) > 0)
92
- {
93
- ?>
94
- <h4 class="block">
95
- <?php echo $mb_important_disclaimer; ?>
96
- </h4>
97
- <li><?php echo $mb_contact_to_host; ?></li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  <?php
99
- foreach($extension_not_found as $extension)
100
  {
101
  ?>
102
- <li>* <?php echo $extension; ?></li>
 
 
103
  <?php
104
  }
105
- }
106
- ?>
107
- </ul>
108
- </div>
109
- <div class="row">
110
- <div class="col-md-6">
111
- <div class="form-group">
112
- <label class="control-label">
113
- <?php echo $mb_start_date_title;?> :
114
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_start_date_tooltip;?>" data-placement="right"></i>
115
- <span class="required" aria-required="true">*</span>
116
- </label>
117
- <input type="text" class="form-control" name="ux_txt_mb_start_date" id="ux_txt_mb_start_date" value="<?php echo date("m/d/Y",$start_date); ?>" placeholder="<?php echo $mb_start_date_placeholder; ?>" onfocus="prevent_datepicker_mail_bank(this.id);">
118
- </div>
119
- </div>
120
- <div class="col-md-6">
121
- <div class="form-group">
122
- <label class="control-label">
123
- <?php echo $mb_end_date_title;?> :
124
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_end_date_tooltip;?>" data-placement="right"></i>
125
- <span class="required" aria-required="true">*</span>
126
- </label>
127
- <input type="text" class="form-control" name="ux_txt_mb_end_date" id="ux_txt_mb_end_date" value="<?php echo date("m/d/Y",$end_date); ?>" placeholder="<?php echo $mb_end_date_placeholder;?>" onfocus="prevent_datepicker_mail_bank(this.id);">
128
- </div>
129
- </div>
130
- </div>
131
- <div class="form-actions">
132
- <div class="pull-right">
133
- <input type="submit" class="btn vivid-green" name="ux_btn_email_logs" id="ux_btn_email_logs" value="<?php echo $mb_submit;?>">
134
- </div>
135
- </div>
136
- <div class="line-separator"></div>
137
- <div class="table-top-margin">
138
- <select name="ux_ddl_email_logs" id="ux_ddl_email_logs" class="custom-bulk-width">
139
- <option value=""><?php echo $mb_email_logs_bulk_action; ?></option>
140
- <option value="delete"><?php echo $mb_email_logs_delete; ?></option>
141
- </select>
142
- <input type="button" class="btn vivid-green" name="ux_btn_apply" id="ux_btn_apply" value="<?php echo $mb_email_logs_apply;?>" onclick="premium_edition_notification_mail_bank()">
143
- </div>
144
- <table class="table table-striped table-bordered table-hover table-margin-top" id="ux_tbl_email_logs">
145
- <thead>
146
- <tr>
147
- <th style="text-align: center;" class="chk-action">
148
- <input type="checkbox" name="ux_chk_all_email_logs" id="ux_chk_all_email_logs">
149
- </th>
150
- <th style="width:32%">
151
- <label>
152
- <?php echo $mb_email_logs_email_to;?>
153
- </label>
154
- </th>
155
- <th style="width:25%">
156
- <label>
157
- <?php echo $mb_subject;?>
158
- </label>
159
- </th>
160
- <th style="width:19%">
161
- <label>
162
- <?php echo $mb_date_time;?>
163
- </label>
164
- </th>
165
- <th style="width:10%">
166
- <label>
167
- <?php echo $mb_email_logs_status;?>
168
- </label>
169
- </th>
170
- <th style="width:14%" class="chk-action">
171
- <label>
172
- <?php echo $mb_email_logs_actions;?>
173
- </label>
174
- </th>
175
- </tr>
176
- </thead>
177
- <tbody id="ux_dynamic_email_logs_table_filter">
178
- <?php
179
- foreach($unserialized_email_logs_data as $value)
180
- {
181
  ?>
182
- <tr>
183
- <td style="text-align: center;">
184
- <input type="checkbox" name="ux_chk_email_logs_<?php echo $value["id"]; ?>" id="ux_chk_email_logs_<?php echo $value["id"]; ?>" onclick="check_email_logs(<?php echo $value["id"]; ?>)" value="<?php echo $value["id"]; ?>">
185
- </td>
186
- <td id="ux_email_sent_to_<?php echo $value["id"] ?>">
187
- <?php echo $value["email_to"]; ?>
188
- </td>
189
- <td id="ux_email_subject_<?php echo $value["id"] ?>">
190
- <?php echo isset($value["subject"]) != "" ? $value["subject"] : "N/A"; ?>
191
- </td>
192
- <td id="ux_email_date_time_<?php echo $value["id"] ?>">
193
- <?php echo date("d M Y H:i A",$value["timestamp"]); ?>
194
- </td>
195
- <td id="ux_email_status_<?php echo $value["id"] ?>">
196
- <?php echo $value["status"]== "Sent" ? $mb_status_sent : $mb_status_not_sent; ?>
197
- </td>
198
- <td class="custom-alternative">
199
- <?php
200
- if(isset($value["debug_mode"]))
201
- {
202
- ?>
203
- <a onclick="premium_edition_notification_mail_bank()">
204
- <i class="icon-custom-doc tooltips" data-original-title="<?php echo $mb_email_logs_show_outputs ;?>" data-placement="top"></i>
205
- </a> |
206
- <?php
207
- }
208
- ?>
209
- <a onclick="premium_edition_notification_mail_bank()">
210
- <i class="icon-custom-share-alt tooltips" data-original-title="<?php echo $mb_email_logs_show_details ;?>" data-placement="top"></i>
211
- </a> |
212
- <a onclick="premium_edition_notification_mail_bank()">
213
- <i class="icon-custom-trash tooltips" data-original-title="<?php echo $mb_email_logs_delete ;?>" data-placement="top"></i>
214
- </a>
215
- </td>
216
- </tr>
217
- <?php
218
- }
219
- ?>
220
- </tbody>
221
- </table>
222
- </div>
223
- </form>
224
  </div>
225
- </div>
226
  </div>
227
  </div>
228
  </div>
@@ -232,38 +183,34 @@ else
232
  else
233
  {
234
  ?>
235
- <div class="page-content-wrapper">
236
- <div class="page-content">
237
- <div class="page-bar">
238
- <ul class="page-breadcrumb">
239
- <li>
240
- <i class="icon-custom-home"></i>
241
- <a href="admin.php?page=mb_email_configuration">
242
- <?php echo $wp_mail_bank; ?>
243
- </a>
244
- <span>></span>
245
- </li>
246
- <li>
247
- <span>
248
- <?php echo $mb_email_logs; ?>
249
- </span>
250
- </li>
251
- </ul>
252
- </div>
253
- <div class="row">
254
- <div class="col-md-12">
255
- <div class="portlet box vivid-green">
256
- <div class="portlet-title">
257
- <div class="caption">
258
- <i class="icon-custom-note"></i>
259
- <?php echo $mb_email_logs; ?>
260
- </div>
261
- </div>
262
- <div class="portlet-body form">
263
- <div class="form-body">
264
- <strong><?php echo $mb_user_access_message;?></strong>
265
- </div>
266
- </div>
267
  </div>
268
  </div>
269
  </div>
31
  $end_date = time();
32
  $start_date = $end_date - 864000;
33
  ?>
34
+ <div class="page-bar">
35
+ <ul class="page-breadcrumb">
36
+ <li>
37
+ <i class="icon-custom-home"></i>
38
+ <a href="admin.php?page=mb_email_configuration">
39
+ <?php echo $wp_mail_bank; ?>
40
+ </a>
41
+ <span>></span>
42
+ </li>
43
+ <li>
44
+ <span>
45
+ <?php echo $mb_email_logs; ?>
46
+ </span>
47
+ </li>
48
+ </ul>
49
+ </div>
50
+ <div class="row">
51
+ <div class="col-md-12">
52
+ <div class="portlet box vivid-green">
53
+ <div class="portlet-title">
54
+ <div class="caption">
55
+ <i class="icon-custom-note"></i>
56
+ <?php echo $mb_email_logs; ?>
57
+ </div>
58
+ </div>
59
+ <div class="portlet-body form">
60
+ <form id="ux_frm_email_logs">
61
+ <div class="form-body">
62
+ <div class="row">
63
+ <div class="col-md-6">
64
+ <div class="form-group">
65
+ <label class="control-label">
66
+ <?php echo $mb_start_date_title;?> :
67
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_start_date_tooltip;?>" data-placement="right"></i>
68
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
69
+ </label>
70
+ <input type="text" class="form-control" name="ux_txt_mb_start_date" id="ux_txt_mb_start_date" value="<?php echo date("m/d/Y",$start_date); ?>" placeholder="<?php echo $mb_start_date_placeholder; ?>" onfocus="prevent_datepicker_mail_bank(this.id);">
71
+ </div>
72
+ </div>
73
+ <div class="col-md-6">
74
+ <div class="form-group">
75
+ <label class="control-label">
76
+ <?php echo $mb_end_date_title;?> :
77
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_end_date_tooltip;?>" data-placement="right"></i>
78
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
79
+ </label>
80
+ <input type="text" class="form-control" name="ux_txt_mb_end_date" id="ux_txt_mb_end_date" value="<?php echo date("m/d/Y",$end_date); ?>" placeholder="<?php echo $mb_end_date_placeholder;?>" onfocus="prevent_datepicker_mail_bank(this.id);">
81
+ </div>
82
+ </div>
83
  </div>
84
+ <div class="form-actions">
85
+ <div class="pull-right">
86
+ <input type="submit" class="btn vivid-green" name="ux_btn_email_logs" id="ux_btn_email_logs" value="<?php echo $mb_submit;?>">
87
+ </div>
88
+ </div>
89
+ <div class="line-separator"></div>
90
+ <div class="table-top-margin">
91
+ <select name="ux_ddl_email_logs" id="ux_ddl_email_logs" class="custom-bulk-width">
92
+ <option value=""><?php echo $mb_email_logs_bulk_action; ?></option>
93
+ <option value="delete" style="color:red;"><?php echo $mb_email_logs_delete; ?></option>
94
+ </select>
95
+ <input type="button" class="btn vivid-green" name="ux_btn_apply" id="ux_btn_apply" value="<?php echo $mb_email_logs_apply;?>" onclick="premium_edition_notification_mail_bank()">
96
+ </div>
97
+ <table class="table table-striped table-bordered table-hover table-margin-top" id="ux_tbl_email_logs">
98
+ <thead>
99
+ <tr>
100
+ <th style="text-align: center;" class="chk-action">
101
+ <input type="checkbox" name="ux_chk_all_email_logs" id="ux_chk_all_email_logs">
102
+ </th>
103
+ <th style="width:32%">
104
+ <label>
105
+ <?php echo $mb_email_logs_email_to;?>
106
+ </label>
107
+ </th>
108
+ <th style="width:25%">
109
+ <label>
110
+ <?php echo $mb_subject;?>
111
+ </label>
112
+ </th>
113
+ <th style="width:19%">
114
+ <label>
115
+ <?php echo $mb_date_time;?>
116
+ </label>
117
+ </th>
118
+ <th style="width:10%">
119
+ <label>
120
+ <?php echo $mb_email_logs_status;?>
121
+ </label>
122
+ </th>
123
+ <th style="width:14%" class="chk-action">
124
+ <label>
125
+ <?php echo $mb_email_logs_actions;?>
126
+ </label>
127
+ </th>
128
+ </tr>
129
+ </thead>
130
+ <tbody id="ux_dynamic_email_logs_table_filter">
131
+ <?php
132
+ foreach($unserialized_email_logs_data as $value)
133
+ {
134
+ ?>
135
+ <tr>
136
+ <td style="text-align: center;">
137
+ <input type="checkbox" name="ux_chk_email_logs_<?php echo $value["id"]; ?>" id="ux_chk_email_logs_<?php echo $value["id"]; ?>" onclick="check_email_logs(<?php echo $value["id"]; ?>)" value="<?php echo $value["id"]; ?>">
138
+ </td>
139
+ <td id="ux_email_sent_to_<?php echo $value["id"] ?>">
140
+ <?php echo $value["email_to"]; ?>
141
+ </td>
142
+ <td id="ux_email_subject_<?php echo $value["id"] ?>">
143
+ <?php echo isset($value["subject"]) != "" ? $value["subject"] : "N/A"; ?>
144
+ </td>
145
+ <td id="ux_email_date_time_<?php echo $value["id"] ?>">
146
+ <?php echo date("d M Y H:i A",$value["timestamp"]); ?>
147
+ </td>
148
+ <td id="ux_email_status_<?php echo $value["id"] ?>">
149
+ <?php echo $value["status"]== "Sent" ? $mb_status_sent : $mb_status_not_sent; ?>
150
+ </td>
151
+ <td class="custom-alternative">
152
  <?php
153
+ if(isset($value["debug_mode"]))
154
  {
155
  ?>
156
+ <a onclick="premium_edition_notification_mail_bank()">
157
+ <i class="icon-custom-doc tooltips" data-original-title="<?php echo $mb_email_logs_show_outputs ;?>" data-placement="top"></i>
158
+ </a> |
159
  <?php
160
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  ?>
162
+ <a onclick="premium_edition_notification_mail_bank()">
163
+ <i class="icon-custom-share-alt tooltips" data-original-title="<?php echo $mb_email_logs_show_details ;?>" data-placement="top"></i>
164
+ </a> |
165
+ <a onclick="premium_edition_notification_mail_bank()">
166
+ <i class="icon-custom-trash tooltips" data-original-title="<?php echo $mb_email_logs_delete ;?>" data-placement="top"></i>
167
+ </a>
168
+ </td>
169
+ </tr>
170
+ <?php
171
+ }
172
+ ?>
173
+ </tbody>
174
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  </div>
176
+ </form>
177
  </div>
178
  </div>
179
  </div>
183
  else
184
  {
185
  ?>
186
+ <div class="page-bar">
187
+ <ul class="page-breadcrumb">
188
+ <li>
189
+ <i class="icon-custom-home"></i>
190
+ <a href="admin.php?page=mb_email_configuration">
191
+ <?php echo $wp_mail_bank; ?>
192
+ </a>
193
+ <span>></span>
194
+ </li>
195
+ <li>
196
+ <span>
197
+ <?php echo $mb_email_logs; ?>
198
+ </span>
199
+ </li>
200
+ </ul>
201
+ </div>
202
+ <div class="row">
203
+ <div class="col-md-12">
204
+ <div class="portlet box vivid-green">
205
+ <div class="portlet-title">
206
+ <div class="caption">
207
+ <i class="icon-custom-note"></i>
208
+ <?php echo $mb_email_logs; ?>
209
+ </div>
210
+ </div>
211
+ <div class="portlet-body form">
212
+ <div class="form-body">
213
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
 
214
  </div>
215
  </div>
216
  </div>
views/email-setup/email-setup.php CHANGED
@@ -33,405 +33,372 @@ else
33
  $mail_bank_email_configuration_settings = wp_create_nonce("mail_bank_email_configuration_settings");
34
  $mail_bank_test_email_configuration = wp_create_nonce("mail_bank_test_email_configuration");
35
  ?>
36
- <div class="page-content-wrapper">
37
- <div class="page-content">
38
- <div class="page-bar">
39
- <ul class="page-breadcrumb">
40
- <li>
41
- <i class="icon-custom-home"></i>
42
- <a href="admin.php?page=mb_email_configuration">
43
- <?php echo $wp_mail_bank; ?>
44
- </a>
45
- <span>></span>
46
- </li>
47
- <li>
48
- <span>
49
- <?php echo $mb_email_configuration; ?>
50
- </span>
51
- </li>
52
- </ul>
53
- </div>
54
- <div class="row">
55
- <div class="col-md-12">
56
- <div class="portlet box vivid-green">
57
- <div class="portlet-title">
58
- <div class="caption">
59
- <i class="icon-custom-envelope-open"></i>
60
- <?php echo $mb_email_configuration ; ?>
61
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  </div>
63
- <div class="portlet-body form">
64
- <div class="form-body">
65
- <div class="note note-danger">
66
- <h4 class="block">
67
- <?php echo $mb_premium_edition_features_disclaimer; ?>
68
- </h4>
69
- <ul>
70
- <li><?php echo $mb_cc_bcc_disclaimer;?></li>
71
- </ul>
72
- <ul>
73
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
74
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/email-setup/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
75
- <li><?php echo $mb_click_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a><?php echo $mb_unblock_premium_disclaimer ?></li>
76
- </ul>
77
- <ul>
78
- <?php
79
- if(isset($extension_not_found) && count($extension_not_found) > 0)
80
- {
81
- ?>
82
- <h4 class="block">
83
- <?php echo $mb_important_disclaimer; ?>
84
- </h4>
85
- <li><?php echo $mb_contact_to_host; ?></li>
86
- <?php
87
- foreach($extension_not_found as $extension)
88
- {
89
- ?>
90
- <li>* <?php echo $extension; ?></li>
91
- <?php
92
- }
93
- }
94
- ?>
95
- </ul>
96
- </div>
97
- <div class="form-wizard" id="ux_div_frm_wizard">
98
- <ul class="nav nav-pills nav-justified steps">
99
- <li class="active">
100
- <a aria-expanded="true" href="javascript:void(0);" class="step">
101
- <span class="number"> 1 </span>
102
- <span class="desc"> <?php echo $mb_wizard_basic_info; ?> </span>
103
- </a>
104
- </li>
105
- <li>
106
- <a href="javascript:void(0);" class="step">
107
- <span class="number"> 2 </span>
108
- <span class="desc"><?php echo $mb_wizard_account_setup; ?> </span>
109
- </a>
110
- </li>
111
- <li>
112
- <a href="javascript:void(0);" class="step">
113
- <span class="number"> 3 </span>
114
- <span class="desc"><?php echo $mb_wizard_confirm; ?> </span>
115
- </a>
116
- </li>
117
- </ul>
118
- </div>
119
- <div id="ux_div_step_progres_bar" class="progress progress-striped" role="progressbar">
120
- <div id="ux_div_step_progres_bar_width" style="width: 33%;" class="progress-bar progress-bar-success"></div>
 
 
 
 
 
121
  </div>
122
- <div class="line-separator"></div>
123
- <div class="tab-content" id="mailer_settings">
124
- <form id="ux_frm_email_configuration">
125
- <div id="ux_div_first_step">
126
- <div class="row">
127
- <div class="col-md-6">
128
- <div class="form-group">
129
- <label class="control-label">
130
- <?php echo $mb_email_configuration_enable_from_name;?> :
131
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_enable_from_name_tooltip;?>" data-placement="right"></i>
132
- <span class="required" aria-required="true">*</span>
133
- </label>
134
- <select name="ux_ddl_from_name" id="ux_ddl_from_name" class="form-control" onchange="mail_bank_from_name_override()">
135
- <option value="override"><?php echo $mb_override;?></option>
136
- <option value="dont_override"><?php echo $mb_dont_override;?></option>
137
- </select>
138
- </div>
139
- </div>
140
- <div class="col-md-6">
141
- <div class="form-group">
142
- <label class="control-label">
143
- <?php echo $mb_email_configuration_from_name;?> :
144
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_from_name_tooltip;?>" data-placement="right"></i>
145
- <span class="required" aria-required="true">*</span>
146
- </label>
147
- <input type="text" class="form-control" name="ux_txt_mb_from_name" id="ux_txt_mb_from_name" value="<?php echo isset($email_configuration_array["sender_name"]) ? esc_html($email_configuration_array["sender_name"]) : "";?>" placeholder="<?php echo $mb_email_configuration_from_name_placeholder;?>">
148
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  </div>
150
  </div>
151
- <div class="row">
152
- <div class="col-md-6">
153
- <div class="form-group">
154
- <label class="control-label">
155
- <?php echo $mb_email_configuration_enable_from_email;?> :
156
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_enable_from_email_tooltip;?>" data-placement="right"></i>
157
- <span class="required" aria-required="true">*</span>
158
- </label>
159
- <select name="ux_ddl_from_email" id="ux_ddl_from_email" class="form-control" onchange="mail_bank_from_email_override()">
160
- <option value="override"><?php echo $mb_override;?></option>
161
- <option value="dont_override"><?php echo $mb_dont_override;?></option>
162
- </select>
163
- </div>
164
  </div>
165
- <div class="col-md-6">
166
- <div class="form-group">
167
- <label class="control-label">
168
- <?php echo $mb_email_configuration_from_email;?> :
169
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_address_tooltip;?>" data-placement="right"></i>
170
- <span class="required" aria-required="true">*</span>
171
- </label>
172
- <input type="text" class="form-control" name="ux_txt_mb_from_email_configuration" id="ux_txt_mb_from_email_configuration" value="<?php echo isset($email_configuration_array["sender_email"]) ? esc_html($email_configuration_array["sender_email"]) : "";?>" placeholder="<?php echo $mb_email_configuration_from_email_placeholder;?>">
173
- </div>
 
 
174
  </div>
175
  </div>
176
- <div class="line-separator"></div>
177
- <div class="form-actions">
178
- <div class="pull-right">
179
- <button class="btn vivid-green" name="ux_btn_next_step_second" id="ux_btn_next_step_second" onclick="mail_bank_move_to_second_step();"><?php echo $mb_next_step;?> >> </button>
 
 
 
 
 
 
 
 
 
180
  </div>
181
  </div>
182
  </div>
183
- <div id="ux_div_second_step" style="display:none">
184
  <div class="row">
185
  <div class="col-md-6">
186
  <div class="form-group">
187
  <label class="control-label">
188
- <?php echo $mb_email_configuration_email_address;?> :
189
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_email_address_tooltip;?>" data-placement="right"></i>
190
  <span class="required" aria-required="true">*</span>
191
  </label>
192
- <input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="<?php echo isset($email_configuration_array["email_address"]) ? esc_html($email_configuration_array["email_address"]) : "";?>" placeholder="<?php echo $mb_email_configuration_email_address_placeholder;?>" onblur="mail_bank_get_host_port()">
193
  </div>
194
  </div>
195
  <div class="col-md-6">
196
  <div class="form-group">
197
  <label class="control-label">
198
- <?php echo $mb_email_configuration_reply_to;?> :
199
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_reply_to_tooltip;?>" data-placement="right"></i>
 
200
  </label>
201
- <input type="text" class="form-control" name="ux_txt_reply_to" id="ux_txt_reply_to" disabled="disabled" value="<?php echo isset($email_configuration_array["reply_to"]) ? esc_html($email_configuration_array["reply_to"]) : "";?>" placeholder="<?php echo $mb_email_configuration_reply_to_placeholder;?>">
202
  </div>
203
  </div>
204
  </div>
 
 
 
 
 
 
 
 
 
 
205
  <div class="row">
206
  <div class="col-md-6">
207
  <div class="form-group">
208
  <label class="control-label">
209
- <?php echo $mb_email_configuration_cc_label; ?> :
210
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_cc_email_address_tooltip; ?>" data-placement="right"></i>
 
211
  </label>
212
- <input type="text" class="form-control" name="ux_txt_cc" id="ux_txt_cc" disabled="disabled" value="<?php echo isset($email_configuration_array["cc"]) ? $email_configuration_array["cc"] : "" ?>" placeholder="<?php echo $mb_email_configuration_cc_email_placeholder; ?>">
213
  </div>
214
  </div>
215
  <div class="col-md-6">
216
  <div class="form-group">
217
  <label class="control-label">
218
- <?php echo $mb_email_configuration_bcc_label; ?> :
219
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_bcc_email_address_tooltip; ?>" data-placement="right"></i>
220
- </label>
221
- <input type="text" class="form-control" name="ux_txt_bcc" id="ux_txt_bcc" disabled="disabled" value="<?php echo isset($email_configuration_array["bcc"]) ? $email_configuration_array["bcc"] : "" ?>" placeholder="<?php echo $mb_email_configuration_bcc_email_placeholder; ?>">
222
- </div>
223
- </div>
224
- </div>
225
- <div class="form-group">
226
- <label class="control-label">
227
- <?php echo $mb_email_configuration_mailer_type;?> :
228
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_mailer_type_tooltip;?>" data-placement="right"></i>
229
- <span class="required" aria-required="true">*</span>
230
- </label>
231
- <select name="ux_ddl_type" id="ux_ddl_type" class="form-control" onchange="change_settings_mail_bank()">
232
- <option value="php_mail_function" selected="selected"><?php echo $mb_email_configuration_use_php_mail_function;?></option>
233
- <option value="smtp"><?php echo $mb_email_configuration_send_email_via_smtp;?></option>
234
- </select>
235
- </div>
236
- <div id="ux_div_smtp_mail_function">
237
- <div class="row">
238
- <div class="col-md-6">
239
- <div class="form-group">
240
- <label class="control-label">
241
- <?php echo $mb_email_configuration_smtp_host;?> :
242
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_smtp_host_tooltip;?>" data-placement="right"></i>
243
- <span class="required" aria-required="true">*</span>
244
- </label>
245
- <input type="text" class="form-control" name="ux_txt_host" id="ux_txt_host" value="<?php echo isset($email_configuration_array["hostname"]) ? esc_html($email_configuration_array["hostname"]) : "";?>" placeholder="<?php echo $mb_email_configuration_smtp_host_placeholder;?>" onblur="change_link_content_mail_bank();">
246
- </div>
247
- </div>
248
- <div class="col-md-6">
249
- <div class="form-group">
250
- <label class="control-label">
251
- <?php echo $mb_email_configuration_encryption;?> :
252
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_encryption_tooltip;?>" data-placement="right"></i>
253
- <span class="required" aria-required="true">*</span>
254
- </label>
255
- <select name="ux_ddl_encryption" id="ux_ddl_encryption" class="form-control" onchange="mail_bank_select_port()">
256
- <option value="none"><?php echo $mb_email_configuration_no_encryption;?></option>
257
- <option value="tls"><?php echo $mb_email_configuration_use_tls_encryption;?></option>
258
- <option value="ssl"><?php echo $mb_email_configuration_use_ssl_encryption;?></option>
259
- </select>
260
- </div>
261
- </div>
262
- </div>
263
- <div class="row">
264
- <div class="col-md-6">
265
- <div class="form-group">
266
- <label class="control-label">
267
- <?php echo $mb_email_configuration_smtp_port?> :
268
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_smtp_port_tooltip;?>" data-placement="right"></i>
269
- <span class="required" aria-required="true">*</span>
270
- </label>
271
- <input type="text" class="form-control" name="ux_txt_port" id="ux_txt_port" value="<?php echo isset($email_configuration_array["port"]) ? esc_html($email_configuration_array["port"]) : "";?>" placeholder="<?php echo $mb_email_configuration_smtp_port_placeholder;?>" onfocus="paste_only_digits_mail_bank(this.id);">
272
- </div>
273
- </div>
274
- <div class="col-md-6">
275
- <div class="form-group">
276
- <label class="control-label">
277
- <?php echo $mb_email_configuration_authentication;?> :
278
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_authentication_tooltip;?>" data-placement="right"></i>
279
- <span class="required" aria-required="true">*</span>
280
- </label>
281
- <select name="ux_ddl_mb_authentication" id="ux_ddl_mb_authentication" class="form-control" onchange="select_credentials_mail_bank()">
282
- <option value="oauth2"><?php echo $mb_email_configuration_use_oauth;?></option>
283
- <option value="crammd5"><?php echo $mb_email_configuration_cram_md5;?></option>
284
- <option value="login"><?php echo $mb_email_configuration_login;?></option>
285
- <option value="plain"><?php echo $mb_email_configuration_use_plain_authentication;?></option>
286
- </select>
287
- </div>
288
- </div>
289
- </div>
290
- <div id="ux_div_oauth_authentication">
291
- <div class="row">
292
- <div class="col-md-6">
293
- <div class="form-group">
294
- <label class="control-label">
295
- <?php echo $mb_email_configuration_client_id;?> <a href="" target="_blank" id="ux_link_reference"><span id="ux_link_content"></span></a>:
296
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_client_id_tooltip;?>" data-placement="right"></i>
297
- <span class="required" aria-required="true">*</span>
298
- </label>
299
- <input type="text" class="form-control" name="ux_txt_client_id" id="ux_txt_client_id" value="<?php echo isset($email_configuration_array["client_id"]) ? esc_html($email_configuration_array["client_id"]) : "";?>" placeholder="<?php echo $mb_email_configuration_client_id_placeholder;?>" onclick="this.select()">
300
- </div>
301
- </div>
302
- <div class="col-md-6">
303
- <div class="form-group">
304
- <label class="control-label">
305
- <?php echo $mb_email_configuration_client_secret;?> :
306
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_client_secret_tooltip;?>" data-placement="right"></i>
307
- <span class="required" aria-required="true">*</span>
308
- </label>
309
- <input type="text" class="form-control" name="ux_txt_client_secret" id="ux_txt_client_secret" value="<?php echo isset($email_configuration_array["client_secret"]) ? esc_html($email_configuration_array["client_secret"]) : "";?>" placeholder="<?php echo $mb_email_configuration_client_secret_placeholder;?>" onclick="this.select()">
310
- </div>
311
- </div>
312
- </div>
313
- <div class="form-group">
314
- <label class="control-label">
315
- <?php echo $mb_email_configuration_redirect_uri;?> :
316
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_redirect_uri_tooltip;?>" data-placement="right"></i>
317
  <span class="required" aria-required="true">*</span>
318
  </label>
319
- <input type="text" name="ux_txt_redirect_uri" id="ux_txt_redirect_uri" readonly="readonly" class="form-control" value="<?php echo $oauth_redirect_url;?>" onclick="this.select()">
320
- </div>
321
- </div>
322
- <div id="ux_div_username_password_authentication">
323
- <div class="row">
324
- <div class="col-md-6">
325
- <div class="form-group">
326
- <label class="control-label">
327
- <?php echo $mb_email_configuration_username;?> :
328
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_username_tooltip;?>" data-placement="right"></i>
329
- <span class="required" aria-required="true">*</span>
330
- </label>
331
- <input type="text" class="form-control" name="ux_txt_username" id="ux_txt_username" value="<?php echo isset($email_configuration_array["username"]) ? esc_html($email_configuration_array["username"]) : "";?>" placeholder="<?php echo $mb_email_configuration_username_placeholder;?>">
332
- </div>
333
- </div>
334
- <div class="col-md-6">
335
- <div class="form-group">
336
- <label class="control-label">
337
- <?php echo $mb_email_configuration_password;?> :
338
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_password_tooltip;?>" data-placement="right"></i>
339
- <span class="required" aria-required="true">*</span>
340
- </label>
341
- <input type="password" class="form-control" name="ux_txt_password" id="ux_txt_password" value="<?php echo isset($email_configuration_array["password"]) ? str_repeat ( '*', strlen ( base64_decode(esc_html($email_configuration_array["password"])))) : "";?>" placeholder="<?php echo $mb_email_configuration_password_placeholder;?>">
342
- </div>
343
- </div>
344
  </div>
345
  </div>
346
  </div>
347
- <div id="ux_div_automatic_mail">
348
- <div class="form-group">
349
- <label class="control-label">
350
- <input type="checkbox" name="ux_chk_automatic_sent_mail" id="ux_chk_automatic_sent_mail" value="1" checked="checked">
351
- <strong><?php echo $mb_email_configuration_tick_for_sent_mail; ?></strong>
352
- </label>
353
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
354
  </div>
355
- <div class="line-separator"></div>
356
- <div class="form-actions">
357
- <div class="pull-left">
358
- <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_first" id="ux_btn_previsious_step_first" onclick="mail_bank_move_to_first_step()"> << <?php echo $mb_previous_step;?></button>
359
- </div>
360
- <div class="pull-right">
361
- <button class="btn vivid-green" name="ux_btn_next_step_third" id="ux_btn_next_step_third" onclick="mail_bank_move_to_third_step();"><?php echo $mb_next_step;?> >></button>
362
- </div>
363
  </div>
364
  </div>
365
- </form>
366
- <div id="test_email" style="display:none">
367
- <form id="ux_frm_test_email_configuration">
368
- <div id="ux_div_test_mail">
369
- <div class="form-group">
370
- <label class="control-label">
371
- <?php echo $mb_email_configuration_test_email_address;?> :
372
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_test_email_address_tooltip;?>" data-placement="right"></i>
373
- <span class="required" aria-required="true">*</span>
374
- </label>
375
- <input type="text" class="form-control" name="ux_txt_email" id="ux_txt_email" value="<?php $admin_email = get_option("admin_email"); echo $admin_email;?>" placeholder="<?php echo $mb_email_configuration_test_email_address_placeholder;?>">
376
- </div>
377
- <div class="form-group">
378
- <label class="control-label">
379
- <?php echo $mb_subject;?> :
380
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_subject_test_tooltip;?>" data-placement="right"></i>
381
- <span class="required" aria-required="true">*</span>
382
- </label>
383
- <input type="text" class="form-control" name="ux_txt_subject" id="ux_txt_subject" value="Test Email - Mail Bank" placeholder="<?php echo $mb_email_configuration_subject_test_placeholder;?>">
384
- </div>
385
- <div class="form-group">
386
- <label class="control-label">
387
- <?php echo $mb_email_configuration_content;?> :
388
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_content_tooltip;?>" data-placement="right"></i>
389
- <span class="required" aria-required="true">*</span>
390
- </label>
391
- <?php
392
- $email_configuration = "This is a demo Test Email for Email Setup - Mail Bank";
393
- wp_editor( $email_configuration, $id ="ux_content" , array("media_buttons" => false, "textarea_rows" => 8, "tabindex" => 4 ) );
394
- ?>
395
- <textarea id="ux_email_configuration_text_area" name="ux_email_configuration_text_area" style="display: none;"></textarea>
396
- </div>
397
- <div class="line-separator"></div>
398
- <div class="form-actions">
399
- <div class="pull-left">
400
- <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_second" id="ux_btn_previsious_step_second" onclick="mail_bank_second_step_settings()"> << <?php echo $mb_previous_step;?></button>
401
- </div>
402
- <div class="pull-right">
403
- <button class="btn vivid-green" name="ux_btn_save_test_email" id="ux_btn_save_test_email" onclick="mail_bank_send_test_mail()"><?php echo $mb_email_configuration_send_test_email;?></button>
404
- <button type="button" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" onclick="mail_bank_save_changes()"> <?php echo $mb_save_changes;?></button>
405
- </div>
406
- </div>
407
  </div>
408
- <div id="console_log_div" style="display: none;">
409
- <div class="form-group">
410
- <label class="control-label"><?php echo $mb_email_configuration_smtp_debugging_output;?> :</label>
411
- <textarea name="ux_txtarea_console_log" class="form-control" id="ux_txtarea_console_log" rows="15" readonly="readonly"><?php echo $mb_email_configuration_send_test_email_textarea;?></textarea>
412
- </div>
413
  </div>
414
- <div id="ux_div_mail_console" style="display: none;">
415
- <div id="result_div">
416
- <div class="form-group">
417
- <label class="control-label"><?php echo $mb_email_configuration_result; ?>:</label>
418
- <textarea name="ux_txtarea_result_log" id="ux_txtarea_result_log" class="form-control" rows="16" readonly="readonly" ></textarea>
419
- </div>
420
- </div>
421
- <div class="line-separator"></div>
422
- <div class="form-actions">
423
- <div class="pull-left">
424
- <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_second" id="ux_btn_previsious_step_second" onclick="mail_bank_second_step_settings()"> << <?php echo $mb_previous_step;?></button>
425
- </div>
426
- <div class="pull-right">
427
- <input type="button" class="btn vivid-green" name="ux_btn_another_test_email" onclick="another_test_email_mail_bank();" id="ux_btn_another_test_email" value="<?php echo $mb_email_configuration_send_another_test_email;?>">
428
- <button type="button" class="btn vivid-green" name="ux_btn_save_changes_on_another_mail" id="ux_btn_save_changes_on_another_mail" onclick="mail_bank_save_changes()"> <?php echo $mb_save_changes;?></button>
429
- </div>
430
- </div>
431
  </div>
432
- </form>
433
  </div>
434
- </div>
435
  </div>
436
  </div>
437
  </div>
@@ -444,40 +411,36 @@ else
444
  else
445
  {
446
  ?>
447
- <div class="page-content-wrapper">
448
- <div class="page-content">
449
- <div class="page-bar">
450
- <ul class="page-breadcrumb">
451
- <li>
452
- <i class="icon-custom-home"></i>
453
- <a href="admin.php?page=mb_email_configuration">
454
- <?php echo $wp_mail_bank; ?>
455
- </a>
456
- <span>></span>
457
- </li>
458
- <li>
459
- <span>
460
- <?php echo $mb_email_configuration; ?>
461
- </span>
462
- </li>
463
- </ul>
464
- </div>
465
- <div class="row">
466
- <div class="col-md-12">
467
- <div class="portlet box vivid-green">
468
- <div class="portlet-title">
469
- <div class="caption">
470
- <i class="icon-custom-envelope-open"></i>
471
- <?php echo $mb_email_configuration; ?>
472
- </div>
473
- </div>
474
- <div class="portlet-body form">
475
- <div class="form-body">
476
- <strong><?php echo $mb_user_access_message;?></strong>
477
- </div>
478
  </div>
479
  </div>
480
- </div>
481
  </div>
482
  </div>
483
  </div>
33
  $mail_bank_email_configuration_settings = wp_create_nonce("mail_bank_email_configuration_settings");
34
  $mail_bank_test_email_configuration = wp_create_nonce("mail_bank_test_email_configuration");
35
  ?>
36
+ <div class="page-bar">
37
+ <ul class="page-breadcrumb">
38
+ <li>
39
+ <i class="icon-custom-home"></i>
40
+ <a href="admin.php?page=mb_email_configuration">
41
+ <?php echo $wp_mail_bank; ?>
42
+ </a>
43
+ <span>></span>
44
+ </li>
45
+ <li>
46
+ <span>
47
+ <?php echo $mb_email_configuration; ?>
48
+ </span>
49
+ </li>
50
+ </ul>
51
+ </div>
52
+ <div class="row">
53
+ <div class="col-md-12">
54
+ <div class="portlet box vivid-green">
55
+ <div class="portlet-title">
56
+ <div class="caption">
57
+ <i class="icon-custom-envelope-open"></i>
58
+ <?php echo $mb_email_configuration ; ?>
59
+ </div>
60
+ </div>
61
+ <div class="portlet-body form">
62
+ <div class="form-body">
63
+ <div class="form-wizard" id="ux_div_frm_wizard">
64
+ <ul class="nav nav-pills nav-justified steps">
65
+ <li class="active">
66
+ <a aria-expanded="true" href="javascript:void(0);" class="step">
67
+ <span class="number"> 1 </span>
68
+ <span class="desc"> <?php echo $mb_wizard_basic_info; ?> </span>
69
+ </a>
70
+ </li>
71
+ <li>
72
+ <a href="javascript:void(0);" class="step">
73
+ <span class="number"> 2 </span>
74
+ <span class="desc"><?php echo $mb_wizard_account_setup; ?> </span>
75
+ </a>
76
+ </li>
77
+ <li>
78
+ <a href="javascript:void(0);" class="step">
79
+ <span class="number"> 3 </span>
80
+ <span class="desc"><?php echo $mb_wizard_confirm; ?> </span>
81
+ </a>
82
+ </li>
83
+ </ul>
84
  </div>
85
+ <div id="ux_div_step_progres_bar" class="progress progress-striped" role="progressbar">
86
+ <div id="ux_div_step_progres_bar_width" style="width: 33%;" class="progress-bar progress-bar-success"></div>
87
+ </div>
88
+ <div class="line-separator"></div>
89
+ <div class="tab-content" id="mailer_settings">
90
+ <form id="ux_frm_email_configuration">
91
+ <div id="ux_div_first_step">
92
+ <div class="row">
93
+ <div class="col-md-6">
94
+ <div class="form-group">
95
+ <label class="control-label">
96
+ <?php echo $mb_email_configuration_enable_from_name;?> :
97
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_enable_from_name_tooltip;?>" data-placement="right"></i>
98
+ <span class="required" aria-required="true">*</span>
99
+ </label>
100
+ <select name="ux_ddl_from_name" id="ux_ddl_from_name" class="form-control" onchange="mail_bank_from_name_override()">
101
+ <option value="override"><?php echo $mb_override;?></option>
102
+ <option value="dont_override"><?php echo $mb_dont_override;?></option>
103
+ </select>
104
+ </div>
105
+ </div>
106
+ <div class="col-md-6">
107
+ <div class="form-group">
108
+ <label class="control-label">
109
+ <?php echo $mb_email_configuration_from_name;?> :
110
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_from_name_tooltip;?>" data-placement="right"></i>
111
+ <span class="required" aria-required="true">*</span>
112
+ </label>
113
+ <input type="text" class="form-control" name="ux_txt_mb_from_name" id="ux_txt_mb_from_name" value="<?php echo isset($email_configuration_array["sender_name"]) ? esc_html($email_configuration_array["sender_name"]) : "";?>" placeholder="<?php echo $mb_email_configuration_from_name_placeholder;?>">
114
+ </div>
115
+ </div>
116
+ </div>
117
+ <div class="row">
118
+ <div class="col-md-6">
119
+ <div class="form-group">
120
+ <label class="control-label">
121
+ <?php echo $mb_email_configuration_enable_from_email;?> :
122
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_enable_from_email_tooltip;?>" data-placement="right"></i>
123
+ <span class="required" aria-required="true">*</span>
124
+ </label>
125
+ <select name="ux_ddl_from_email" id="ux_ddl_from_email" class="form-control" onchange="mail_bank_from_email_override()">
126
+ <option value="override"><?php echo $mb_override;?></option>
127
+ <option value="dont_override"><?php echo $mb_dont_override;?></option>
128
+ </select>
129
+ </div>
130
+ </div>
131
+ <div class="col-md-6">
132
+ <div class="form-group">
133
+ <label class="control-label">
134
+ <?php echo $mb_email_configuration_from_email;?> :
135
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_address_tooltip;?>" data-placement="right"></i>
136
+ <span class="required" aria-required="true">*</span>
137
+ </label>
138
+ <input type="text" class="form-control" name="ux_txt_mb_from_email_configuration" id="ux_txt_mb_from_email_configuration" value="<?php echo isset($email_configuration_array["sender_email"]) ? esc_html($email_configuration_array["sender_email"]) : "";?>" placeholder="<?php echo $mb_email_configuration_from_email_placeholder;?>">
139
+ </div>
140
+ </div>
141
+ </div>
142
+ <div class="line-separator"></div>
143
+ <div class="form-actions">
144
+ <div class="pull-right">
145
+ <button class="btn vivid-green" name="ux_btn_next_step_second" id="ux_btn_next_step_second" onclick="mail_bank_move_to_second_step();"><?php echo $mb_next_step;?> >> </button>
146
+ </div>
147
+ </div>
148
  </div>
149
+ <div id="ux_div_second_step" style="display:none">
150
+ <div class="row">
151
+ <div class="col-md-6">
152
+ <div class="form-group">
153
+ <label class="control-label">
154
+ <?php echo $mb_email_configuration_email_address;?> :
155
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_email_address_tooltip;?>" data-placement="right"></i>
156
+ <span class="required" aria-required="true">*</span>
157
+ </label>
158
+ <input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="<?php echo isset($email_configuration_array["email_address"]) ? esc_html($email_configuration_array["email_address"]) : "";?>" placeholder="<?php echo $mb_email_configuration_email_address_placeholder;?>" onblur="mail_bank_get_host_port()">
159
+ </div>
160
+ </div>
161
+ <div class="col-md-6">
162
+ <div class="form-group">
163
+ <label class="control-label">
164
+ <?php echo $mb_email_configuration_reply_to;?> :
165
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_reply_to_tooltip;?>" data-placement="right"></i>
166
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
167
+ </label>
168
+ <input type="text" class="form-control" name="ux_txt_reply_to" id="ux_txt_reply_to" disabled="disabled" value="<?php echo isset($email_configuration_array["reply_to"]) ? esc_html($email_configuration_array["reply_to"]) : "";?>" placeholder="<?php echo $mb_email_configuration_reply_to_placeholder;?>">
169
+ </div>
170
+ </div>
171
+ </div>
172
+ <div class="row">
173
+ <div class="col-md-6">
174
+ <div class="form-group">
175
+ <label class="control-label">
176
+ <?php echo $mb_email_configuration_cc_label; ?> :
177
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_cc_email_address_tooltip; ?>" data-placement="right"></i>
178
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
179
+ </label>
180
+ <input type="text" class="form-control" name="ux_txt_cc" id="ux_txt_cc" disabled="disabled" value="<?php echo isset($email_configuration_array["cc"]) ? $email_configuration_array["cc"] : "" ?>" placeholder="<?php echo $mb_email_configuration_cc_email_placeholder; ?>">
181
+ </div>
182
+ </div>
183
+ <div class="col-md-6">
184
+ <div class="form-group">
185
+ <label class="control-label">
186
+ <?php echo $mb_email_configuration_bcc_label; ?> :
187
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_bcc_email_address_tooltip; ?>" data-placement="right"></i>
188
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
189
+ </label>
190
+ <input type="text" class="form-control" name="ux_txt_bcc" id="ux_txt_bcc" disabled="disabled" value="<?php echo isset($email_configuration_array["bcc"]) ? $email_configuration_array["bcc"] : "" ?>" placeholder="<?php echo $mb_email_configuration_bcc_email_placeholder; ?>">
191
+ </div>
192
+ </div>
193
+ </div>
194
+ <div class="form-group">
195
+ <label class="control-label">
196
+ <?php echo $mb_email_configuration_mailer_type;?> :
197
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_mailer_type_tooltip;?>" data-placement="right"></i>
198
+ <span class="required" aria-required="true">*</span>
199
+ </label>
200
+ <select name="ux_ddl_type" id="ux_ddl_type" class="form-control" onchange="change_settings_mail_bank()">
201
+ <option value="php_mail_function" selected="selected"><?php echo $mb_email_configuration_use_php_mail_function;?></option>
202
+ <option value="smtp"><?php echo $mb_email_configuration_send_email_via_smtp;?></option>
203
+ </select>
204
+ </div>
205
+ <div id="ux_div_smtp_mail_function">
206
+ <div class="row">
207
+ <div class="col-md-6">
208
+ <div class="form-group">
209
+ <label class="control-label">
210
+ <?php echo $mb_email_configuration_smtp_host;?> :
211
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_smtp_host_tooltip;?>" data-placement="right"></i>
212
+ <span class="required" aria-required="true">*</span>
213
+ </label>
214
+ <input type="text" class="form-control" name="ux_txt_host" id="ux_txt_host" value="<?php echo isset($email_configuration_array["hostname"]) ? esc_html($email_configuration_array["hostname"]) : "";?>" placeholder="<?php echo $mb_email_configuration_smtp_host_placeholder;?>" onblur="change_link_content_mail_bank();">
215
  </div>
216
  </div>
217
+ <div class="col-md-6">
218
+ <div class="form-group">
219
+ <label class="control-label">
220
+ <?php echo $mb_email_configuration_encryption;?> :
221
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_encryption_tooltip;?>" data-placement="right"></i>
222
+ <span class="required" aria-required="true">*</span>
223
+ </label>
224
+ <select name="ux_ddl_encryption" id="ux_ddl_encryption" class="form-control" onchange="mail_bank_select_port()">
225
+ <option value="none"><?php echo $mb_email_configuration_no_encryption;?></option>
226
+ <option value="tls"><?php echo $mb_email_configuration_use_tls_encryption;?></option>
227
+ <option value="ssl"><?php echo $mb_email_configuration_use_ssl_encryption;?></option>
228
+ </select>
 
229
  </div>
230
+ </div>
231
+ </div>
232
+ <div class="row">
233
+ <div class="col-md-6">
234
+ <div class="form-group">
235
+ <label class="control-label">
236
+ <?php echo $mb_email_configuration_smtp_port?> :
237
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_smtp_port_tooltip;?>" data-placement="right"></i>
238
+ <span class="required" aria-required="true">*</span>
239
+ </label>
240
+ <input type="text" class="form-control" name="ux_txt_port" id="ux_txt_port" value="<?php echo isset($email_configuration_array["port"]) ? esc_html($email_configuration_array["port"]) : "";?>" placeholder="<?php echo $mb_email_configuration_smtp_port_placeholder;?>" onfocus="paste_only_digits_mail_bank(this.id);">
241
  </div>
242
  </div>
243
+ <div class="col-md-6">
244
+ <div class="form-group">
245
+ <label class="control-label">
246
+ <?php echo $mb_email_configuration_authentication;?> :
247
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_authentication_tooltip;?>" data-placement="right"></i>
248
+ <span class="required" aria-required="true">*</span>
249
+ </label>
250
+ <select name="ux_ddl_mb_authentication" id="ux_ddl_mb_authentication" class="form-control" onchange="select_credentials_mail_bank()">
251
+ <option value="oauth2"><?php echo $mb_email_configuration_use_oauth;?></option>
252
+ <option value="crammd5"><?php echo $mb_email_configuration_cram_md5;?></option>
253
+ <option value="login"><?php echo $mb_email_configuration_login;?></option>
254
+ <option value="plain"><?php echo $mb_email_configuration_use_plain_authentication;?></option>
255
+ </select>
256
  </div>
257
  </div>
258
  </div>
259
+ <div id="ux_div_oauth_authentication">
260
  <div class="row">
261
  <div class="col-md-6">
262
  <div class="form-group">
263
  <label class="control-label">
264
+ <?php echo $mb_email_configuration_client_id;?> <a href="" target="_blank" id="ux_link_reference"><span id="ux_link_content"></span></a>:
265
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_client_id_tooltip;?>" data-placement="right"></i>
266
  <span class="required" aria-required="true">*</span>
267
  </label>
268
+ <input type="text" class="form-control" name="ux_txt_client_id" id="ux_txt_client_id" value="<?php echo isset($email_configuration_array["client_id"]) ? esc_html($email_configuration_array["client_id"]) : "";?>" placeholder="<?php echo $mb_email_configuration_client_id_placeholder;?>" onclick="this.select()">
269
  </div>
270
  </div>
271
  <div class="col-md-6">
272
  <div class="form-group">
273
  <label class="control-label">
274
+ <?php echo $mb_email_configuration_client_secret;?> :
275
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_client_secret_tooltip;?>" data-placement="right"></i>
276
+ <span class="required" aria-required="true">*</span>
277
  </label>
278
+ <input type="text" class="form-control" name="ux_txt_client_secret" id="ux_txt_client_secret" value="<?php echo isset($email_configuration_array["client_secret"]) ? esc_html($email_configuration_array["client_secret"]) : "";?>" placeholder="<?php echo $mb_email_configuration_client_secret_placeholder;?>" onclick="this.select()">
279
  </div>
280
  </div>
281
  </div>
282
+ <div class="form-group">
283
+ <label class="control-label">
284
+ <?php echo $mb_email_configuration_redirect_uri;?> :
285
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_redirect_uri_tooltip;?>" data-placement="right"></i>
286
+ <span class="required" aria-required="true">*</span>
287
+ </label>
288
+ <input type="text" name="ux_txt_redirect_uri" id="ux_txt_redirect_uri" readonly="readonly" class="form-control" value="<?php echo $oauth_redirect_url;?>" onclick="this.select()">
289
+ </div>
290
+ </div>
291
+ <div id="ux_div_username_password_authentication">
292
  <div class="row">
293
  <div class="col-md-6">
294
  <div class="form-group">
295
  <label class="control-label">
296
+ <?php echo $mb_email_configuration_username;?> :
297
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_username_tooltip;?>" data-placement="right"></i>
298
+ <span class="required" aria-required="true">*</span>
299
  </label>
300
+ <input type="text" class="form-control" name="ux_txt_username" id="ux_txt_username" value="<?php echo isset($email_configuration_array["username"]) ? esc_html($email_configuration_array["username"]) : "";?>" placeholder="<?php echo $mb_email_configuration_username_placeholder;?>">
301
  </div>
302
  </div>
303
  <div class="col-md-6">
304
  <div class="form-group">
305
  <label class="control-label">
306
+ <?php echo $mb_email_configuration_password;?> :
307
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_password_tooltip;?>" data-placement="right"></i>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  <span class="required" aria-required="true">*</span>
309
  </label>
310
+ <input type="password" class="form-control" name="ux_txt_password" id="ux_txt_password" value="<?php echo isset($email_configuration_array["password"]) ? str_repeat ( '*', strlen ( base64_decode(esc_html($email_configuration_array["password"])))) : "";?>" placeholder="<?php echo $mb_email_configuration_password_placeholder;?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  </div>
312
  </div>
313
  </div>
314
+ </div>
315
+ </div>
316
+ <div id="ux_div_automatic_mail">
317
+ <div class="form-group">
318
+ <label class="control-label">
319
+ <input type="checkbox" name="ux_chk_automatic_sent_mail" id="ux_chk_automatic_sent_mail" value="1" checked="checked">
320
+ <strong><?php echo $mb_email_configuration_tick_for_sent_mail; ?></strong>
321
+ </label>
322
+ </div>
323
+ </div>
324
+ <div class="line-separator"></div>
325
+ <div class="form-actions">
326
+ <div class="pull-left">
327
+ <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_first" id="ux_btn_previsious_step_first" onclick="mail_bank_move_to_first_step()"> << <?php echo $mb_previous_step;?></button>
328
+ </div>
329
+ <div class="pull-right">
330
+ <button class="btn vivid-green" name="ux_btn_next_step_third" id="ux_btn_next_step_third" onclick="mail_bank_move_to_third_step();"><?php echo $mb_next_step;?> >></button>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ </form>
335
+ <div id="test_email" style="display:none">
336
+ <form id="ux_frm_test_email_configuration">
337
+ <div id="ux_div_test_mail">
338
+ <div class="form-group">
339
+ <label class="control-label">
340
+ <?php echo $mb_email_configuration_test_email_address;?> :
341
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_test_email_address_tooltip;?>" data-placement="right"></i>
342
+ <span class="required" aria-required="true">*</span>
343
+ </label>
344
+ <input type="text" class="form-control" name="ux_txt_email" id="ux_txt_email" value="<?php $admin_email = get_option("admin_email"); echo $admin_email;?>" placeholder="<?php echo $mb_email_configuration_test_email_address_placeholder;?>">
345
+ </div>
346
+ <div class="form-group">
347
+ <label class="control-label">
348
+ <?php echo $mb_subject;?> :
349
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_subject_test_tooltip;?>" data-placement="right"></i>
350
+ <span class="required" aria-required="true">*</span>
351
+ </label>
352
+ <input type="text" class="form-control" name="ux_txt_subject" id="ux_txt_subject" value="Test Email - Mail Bank" placeholder="<?php echo $mb_email_configuration_subject_test_placeholder;?>">
353
+ </div>
354
+ <div class="form-group">
355
+ <label class="control-label">
356
+ <?php echo $mb_email_configuration_content;?> :
357
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_content_tooltip;?>" data-placement="right"></i>
358
+ <span class="required" aria-required="true">*</span>
359
+ </label>
360
+ <?php
361
+ $email_configuration = "This is a demo Test Email for Email Setup - Mail Bank";
362
+ wp_editor( $email_configuration, $id ="ux_content" , array("media_buttons" => false, "textarea_rows" => 8, "tabindex" => 4 ) );
363
+ ?>
364
+ <textarea id="ux_email_configuration_text_area" name="ux_email_configuration_text_area" style="display: none;"></textarea>
365
+ </div>
366
+ <div class="line-separator"></div>
367
+ <div class="form-actions">
368
+ <div class="pull-left">
369
+ <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_second" id="ux_btn_previsious_step_second" onclick="mail_bank_second_step_settings()"> << <?php echo $mb_previous_step;?></button>
370
  </div>
371
+ <div class="pull-right">
372
+ <button class="btn vivid-green" name="ux_btn_save_test_email" id="ux_btn_save_test_email" onclick="mail_bank_send_test_mail()"><?php echo $mb_email_configuration_send_test_email;?></button>
373
+ <button type="button" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" onclick="mail_bank_save_changes()"> <?php echo $mb_save_changes;?></button>
 
 
 
 
 
374
  </div>
375
  </div>
376
+ </div>
377
+ <div id="console_log_div" style="display: none;">
378
+ <div class="form-group">
379
+ <label class="control-label"><?php echo $mb_email_configuration_smtp_debugging_output;?> :</label>
380
+ <textarea name="ux_txtarea_console_log" class="form-control" id="ux_txtarea_console_log" rows="15" readonly="readonly"><?php echo $mb_email_configuration_send_test_email_textarea;?></textarea>
381
+ </div>
382
+ </div>
383
+ <div id="ux_div_mail_console" style="display: none;">
384
+ <div id="result_div">
385
+ <div class="form-group">
386
+ <label class="control-label"><?php echo $mb_email_configuration_result; ?>:</label>
387
+ <textarea name="ux_txtarea_result_log" id="ux_txtarea_result_log" class="form-control" rows="16" readonly="readonly" ></textarea>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  </div>
389
+ </div>
390
+ <div class="line-separator"></div>
391
+ <div class="form-actions">
392
+ <div class="pull-left">
393
+ <button type="button" class="btn vivid-green" name="ux_btn_previsious_step_second" id="ux_btn_previsious_step_second" onclick="mail_bank_second_step_settings()"> << <?php echo $mb_previous_step;?></button>
394
  </div>
395
+ <div class="pull-right">
396
+ <input type="button" class="btn vivid-green" name="ux_btn_another_test_email" onclick="another_test_email_mail_bank();" id="ux_btn_another_test_email" value="<?php echo $mb_email_configuration_send_another_test_email;?>">
397
+ <button type="button" class="btn vivid-green" name="ux_btn_save_changes_on_another_mail" id="ux_btn_save_changes_on_another_mail" onclick="mail_bank_save_changes()"> <?php echo $mb_save_changes;?></button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
398
  </div>
399
+ </div>
400
  </div>
401
+ </form>
402
  </div>
403
  </div>
404
  </div>
411
  else
412
  {
413
  ?>
414
+ <div class="page-bar">
415
+ <ul class="page-breadcrumb">
416
+ <li>
417
+ <i class="icon-custom-home"></i>
418
+ <a href="admin.php?page=mb_email_configuration">
419
+ <?php echo $wp_mail_bank; ?>
420
+ </a>
421
+ <span>></span>
422
+ </li>
423
+ <li>
424
+ <span>
425
+ <?php echo $mb_email_configuration; ?>
426
+ </span>
427
+ </li>
428
+ </ul>
429
+ </div>
430
+ <div class="row">
431
+ <div class="col-md-12">
432
+ <div class="portlet box vivid-green">
433
+ <div class="portlet-title">
434
+ <div class="caption">
435
+ <i class="icon-custom-envelope-open"></i>
436
+ <?php echo $mb_email_configuration; ?>
437
+ </div>
438
+ </div>
439
+ <div class="portlet-body form">
440
+ <div class="form-body">
441
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
442
  </div>
443
  </div>
 
444
  </div>
445
  </div>
446
  </div>
views/error-logs/error-logs.php ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This Template is used for sending feedback.
4
+ *
5
+ * @author Tech Banker
6
+ * @package wp-mail-bank/views/error-logs
7
+ * @version 2.0.0
8
+ */
9
+ if(!defined("ABSPATH")) exit; // Exit if accessed directly
10
+ if(!is_user_logged_in())
11
+ {
12
+ return;
13
+ }
14
+ else
15
+ {
16
+ $access_granted = false;
17
+ foreach($user_role_permission as $permission)
18
+ {
19
+ if(current_user_can($permission))
20
+ {
21
+ $access_granted = true;
22
+ break;
23
+ }
24
+ }
25
+ if(!$access_granted)
26
+ {
27
+ return;
28
+ }
29
+ elseif(error_logs_mail_bank == "1")
30
+ {
31
+ $clear_error_logs_nonce = wp_create_nonce("clear_error_logs_nonce");
32
+ ?>
33
+ <div class="page-bar">
34
+ <ul class="page-breadcrumb">
35
+ <li>
36
+ <i class="icon-custom-home"></i>
37
+ <a href="admin.php?page=mb_email_configuration">
38
+ <?php echo $wp_mail_bank; ?>
39
+ </a>
40
+ <span>></span>
41
+ </li>
42
+ <li>
43
+ <span>
44
+ <?php echo $mb_error_logs;?>
45
+ </span>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ <div class="row">
50
+ <div class="col-md-12">
51
+ <div class="portlet box vivid-green">
52
+ <div class="portlet-title">
53
+ <div class="caption">
54
+ <i class="icon-custom-shield"></i>
55
+ <?php echo $mb_error_logs; ?>
56
+ </div>
57
+ </div>
58
+ <div class="portlet-body form">
59
+ <form id="ux_frm_error_logs">
60
+ <div class="form-body">
61
+ <form id="ux_frm_error_logs">
62
+ <div class="form-body">
63
+ <div class="form-actions">
64
+ <div class="btn-set pull-right">
65
+ <a type="button" href="<?php echo plugins_url("views/error-logs/error-logs.txt",dirname(dirname(__FILE__)));?>" download="error_logs.txt" class="btn vivid-green system-report" name="ux_btn_download_error_logs" id="ux_btn_download_error_logs"><?php echo $mb_error_download;?></a>
66
+ <button type="button" class="btn vivid-green btn_clear_log" name="ux_btn_report_error_logs" id="ux_btn_report_error_logs"><?php echo $mb_error_clear;?></button>
67
+ </div>
68
+ </div>
69
+ <div class="line-separator"></div>
70
+ <table class="table table-striped table-hover">
71
+ <div class="form-group">
72
+ <label class="control-label">
73
+ <?php echo $mb_error_output; ?> :
74
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_error_logs_tooltip; ?>" data-placement="right"></i>
75
+ </label>
76
+ <textarea rows="25" class="form-control" name="ux_txt_error_logs" id="ux_txt_error_logs" readonly="true"><?php echo dbHelper_mail_bank::file_reader(MAIL_BANK_LOGFILE_PATH);?></textarea>
77
+ </div>
78
+ </table>
79
+ <div class="line-separator"></div>
80
+ <div class="form-actions">
81
+ <div class="btn-set pull-right">
82
+ <a type="button" href="<?php echo plugins_url("views/error-logs/error-logs.txt",dirname(dirname(__FILE__)));?>" download="error_logs.txt" class="btn vivid-green system-report" name="ux_btn_download_error_logs" id="ux_btn_download_error_logs"><?php echo $mb_error_download;?></a>
83
+ <button type="button" class="btn vivid-green btn_clear_log" name="ux_btn_report_error_logs" id="ux_btn_report_error_logs"><?php echo $mb_error_clear;?></button>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </form>
88
+ </div>
89
+ </form>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ <?php
95
+ }
96
+ else
97
+ {
98
+ ?>
99
+ <div class="page-bar">
100
+ <ul class="page-breadcrumb">
101
+ <li>
102
+ <i class="icon-custom-home"></i>
103
+ <a href="admin.php?page=mb_email_configuration">
104
+ <?php echo $wp_mail_bank; ?>
105
+ </a>
106
+ <span>></span>
107
+ </li>
108
+ <li>
109
+ <span>
110
+ <?php echo $mb_error_logs;?>
111
+ </span>
112
+ </li>
113
+ </ul>
114
+ </div>
115
+ <div class="row">
116
+ <div class="col-md-12">
117
+ <div class="portlet box vivid-green">
118
+ <div class="portlet-title">
119
+ <div class="caption">
120
+ <i class="icon-custom-shield"></i>
121
+ <?php echo $mb_error_logs;?>
122
+ </div>
123
+ </div>
124
+ <div class="portlet-body form">
125
+ <div class="form-body">
126
+ <strong><?php echo $mb_error_logs_message; ?></strong>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ <?php
133
+ }
134
+ }
135
+ ?>
views/error-logs/error-logs.txt ADDED
File without changes
views/feedbacks/feedbacks.php CHANGED
@@ -29,95 +29,87 @@ else
29
  else
30
  {
31
  ?>
32
- <div class="page-content-wrapper">
33
- <div class="page-content">
34
- <div class="page-bar">
35
- <ul class="page-breadcrumb">
36
- <li>
37
- <i class="icon-custom-home"></i>
38
- <a href="admin.php?page=mb_email_configuration">
39
- <?php echo $wp_mail_bank; ?>
40
- </a>
41
- <span>></span>
42
- </li>
43
- <li>
44
- <span>
 
 
 
 
 
 
 
 
 
45
  <?php echo $mb_feedbacks;?>
46
- </span>
47
- </li>
48
- </ul>
49
- </div>
50
- <div class="row">
51
- <div class="col-md-12">
52
- <div class="portlet box vivid-green">
53
- <div class="portlet-title">
54
- <div class="caption">
55
- <i class="icon-custom-star"></i>
56
- <?php echo $mb_feedbacks;?>
 
 
 
 
 
 
 
 
57
  </div>
58
- </div>
59
- <div class="portlet-body form">
60
- <form id="ux_frm_feedbacks">
61
- <div class="form-body">
62
- <div class="note note-warning">
63
- <h4 class="block">
64
- <?php echo $mb_feedbacks_thank_you;?>
65
- </h4>
66
- <p>
67
- <?php echo $mb_feedbacks_suggest_some_features;?>
68
- </p>
69
- <p>
70
- <?php echo $mb_feedbacks_suggestion_complaint;?>
71
- </p>
72
- <p>
73
- <?php echo $mb_feedbacks_write_us_on;?>
74
- <a href="mailto:support@tech-banker.com" target="_blank">support@tech-banker.com</a>
75
- </p>
76
- <ul>
77
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links_feature"><?php echo $mb_here_disclaimer ?></a>.</li>
78
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/feedbacks" target="_blank" class="custom_links_feature"><?php echo $mb_here_disclaimer ?></a>.</li>
79
- </ul>
80
- </div>
81
- <div class="row">
82
- <div class="col-md-6">
83
- <div class="form-group">
84
- <label class="control-label">
85
- <?php echo $mb_feedbacks_your_name;?> :
86
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_your_name_tooltip;?>" data-placement="right"></i>
87
- <span class="required" aria-required="true">*</span>
88
- </label>
89
- <input type="text" class="form-control" name="ux_txt_your_name" id="ux_txt_your_name" value="" placeholder="<?php echo $mb_feedbacks_your_name_placeholder;?>">
90
- </div>
91
- </div>
92
- <div class="col-md-6">
93
- <div class="form-group">
94
- <label class="control-label">
95
- <?php echo $mb_feedbacks_your_email;?> :
96
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_your_email_tooltip;?>" data-placement="right"></i>
97
- <span class="required" aria-required="true">*</span>
98
- </label>
99
- <input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="" placeholder="<?php echo $mb_feedbacks_your_email_placeholder;?>">
100
- </div>
101
- </div>
102
- </div>
103
  <div class="form-group">
104
  <label class="control-label">
105
- <?php echo $mb_feedbacks; ?> :
106
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_tooltip; ?>" data-placement="right"></i>
107
  <span class="required" aria-required="true">*</span>
108
  </label>
109
- <textarea class="form-control" name="ux_txtarea_feedbacks" id="ux_txtarea_feedbacks" rows="8" placeholder="<?php echo $mb_feedbacks_placeholder;?>"></textarea>
110
  </div>
111
- <div class="line-separator"></div>
112
- <div class="form-actions">
113
- <div class="pull-right">
114
- <input type="submit" class="btn vivid-green" name="ux_btn_send_request" id="ux_btn_send_request" value="<?php echo $mb_feedbacks_send_feedback;?>">
115
- </div>
 
 
 
 
116
  </div>
117
  </div>
118
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  </div>
120
- </div>
121
  </div>
122
  </div>
123
  </div>
29
  else
30
  {
31
  ?>
32
+ <div class="page-bar">
33
+ <ul class="page-breadcrumb">
34
+ <li>
35
+ <i class="icon-custom-home"></i>
36
+ <a href="admin.php?page=mb_email_configuration">
37
+ <?php echo $wp_mail_bank; ?>
38
+ </a>
39
+ <span>></span>
40
+ </li>
41
+ <li>
42
+ <span>
43
+ <?php echo $mb_feedbacks;?>
44
+ </span>
45
+ </li>
46
+ </ul>
47
+ </div>
48
+ <div class="row">
49
+ <div class="col-md-12">
50
+ <div class="portlet box vivid-green">
51
+ <div class="portlet-title">
52
+ <div class="caption">
53
+ <i class="icon-custom-star"></i>
54
  <?php echo $mb_feedbacks;?>
55
+ </div>
56
+ </div>
57
+ <div class="portlet-body form">
58
+ <form id="ux_frm_feedbacks">
59
+ <div class="form-body">
60
+ <div class="note note-warning">
61
+ <h4 class="block">
62
+ <?php echo $mb_feedbacks_thank_you;?>
63
+ </h4>
64
+ <p>
65
+ <?php echo $mb_feedbacks_suggest_some_features;?>
66
+ </p>
67
+ <p>
68
+ <?php echo $mb_feedbacks_suggestion_complaint;?>
69
+ </p>
70
+ <p>
71
+ <?php echo $mb_feedbacks_write_us_on;?>
72
+ <a href="mailto:support@tech-banker.com" target="_blank">support@tech-banker.com</a>
73
+ </p>
74
  </div>
75
+ <div class="row">
76
+ <div class="col-md-6">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  <div class="form-group">
78
  <label class="control-label">
79
+ <?php echo $mb_feedbacks_your_name;?> :
80
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_your_name_tooltip;?>" data-placement="right"></i>
81
  <span class="required" aria-required="true">*</span>
82
  </label>
83
+ <input type="text" class="form-control" name="ux_txt_your_name" id="ux_txt_your_name" value="" placeholder="<?php echo $mb_feedbacks_your_name_placeholder;?>">
84
  </div>
85
+ </div>
86
+ <div class="col-md-6">
87
+ <div class="form-group">
88
+ <label class="control-label">
89
+ <?php echo $mb_feedbacks_your_email;?> :
90
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_your_email_tooltip;?>" data-placement="right"></i>
91
+ <span class="required" aria-required="true">*</span>
92
+ </label>
93
+ <input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="" placeholder="<?php echo $mb_feedbacks_your_email_placeholder;?>">
94
  </div>
95
  </div>
96
+ </div>
97
+ <div class="form-group">
98
+ <label class="control-label">
99
+ <?php echo $mb_feedbacks; ?> :
100
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_feedbacks_tooltip; ?>" data-placement="right"></i>
101
+ <span class="required" aria-required="true">*</span>
102
+ </label>
103
+ <textarea class="form-control" name="ux_txtarea_feedbacks" id="ux_txtarea_feedbacks" rows="8" placeholder="<?php echo $mb_feedbacks_placeholder;?>"></textarea>
104
+ </div>
105
+ <div class="line-separator"></div>
106
+ <div class="form-actions">
107
+ <div class="pull-right">
108
+ <input type="submit" class="btn vivid-green" name="ux_btn_send_request" id="ux_btn_send_request" value="<?php echo $mb_feedbacks_send_feedback;?>">
109
+ </div>
110
+ </div>
111
  </div>
112
+ </form>
113
  </div>
114
  </div>
115
  </div>
views/premium-editions/premium-editions.php CHANGED
@@ -30,240 +30,236 @@ else
30
  else
31
  {
32
  ?>
33
- <div class="page-content-wrapper">
34
- <div class="page-content">
35
- <div class="page-bar">
36
- <ul class="page-breadcrumb">
37
- <li>
38
- <i class="icon-custom-home"></i>
39
- <a href="admin.php?page=mb_email_configuration">
40
- <?php echo $wp_mail_bank;?>
41
- </a>
42
- <span>></span>
43
- </li>
44
- <li>
45
- <span>
46
- <?php echo $mb_premium_editions_label;?>
47
- </span>
48
- </li>
49
- </ul>
50
- </div>
51
- <div class="row">
52
- <div class="col-md-12">
53
- <div class="portlet box vivid-green">
54
- <div class="portlet-title">
55
- <div class="caption">
56
- <i class="icon-custom-briefcase"></i>
57
- <?php echo $mb_premium_editions_label;?>
58
- </div>
59
- </div>
60
- <div class="portlet-body form">
61
- <form id="ux_frm_premium_editions">
62
- <div class="form-body">
63
- <div class="wpb_wrapper">
64
- <div id="go-pricing-table-862" style="margin-bottom:20px;">
65
- <div class="gw-go gw-go-clearfix gw-go-enlarge-current gw-go-disable-box-shadow gw-go-3cols" data-id="862" data-colnum="3" data-equalize="{&quot;column&quot;:1,&quot;body&quot;:1,&quot;footer&quot;:1}" data-views="{&quot;tp&quot;:{&quot;min&quot;:&quot;768&quot;,&quot;max&quot;:&quot;959&quot;,&quot;cols&quot;:&quot;&quot;},&quot;ml&quot;:{&quot;min&quot;:&quot;480&quot;,&quot;max&quot;:&quot;767&quot;,&quot;cols&quot;:&quot;2&quot;},&quot;mp&quot;:{&quot;min&quot;:&quot;&quot;,&quot;max&quot;:&quot;479&quot;,&quot;cols&quot;:&quot;1&quot;}}" style="opacity: 1;">
66
- <div class="gw-go-col-wrap gw-go-col-wrap-0 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="0" style="height: 600px;">
67
- <div class="gw-go-col gw-go-clean-style14">
68
- <div class="gw-go-col-inner">
69
- <div class="gw-go-col-inner-layer"></div>
70
- <div class="gw-go-col-inner-layer-over"></div>
71
- <div class="gw-go-header"></div>
72
- <ul class="gw-go-body">
73
- <li data-row-index="0">
74
- <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>PERSONAL</span>
75
- <br>Ideal for Individuals
76
- </div>
77
- </li>
78
- <li class="gw-go-even" data-row-index="1">
79
- <div class="gw-go-body-cell" style="height: 16px;">____</div>
80
- </li>
81
- <li data-row-index="2">
82
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">6.99<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
83
- </li>
84
- <li class="gw-go-even" data-row-index="3">
85
- <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
86
- </li>
87
- <li data-row-index="4">
88
- <div class="gw-go-body-cell" style="height: 16px;">1 week of Technical Support</div>
89
- </li>
90
 
91
- <li class="gw-go-even" data-row-index="5">
92
- <div class="gw-go-body-cell" style="height: 16px;">1 year of Free Updates</div>
93
- </li>
94
- <li class="gw-go-even" data-row-index="7">
95
- <div class="gw-go-body-cell" style="height: 16px;">____</div>
96
- </li>
97
- <li data-row-index="6">
98
- <div class="gw-go-body-cell" style="height: 16px;">____</div>
99
- </li>
100
- </ul>
101
- <div class="gw-go-footer-wrap">
102
- <div class="gw-go-footer-spacer"></div>
103
- <div class="gw-go-footer">
104
- <div class="gw-go-footer-rows">
105
- <div class="gw-go-footer-row" data-row-index="0">
106
- <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-personal-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
107
- </div>
108
- <div class="gw-go-footer-row gw-go-even" data-row-index="1">
109
- <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
110
- </div>
111
- <div class="gw-go-footer-row" data-row-index="2">
112
- <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
113
- </div>
114
- </div>
115
- </div>
116
- </div>
117
- </div>
118
- <div class="gw-go-tooltip"></div>
119
- </div>
120
- </div>
121
- <div class="gw-go-col-wrap gw-go-col-wrap-1 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="1" style="height: 600px;">
122
- <div class="gw-go-col gw-go-clean-style14">
123
- <div class="gw-go-col-inner">
124
- <div class="gw-go-col-inner-layer"></div>
125
- <div class="gw-go-col-inner-layer-over"></div>
126
- <div class="gw-go-ribbon-right"><img src="http://beta.tech-banker.com/wp-content/plugins/go_pricing/assets/images/signs/ribbons/classic/ribbon_green_right_top.png"></div>
127
- <div class="gw-go-header"></div>
128
- <ul class="gw-go-body">
129
- <li data-row-index="0">
130
- <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>BUSINESS</span>
131
- <br>Ideal for Businesses
132
- </div>
133
- </li>
134
- <li class="gw-go-even" data-row-index="1">
135
- <div class="gw-go-body-cell" style="height: 16px;">____</div>
136
- </li>
137
- <li data-row-index="2">
138
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">14.99<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
139
- </li>
140
- <li class="gw-go-even" data-row-index="3">
141
- <div class="gw-go-body-cell" style="height: 16px;">1 Installation per License</div>
142
- </li>
143
- <li data-row-index="4">
144
- <div class="gw-go-body-cell" style="height: 16px;">1 month of Technical Support</div>
145
- </li>
146
- <li class="gw-go-even" data-row-index="5">
147
- <div class="gw-go-body-cell" style="height: 16px;">1 year of Free Updates</div>
148
- </li>
149
- <li data-row-index="6">
150
- <div class="gw-go-body-cell" style="height: 16px;">Email Logs</div>
151
- </li>
152
- <li class="gw-go-even" data-row-index="7">
153
- <div class="gw-go-body-cell" style="height: 16px;">Bulk Deletion Records</div>
154
- </li>
155
- </ul>
156
- <div class="gw-go-footer-wrap">
157
- <div class="gw-go-footer-spacer"></div>
158
- <div class="gw-go-footer">
159
- <div class="gw-go-footer-rows">
160
- <div class="gw-go-footer-row" data-row-index="0">
161
- <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-business-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
162
- </div>
163
- <div class="gw-go-footer-row gw-go-even" data-row-index="1">
164
- <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
165
- </div>
166
- <div class="gw-go-footer-row" data-row-index="2">
167
- <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
168
- </div>
169
- </div>
170
- </div>
171
- </div>
172
- </div>
173
- <div class="gw-go-tooltip"></div>
174
- </div>
175
- </div>
176
- <div class="gw-go-col-wrap gw-go-col-wrap-2 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="2" style="height: 600px;">
177
- <div class="gw-go-col gw-go-clean-style14">
178
- <div class="gw-go-col-inner">
179
- <div class="gw-go-col-inner-layer"></div>
180
- <div class="gw-go-col-inner-layer-over"></div>
181
- <div class="gw-go-header"></div>
182
- <ul class="gw-go-body">
183
- <li data-row-index="0">
184
- <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>DEVELOPER</span>
185
- <br>Ideal for Webmasters
186
- </div>
187
- </li>
188
- <li class="gw-go-even" data-row-index="1">
189
- <div class="gw-go-body-cell" style="height: 16px;">____</div>
190
- </li>
191
- <li data-row-index="2">
192
- <div class="gw-go-body-cell" style="height: 75px;"><span style="color:#A4CD39;">$</span><span style="font-size:52px;color:#A4CD39;">49.99<br></span><span style="color:#A4CD39;">It's a one time purchase.</span></div>
193
- </li>
194
- <li class="gw-go-even" data-row-index="3">
195
- <div class="gw-go-body-cell" style="height: 16px;">5 Installations per License</div>
196
- </li>
197
- <li data-row-index="4">
198
- <div class="gw-go-body-cell" style="height: 16px;">6 months of Technical Support </div>
199
- </li>
200
- <li class="gw-go-even" data-row-index="5">
201
- <div class="gw-go-body-cell" style="height: 16px;">Life Time Free Updates</div>
202
- </li>
203
- <li data-row-index="6">
204
- <div class="gw-go-body-cell" style="height: 16px;">Email Logs</div>
205
- </li>
206
- <li class="gw-go-even" data-row-index="7">
207
- <div class="gw-go-body-cell" style="height: 16px;">Bulk Deletion Records</div>
208
- </li>
209
- </ul>
210
- <div class="gw-go-footer-wrap">
211
- <div class="gw-go-footer-spacer"></div>
212
- <div class="gw-go-footer">
213
- <div class="gw-go-footer-rows">
214
- <div class="gw-go-footer-row" data-row-index="0">
215
- <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-developer-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
216
- </div>
217
- <div class="gw-go-footer-row gw-go-even" data-row-index="1">
218
- <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
219
- </div>
220
- <div class="gw-go-footer-row" data-row-index="2">
221
- <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
222
- </div>
223
- </div>
224
- </div>
225
- </div>
226
- </div>
227
- </div>
228
- </div>
229
- </div>
230
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  </div>
232
- <h3>All Plans Include</h3>
233
- <h5 style="color: rgba(0,0,0,0.64);">(This Plugin comes Packed Full with Features which Are Specified below For every user.)</h5>
234
- <div class="hr-thin style-line" style="width: 100%;border-top-width: 5px;"></div>
235
- <div class="row">
236
- <div class="col-md-6">
237
- <div class="standard-arrow">
238
- <ul>
239
- <li>Setup Wizard</li>
240
- <li>Automatic Plugin Updates</li>
241
- <li>Email Logs</li>
242
- <li>Email Configuration</li>
243
- <li>Plugin Settings</li>
244
- <li>Compatibility With Major Plugins</li>
245
- <li>Test Emails</li>
246
- </ul>
247
- </div>
248
- </div>
249
- <div class="col-md-6">
250
- <div class="standard-arrow">
251
- <ul>
252
- <li>Mailer Types</li>
253
- <li>SMTP Settings</li>
254
- <li>OAuth 2.0 Authentication</li>
255
- <li>Debug Mode</li>
256
- <li>Different Authentication Parameters</li>
257
- <li>Various Encryption Methods</li>
258
- <li>Roles & Capabilities</li>
259
- </ul>
260
- </div>
261
- </div>
262
  </div>
 
263
  </div>
264
- </form>
265
  </div>
266
- </div>
267
  </div>
268
  </div>
269
  </div>
30
  else
31
  {
32
  ?>
33
+ <div class="page-bar">
34
+ <ul class="page-breadcrumb">
35
+ <li>
36
+ <i class="icon-custom-home"></i>
37
+ <a href="admin.php?page=mb_email_configuration">
38
+ <?php echo $wp_mail_bank;?>
39
+ </a>
40
+ <span>></span>
41
+ </li>
42
+ <li>
43
+ <span>
44
+ <?php echo $mb_premium_editions_label;?>
45
+ </span>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ <div class="row">
50
+ <div class="col-md-12">
51
+ <div class="portlet box vivid-green">
52
+ <div class="portlet-title">
53
+ <div class="caption">
54
+ <i class="icon-custom-briefcase"></i>
55
+ <?php echo $mb_premium_editions_label;?>
56
+ </div>
57
+ </div>
58
+ <div class="portlet-body form">
59
+ <form id="ux_frm_premium_editions">
60
+ <div class="form-body">
61
+ <div class="wpb_wrapper">
62
+ <div id="go-pricing-table-862" style="margin-bottom:20px;">
63
+ <div class="gw-go gw-go-clearfix gw-go-enlarge-current gw-go-disable-box-shadow gw-go-3cols" data-id="862" data-colnum="3" data-equalize="{&quot;column&quot;:1,&quot;body&quot;:1,&quot;footer&quot;:1}" data-views="{&quot;tp&quot;:{&quot;min&quot;:&quot;768&quot;,&quot;max&quot;:&quot;959&quot;,&quot;cols&quot;:&quot;&quot;},&quot;ml&quot;:{&quot;min&quot;:&quot;480&quot;,&quot;max&quot;:&quot;767&quot;,&quot;cols&quot;:&quot;2&quot;},&quot;mp&quot;:{&quot;min&quot;:&quot;&quot;,&quot;max&quot;:&quot;479&quot;,&quot;cols&quot;:&quot;1&quot;}}" style="opacity: 1;">
64
+ <div class="gw-go-col-wrap gw-go-col-wrap-0 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="0" style="height: 600px;">
65
+ <div class="gw-go-col gw-go-clean-style14">
66
+ <div class="gw-go-col-inner">
67
+ <div class="gw-go-col-inner-layer"></div>
68
+ <div class="gw-go-col-inner-layer-over"></div>
69
+ <div class="gw-go-header"></div>
70
+ <ul class="gw-go-body">
71
+ <li data-row-index="0">
72
+ <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>PERSONAL</span>
73
+ <br>Ideal for Individuals
74
+ </div>
75
+ </li>
76
+ <li class="gw-go-even" data-row-index="1">
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;">6.99<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>
84
+ </li>
85
+ <li data-row-index="4">
86
+ <div class="gw-go-body-cell" style="height: 16px;">1 week of Technical Support</div>
87
+ </li>
 
 
88
 
89
+ <li class="gw-go-even" data-row-index="5">
90
+ <div class="gw-go-body-cell" style="height: 16px;">1 year of Free Updates</div>
91
+ </li>
92
+ <li class="gw-go-even" data-row-index="7">
93
+ <div class="gw-go-body-cell" style="height: 16px;">____</div>
94
+ </li>
95
+ <li data-row-index="6">
96
+ <div class="gw-go-body-cell" style="height: 16px;">____</div>
97
+ </li>
98
+ </ul>
99
+ <div class="gw-go-footer-wrap">
100
+ <div class="gw-go-footer-spacer"></div>
101
+ <div class="gw-go-footer">
102
+ <div class="gw-go-footer-rows">
103
+ <div class="gw-go-footer-row" data-row-index="0">
104
+ <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-personal-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
105
+ </div>
106
+ <div class="gw-go-footer-row gw-go-even" data-row-index="1">
107
+ <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
108
+ </div>
109
+ <div class="gw-go-footer-row" data-row-index="2">
110
+ <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <div class="gw-go-tooltip"></div>
117
+ </div>
118
+ </div>
119
+ <div class="gw-go-col-wrap gw-go-col-wrap-1 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="1" style="height: 600px;">
120
+ <div class="gw-go-col gw-go-clean-style14">
121
+ <div class="gw-go-col-inner">
122
+ <div class="gw-go-col-inner-layer"></div>
123
+ <div class="gw-go-col-inner-layer-over"></div>
124
+ <div class="gw-go-ribbon-right"><img src="http://beta.tech-banker.com/wp-content/plugins/go_pricing/assets/images/signs/ribbons/classic/ribbon_green_right_top.png"></div>
125
+ <div class="gw-go-header"></div>
126
+ <ul class="gw-go-body">
127
+ <li data-row-index="0">
128
+ <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>BUSINESS</span>
129
+ <br>Ideal for Businesses
130
+ </div>
131
+ </li>
132
+ <li class="gw-go-even" data-row-index="1">
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;">14.99<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>
140
+ </li>
141
+ <li data-row-index="4">
142
+ <div class="gw-go-body-cell" style="height: 16px;">1 month of Technical Support</div>
143
+ </li>
144
+ <li class="gw-go-even" data-row-index="5">
145
+ <div class="gw-go-body-cell" style="height: 16px;">1 year of Free Updates</div>
146
+ </li>
147
+ <li data-row-index="6">
148
+ <div class="gw-go-body-cell" style="height: 16px;">Email Logs</div>
149
+ </li>
150
+ <li class="gw-go-even" data-row-index="7">
151
+ <div class="gw-go-body-cell" style="height: 16px;">Bulk Deletion Records</div>
152
+ </li>
153
+ </ul>
154
+ <div class="gw-go-footer-wrap">
155
+ <div class="gw-go-footer-spacer"></div>
156
+ <div class="gw-go-footer">
157
+ <div class="gw-go-footer-rows">
158
+ <div class="gw-go-footer-row" data-row-index="0">
159
+ <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-business-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
160
+ </div>
161
+ <div class="gw-go-footer-row gw-go-even" data-row-index="1">
162
+ <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
163
+ </div>
164
+ <div class="gw-go-footer-row" data-row-index="2">
165
+ <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ <div class="gw-go-tooltip"></div>
172
+ </div>
173
+ </div>
174
+ <div class="gw-go-col-wrap gw-go-col-wrap-2 gw-go-hover gw-go-disable-enlarge gw-go-disable-hover" data-current="1" data-col-index="2" style="height: 600px;">
175
+ <div class="gw-go-col gw-go-clean-style14">
176
+ <div class="gw-go-col-inner">
177
+ <div class="gw-go-col-inner-layer"></div>
178
+ <div class="gw-go-col-inner-layer-over"></div>
179
+ <div class="gw-go-header"></div>
180
+ <ul class="gw-go-body">
181
+ <li data-row-index="0">
182
+ <div class="gw-go-body-cell" style="height: 79px;"><span style="font-size:20px;"><br>DEVELOPER</span>
183
+ <br>Ideal for Webmasters
184
+ </div>
185
+ </li>
186
+ <li class="gw-go-even" data-row-index="1">
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;">49.99<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>
194
+ </li>
195
+ <li data-row-index="4">
196
+ <div class="gw-go-body-cell" style="height: 16px;">6 months of Technical Support </div>
197
+ </li>
198
+ <li class="gw-go-even" data-row-index="5">
199
+ <div class="gw-go-body-cell" style="height: 16px;">Life Time Free Updates</div>
200
+ </li>
201
+ <li data-row-index="6">
202
+ <div class="gw-go-body-cell" style="height: 16px;">Email Logs</div>
203
+ </li>
204
+ <li class="gw-go-even" data-row-index="7">
205
+ <div class="gw-go-body-cell" style="height: 16px;">Bulk Deletion Records</div>
206
+ </li>
207
+ </ul>
208
+ <div class="gw-go-footer-wrap">
209
+ <div class="gw-go-footer-spacer"></div>
210
+ <div class="gw-go-footer">
211
+ <div class="gw-go-footer-rows">
212
+ <div class="gw-go-footer-row" data-row-index="0">
213
+ <div class="gw-go-footer-row-inner" style="height: 44px;"><a href="http://beta.tech-banker.com/product/mail-bank-developer-edition/" class="gw-go-btn gw-go-btn-large"><span class="gw-go-btn-inner">BUY NOW</span></a></div>
214
+ </div>
215
+ <div class="gw-go-footer-row gw-go-even" data-row-index="1">
216
+ <div class="gw-go-footer-row-inner" style="height: 0px;"></div>
217
+ </div>
218
+ <div class="gw-go-footer-row" data-row-index="2">
219
+ <div class="gw-go-footer-row-inner" style="height: 10px;">&nbsp;</div>
220
+ </div>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ <h3>All Plans Include</h3>
231
+ <h5 style="color: rgba(0,0,0,0.64);">(This Plugin comes Packed Full with Features which Are Specified below For every user.)</h5>
232
+ <div class="hr-thin style-line" style="width: 100%;border-top-width: 5px;"></div>
233
+ <div class="row">
234
+ <div class="col-md-6">
235
+ <div class="standard-arrow">
236
+ <ul>
237
+ <li>Setup Wizard</li>
238
+ <li>Automatic Plugin Updates</li>
239
+ <li>Email Logs</li>
240
+ <li>Email Configuration</li>
241
+ <li>Plugin Settings</li>
242
+ <li>Compatibility With Major Plugins</li>
243
+ <li>Test Emails</li>
244
+ </ul>
245
+ </div>
246
  </div>
247
+ <div class="col-md-6">
248
+ <div class="standard-arrow">
249
+ <ul>
250
+ <li>Mailer Types</li>
251
+ <li>SMTP Settings</li>
252
+ <li>OAuth 2.0 Authentication</li>
253
+ <li>Debug Mode</li>
254
+ <li>Different Authentication Parameters</li>
255
+ <li>Various Encryption Methods</li>
256
+ <li>Roles & Capabilities</li>
257
+ </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  </div>
259
+ </div>
260
  </div>
 
261
  </div>
262
+ </form>
263
  </div>
264
  </div>
265
  </div>
views/roles-and-capabilities/roles-and-capabilities.php CHANGED
@@ -35,509 +35,521 @@ else
35
  $subscriber = explode(",",isset($details_roles_capabilities["subscriber_privileges"]) ? $details_roles_capabilities["subscriber_privileges"] : "");
36
  $other_privileges = explode(",",isset($details_roles_capabilities["other_roles_privileges"]) ? $details_roles_capabilities["other_roles_privileges"] : "");
37
  ?>
38
- <div class="page-content-wrapper">
39
- <div class="page-content">
40
- <div class="page-bar">
41
- <ul class="page-breadcrumb">
42
- <li>
43
- <i class="icon-custom-home"></i>
44
- <a href="admin.php?page=mb_email_configuration">
45
- <?php echo $wp_mail_bank; ?>
46
- </a>
47
- <span>></span>
48
- </li>
49
- <li>
50
- <span>
51
- <?php echo $mb_roles_and_capabilities; ?>
52
- </span>
53
- </li>
54
- </ul>
55
- </div>
56
- <div class="row">
57
- <div class="col-md-12">
58
- <div class="portlet box vivid-green">
59
- <div class="portlet-title">
60
- <div class="caption">
61
- <i class="icon-custom-user"></i>
62
- <?php echo $mb_roles_and_capabilities; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  </div>
64
- </div>
65
- <div class="portlet-body form">
66
- <form id="ux_frm_roles_and_capabilities">
67
- <div class="form-body">
68
- <div class="note note-danger">
69
- <h4 class="block">
70
- <?php echo $mb_premium_edition_features_disclaimer; ?>
71
- </h4>
72
- <ul>
73
- <li><?php echo $mb_save_roles_and_capabilities_disclaimer;?></li>
74
- </ul>
75
- <ul>
76
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
77
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/roles-capabilities/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
78
- <li><?php echo $mb_click_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a><?php echo $mb_unblock_premium_disclaimer ?></li>
79
- </ul>
80
- <ul>
81
- <?php
82
- if(isset($extension_not_found) && count($extension_not_found) > 0)
83
- {
84
- ?>
85
- <h4 class="block">
86
- <?php echo $mb_important_disclaimer; ?>
87
- </h4>
88
- <li><?php echo $mb_contact_to_host; ?></li>
89
- <?php
90
- foreach($extension_not_found as $extension)
91
- {
92
- ?>
93
- <li>* <?php echo $extension; ?></li>
94
- <?php
95
- }
96
- }
97
- ?>
98
- </ul>
99
- </div>
100
- <div class="form-group">
101
- <label class="control-label">
102
- <?php echo $mb_roles_capabilities_show_menu;?> :
103
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_show_menu_tooltip;?>" data-placement="right"></i>
104
- <span class="required" aria-required="true">*</span>
105
- </label>
106
- <table class="table table-striped table-bordered table-margin-top" id="ux_tbl_mail_bank_roles">
107
  <thead>
108
  <tr>
109
- <th>
110
- <input type="checkbox" name="ux_chk_administrator" id="ux_chk_administrator" value="1" checked="checked" disabled="disabled" <?php echo $roles_and_capabilities[0] == "1" ? "checked = checked" : ""?>>
111
- <?php echo $mb_roles_capabilities_administrator;?>
112
- </th>
113
- <th>
114
- <input type="checkbox" name="ux_chk_author" id="ux_chk_author" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_author_roles');" <?php echo $roles_and_capabilities[1] == "1" ? "checked = checked" : ""?>>
115
- <?php echo $mb_roles_capabilities_author;?>
116
- </th>
117
- <th>
118
- <input type="checkbox" name="ux_chk_editor" id="ux_chk_editor" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_editor_roles');" <?php echo $roles_and_capabilities[2] == "1" ? "checked = checked" : ""?>>
119
- <?php echo $mb_roles_capabilities_editor;?>
120
- </th>
121
- <th>
122
- <input type="checkbox" name="ux_chk_contributor" id="ux_chk_contributor" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_contributor_roles');" <?php echo $roles_and_capabilities[3] == "1" ? "checked = checked" : ""?>>
123
- <?php echo $mb_roles_capabilities_contributor;?>
124
- </th>
125
- <th>
126
- <input type="checkbox" name="ux_chk_subscriber" id="ux_chk_subscriber" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_subscriber_roles');" <?php echo $roles_and_capabilities[4] == "1" ? "checked = checked" : ""?>>
127
- <?php echo $mb_roles_capabilities_subscriber;?>
128
- </th>
129
- <th>
130
- <input type="checkbox" name="ux_chk_others_privileges" id="ux_chk_others_privileges" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_other_privileges_roles');" <?php echo $roles_and_capabilities[5] == "1" ? "checked = checked" : ""?>>
131
- <?php echo $mb_roles_capabilities_others;?>
132
  </th>
133
  </tr>
134
  </thead>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  </table>
136
  </div>
137
- <div class="form-group">
138
- <label class="control-label">
139
- <?php echo $mb_roles_capabilities_topbar_menu;?> :
140
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_topbar_menu_tooltip;?>" data-placement="right"></i>
141
- <span class="required" aria-required="true">*</span>
142
- </label>
143
- <select name="ux_ddl_mail_bank_menu" id="ux_ddl_mail_bank_menu" class="form-control">
144
- <option value="enable"><?php echo $mb_enable;?></option>
145
- <option value="disable"><?php echo $mb_disable;?></option>
146
- </select>
147
- </div>
148
  <div class="line-separator"></div>
149
- <div class="form-group">
150
- <div id="ux_div_administrator_roles">
151
- <label class="control-label">
152
- <?php echo $mb_roles_capabilities_administrator_role;?> :
153
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_administrator_role_tooltip;?>" data-placement="right"></i>
154
- <span class="required" aria-required="true">*</span>
155
- </label>
156
- <div class="table-margin-top">
157
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_administrator">
158
- <thead>
159
- <tr>
160
- <th style="width: 40% !important;">
161
- <input type="checkbox" name="ux_chk_full_control_administrator" id="ux_chk_full_control_administrator" checked="checked" disabled="disabled" value="1">
162
- <?php echo $mb_roles_capabilities_full_control;?>
163
- </th>
164
- </tr>
165
- </thead>
166
- <tbody>
167
- <tr>
168
- <td>
169
- <input type="checkbox" name="ux_chk_email_configuration_admin" disabled="disabled" checked="checked" id="ux_chk_email_configuration_admin" value="1">
170
- <?php echo $mb_email_configuration;?>
171
- </td>
172
- <td>
173
- <input type="checkbox" name="ux_chk_test_email_admin" disabled="disabled" checked="checked" id="ux_chk_test_email_admin" value="1">
174
- <?php echo $mb_test_email ;?>
175
- </td>
176
- <td>
177
- <input type="checkbox" name="ux_chk_email_logs_admin" disabled="disabled" checked="checked" id="ux_chk_email_logs_admin" value="1">
178
- <?php echo $mb_email_logs ;?>
179
- </td>
180
- </tr>
181
- <tr>
182
- <td>
183
- <input type="checkbox" name="ux_chk_settings_admin" disabled="disabled" checked="checked" id="ux_chk_settings_admin" value="1">
184
- <?php echo $mb_settings ;?>
185
- </td>
186
- <td>
187
- <input type="checkbox" name="ux_chk_roles_and_capabilities_admin" disabled="disabled" checked="checked" id="ux_chk_roles_and_capabilities_admin" value="1">
188
- <?php echo $mb_roles_and_capabilities;?>
189
- </td>
190
- <td>
191
- <input type="checkbox" name="ux_chk_system_information_admin" disabled="disabled" checked="checked" id="ux_chk_system_information_admin" value="1">
192
- <?php echo $mb_system_information;?>
193
- </td>
194
- </tr>
195
- </tbody>
196
- </table>
197
- </div>
198
- <div class="line-separator"></div>
199
- </div>
200
- </div>
201
- <div class="form-group">
202
- <div id="ux_div_author_roles">
203
- <label class="control-label">
204
- <?php echo $mb_roles_capabilities_author_role;?> :
205
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_author_role_tooltip;?>" data-placement="right"></i>
206
- <span class="required" aria-required="true">*</span>
207
- </label>
208
- <div class="table-margin-top">
209
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_author">
210
- <thead>
211
- <tr>
212
- <th style="width: 40% !important;">
213
- <input type="checkbox" name="ux_chk_full_control_author" id="ux_chk_full_control_author" value="1" onclick="full_control_function_mail_bank(this,'ux_div_author_roles');" <?php echo isset($author) && $author[0] =="1" ? "checked = checked" : ""?>>
214
- <?php echo $mb_roles_capabilities_full_control;?>
215
- </th>
216
- </tr>
217
- </thead>
218
- <tbody>
219
- <tr>
220
- <td>
221
- <input type="checkbox" name="ux_chk_email_configuration_author" id="ux_chk_email_configuration_author" value="1" <?php echo isset($author) && $author[1] =="1" ? "checked = checked" : ""?>>
222
- <?php echo $mb_email_configuration;?>
223
- </td>
224
- <td>
225
- <input type="checkbox" name="ux_chk_test_email_author" id="ux_chk_test_email_author" value="1" <?php echo isset($author) && $author[2] =="1" ? "checked = checked" : ""?>>
226
- <?php echo $mb_test_email ;?>
227
- </td>
228
- <td>
229
- <input type="checkbox" name="ux_chk_email_logs_author" id="ux_chk_email_logs_author" value="1" <?php echo isset($author) && $author[3] =="1" ? "checked = checked" : ""?>>
230
- <?php echo $mb_email_logs ;?>
231
- </td>
232
- </tr>
233
- <tr>
234
- <td>
235
- <input type="checkbox" name="ux_chk_settings_author" id="ux_chk_settings_author" value="1" <?php echo isset($author) && $author[4] =="1" ? "checked = checked" : ""?>>
236
- <?php echo $mb_settings ;?>
237
- </td>
238
- <td>
239
- <input type="checkbox" name="ux_chk_roles_and_capabilities_author" id="ux_chk_roles_and_capabilities_author" value="1" <?php echo isset($author) && $author[5] =="1" ? "checked = checked" : ""?>>
240
- <?php echo $mb_roles_and_capabilities;?>
241
- </td>
242
- <td>
243
- <input type="checkbox" name="ux_chk_system_information_author" id="ux_chk_system_information_author" value="1" <?php echo isset($author) && $author[6] =="1" ? "checked = checked" : ""?>>
244
- <?php echo $mb_system_information;?>
245
- </td>
246
- </tr>
247
- </tbody>
248
- </table>
249
- </div>
250
- <div class="line-separator"></div>
251
- </div>
252
  </div>
253
- <div class="form-group">
254
- <div id="ux_div_editor_roles">
255
- <label class="control-label">
256
- <?php echo $mb_roles_capabilities_editor_role;?> :
257
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_editor_role_tooltip;?>" data-placement="right"></i>
258
- <span class="required" aria-required="true">*</span>
259
- </label>
260
- <div class="table-margin-top">
261
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_editor">
262
- <thead>
263
- <tr>
264
- <th style="width: 40% !important;">
265
- <input type="checkbox" name="ux_chk_full_control_editor" id="ux_chk_full_control_editor" value="1" onclick="full_control_function_mail_bank(this,'ux_div_editor_roles');" <?php echo isset($editor) && $editor[0] =="1" ? "checked = checked" : ""?>>
266
- <?php echo $mb_roles_capabilities_full_control;?>
267
- </th>
268
- </tr>
269
- </thead>
270
- <tbody>
271
- <tr>
272
- <td>
273
- <input type="checkbox" name="ux_chk_email_configuration_editor" id="ux_chk_email_configuration_editor" value="1" <?php echo isset($editor) && $editor[1] =="1" ? "checked = checked" : ""?>>
274
- <?php echo $mb_email_configuration;?>
275
- </td>
276
- <td>
277
- <input type="checkbox" name="ux_chk_test_email_editor" id="ux_chk_test_email_editor" value="1" <?php echo isset($editor) && $editor[2] =="1" ? "checked = checked" : ""?>>
278
- <?php echo $mb_test_email ;?>
279
- </td>
280
- <td>
281
- <input type="checkbox" name="ux_chk_email_logs_editor" id="ux_chk_email_logs_editor" value="1" <?php echo isset($editor) && $editor[3] =="1" ? "checked = checked" : ""?>>
282
- <?php echo $mb_email_logs ;?>
283
- </td>
284
- </tr>
285
- <tr>
286
- <td>
287
- <input type="checkbox" name="ux_chk_settings_editor" id="ux_chk_settings_editor" value="1" <?php echo isset($editor) && $editor[4] =="1" ? "checked = checked" : ""?>>
288
- <?php echo $mb_settings ;?>
289
- </td>
290
- <td>
291
- <input type="checkbox" name="ux_chk_roles_and_capabilities_editor" id="ux_chk_roles_and_capabilities_editor" value="1" <?php echo isset($editor) && $editor[5] =="1" ? "checked = checked" : ""?>>
292
- <?php echo $mb_roles_and_capabilities;?>
293
- </td>
294
- <td>
295
- <input type="checkbox" name="ux_chk_system_information_editor" id="ux_chk_system_information_editor" value="1" <?php echo isset($editor) && $editor[6] =="1" ? "checked = checked" : ""?>>
296
- <?php echo $mb_system_information;?>
297
- </td>
298
- </tr>
299
- </tbody>
300
- </table>
301
- </div>
302
- <div class="line-separator"></div>
303
- </div>
 
 
 
 
 
 
 
 
304
  </div>
305
- <div class="form-group">
306
- <div id="ux_div_contributor_roles">
307
- <label class="control-label">
308
- <?php echo $mb_roles_capabilities_contributor_role;?> :
309
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_contributor_role_tooltip;?>" data-placement="right"></i>
310
- <span class="required" aria-required="true">*</span>
311
- </label>
312
- <div class="table-margin-top">
313
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_contributor">
314
- <thead>
315
- <tr>
316
- <th style="width: 40% !important;">
317
- <input type="checkbox" name="ux_chk_full_control_contributor" id="ux_chk_full_control_contributor" value="1" onclick="full_control_function_mail_bank(this,'ux_div_contributor_roles');" <?php echo isset($contributor) && $contributor[0] =="1" ? "checked = checked" : ""?>>
318
- <?php echo $mb_roles_capabilities_full_control;?>
319
- </th>
320
- </tr>
321
- </thead>
322
- <tbody>
323
- <tr>
324
- <td>
325
- <input type="checkbox" name="ux_chk_email_configuration_contributor" id="ux_chk_email_configuration_contributor" value="1" <?php echo isset($contributor) && $contributor[1] =="1" ? "checked = checked" : ""?>>
326
- <?php echo $mb_email_configuration;?>
327
- </td>
328
- <td>
329
- <input type="checkbox" name="ux_chk_test_email_contributor" id="ux_chk_test_email_contributor" value="1" <?php echo isset($contributor) && $contributor[2] =="1" ? "checked = checked" : ""?>>
330
- <?php echo $mb_test_email ;?>
331
- </td>
332
- <td>
333
- <input type="checkbox" name="ux_chk_email_logs_contributor" id="ux_chk_email_logs_contributor" value="1" <?php echo isset($contributor) && $contributor[3] =="1" ? "checked = checked" : ""?>>
334
- <?php echo $mb_email_logs ;?>
335
- </td>
336
- </tr>
337
- <tr>
338
- <td>
339
- <input type="checkbox" name="ux_chk_settings_contributor" id="ux_chk_settings_contributor" value="1" <?php echo isset($contributor) && $contributor[4] =="1" ? "checked = checked" : ""?>>
340
- <?php echo $mb_settings ;?>
341
- </td>
342
- <td>
343
- <input type="checkbox" name="ux_chk_roles_and_capabilities_contributor" id="ux_chk_roles_and_capabilities_contributor" value="1" <?php echo isset($contributor) && $contributor[5] =="1" ? "checked = checked" : ""?>>
344
- <?php echo $mb_roles_and_capabilities;?>
345
- </td>
346
- <td>
347
- <input type="checkbox" name="ux_chk_system_information_contributor" id="ux_chk_system_information_contributor" value="1" <?php echo isset($contributor) && $contributor[6] =="1" ? "checked = checked" : ""?>>
348
- <?php echo $mb_system_information;?>
349
- </td>
350
- </tr>
351
- </tbody>
352
- </table>
353
- </div>
354
- <div class="line-separator"></div>
355
- </div>
 
 
 
 
 
 
 
 
356
  </div>
357
- <div class="form-group">
358
- <div id="ux_div_subscriber_roles">
359
- <label class="control-label">
360
- <?php echo $mb_roles_capabilities_subscriber_role;?> :
361
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_subscriber_role_tooltip;?>" data-placement="right"></i>
362
- <span class="required" aria-required="true">*</span>
363
- </label>
364
- <div class="table-margin-top">
365
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_subscriber">
366
- <thead>
367
- <tr>
368
- <th style="width: 40% !important;">
369
- <input type="checkbox" name="ux_chk_full_control_subscriber" id="ux_chk_full_control_subscriber" value="1" onclick="full_control_function_mail_bank(this,'ux_div_subscriber_roles');" <?php echo isset($subscriber) && $subscriber[0] =="1" ? "checked = checked" : ""?>>
370
- <?php echo $mb_roles_capabilities_full_control;?>
371
- </th>
372
- </tr>
373
- </thead>
374
- <tbody>
375
- <tr>
376
- <td>
377
- <input type="checkbox" name="ux_chk_email_configuration_subscriber" id="ux_chk_email_configuration_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[1] =="1" ? "checked = checked" : ""?>>
378
- <?php echo $mb_email_configuration;?>
379
- </td>
380
- <td>
381
- <input type="checkbox" name="ux_chk_test_email_subscriber" id="ux_chk_test_email_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[2] =="1" ? "checked = checked" : ""?>>
382
- <?php echo $mb_test_email ;?>
383
- </td>
384
- <td>
385
- <input type="checkbox" name="ux_chk_email_logs_subscriber" id="ux_chk_email_logs_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[3] =="1" ? "checked = checked" : ""?>>
386
- <?php echo $mb_email_logs ;?>
387
- </td>
388
- </tr>
389
- <tr>
390
- <td>
391
- <input type="checkbox" name="ux_chk_settings_subscriber" id="ux_chk_settings_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[4] =="1" ? "checked = checked" : ""?>>
392
- <?php echo $mb_settings ;?>
393
- </td>
394
- <td>
395
- <input type="checkbox" name="ux_chk_roles_and_capabilities_subscriber" id="ux_chk_roles_and_capabilities_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[5] =="1" ? "checked = checked" : ""?>>
396
- <?php echo $mb_roles_and_capabilities;?>
397
- </td>
398
- <td>
399
- <input type="checkbox" name="ux_chk_system_information_subscriber" id="ux_chk_system_information_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[6] =="1" ? "checked = checked" : ""?>>
400
- <?php echo $mb_system_information;?>
401
- </td>
402
- </tr>
403
- </tbody>
404
- </table>
405
- </div>
406
- <div class="line-separator"></div>
407
- </div>
 
 
 
 
 
 
 
 
408
  </div>
409
- <div class="form-group">
410
- <div id="ux_div_other_privileges_roles">
411
- <label class="control-label">
412
- <?php echo $mb_roles_capabilities_other_role;?> :
413
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_other_role_tooltip;?>" data-placement="right"></i>
414
- <span class="required" aria-required="true">*</span>
415
- </label>
416
- <div class="table-margin-top">
417
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_other_roles_privileges">
418
- <thead>
419
- <tr>
420
- <th style="width: 40% !important;">
421
- <input type="checkbox" name="ux_chk_full_control_other_privileges_roles" id="ux_chk_full_control_other_privileges_roles" value="1" onclick="full_control_function_mail_bank(this,'ux_div_other_privileges_roles');" <?php echo isset($other_privileges) && $other_privileges[0] =="1" ? "checked = checked" : ""?>>
422
- <?php echo $mb_roles_capabilities_full_control;?>
423
- </th>
424
- </tr>
425
- </thead>
426
- <tbody>
427
- <tr>
428
- <td>
429
- <input type="checkbox" name="ux_chk_email_configuration_others" id="ux_chk_email_configuration_others" value="1" <?php echo isset($other_privileges) && $other_privileges[1] =="1" ? "checked = checked" : ""?>>
430
- <?php echo $mb_email_configuration;?>
431
- </td>
432
- <td>
433
- <input type="checkbox" name="ux_chk_test_email_others" id="ux_chk_test_email_others" value="1" <?php echo isset($other_privileges) && $other_privileges[2] =="1" ? "checked = checked" : ""?>>
434
- <?php echo $mb_test_email ;?>
435
- </td>
436
- <td>
437
- <input type="checkbox" name="ux_chk_email_logs_others" id="ux_chk_email_logs_others" value="1" <?php echo isset($other_privileges) && $other_privileges[3] =="1" ? "checked = checked" : ""?>>
438
- <?php echo $mb_email_logs ;?>
439
- </td>
440
- </tr>
441
- <tr>
442
- <td>
443
- <input type="checkbox" name="ux_chk_settings_others" id="ux_chk_settings_others" value="1" <?php echo isset($other_privileges) && $other_privileges[4] =="1" ? "checked = checked" : ""?>>
444
- <?php echo $mb_settings ;?>
445
- </td>
446
- <td>
447
- <input type="checkbox" name="ux_chk_roles_and_capabilities_others" id="ux_chk_roles_and_capabilities_others" value="1" <?php echo isset($other_privileges) && $other_privileges[5] =="1" ? "checked = checked" : ""?>>
448
- <?php echo $mb_roles_and_capabilities;?>
449
- </td>
450
- <td>
451
- <input type="checkbox" name="ux_chk_system_information_others" id="ux_chk_system_information_others" value="1" <?php echo isset($other_privileges) && $other_privileges[6] =="1" ? "checked = checked" : ""?>>
452
- <?php echo $mb_system_information;?>
453
- </td>
454
- </tr>
455
- </tbody>
456
- </table>
457
- </div>
458
- <div class="line-separator"></div>
459
- </div>
 
 
 
 
 
 
 
 
460
  </div>
461
- <div class="form-group">
462
- <div id="ux_div_other_roles">
463
- <label class="control-label">
464
- <?php echo $mb_roles_capabilities_other_roles_capabilities;?> :
465
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_other_roles_capabilities_tooltip;?>" data-placement="right"></i>
466
- <span class="required" aria-required="true">*</span>
467
- </label>
468
- <div class="table-margin-top">
469
- <table class="table table-striped table-bordered table-hover" id="ux_tbl_other_roles">
470
- <thead>
471
- <tr>
472
- <th style="width: 40% !important;">
473
- <input type="checkbox" name="ux_chk_full_control_other_roles" id="ux_chk_full_control_other_roles" value="1" onclick="full_control_function_mail_bank(this,'ux_div_other_roles');" <?php echo $details_roles_capabilities["others_full_control_capability"] =="1" ? "checked = checked" : ""?>>
474
- <?php echo $mb_roles_capabilities_full_control;?>
475
- </th>
476
- </tr>
477
- </thead>
478
- <tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
  <?php
480
- $flag = 0;
481
- $user_capabilities = get_others_capabilities_mail_bank();
482
- foreach($user_capabilities as $key => $value)
483
- {
484
- $other_roles = in_array($value,$other_roles_array) ? "checked=checked" : "";
485
- $flag++;
486
- if($key % 3 == 0)
487
- {
488
- ?>
489
- <tr>
490
- <?php
491
- }
492
- ?>
493
- <td>
494
- <input type="checkbox" name="ux_chk_other_capabilities_<?php echo $value;?>" id="ux_chk_other_capabilities_<?php echo $value;?>" value="<?php echo $value;?>" <?php echo $other_roles; ?>>
495
- <?php echo $value;?>
496
- </td>
497
- <?php
498
- if(count($user_capabilities) == $flag && $flag % 3 == 1)
499
- {
500
- ?>
501
- <td>
502
- </td>
503
- <td>
504
- </td>
505
- <?php
506
- }
507
- ?>
508
- <?php
509
- if(count($user_capabilities) == $flag && $flag % 3 == 2)
510
- {
511
- ?>
512
- <td>
513
- </td>
514
- <?php
515
- }
516
- ?>
517
- <?php
518
- if($flag % 3 == 0)
519
- {
520
- ?>
521
- </tr>
522
- <?php
523
- }
524
- }
525
  ?>
526
- </tbody>
527
- </table>
528
- </div>
529
- <div class="line-separator"></div>
530
- </div>
531
- </div>
532
- <div class="form-actions">
533
- <div class="pull-right">
534
- <input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $mb_save_changes;?>">
535
- </div>
536
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
  </div>
538
- </form>
 
 
 
 
 
 
 
539
  </div>
540
- </div>
541
  </div>
542
  </div>
543
  </div>
@@ -547,40 +559,36 @@ else
547
  else
548
  {
549
  ?>
550
- <div class="page-content-wrapper">
551
- <div class="page-content">
552
- <div class="page-bar">
553
- <ul class="page-breadcrumb">
554
- <li>
555
- <i class="icon-custom-home"></i>
556
- <a href="admin.php?page=mb_email_configuration">
557
- <?php echo $wp_mail_bank; ?>
558
- </a>
559
- <span>></span>
560
- </li>
561
- <li>
562
- <span>
563
- <?php echo $mb_roles_and_capabilities; ?>
564
- </span>
565
- </li>
566
- </ul>
567
- </div>
568
- <div class="row">
569
- <div class="col-md-12">
570
- <div class="portlet box vivid-green">
571
- <div class="portlet-title">
572
- <div class="caption">
573
- <i class="icon-custom-user"></i>
574
- <?php echo $mb_roles_and_capabilities; ?>
575
- </div>
576
- </div>
577
- <div class="portlet-body form">
578
- <div class="form-body">
579
- <strong><?php echo $mb_user_access_message;?></strong>
580
- </div>
581
  </div>
582
  </div>
583
- </div>
584
  </div>
585
  </div>
586
  </div>
35
  $subscriber = explode(",",isset($details_roles_capabilities["subscriber_privileges"]) ? $details_roles_capabilities["subscriber_privileges"] : "");
36
  $other_privileges = explode(",",isset($details_roles_capabilities["other_roles_privileges"]) ? $details_roles_capabilities["other_roles_privileges"] : "");
37
  ?>
38
+ <div class="page-bar">
39
+ <ul class="page-breadcrumb">
40
+ <li>
41
+ <i class="icon-custom-home"></i>
42
+ <a href="admin.php?page=mb_email_configuration">
43
+ <?php echo $wp_mail_bank; ?>
44
+ </a>
45
+ <span>></span>
46
+ </li>
47
+ <li>
48
+ <span>
49
+ <?php echo $mb_roles_and_capabilities; ?>
50
+ </span>
51
+ </li>
52
+ </ul>
53
+ </div>
54
+ <div class="row">
55
+ <div class="col-md-12">
56
+ <div class="portlet box vivid-green">
57
+ <div class="portlet-title">
58
+ <div class="caption">
59
+ <i class="icon-custom-user"></i>
60
+ <?php echo $mb_roles_and_capabilities; ?>
61
+ </div>
62
+ </div>
63
+ <div class="portlet-body form">
64
+ <form id="ux_frm_roles_and_capabilities">
65
+ <div class="form-body">
66
+ <div class="form-group">
67
+ <label class="control-label">
68
+ <?php echo $mb_roles_capabilities_show_menu;?> :
69
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_show_menu_tooltip;?>" data-placement="right"></i>
70
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
71
+ </label>
72
+ <table class="table table-striped table-bordered table-margin-top" id="ux_tbl_mail_bank_roles">
73
+ <thead>
74
+ <tr>
75
+ <th>
76
+ <input type="checkbox" name="ux_chk_administrator" id="ux_chk_administrator" value="1" checked="checked" disabled="disabled" <?php echo $roles_and_capabilities[0] == "1" ? "checked = checked" : ""?>>
77
+ <?php echo $mb_roles_capabilities_administrator;?>
78
+ </th>
79
+ <th>
80
+ <input type="checkbox" name="ux_chk_author" id="ux_chk_author" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_author_roles');" <?php echo $roles_and_capabilities[1] == "1" ? "checked = checked" : ""?>>
81
+ <?php echo $mb_roles_capabilities_author;?>
82
+ </th>
83
+ <th>
84
+ <input type="checkbox" name="ux_chk_editor" id="ux_chk_editor" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_editor_roles');" <?php echo $roles_and_capabilities[2] == "1" ? "checked = checked" : ""?>>
85
+ <?php echo $mb_roles_capabilities_editor;?>
86
+ </th>
87
+ <th>
88
+ <input type="checkbox" name="ux_chk_contributor" id="ux_chk_contributor" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_contributor_roles');" <?php echo $roles_and_capabilities[3] == "1" ? "checked = checked" : ""?>>
89
+ <?php echo $mb_roles_capabilities_contributor;?>
90
+ </th>
91
+ <th>
92
+ <input type="checkbox" name="ux_chk_subscriber" id="ux_chk_subscriber" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_subscriber_roles');" <?php echo $roles_and_capabilities[4] == "1" ? "checked = checked" : ""?>>
93
+ <?php echo $mb_roles_capabilities_subscriber;?>
94
+ </th>
95
+ <th>
96
+ <input type="checkbox" name="ux_chk_others_privileges" id="ux_chk_others_privileges" value="1" onclick="show_roles_capabilities_mail_bank(this,'ux_div_other_privileges_roles');" <?php echo $roles_and_capabilities[5] == "1" ? "checked = checked" : ""?>>
97
+ <?php echo $mb_roles_capabilities_others;?>
98
+ </th>
99
+ </tr>
100
+ </thead>
101
+ </table>
102
  </div>
103
+ <div class="form-group">
104
+ <label class="control-label">
105
+ <?php echo $mb_roles_capabilities_topbar_menu;?> :
106
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_topbar_menu_tooltip;?>" data-placement="right"></i>
107
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
108
+ </label>
109
+ <select name="ux_ddl_mail_bank_menu" id="ux_ddl_mail_bank_menu" class="form-control">
110
+ <option value="enable"><?php echo $mb_enable;?></option>
111
+ <option value="disable"><?php echo $mb_disable;?></option>
112
+ </select>
113
+ </div>
114
+ <div class="line-separator"></div>
115
+ <div class="form-group">
116
+ <div id="ux_div_administrator_roles">
117
+ <label class="control-label">
118
+ <?php echo $mb_roles_capabilities_administrator_role;?> :
119
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_administrator_role_tooltip;?>" data-placement="right"></i>
120
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
121
+ </label>
122
+ <div class="table-margin-top">
123
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_administrator">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  <thead>
125
  <tr>
126
+ <th style="width: 40% !important;">
127
+ <input type="checkbox" name="ux_chk_full_control_administrator" id="ux_chk_full_control_administrator" checked="checked" disabled="disabled" value="1">
128
+ <?php echo $mb_roles_capabilities_full_control;?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  </th>
130
  </tr>
131
  </thead>
132
+ <tbody>
133
+ <tr>
134
+ <td>
135
+ <input type="checkbox" name="ux_chk_email_configuration_admin" disabled="disabled" checked="checked" id="ux_chk_email_configuration_admin" value="1">
136
+ <?php echo $mb_email_configuration;?>
137
+ </td>
138
+ <td>
139
+ <input type="checkbox" name="ux_chk_test_email_admin" disabled="disabled" checked="checked" id="ux_chk_test_email_admin" value="1">
140
+ <?php echo $mb_test_email ;?>
141
+ </td>
142
+ <td>
143
+ <input type="checkbox" name="ux_chk_email_logs_admin" disabled="disabled" checked="checked" id="ux_chk_email_logs_admin" value="1">
144
+ <?php echo $mb_email_logs ;?>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td>
149
+ <input type="checkbox" name="ux_chk_settings_admin" disabled="disabled" checked="checked" id="ux_chk_settings_admin" value="1">
150
+ <?php echo $mb_settings ;?>
151
+ </td>
152
+ <td>
153
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_admin" disabled="disabled" checked="checked" id="ux_chk_roles_and_capabilities_admin" value="1">
154
+ <?php echo $mb_roles_and_capabilities;?>
155
+ </td>
156
+ <td>
157
+ <input type="checkbox" name="ux_chk_system_information_admin" disabled="disabled" checked="checked" id="ux_chk_system_information_admin" value="1">
158
+ <?php echo $mb_system_information;?>
159
+ </td>
160
+ </tr>
161
+ <tr>
162
+ <td>
163
+ <input type="checkbox" name="ux_chk_error_logs_admin" disabled="disabled" checked="checked" id="ux_chk_error_logs_admin" value="1">
164
+ <?php echo $mb_error_logs;?>
165
+ </td>
166
+ <td></td>
167
+ <td></td>
168
+ </tr>
169
+ </tbody>
170
  </table>
171
  </div>
 
 
 
 
 
 
 
 
 
 
 
172
  <div class="line-separator"></div>
173
+ </div>
174
+ </div>
175
+ <div class="form-group">
176
+ <div id="ux_div_author_roles">
177
+ <label class="control-label">
178
+ <?php echo $mb_roles_capabilities_author_role;?> :
179
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_author_role_tooltip;?>" data-placement="right"></i>
180
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
181
+ </label>
182
+ <div class="table-margin-top">
183
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_author">
184
+ <thead>
185
+ <tr>
186
+ <th style="width: 40% !important;">
187
+ <input type="checkbox" name="ux_chk_full_control_author" id="ux_chk_full_control_author" value="1" onclick="full_control_function_mail_bank(this,'ux_div_author_roles');" <?php echo isset($author) && $author[0] =="1" ? "checked = checked" : ""?>>
188
+ <?php echo $mb_roles_capabilities_full_control;?>
189
+ </th>
190
+ </tr>
191
+ </thead>
192
+ <tbody>
193
+ <tr>
194
+ <td>
195
+ <input type="checkbox" name="ux_chk_email_configuration_author" id="ux_chk_email_configuration_author" value="1" <?php echo isset($author) && $author[1] =="1" ? "checked = checked" : ""?>>
196
+ <?php echo $mb_email_configuration;?>
197
+ </td>
198
+ <td>
199
+ <input type="checkbox" name="ux_chk_test_email_author" id="ux_chk_test_email_author" value="1" <?php echo isset($author) && $author[2] =="1" ? "checked = checked" : ""?>>
200
+ <?php echo $mb_test_email ;?>
201
+ </td>
202
+ <td>
203
+ <input type="checkbox" name="ux_chk_email_logs_author" id="ux_chk_email_logs_author" value="1" <?php echo isset($author) && $author[3] =="1" ? "checked = checked" : ""?>>
204
+ <?php echo $mb_email_logs ;?>
205
+ </td>
206
+ </tr>
207
+ <tr>
208
+ <td>
209
+ <input type="checkbox" name="ux_chk_settings_author" id="ux_chk_settings_author" value="1" <?php echo isset($author) && $author[4] =="1" ? "checked = checked" : ""?>>
210
+ <?php echo $mb_settings ;?>
211
+ </td>
212
+ <td>
213
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_author" id="ux_chk_roles_and_capabilities_author" value="1" <?php echo isset($author) && $author[5] =="1" ? "checked = checked" : ""?>>
214
+ <?php echo $mb_roles_and_capabilities;?>
215
+ </td>
216
+ <td>
217
+ <input type="checkbox" name="ux_chk_system_information_author" id="ux_chk_system_information_author" value="1" <?php echo isset($author) && $author[6] =="1" ? "checked = checked" : ""?>>
218
+ <?php echo $mb_system_information;?>
219
+ </td>
220
+ </tr>
221
+ <tr>
222
+ <td>
223
+ <input type="checkbox" name="ux_chk_error_logs_author" id="ux_chk_error_logs_author" value="1" <?php echo isset($author) && $author[7] =="1" ? "checked = checked" : ""?>>
224
+ <?php echo $mb_error_logs;?>
225
+ </td>
226
+ <td></td>
227
+ <td></td>
228
+ </tr>
229
+ </tbody>
230
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  </div>
232
+ <div class="line-separator"></div>
233
+ </div>
234
+ </div>
235
+ <div class="form-group">
236
+ <div id="ux_div_editor_roles">
237
+ <label class="control-label">
238
+ <?php echo $mb_roles_capabilities_editor_role;?> :
239
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_editor_role_tooltip;?>" data-placement="right"></i>
240
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
241
+ </label>
242
+ <div class="table-margin-top">
243
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_editor">
244
+ <thead>
245
+ <tr>
246
+ <th style="width: 40% !important;">
247
+ <input type="checkbox" name="ux_chk_full_control_editor" id="ux_chk_full_control_editor" value="1" onclick="full_control_function_mail_bank(this,'ux_div_editor_roles');" <?php echo isset($editor) && $editor[0] =="1" ? "checked = checked" : ""?>>
248
+ <?php echo $mb_roles_capabilities_full_control;?>
249
+ </th>
250
+ </tr>
251
+ </thead>
252
+ <tbody>
253
+ <tr>
254
+ <td>
255
+ <input type="checkbox" name="ux_chk_email_configuration_editor" id="ux_chk_email_configuration_editor" value="1" <?php echo isset($editor) && $editor[1] =="1" ? "checked = checked" : ""?>>
256
+ <?php echo $mb_email_configuration;?>
257
+ </td>
258
+ <td>
259
+ <input type="checkbox" name="ux_chk_test_email_editor" id="ux_chk_test_email_editor" value="1" <?php echo isset($editor) && $editor[2] =="1" ? "checked = checked" : ""?>>
260
+ <?php echo $mb_test_email ;?>
261
+ </td>
262
+ <td>
263
+ <input type="checkbox" name="ux_chk_email_logs_editor" id="ux_chk_email_logs_editor" value="1" <?php echo isset($editor) && $editor[3] =="1" ? "checked = checked" : ""?>>
264
+ <?php echo $mb_email_logs ;?>
265
+ </td>
266
+ </tr>
267
+ <tr>
268
+ <td>
269
+ <input type="checkbox" name="ux_chk_settings_editor" id="ux_chk_settings_editor" value="1" <?php echo isset($editor) && $editor[4] =="1" ? "checked = checked" : ""?>>
270
+ <?php echo $mb_settings ;?>
271
+ </td>
272
+ <td>
273
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_editor" id="ux_chk_roles_and_capabilities_editor" value="1" <?php echo isset($editor) && $editor[5] =="1" ? "checked = checked" : ""?>>
274
+ <?php echo $mb_roles_and_capabilities;?>
275
+ </td>
276
+ <td>
277
+ <input type="checkbox" name="ux_chk_system_information_editor" id="ux_chk_system_information_editor" value="1" <?php echo isset($editor) && $editor[6] =="1" ? "checked = checked" : ""?>>
278
+ <?php echo $mb_system_information;?>
279
+ </td>
280
+ </tr>
281
+ <tr>
282
+ <td>
283
+ <input type="checkbox" name="ux_chk_error_logs_editor" id="ux_chk_error_logs_editor" value="1" <?php echo isset($editor) && $editor[7] =="1" ? "checked = checked" : ""?>>
284
+ <?php echo $mb_error_logs;?>
285
+ </td>
286
+ <td></td>
287
+ <td></td>
288
+ </tr>
289
+ </tbody>
290
+ </table>
291
  </div>
292
+ <div class="line-separator"></div>
293
+ </div>
294
+ </div>
295
+ <div class="form-group">
296
+ <div id="ux_div_contributor_roles">
297
+ <label class="control-label">
298
+ <?php echo $mb_roles_capabilities_contributor_role;?> :
299
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_contributor_role_tooltip;?>" data-placement="right"></i>
300
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
301
+ </label>
302
+ <div class="table-margin-top">
303
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_contributor">
304
+ <thead>
305
+ <tr>
306
+ <th style="width: 40% !important;">
307
+ <input type="checkbox" name="ux_chk_full_control_contributor" id="ux_chk_full_control_contributor" value="1" onclick="full_control_function_mail_bank(this,'ux_div_contributor_roles');" <?php echo isset($contributor) && $contributor[0] =="1" ? "checked = checked" : ""?>>
308
+ <?php echo $mb_roles_capabilities_full_control;?>
309
+ </th>
310
+ </tr>
311
+ </thead>
312
+ <tbody>
313
+ <tr>
314
+ <td>
315
+ <input type="checkbox" name="ux_chk_email_configuration_contributor" id="ux_chk_email_configuration_contributor" value="1" <?php echo isset($contributor) && $contributor[1] =="1" ? "checked = checked" : ""?>>
316
+ <?php echo $mb_email_configuration;?>
317
+ </td>
318
+ <td>
319
+ <input type="checkbox" name="ux_chk_test_email_contributor" id="ux_chk_test_email_contributor" value="1" <?php echo isset($contributor) && $contributor[2] =="1" ? "checked = checked" : ""?>>
320
+ <?php echo $mb_test_email ;?>
321
+ </td>
322
+ <td>
323
+ <input type="checkbox" name="ux_chk_email_logs_contributor" id="ux_chk_email_logs_contributor" value="1" <?php echo isset($contributor) && $contributor[3] =="1" ? "checked = checked" : ""?>>
324
+ <?php echo $mb_email_logs ;?>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td>
329
+ <input type="checkbox" name="ux_chk_settings_contributor" id="ux_chk_settings_contributor" value="1" <?php echo isset($contributor) && $contributor[4] =="1" ? "checked = checked" : ""?>>
330
+ <?php echo $mb_settings ;?>
331
+ </td>
332
+ <td>
333
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_contributor" id="ux_chk_roles_and_capabilities_contributor" value="1" <?php echo isset($contributor) && $contributor[5] =="1" ? "checked = checked" : ""?>>
334
+ <?php echo $mb_roles_and_capabilities;?>
335
+ </td>
336
+ <td>
337
+ <input type="checkbox" name="ux_chk_system_information_contributor" id="ux_chk_system_information_contributor" value="1" <?php echo isset($contributor) && $contributor[6] =="1" ? "checked = checked" : ""?>>
338
+ <?php echo $mb_system_information;?>
339
+ </td>
340
+ </tr>
341
+ <tr>
342
+ <td>
343
+ <input type="checkbox" name="ux_chk_error_logs_contributor" id="ux_chk_error_logs_contributor" value="1" <?php echo isset($contributor) && $contributor[7] =="1" ? "checked = checked" : ""?>>
344
+ <?php echo $mb_error_logs;?>
345
+ </td>
346
+ <td></td>
347
+ <td></td>
348
+ </tr>
349
+ </tbody>
350
+ </table>
351
  </div>
352
+ <div class="line-separator"></div>
353
+ </div>
354
+ </div>
355
+ <div class="form-group">
356
+ <div id="ux_div_subscriber_roles">
357
+ <label class="control-label">
358
+ <?php echo $mb_roles_capabilities_subscriber_role;?> :
359
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_subscriber_role_tooltip;?>" data-placement="right"></i>
360
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
361
+ </label>
362
+ <div class="table-margin-top">
363
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_subscriber">
364
+ <thead>
365
+ <tr>
366
+ <th style="width: 40% !important;">
367
+ <input type="checkbox" name="ux_chk_full_control_subscriber" id="ux_chk_full_control_subscriber" value="1" onclick="full_control_function_mail_bank(this,'ux_div_subscriber_roles');" <?php echo isset($subscriber) && $subscriber[0] =="1" ? "checked = checked" : ""?>>
368
+ <?php echo $mb_roles_capabilities_full_control;?>
369
+ </th>
370
+ </tr>
371
+ </thead>
372
+ <tbody>
373
+ <tr>
374
+ <td>
375
+ <input type="checkbox" name="ux_chk_email_configuration_subscriber" id="ux_chk_email_configuration_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[1] =="1" ? "checked = checked" : ""?>>
376
+ <?php echo $mb_email_configuration;?>
377
+ </td>
378
+ <td>
379
+ <input type="checkbox" name="ux_chk_test_email_subscriber" id="ux_chk_test_email_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[2] =="1" ? "checked = checked" : ""?>>
380
+ <?php echo $mb_test_email ;?>
381
+ </td>
382
+ <td>
383
+ <input type="checkbox" name="ux_chk_email_logs_subscriber" id="ux_chk_email_logs_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[3] =="1" ? "checked = checked" : ""?>>
384
+ <?php echo $mb_email_logs ;?>
385
+ </td>
386
+ </tr>
387
+ <tr>
388
+ <td>
389
+ <input type="checkbox" name="ux_chk_settings_subscriber" id="ux_chk_settings_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[4] =="1" ? "checked = checked" : ""?>>
390
+ <?php echo $mb_settings ;?>
391
+ </td>
392
+ <td>
393
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_subscriber" id="ux_chk_roles_and_capabilities_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[5] =="1" ? "checked = checked" : ""?>>
394
+ <?php echo $mb_roles_and_capabilities;?>
395
+ </td>
396
+ <td>
397
+ <input type="checkbox" name="ux_chk_system_information_subscriber" id="ux_chk_system_information_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[6] =="1" ? "checked = checked" : ""?>>
398
+ <?php echo $mb_system_information;?>
399
+ </td>
400
+ </tr>
401
+ <tr>
402
+ <td>
403
+ <input type="checkbox" name="ux_chk_error_logs_subscriber" id="ux_chk_error_logs_subscriber" value="1" <?php echo isset($subscriber) && $subscriber[7] =="1" ? "checked = checked" : ""?>>
404
+ <?php echo $mb_error_logs;?>
405
+ </td>
406
+ <td></td>
407
+ <td></td>
408
+ </tr>
409
+ </tbody>
410
+ </table>
411
  </div>
412
+ <div class="line-separator"></div>
413
+ </div>
414
+ </div>
415
+ <div class="form-group">
416
+ <div id="ux_div_other_privileges_roles">
417
+ <label class="control-label">
418
+ <?php echo $mb_roles_capabilities_other_role;?> :
419
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_other_role_tooltip;?>" data-placement="right"></i>
420
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
421
+ </label>
422
+ <div class="table-margin-top">
423
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_other_roles_privileges">
424
+ <thead>
425
+ <tr>
426
+ <th style="width: 40% !important;">
427
+ <input type="checkbox" name="ux_chk_full_control_other_privileges_roles" id="ux_chk_full_control_other_privileges_roles" value="1" onclick="full_control_function_mail_bank(this,'ux_div_other_privileges_roles');" <?php echo isset($other_privileges) && $other_privileges[0] =="1" ? "checked = checked" : ""?>>
428
+ <?php echo $mb_roles_capabilities_full_control;?>
429
+ </th>
430
+ </tr>
431
+ </thead>
432
+ <tbody>
433
+ <tr>
434
+ <td>
435
+ <input type="checkbox" name="ux_chk_email_configuration_others" id="ux_chk_email_configuration_others" value="1" <?php echo isset($other_privileges) && $other_privileges[1] =="1" ? "checked = checked" : ""?>>
436
+ <?php echo $mb_email_configuration;?>
437
+ </td>
438
+ <td>
439
+ <input type="checkbox" name="ux_chk_test_email_others" id="ux_chk_test_email_others" value="1" <?php echo isset($other_privileges) && $other_privileges[2] =="1" ? "checked = checked" : ""?>>
440
+ <?php echo $mb_test_email ;?>
441
+ </td>
442
+ <td>
443
+ <input type="checkbox" name="ux_chk_email_logs_others" id="ux_chk_email_logs_others" value="1" <?php echo isset($other_privileges) && $other_privileges[3] =="1" ? "checked = checked" : ""?>>
444
+ <?php echo $mb_email_logs ;?>
445
+ </td>
446
+ </tr>
447
+ <tr>
448
+ <td>
449
+ <input type="checkbox" name="ux_chk_settings_others" id="ux_chk_settings_others" value="1" <?php echo isset($other_privileges) && $other_privileges[4] =="1" ? "checked = checked" : ""?>>
450
+ <?php echo $mb_settings ;?>
451
+ </td>
452
+ <td>
453
+ <input type="checkbox" name="ux_chk_roles_and_capabilities_others" id="ux_chk_roles_and_capabilities_others" value="1" <?php echo isset($other_privileges) && $other_privileges[5] =="1" ? "checked = checked" : ""?>>
454
+ <?php echo $mb_roles_and_capabilities;?>
455
+ </td>
456
+ <td>
457
+ <input type="checkbox" name="ux_chk_system_information_others" id="ux_chk_system_information_others" value="1" <?php echo isset($other_privileges) && $other_privileges[6] =="1" ? "checked = checked" : ""?>>
458
+ <?php echo $mb_system_information;?>
459
+ </td>
460
+ </tr>
461
+ <tr>
462
+ <td>
463
+ <input type="checkbox" name="ux_chk_error_logs_others" id="ux_chk_error_logs_others" value="1" <?php echo isset($other_privileges) && $other_privileges[7] =="1" ? "checked = checked" : ""?>>
464
+ <?php echo $mb_error_logs;?>
465
+ </td>
466
+ <td></td>
467
+ <td></td>
468
+ </tr>
469
+ </tbody>
470
+ </table>
471
  </div>
472
+ <div class="line-separator"></div>
473
+ </div>
474
+ </div>
475
+ <div class="form-group">
476
+ <div id="ux_div_other_roles">
477
+ <label class="control-label">
478
+ <?php echo $mb_roles_capabilities_other_roles_capabilities;?> :
479
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_roles_capabilities_other_roles_capabilities_tooltip;?>" data-placement="right"></i>
480
+ <span style="color:red;"><?php echo $premium_edition; ?></span>
481
+ </label>
482
+ <div class="table-margin-top">
483
+ <table class="table table-striped table-bordered table-hover" id="ux_tbl_other_roles">
484
+ <thead>
485
+ <tr>
486
+ <th style="width: 40% !important;">
487
+ <input type="checkbox" name="ux_chk_full_control_other_roles" id="ux_chk_full_control_other_roles" value="1" onclick="full_control_function_mail_bank(this,'ux_div_other_roles');" <?php echo $details_roles_capabilities["others_full_control_capability"] =="1" ? "checked = checked" : ""?>>
488
+ <?php echo $mb_roles_capabilities_full_control;?>
489
+ </th>
490
+ </tr>
491
+ </thead>
492
+ <tbody>
493
+ <?php
494
+ $flag = 0;
495
+ $user_capabilities = get_others_capabilities_mail_bank();
496
+ foreach($user_capabilities as $key => $value)
497
+ {
498
+ $other_roles = in_array($value,$other_roles_array) ? "checked=checked" : "";
499
+ $flag++;
500
+ if($key % 3 == 0)
501
+ {
502
+ ?>
503
+ <tr>
504
  <?php
505
+ }
506
+ ?>
507
+ <td>
508
+ <input type="checkbox" name="ux_chk_other_capabilities_<?php echo $value;?>" id="ux_chk_other_capabilities_<?php echo $value;?>" value="<?php echo $value;?>" <?php echo $other_roles; ?>>
509
+ <?php echo $value;?>
510
+ </td>
511
+ <?php
512
+ if(count($user_capabilities) == $flag && $flag % 3 == 1)
513
+ {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
514
  ?>
515
+ <td>
516
+ </td>
517
+ <td>
518
+ </td>
519
+ <?php
520
+ }
521
+ ?>
522
+ <?php
523
+ if(count($user_capabilities) == $flag && $flag % 3 == 2)
524
+ {
525
+ ?>
526
+ <td>
527
+ </td>
528
+ <?php
529
+ }
530
+ ?>
531
+ <?php
532
+ if($flag % 3 == 0)
533
+ {
534
+ ?>
535
+ </tr>
536
+ <?php
537
+ }
538
+ }
539
+ ?>
540
+ </tbody>
541
+ </table>
542
  </div>
543
+ <div class="line-separator"></div>
544
+ </div>
545
+ </div>
546
+ <div class="form-actions">
547
+ <div class="pull-right">
548
+ <input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $mb_save_changes;?>">
549
+ </div>
550
+ </div>
551
  </div>
552
+ </form>
553
  </div>
554
  </div>
555
  </div>
559
  else
560
  {
561
  ?>
562
+ <div class="page-bar">
563
+ <ul class="page-breadcrumb">
564
+ <li>
565
+ <i class="icon-custom-home"></i>
566
+ <a href="admin.php?page=mb_email_configuration">
567
+ <?php echo $wp_mail_bank; ?>
568
+ </a>
569
+ <span>></span>
570
+ </li>
571
+ <li>
572
+ <span>
573
+ <?php echo $mb_roles_and_capabilities; ?>
574
+ </span>
575
+ </li>
576
+ </ul>
577
+ </div>
578
+ <div class="row">
579
+ <div class="col-md-12">
580
+ <div class="portlet box vivid-green">
581
+ <div class="portlet-title">
582
+ <div class="caption">
583
+ <i class="icon-custom-user"></i>
584
+ <?php echo $mb_roles_and_capabilities; ?>
585
+ </div>
586
+ </div>
587
+ <div class="portlet-body form">
588
+ <div class="form-body">
589
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
590
  </div>
591
  </div>
 
592
  </div>
593
  </div>
594
  </div>
views/settings/settings.php CHANGED
@@ -30,125 +30,98 @@ else
30
  {
31
  $mail_bank_settings = wp_create_nonce("mail_bank_settings");
32
  ?>
33
- <div class="page-content-wrapper">
34
- <div class="page-content">
35
- <div class="page-bar">
36
- <ul class="page-breadcrumb">
37
- <li>
38
- <i class="icon-custom-home"></i>
39
- <a href="admin.php?page=mb_email_configuration">
40
- <?php echo $wp_mail_bank; ?>
41
- </a>
42
- <span>></span>
43
- </li>
44
- <li>
45
- <span>
46
- <?php echo $mb_settings; ?>
47
- </span>
48
- </li>
49
- </ul>
50
- </div>
51
- <div class="row">
52
- <div class="col-md-12">
53
- <div class="portlet box vivid-green">
54
- <div class="portlet-title">
55
- <div class="caption">
56
- <i class="icon-custom-paper-clip"></i>
57
- <?php echo $mb_settings; ?>
58
- </div>
59
- </div>
60
- <div class="portlet-body form">
61
- <form id="ux_frm_settings">
62
- <div class="form-body">
63
- <div class="note note-danger">
64
- <h4 class="block">
65
- <?php echo $mb_important_disclaimer; ?>
66
- </h4>
67
- <ul>
68
- <?php
69
- if(isset($extension_not_found) && count($extension_not_found) > 0)
70
- {
71
- ?>
72
- <li><?php echo $mb_contact_to_host; ?></li>
73
- <?php
74
- foreach($extension_not_found as $extension)
75
- {
76
- ?>
77
- <li>* <?php echo $extension; ?></li>
78
- <?php
79
- }
80
- }
81
- ?>
82
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
83
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/plugin-settings/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
84
- </ul>
85
  </div>
86
- <div class="row">
87
- <div class="col-md-6">
88
- <div class="form-group">
89
- <label class="control-label">
90
- <?php echo $mb_settings_automatic_plugin_update;?> :
91
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_settings_automatic_plugin_update_tooltip;?>" data-placement="right"></i>
92
- <span class="required" aria-required="true">*</span>
93
- </label>
94
- <select name="ux_ddl_automatic_plugin_updates" id="ux_ddl_automatic_plugin_updates" class="form-control" >
95
- <option value="enable"><?php echo $mb_enable; ?></option>
96
- <option value="disable"><?php echo $mb_disable; ?></option>
97
- </select>
98
- </div>
99
- </div>
100
- <div class="col-md-6">
101
- <div class="form-group">
102
- <label class="control-label">
103
- <?php echo $mb_settings_debug_mode;?> :
104
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_settings_debug_mode_tooltip;?>" data-placement="right"></i>
105
- <span class="required" aria-required="true">*</span>
106
- </label>
107
- <select name="ux_ddl_debug_mode" id="ux_ddl_debug_mode" class="form-control" >
108
- <option value="enable"><?php echo $mb_enable; ?></option>
109
- <option value="disable"><?php echo $mb_disable; ?></option>
110
- </select>
111
- </div>
112
- </div>
113
  </div>
114
- <div class="row">
115
- <div class="col-md-6">
116
- <div class="form-group">
117
- <label class="control-label">
118
- <?php echo $mb_remove_tables_title;?> :
119
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_remove_tables_tooltip;?>" data-placement="right"></i>
120
- <span class="required" aria-required="true">*</span>
121
- </label>
122
- <select name="ux_ddl_remove_tables" id="ux_ddl_remove_tables" class="form-control" >
123
- <option value="enable"><?php echo $mb_enable; ?></option>
124
- <option value="disable"><?php echo $mb_disable; ?></option>
125
- </select>
126
- </div>
127
- </div>
128
- <div class="col-md-6">
129
- <div class="form-group">
130
- <label class="control-label">
131
- <?php echo $mb_monitoring_email_log_title;?> :
132
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_monitoring_email_log_tooltip;?>" data-placement="right"></i>
133
- <span class="required" aria-required="true">*</span>
134
- </label>
135
- <select name="ux_ddl_monitor_email_logs" id="ux_ddl_monitor_email_logs" class="form-control">
136
- <option value="enable"><?php echo $mb_enable; ?></option>
137
- <option value="disable"><?php echo $mb_disable; ?></option>
138
- </select>
139
- </div>
140
- </div>
141
  </div>
142
- <div class="line-separator"></div>
143
- <div class="form-actions">
144
- <div class="pull-right">
145
- <input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $mb_save_changes;?>">
146
- </div>
 
 
 
 
 
 
 
147
  </div>
148
  </div>
149
- </form>
 
 
 
 
 
 
150
  </div>
151
- </div>
152
  </div>
153
  </div>
154
  </div>
@@ -158,38 +131,34 @@ else
158
  else
159
  {
160
  ?>
161
- <div class="page-content-wrapper">
162
- <div class="page-content">
163
- <div class="page-bar">
164
- <ul class="page-breadcrumb">
165
- <li>
166
- <i class="icon-custom-home"></i>
167
- <a href="admin.php?page=mb_email_configuration">
168
- <?php echo $wp_mail_bank; ?>
169
- </a>
170
- <span>></span>
171
- </li>
172
- <li>
173
- <span>
174
- <?php echo $mb_settings; ?>
175
- </span>
176
- </li>
177
- </ul>
178
- </div>
179
- <div class="row">
180
- <div class="col-md-12">
181
- <div class="portlet box vivid-green">
182
- <div class="portlet-title">
183
- <div class="caption">
184
- <i class="icon-custom-paper-clip"></i>
185
- <?php echo $mb_settings; ?>
186
- </div>
187
- </div>
188
- <div class="portlet-body form">
189
- <div class="form-body">
190
- <strong><?php echo $mb_user_access_message;?></strong>
191
- </div>
192
- </div>
193
  </div>
194
  </div>
195
  </div>
30
  {
31
  $mail_bank_settings = wp_create_nonce("mail_bank_settings");
32
  ?>
33
+ <div class="page-bar">
34
+ <ul class="page-breadcrumb">
35
+ <li>
36
+ <i class="icon-custom-home"></i>
37
+ <a href="admin.php?page=mb_email_configuration">
38
+ <?php echo $wp_mail_bank; ?>
39
+ </a>
40
+ <span>></span>
41
+ </li>
42
+ <li>
43
+ <span>
44
+ <?php echo $mb_settings; ?>
45
+ </span>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ <div class="row">
50
+ <div class="col-md-12">
51
+ <div class="portlet box vivid-green">
52
+ <div class="portlet-title">
53
+ <div class="caption">
54
+ <i class="icon-custom-paper-clip"></i>
55
+ <?php echo $mb_settings; ?>
56
+ </div>
57
+ </div>
58
+ <div class="portlet-body form">
59
+ <form id="ux_frm_settings">
60
+ <div class="form-body">
61
+ <div class="row">
62
+ <div class="col-md-6">
63
+ <div class="form-group">
64
+ <label class="control-label">
65
+ <?php echo $mb_settings_automatic_plugin_update;?> :
66
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_settings_automatic_plugin_update_tooltip;?>" data-placement="right"></i>
67
+ <span class="required" aria-required="true">*</span>
68
+ </label>
69
+ <select name="ux_ddl_automatic_plugin_updates" id="ux_ddl_automatic_plugin_updates" class="form-control" >
70
+ <option value="enable"><?php echo $mb_enable; ?></option>
71
+ <option value="disable"><?php echo $mb_disable; ?></option>
72
+ </select>
 
 
 
 
 
 
 
 
 
 
 
 
73
  </div>
74
+ </div>
75
+ <div class="col-md-6">
76
+ <div class="form-group">
77
+ <label class="control-label">
78
+ <?php echo $mb_settings_debug_mode;?> :
79
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_settings_debug_mode_tooltip;?>" data-placement="right"></i>
80
+ <span class="required" aria-required="true">*</span>
81
+ </label>
82
+ <select name="ux_ddl_debug_mode" id="ux_ddl_debug_mode" class="form-control" >
83
+ <option value="enable"><?php echo $mb_enable; ?></option>
84
+ <option value="disable"><?php echo $mb_disable; ?></option>
85
+ </select>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  </div>
87
+ </div>
88
+ </div>
89
+ <div class="row">
90
+ <div class="col-md-6">
91
+ <div class="form-group">
92
+ <label class="control-label">
93
+ <?php echo $mb_remove_tables_title;?> :
94
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_remove_tables_tooltip;?>" data-placement="right"></i>
95
+ <span class="required" aria-required="true">*</span>
96
+ </label>
97
+ <select name="ux_ddl_remove_tables" id="ux_ddl_remove_tables" class="form-control" >
98
+ <option value="enable"><?php echo $mb_enable; ?></option>
99
+ <option value="disable"><?php echo $mb_disable; ?></option>
100
+ </select>
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  </div>
102
+ </div>
103
+ <div class="col-md-6">
104
+ <div class="form-group">
105
+ <label class="control-label">
106
+ <?php echo $mb_monitoring_email_log_title;?> :
107
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_monitoring_email_log_tooltip;?>" data-placement="right"></i>
108
+ <span class="required" aria-required="true">*</span>
109
+ </label>
110
+ <select name="ux_ddl_monitor_email_logs" id="ux_ddl_monitor_email_logs" class="form-control">
111
+ <option value="enable"><?php echo $mb_enable; ?></option>
112
+ <option value="disable"><?php echo $mb_disable; ?></option>
113
+ </select>
114
  </div>
115
  </div>
116
+ </div>
117
+ <div class="line-separator"></div>
118
+ <div class="form-actions">
119
+ <div class="pull-right">
120
+ <input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $mb_save_changes;?>">
121
+ </div>
122
+ </div>
123
  </div>
124
+ </form>
125
  </div>
126
  </div>
127
  </div>
131
  else
132
  {
133
  ?>
134
+ <div class="page-bar">
135
+ <ul class="page-breadcrumb">
136
+ <li>
137
+ <i class="icon-custom-home"></i>
138
+ <a href="admin.php?page=mb_email_configuration">
139
+ <?php echo $wp_mail_bank; ?>
140
+ </a>
141
+ <span>></span>
142
+ </li>
143
+ <li>
144
+ <span>
145
+ <?php echo $mb_settings; ?>
146
+ </span>
147
+ </li>
148
+ </ul>
149
+ </div>
150
+ <div class="row">
151
+ <div class="col-md-12">
152
+ <div class="portlet box vivid-green">
153
+ <div class="portlet-title">
154
+ <div class="caption">
155
+ <i class="icon-custom-paper-clip"></i>
156
+ <?php echo $mb_settings; ?>
157
+ </div>
158
+ </div>
159
+ <div class="portlet-body form">
160
+ <div class="form-body">
161
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
 
162
  </div>
163
  </div>
164
  </div>
views/system-information/system-information.php CHANGED
@@ -29,546 +29,519 @@ else
29
  else if(system_information_mail_bank == "1")
30
  {
31
  ?>
32
- <div class="page-content-wrapper">
33
- <div class="page-content">
34
- <div class="page-bar">
35
- <ul class="page-breadcrumb">
36
- <li>
37
- <i class="icon-custom-home"></i>
38
- <a href="admin.php?page=mb_email_configuration">
39
- <?php echo $wp_mail_bank; ?>
40
- </a>
41
- <span>></span>
42
- </li>
43
- <li>
44
- <span>
45
- <?php echo $mb_system_information;?>
46
- </span>
47
- </li>
48
- </ul>
49
- </div>
50
- <div class="row">
51
- <div class="col-md-12">
52
- <div class="portlet box vivid-green">
53
- <div class="portlet-title">
54
- <div class="caption">
55
- <i class="icon-custom-screen-desktop"></i>
56
- <?php echo $mb_system_information;?>
 
 
 
 
 
57
  </div>
58
- </div>
59
- <div class="portlet-body form">
60
- <form id="ux_frm_system_information">
61
- <div class="form-body">
62
- <div class="note note-danger">
63
- <h4 class="block">
64
- <?php echo $mb_important_disclaimer; ?>
65
- </h4>
66
- <ul>
67
- <?php
68
- if(isset($extension_not_found) && count($extension_not_found) > 0)
69
- {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  ?>
71
- <li><?php echo $mb_contact_to_host; ?></li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  <?php
73
- foreach($extension_not_found as $extension)
74
  {
75
- ?>
76
- <li>* <?php echo $extension; ?></li>
77
- <?php
 
78
  }
79
- }
80
- ?>
81
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
82
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/system-information/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
83
- </ul>
84
- </div>
85
- <div class="layout-system-report" id="ux_system_information">
86
- <textarea id="ux_txtarea_system_information" name="ux_txtarea_system_information" readonly="readonly"></textarea>
87
- </div>
88
- <div class="form-actions">
89
- <div class="btn-set pull-right">
90
- <button type="button" class="btn vivid-green system-report" name="ux_btn_system_information" id="ux_btn_system_information">Get System Information!</button>
91
- </div>
92
- </div>
93
- <div class="custom-form-body">
94
- <h3 class="form-section">
95
- Server Information
96
- </h3>
97
- <table class="table table-striped table-bordered table-hover" >
98
- <thead class="align-thead-left">
99
- <tr>
100
- <th class="custom-table-th-left" style="width: 40% !important;">
101
- Environment Key
102
- </th>
103
- <th class="custom-table-th-right">
104
- Environment Value
105
- </th>
106
- </tr>
107
- </thead>
108
- <tbody>
109
- <tr>
110
- <td>
111
- <strong>Home URL :</strong>
112
- </td>
113
- <td>
114
- <span>
115
- <?php echo home_url(); ?>
116
- </span>
117
- </td>
118
- </tr>
119
- <tr>
120
- <td>
121
- <strong>Site URL :</strong>
122
- </td>
123
- <td>
124
- <span>
125
- <?php echo site_url(); ?>
126
- </span>
127
- </td>
128
- </tr>
129
- <tr>
130
- <td>
131
- <strong>WP Version :</strong>
132
- </td>
133
- <td>
134
- <span>
135
- <?php echo bloginfo("version");?>
136
- </span>
137
- </td>
138
- </tr>
139
- <tr>
140
- <td>
141
- <strong>WP Multisite Enabled :</strong>
142
- </td>
143
- <td>
144
- <span>
145
- <?php if (is_multisite()) echo "Yes"; else echo "No"; ?>
146
- </span>
147
- </td>
148
- </tr>
149
- <?php
150
- $request["cmd"] = "_notify-validate";
151
- $params = array(
152
- "sslverify" => false,
153
- "timeout" => 60,
154
- "user-agent" => "wp_mail_bank",
155
- "body" => $request
156
- );
157
- $response = wp_remote_post( "https://www.paypal.com/cgi-bin/webscr", $params );
158
- ?>
159
- <tr>
160
- <td>
161
- <strong>WP Remote Post :</strong>
162
- </td>
163
- <td>
164
- <span>
165
- <?php echo (! is_wp_error($response)) ? "Success" : "Failed";?>
166
- </span>
167
- </td>
168
- </tr>
169
- <tr>
170
- <td>
171
- <strong>Web Server Info :</strong>
172
- </td>
173
- <td>
174
- <span>
175
- <?php echo esc_html($_SERVER["SERVER_SOFTWARE"]);?>
176
- </span>
177
- </td>
178
- </tr>
179
- <tr>
180
- <td>
181
- <strong>PHP Version :</strong>
182
- </td>
183
- <td>
184
- <span>
185
- <?php if (function_exists("phpversion")) echo esc_html(phpversion());?>
186
- </span>
187
- </td>
188
- </tr>
189
- <tr>
190
- <td>
191
- <strong>MySQL Version :</strong>
192
- </td>
193
- <td>
194
- <span>
195
- <?php global $wpdb; echo $wpdb->db_version();?>
196
- </span>
197
- </td>
198
- </tr>
199
- <tr>
200
- <td>
201
- <strong>WP Debug Mode :</strong>
202
- </td>
203
- <td>
204
- <span>
205
- <?php if (defined("WP_DEBUG") && WP_DEBUG) echo "Yes"; else echo "No"; ?>
206
- </span>
207
- </td>
208
- </tr>
209
- <tr>
210
- <td>
211
- <strong>WP Language :</strong>
212
- </td>
213
- <td>
214
- <span>
215
- <?php if (defined("WPLANG") && WPLANG) echo WPLANG; else echo get_locale(); ?>
216
- </span>
217
- </td>
218
- </tr>
219
- <tr>
220
- <td>
221
- <strong>WP Max Upload Size :</strong>
222
- </td>
223
- <td>
224
- <span>
225
- <?php echo size_format(wp_max_upload_size()); ?>
226
- </span>
227
- </td>
228
- </tr>
229
- <?php if (function_exists("ini_get")) : ?>
230
- <tr>
231
- <td>
232
- <strong>PHP Max Script Execute Time :</strong>
233
- </td>
234
- <td>
235
- <span>
236
- <?php echo ini_get("max_execution_time"); ?>
237
- </span>
238
- </td>
239
- </tr>
240
- <tr>
241
- <td>
242
- <strong>PHP Max Input Vars :</strong>
243
- </td>
244
- <td>
245
- <span>
246
- <?php echo ini_get("max_input_vars"); ?>
247
- </span>
248
- </td>
249
- </tr>
250
- <tr>
251
- <td>
252
- <strong>SUHOSIN Installed :</strong>
253
- </td>
254
- <td>
255
- <span>
256
- <?php echo extension_loaded("suhosin") ? "Yes" : "No";?>
257
- </span>
258
- </td>
259
- </tr>
260
- <?php endif; ?>
261
- <tr>
262
- <td>
263
- <strong>Default Timezone :</strong>
264
- </td>
265
- <td>
266
- <span>
267
- <?php
268
- $timezone = date_default_timezone_get();
269
- if ("UTC" !== $timezone)
270
- {
271
- echo sprintf("Default timezone is %s - it should be UTC", $timezone);
272
- }
273
- else
274
- {
275
- echo sprintf("Default timezone is %s", $timezone);
276
- }
277
- ?>
278
- </span>
279
- </td>
280
- </tr>
281
- <?php
282
- global $wpdb, $bb;
283
- // Get MYSQL Version
284
- $sql_version = $wpdb->get_var("SELECT VERSION() AS version");
285
- // GET SQL Mode
286
- $my_sql_info = $wpdb->get_results("SHOW VARIABLES LIKE \"sql_mode\"");
287
- if (is_array($my_sql_info)) $sqlmode = $my_sql_info[0]->Value;
288
- if (empty($sqlmode)) $sqlmode = "Not set";
289
- // Get PHP Safe Mode
290
- if (ini_get("safemode")) $safemode = "On";
291
- else $safemode = "Off";
292
- // Get PHP allow_url_fopen
293
- if (ini_get("allow-url-fopen")) $allowurlfopen = "On";
294
- else $allowurlfopen = "Off";
295
- // Get PHP Max Upload Size
296
- if (ini_get("upload_max_filesize")) $upload_maximum = ini_get("upload_max_filesize");
297
- else $upload_maximum = "N/A";
298
- // Get PHP Output buffer Size
299
- if (ini_get("pcre.backtrack_limit")) $backtrack_lmt = ini_get("pcre.backtrack_limit");
300
- else $backtrack_lmt = "N/A";
301
- // Get PHP Max Post Size
302
- if (ini_get("post_max_size")) $post_maximum = ini_get("post_max_size");
303
- else $post_maximum = "N/A";
304
- // Get PHP Memory Limit
305
- if (ini_get("memory_limit")) $memory_limit = ini_get("memory_limit");
306
- else $memory_limit = "N/A";
307
- // Get actual memory_get_usage
308
- if (function_exists("memory_get_usage")) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . " MByte";
309
- else $memory_usage = "N/A";
310
- // required for EXIF read
311
- if (is_callable("exif_read_data")) $exif = "Yes" . " ( V" . substr(phpversion("exif"), 0, 4) . ")";
312
- else $exif = "No";
313
- // required for meta data
314
- if (is_callable("iptcparse")) $iptc = "Yes";
315
- else $iptc = "No";
316
- // required for meta data
317
- if (is_callable("xml_parser_create")) $xml = "Yes";
318
- else $xml = "No";
319
- ?>
320
- <tr>
321
- <td>
322
- <strong>Operating System :</strong>
323
- </td>
324
- <td>
325
- <span>
326
- <?php echo PHP_OS; ?>&nbsp;(<?php echo(PHP_INT_SIZE * 8) ?>&nbsp;Bit)
327
- </span>
328
- </td>
329
- </tr>
330
- <tr>
331
- <td>
332
- <strong>Memory usage :</strong>
333
- </td>
334
- <td>
335
- <span>
336
- <?php echo $memory_usage; ?>
337
- </span>
338
- </td>
339
- </tr>
340
- <tr>
341
- <td>
342
- <strong>SQL Mode :</strong>
343
- </td>
344
- <td>
345
- <span>
346
- <?php echo $sqlmode; ?>
347
- </span>
348
- </td>
349
- </tr>
350
- <tr>
351
- <td>
352
- <strong>PHP Safe Mode :</strong>
353
- </td>
354
- <td>
355
- <span>
356
- <?php echo $safemode; ?>
357
- </span>
358
- </td>
359
- </tr>
360
- <tr>
361
- <td>
362
- <strong>PHP Allow URL fopen :</strong>
363
- </td>
364
- <td>
365
- <span>
366
- <?php echo $allowurlfopen; ?>
367
- </span>
368
- </td>
369
- </tr>
370
- <tr>
371
- <td>
372
- <strong>PHP Memory Limit :</strong>
373
- </td>
374
- <td>
375
- <span>
376
- <?php echo $memory_limit; ?>
377
- </span>
378
- </td>
379
- </tr>
380
- <tr>
381
- <td>
382
- <strong>PHP Max Post Size :</strong>
383
- </td>
384
- <td>
385
- <span>
386
- <?php echo $post_maximum; ?>
387
- </span>
388
- </td>
389
- </tr>
390
- <tr>
391
- <td>
392
- <strong>PCRE Backtracking Limit :</strong>
393
- </td>
394
- <td>
395
- <span>
396
- <?php echo $backtrack_lmt; ?>
397
- </span>
398
- </td>
399
- </tr>
400
- <tr>
401
- <td>
402
- <strong>PHP Exif support :</strong>
403
- </td>
404
- <td>
405
- <span>
406
- <?php echo $exif; ?>
407
- </span>
408
- </td>
409
- </tr>
410
- <tr>
411
- <td>
412
- <strong>PHP IPTC support :</strong>
413
- </td>
414
- <td>
415
- <span>
416
- <?php echo $iptc; ?>
417
- </span>
418
- </td>
419
- </tr>
420
- <tr>
421
- <td>
422
- <strong>PHP XML support :</strong>
423
- </td>
424
- <td>
425
- <span>
426
- <?php echo $xml; ?>
427
- </span>
428
- </td>
429
- </tr>
430
- <tr>
431
- <td>
432
- <strong>Extensions :</strong>
433
- </td>
434
- <td>
435
- <span>
436
- <?php
437
- if(function_exists("get_loaded_extensions"))
438
- {
439
- foreach(get_loaded_extensions() as $extension)
440
- {
441
- echo $extension.", ";
442
- }
443
- }
444
- ?>
445
- </span>
446
- </td>
447
- </tr>
448
- <tr>
449
- <td>
450
- <strong>Apache Modules :</strong>
451
- </td>
452
- <td>
453
- <span>
454
- <?php
455
- if(function_exists("apache_get_modules"))
456
- {
457
- foreach(apache_get_modules() as $module)
458
- {
459
- echo $module.", ";
460
- }
461
- }
462
- ?>
463
- </span>
464
- </td>
465
- </tr>
466
- </tbody>
467
- </table>
468
- </div>
469
- <div class="custom-form-body">
470
- <h3 class="form-section">
471
- Active Plugin Information
472
- </h3>
473
- <table class="table table-striped table-bordered table-hover">
474
- <thead class="align-thead-left">
475
- <tr>
476
- <th class="custom-table-th-left" style="40% !important;">
477
- Plugin Key
478
- </th>
479
- <th class="custom-table-th-right">
480
- Plugin Value
481
- </th>
482
- </tr>
483
- </thead>
484
- <tbody>
485
  <?php
486
- $active_plugins = (array)get_option("active_plugins", array());
487
- if (is_multisite())
488
- $active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
489
- $get_plugins = array();
490
- foreach ($active_plugins as $plugin)
491
  {
492
- $plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
493
- $version_string = "";
494
- if (!empty($plugin_data["Name"]))
495
  {
496
- $plugin_name = $plugin_data["Name"];
497
- if (!empty($plugin_data["PluginURI"]))
498
- {
499
- $plugin_name = "<tr><td><strong>" . $plugin_name . " :</strong></td><td><span>". "By " . $plugin_data["Author"] . "<br/> Version " . $plugin_data["Version"] . $version_string."</span></td></tr>";
500
- }
501
- echo $plugin_name;
502
  }
503
  }
504
- ?>
505
- </tbody>
506
- </table>
507
- </div>
508
- <?php
509
- global $wp_version;
510
- if($wp_version >= 3.4)
511
- {
512
- $active_theme = wp_get_theme ();
513
- ?>
514
- <div class="custom-form-body">
515
- <h3 class="form-section">
516
- Active Theme Information
517
- </h3>
518
- <table class="table table-striped table-bordered table-hover">
519
- <thead class="align-thead-left">
520
- <tr>
521
- <th style="width: 40% !important;" class="custom-table-th-left">
522
- Theme Key
523
- </th>
524
- <th class="custom-table-th-right">
525
- Theme Value
526
- </th>
527
- </tr>
528
- </thead>
529
- <tbody>
530
- <tr>
531
- <td>
532
- <strong>Theme Name :</strong>
533
- </td>
534
- <td>
535
- <span>
536
- <?php echo $active_theme->Name; ?>
537
- </span>
538
- </td>
539
- </tr>
540
- <tr>
541
- <td>
542
- <strong>Theme Version :</strong>
543
- </td>
544
- <td>
545
- <span>
546
- <?php echo $active_theme->Version;?>
547
- </span>
548
- </td>
549
- </tr>
550
- <tr>
551
- <td>
552
- <strong>Author URL :</strong>
553
- </td>
554
- <td>
555
- <span>
556
- <a href="<?php echo $active_theme->{"Author URI"}; ?>"
557
- target="_blank"><?php echo $active_theme->{"Author URI"}; ?>
558
- </a>
559
- </span>
560
- </td>
561
- </tr>
562
- </tbody>
563
- </table>
564
- </div>
565
- <?php
566
- }
567
  ?>
568
- </div>
569
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  </div>
571
- </div>
572
  </div>
573
  </div>
574
  </div>
@@ -578,38 +551,34 @@ else
578
  else
579
  {
580
  ?>
581
- <div class="page-content-wrapper">
582
- <div class="page-content">
583
- <div class="page-bar">
584
- <ul class="page-breadcrumb">
585
- <li>
586
- <i class="icon-custom-home"></i>
587
- <a href="admin.php?page=mb_email_configuration">
588
- <?php echo $wp_mail_bank; ?>
589
- </a>
590
- <span>></span>
591
- </li>
592
- <li>
593
- <span>
594
- <?php echo $mb_system_information; ?>
595
- </span>
596
- </li>
597
- </ul>
598
- </div>
599
- <div class="row">
600
- <div class="col-md-12">
601
- <div class="portlet box vivid-green">
602
- <div class="portlet-title">
603
- <div class="caption">
604
- <i class="icon-custom-screen-desktop"></i>
605
- <?php echo $mb_system_information; ?>
606
- </div>
607
- </div>
608
- <div class="portlet-body form">
609
- <div class="form-body">
610
- <strong><?php echo $mb_user_access_message;?></strong>
611
- </div>
612
- </div>
613
  </div>
614
  </div>
615
  </div>
29
  else if(system_information_mail_bank == "1")
30
  {
31
  ?>
32
+ <div class="page-bar">
33
+ <ul class="page-breadcrumb">
34
+ <li>
35
+ <i class="icon-custom-home"></i>
36
+ <a href="admin.php?page=mb_email_configuration">
37
+ <?php echo $wp_mail_bank; ?>
38
+ </a>
39
+ <span>></span>
40
+ </li>
41
+ <li>
42
+ <span>
43
+ <?php echo $mb_system_information;?>
44
+ </span>
45
+ </li>
46
+ </ul>
47
+ </div>
48
+ <div class="row">
49
+ <div class="col-md-12">
50
+ <div class="portlet box vivid-green">
51
+ <div class="portlet-title">
52
+ <div class="caption">
53
+ <i class="icon-custom-screen-desktop"></i>
54
+ <?php echo $mb_system_information;?>
55
+ </div>
56
+ </div>
57
+ <div class="portlet-body form">
58
+ <form id="ux_frm_system_information">
59
+ <div class="form-body">
60
+ <div class="layout-system-report" id="ux_system_information">
61
+ <textarea id="ux_txtarea_system_information" name="ux_txtarea_system_information" readonly="readonly"></textarea>
62
  </div>
63
+ <div class="form-actions">
64
+ <div class="btn-set pull-right">
65
+ <button type="button" class="btn vivid-green system-report" name="ux_btn_system_information" id="ux_btn_system_information">Get System Information!</button>
66
+ </div>
67
+ </div>
68
+ <div class="custom-form-body">
69
+ <h3 class="form-section">
70
+ Server Information
71
+ </h3>
72
+ <table class="table table-striped table-bordered table-hover" >
73
+ <thead class="align-thead-left">
74
+ <tr>
75
+ <th class="custom-table-th-left" style="width: 40% !important;">
76
+ Environment Key
77
+ </th>
78
+ <th class="custom-table-th-right">
79
+ Environment Value
80
+ </th>
81
+ </tr>
82
+ </thead>
83
+ <tbody>
84
+ <tr>
85
+ <td>
86
+ <strong>Home URL :</strong>
87
+ </td>
88
+ <td>
89
+ <span>
90
+ <?php echo home_url(); ?>
91
+ </span>
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td>
96
+ <strong>Site URL :</strong>
97
+ </td>
98
+ <td>
99
+ <span>
100
+ <?php echo site_url(); ?>
101
+ </span>
102
+ </td>
103
+ </tr>
104
+ <tr>
105
+ <td>
106
+ <strong>WP Version :</strong>
107
+ </td>
108
+ <td>
109
+ <span>
110
+ <?php echo bloginfo("version");?>
111
+ </span>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td>
116
+ <strong>WP Multisite Enabled :</strong>
117
+ </td>
118
+ <td>
119
+ <span>
120
+ <?php if (is_multisite()) echo "Yes"; else echo "No"; ?>
121
+ </span>
122
+ </td>
123
+ </tr>
124
+ <?php
125
+ $request["cmd"] = "_notify-validate";
126
+ $params = array(
127
+ "sslverify" => false,
128
+ "timeout" => 60,
129
+ "user-agent" => "wp_mail_bank",
130
+ "body" => $request
131
+ );
132
+ $response = wp_remote_post( "https://www.paypal.com/cgi-bin/webscr", $params );
133
+ ?>
134
+ <tr>
135
+ <td>
136
+ <strong>WP Remote Post :</strong>
137
+ </td>
138
+ <td>
139
+ <span>
140
+ <?php echo (! is_wp_error($response)) ? "Success" : "Failed";?>
141
+ </span>
142
+ </td>
143
+ </tr>
144
+ <tr>
145
+ <td>
146
+ <strong>Web Server Info :</strong>
147
+ </td>
148
+ <td>
149
+ <span>
150
+ <?php echo esc_html($_SERVER["SERVER_SOFTWARE"]);?>
151
+ </span>
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td>
156
+ <strong>PHP Version :</strong>
157
+ </td>
158
+ <td>
159
+ <span>
160
+ <?php if (function_exists("phpversion")) echo esc_html(phpversion());?>
161
+ </span>
162
+ </td>
163
+ </tr>
164
+ <tr>
165
+ <td>
166
+ <strong>MySQL Version :</strong>
167
+ </td>
168
+ <td>
169
+ <span>
170
+ <?php global $wpdb; echo $wpdb->db_version();?>
171
+ </span>
172
+ </td>
173
+ </tr>
174
+ <tr>
175
+ <td>
176
+ <strong>WP Debug Mode :</strong>
177
+ </td>
178
+ <td>
179
+ <span>
180
+ <?php if (defined("WP_DEBUG") && WP_DEBUG) echo "Yes"; else echo "No"; ?>
181
+ </span>
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td>
186
+ <strong>WP Language :</strong>
187
+ </td>
188
+ <td>
189
+ <span>
190
+ <?php if (defined("WPLANG") && WPLANG) echo WPLANG; else echo get_locale(); ?>
191
+ </span>
192
+ </td>
193
+ </tr>
194
+ <tr>
195
+ <td>
196
+ <strong>WP Max Upload Size :</strong>
197
+ </td>
198
+ <td>
199
+ <span>
200
+ <?php echo size_format(wp_max_upload_size()); ?>
201
+ </span>
202
+ </td>
203
+ </tr>
204
+ <?php if (function_exists("ini_get")) : ?>
205
+ <tr>
206
+ <td>
207
+ <strong>PHP Max Script Execute Time :</strong>
208
+ </td>
209
+ <td>
210
+ <span>
211
+ <?php echo ini_get("max_execution_time"); ?>
212
+ </span>
213
+ </td>
214
+ </tr>
215
+ <tr>
216
+ <td>
217
+ <strong>PHP Max Input Vars :</strong>
218
+ </td>
219
+ <td>
220
+ <span>
221
+ <?php echo ini_get("max_input_vars"); ?>
222
+ </span>
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <td>
227
+ <strong>SUHOSIN Installed :</strong>
228
+ </td>
229
+ <td>
230
+ <span>
231
+ <?php echo extension_loaded("suhosin") ? "Yes" : "No";?>
232
+ </span>
233
+ </td>
234
+ </tr>
235
+ <?php endif; ?>
236
+ <tr>
237
+ <td>
238
+ <strong>Default Timezone :</strong>
239
+ </td>
240
+ <td>
241
+ <span>
242
+ <?php
243
+ $timezone = date_default_timezone_get();
244
+ if ("UTC" !== $timezone)
245
+ {
246
+ echo sprintf("Default timezone is %s - it should be UTC", $timezone);
247
+ }
248
+ else
249
+ {
250
+ echo sprintf("Default timezone is %s", $timezone);
251
+ }
252
  ?>
253
+ </span>
254
+ </td>
255
+ </tr>
256
+ <?php
257
+ global $wpdb, $bb;
258
+ // Get MYSQL Version
259
+ $sql_version = $wpdb->get_var("SELECT VERSION() AS version");
260
+ // GET SQL Mode
261
+ $my_sql_info = $wpdb->get_results("SHOW VARIABLES LIKE \"sql_mode\"");
262
+ if (is_array($my_sql_info)) $sqlmode = $my_sql_info[0]->Value;
263
+ if (empty($sqlmode)) $sqlmode = "Not set";
264
+ // Get PHP Safe Mode
265
+ if (ini_get("safemode")) $safemode = "On";
266
+ else $safemode = "Off";
267
+ // Get PHP allow_url_fopen
268
+ if (ini_get("allow-url-fopen")) $allowurlfopen = "On";
269
+ else $allowurlfopen = "Off";
270
+ // Get PHP Max Upload Size
271
+ if (ini_get("upload_max_filesize")) $upload_maximum = ini_get("upload_max_filesize");
272
+ else $upload_maximum = "N/A";
273
+ // Get PHP Output buffer Size
274
+ if (ini_get("pcre.backtrack_limit")) $backtrack_lmt = ini_get("pcre.backtrack_limit");
275
+ else $backtrack_lmt = "N/A";
276
+ // Get PHP Max Post Size
277
+ if (ini_get("post_max_size")) $post_maximum = ini_get("post_max_size");
278
+ else $post_maximum = "N/A";
279
+ // Get PHP Memory Limit
280
+ if (ini_get("memory_limit")) $memory_limit = ini_get("memory_limit");
281
+ else $memory_limit = "N/A";
282
+ // Get actual memory_get_usage
283
+ if (function_exists("memory_get_usage")) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . " MByte";
284
+ else $memory_usage = "N/A";
285
+ // required for EXIF read
286
+ if (is_callable("exif_read_data")) $exif = "Yes" . " ( V" . substr(phpversion("exif"), 0, 4) . ")";
287
+ else $exif = "No";
288
+ // required for meta data
289
+ if (is_callable("iptcparse")) $iptc = "Yes";
290
+ else $iptc = "No";
291
+ // required for meta data
292
+ if (is_callable("xml_parser_create")) $xml = "Yes";
293
+ else $xml = "No";
294
+ ?>
295
+ <tr>
296
+ <td>
297
+ <strong>Operating System :</strong>
298
+ </td>
299
+ <td>
300
+ <span>
301
+ <?php echo PHP_OS; ?>&nbsp;(<?php echo(PHP_INT_SIZE * 8) ?>&nbsp;Bit)
302
+ </span>
303
+ </td>
304
+ </tr>
305
+ <tr>
306
+ <td>
307
+ <strong>Memory usage :</strong>
308
+ </td>
309
+ <td>
310
+ <span>
311
+ <?php echo $memory_usage; ?>
312
+ </span>
313
+ </td>
314
+ </tr>
315
+ <tr>
316
+ <td>
317
+ <strong>SQL Mode :</strong>
318
+ </td>
319
+ <td>
320
+ <span>
321
+ <?php echo $sqlmode; ?>
322
+ </span>
323
+ </td>
324
+ </tr>
325
+ <tr>
326
+ <td>
327
+ <strong>PHP Safe Mode :</strong>
328
+ </td>
329
+ <td>
330
+ <span>
331
+ <?php echo $safemode; ?>
332
+ </span>
333
+ </td>
334
+ </tr>
335
+ <tr>
336
+ <td>
337
+ <strong>PHP Allow URL fopen :</strong>
338
+ </td>
339
+ <td>
340
+ <span>
341
+ <?php echo $allowurlfopen; ?>
342
+ </span>
343
+ </td>
344
+ </tr>
345
+ <tr>
346
+ <td>
347
+ <strong>PHP Memory Limit :</strong>
348
+ </td>
349
+ <td>
350
+ <span>
351
+ <?php echo $memory_limit; ?>
352
+ </span>
353
+ </td>
354
+ </tr>
355
+ <tr>
356
+ <td>
357
+ <strong>PHP Max Post Size :</strong>
358
+ </td>
359
+ <td>
360
+ <span>
361
+ <?php echo $post_maximum; ?>
362
+ </span>
363
+ </td>
364
+ </tr>
365
+ <tr>
366
+ <td>
367
+ <strong>PCRE Backtracking Limit :</strong>
368
+ </td>
369
+ <td>
370
+ <span>
371
+ <?php echo $backtrack_lmt; ?>
372
+ </span>
373
+ </td>
374
+ </tr>
375
+ <tr>
376
+ <td>
377
+ <strong>PHP Exif support :</strong>
378
+ </td>
379
+ <td>
380
+ <span>
381
+ <?php echo $exif; ?>
382
+ </span>
383
+ </td>
384
+ </tr>
385
+ <tr>
386
+ <td>
387
+ <strong>PHP IPTC support :</strong>
388
+ </td>
389
+ <td>
390
+ <span>
391
+ <?php echo $iptc; ?>
392
+ </span>
393
+ </td>
394
+ </tr>
395
+ <tr>
396
+ <td>
397
+ <strong>PHP XML support :</strong>
398
+ </td>
399
+ <td>
400
+ <span>
401
+ <?php echo $xml; ?>
402
+ </span>
403
+ </td>
404
+ </tr>
405
+ <tr>
406
+ <td>
407
+ <strong>Extensions :</strong>
408
+ </td>
409
+ <td>
410
+ <span>
411
  <?php
412
+ if(function_exists("get_loaded_extensions"))
413
  {
414
+ foreach(get_loaded_extensions() as $extension)
415
+ {
416
+ echo $extension.", ";
417
+ }
418
  }
419
+ ?>
420
+ </span>
421
+ </td>
422
+ </tr>
423
+ <tr>
424
+ <td>
425
+ <strong>Apache Modules :</strong>
426
+ </td>
427
+ <td>
428
+ <span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  <?php
430
+ if(function_exists("apache_get_modules"))
 
 
 
 
431
  {
432
+ foreach(apache_get_modules() as $module)
 
 
433
  {
434
+ echo $module.", ";
 
 
 
 
 
435
  }
436
  }
437
+ ?>
438
+ </span>
439
+ </td>
440
+ </tr>
441
+ </tbody>
442
+ </table>
443
+ </div>
444
+ <div class="custom-form-body">
445
+ <h3 class="form-section">
446
+ Active Plugin Information
447
+ </h3>
448
+ <table class="table table-striped table-bordered table-hover">
449
+ <thead class="align-thead-left">
450
+ <tr>
451
+ <th class="custom-table-th-left" style="40% !important;">
452
+ Plugin Key
453
+ </th>
454
+ <th class="custom-table-th-right">
455
+ Plugin Value
456
+ </th>
457
+ </tr>
458
+ </thead>
459
+ <tbody>
460
+ <?php
461
+ $active_plugins = (array)get_option("active_plugins", array());
462
+ if (is_multisite())
463
+ $active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
464
+ $get_plugins = array();
465
+ foreach ($active_plugins as $plugin)
466
+ {
467
+ $plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
468
+ $version_string = "";
469
+ if (!empty($plugin_data["Name"]))
470
+ {
471
+ $plugin_name = $plugin_data["Name"];
472
+ if (!empty($plugin_data["PluginURI"]))
473
+ {
474
+ $plugin_name = "<tr><td><strong>" . $plugin_name . " :</strong></td><td><span>". "By " . $plugin_data["Author"] . "<br/> Version " . $plugin_data["Version"] . $version_string."</span></td></tr>";
475
+ }
476
+ echo $plugin_name;
477
+ }
478
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
  ?>
480
+ </tbody>
481
+ </table>
482
+ </div>
483
+ <?php
484
+ global $wp_version;
485
+ if($wp_version >= 3.4)
486
+ {
487
+ $active_theme = wp_get_theme ();
488
+ ?>
489
+ <div class="custom-form-body">
490
+ <h3 class="form-section">
491
+ Active Theme Information
492
+ </h3>
493
+ <table class="table table-striped table-bordered table-hover">
494
+ <thead class="align-thead-left">
495
+ <tr>
496
+ <th style="width: 40% !important;" class="custom-table-th-left">
497
+ Theme Key
498
+ </th>
499
+ <th class="custom-table-th-right">
500
+ Theme Value
501
+ </th>
502
+ </tr>
503
+ </thead>
504
+ <tbody>
505
+ <tr>
506
+ <td>
507
+ <strong>Theme Name :</strong>
508
+ </td>
509
+ <td>
510
+ <span>
511
+ <?php echo $active_theme->Name; ?>
512
+ </span>
513
+ </td>
514
+ </tr>
515
+ <tr>
516
+ <td>
517
+ <strong>Theme Version :</strong>
518
+ </td>
519
+ <td>
520
+ <span>
521
+ <?php echo $active_theme->Version;?>
522
+ </span>
523
+ </td>
524
+ </tr>
525
+ <tr>
526
+ <td>
527
+ <strong>Author URL :</strong>
528
+ </td>
529
+ <td>
530
+ <span>
531
+ <a href="<?php echo $active_theme->{"Author URI"}; ?>"
532
+ target="_blank"><?php echo $active_theme->{"Author URI"}; ?>
533
+ </a>
534
+ </span>
535
+ </td>
536
+ </tr>
537
+ </tbody>
538
+ </table>
539
+ </div>
540
+ <?php
541
+ }
542
+ ?>
543
  </div>
544
+ </form>
545
  </div>
546
  </div>
547
  </div>
551
  else
552
  {
553
  ?>
554
+ <div class="page-bar">
555
+ <ul class="page-breadcrumb">
556
+ <li>
557
+ <i class="icon-custom-home"></i>
558
+ <a href="admin.php?page=mb_email_configuration">
559
+ <?php echo $wp_mail_bank; ?>
560
+ </a>
561
+ <span>></span>
562
+ </li>
563
+ <li>
564
+ <span>
565
+ <?php echo $mb_system_information; ?>
566
+ </span>
567
+ </li>
568
+ </ul>
569
+ </div>
570
+ <div class="row">
571
+ <div class="col-md-12">
572
+ <div class="portlet box vivid-green">
573
+ <div class="portlet-title">
574
+ <div class="caption">
575
+ <i class="icon-custom-screen-desktop"></i>
576
+ <?php echo $mb_system_information; ?>
577
+ </div>
578
+ </div>
579
+ <div class="portlet-body form">
580
+ <div class="form-body">
581
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
 
582
  </div>
583
  </div>
584
  </div>
views/test-email/test-email.php CHANGED
@@ -30,118 +30,91 @@ else
30
  {
31
  $mail_bank_test_email_configuration = wp_create_nonce("mail_bank_test_email_configuration");
32
  ?>
33
- <div class="page-content-wrapper">
34
- <div class="page-content">
35
- <div class="page-bar">
36
- <ul class="page-breadcrumb">
37
- <li>
38
- <i class="icon-custom-home"></i>
39
- <a href="admin.php?page=mb_email_configuration">
40
- <?php echo $wp_mail_bank; ?>
41
- </a>
42
- <span>></span>
43
- </li>
44
- <li>
45
- <span>
46
- <?php echo $mb_test_email; ?>
47
- </span>
48
- </li>
49
- </ul>
50
- </div>
51
- <div class="row">
52
- <div class="col-md-12">
53
- <div class="portlet box vivid-green">
54
- <div class="portlet-title">
55
- <div class="caption">
56
- <i class="icon-custom-envelope"></i>
57
- <?php echo $mb_test_email ; ?>
58
- </div>
59
- </div>
60
- <div class="portlet-body form">
61
- <div class="form-body">
62
- <div class="note note-danger">
63
- <h4 class="block">
64
- <?php echo $mb_important_disclaimer; ?>
65
- </h4>
66
- <ul>
67
- <?php
68
- if(isset($extension_not_found) && count($extension_not_found) > 0)
69
- {
70
- ?>
71
- <li><?php echo $mb_contact_to_host; ?></li>
72
- <?php
73
- foreach($extension_not_found as $extension)
74
- {
75
- ?>
76
- <li>* <?php echo $extension; ?></li>
77
- <?php
78
- }
79
- }
80
- ?>
81
- <li><?php echo $mb_demos_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/demos/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
82
- <li><?php echo $mb_manual_disclaimer ?><a href="http://beta.tech-banker.com/products/mail-bank/user-guide/test-email/" target="_blank" class="custom_links"><?php echo $mb_here_disclaimer ?></a>.</li>
83
- </ul>
84
  </div>
85
- <form id="ux_frm_test_email_configuration">
86
- <div id="ux_div_test_mail">
87
- <div class="form-group">
88
- <label class="control-label">
89
- <?php echo $mb_email_configuration_test_email_address;?> :
90
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_test_email_address_tooltip;?>" data-placement="right"></i>
91
- <span class="required" aria-required="true">*</span>
92
- </label>
93
- <input type="text" class="form-control" name="ux_txt_email" id="ux_txt_email" value="<?php $admin_email = get_option("admin_email"); echo $admin_email;?>" placeholder="<?php echo $mb_email_configuration_test_email_address_placeholder;?>">
94
- </div>
95
- <div class="form-group">
96
- <label class="control-label">
97
- <?php echo $mb_subject;?> :
98
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_subject_test_tooltip;?>" data-placement="right"></i>
99
- <span class="required" aria-required="true">*</span>
100
- </label>
101
- <input type="text" class="form-control" name="ux_txt_subject" id="ux_txt_subject" value="Test Email - Mail Bank" placeholder="<?php echo $mb_email_configuration_subject_test_placeholder;?>">
102
- </div>
103
- <div class="form-group">
104
- <label class="control-label">
105
- <?php echo $mb_email_configuration_content;?> :
106
- <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_content_tooltip;?>" data-placement="right"></i>
107
- <span class="required" aria-required="true">*</span>
108
- </label>
109
- <?php
110
- $email_configuration = "This is a demo Test Email for Email Setup - Mail Bank";
111
- wp_editor( $email_configuration, $id ="ux_content" , array("media_buttons" => false, "textarea_rows" => 8, "tabindex" => 4 ) );
112
- ?>
113
- <textarea id="ux_email_configuration_text_area" name="ux_email_configuration_text_area" style="display: none;"></textarea>
114
- </div>
115
- <div class="line-separator"></div>
116
- <div class="form-actions">
117
- <div class="pull-right">
118
- <button class="btn vivid-green" name="ux_btn_save_test_email" id="ux_btn_save_test_email" onclick="mail_bank_send_test_mail()"><?php echo $mb_email_configuration_send_test_email;?></button>
119
- </div>
120
- </div>
121
  </div>
122
- <div id="console_log_div" style="display: none;">
123
- <div class="form-group">
124
- <label class="control-label"><?php echo $mb_email_configuration_smtp_debugging_output;?> :</label>
125
- <textarea name="ux_txtarea_console_log" class="form-control" id="ux_txtarea_console_log" rows="15" readonly="readonly"><?php echo $mb_email_configuration_send_test_email_textarea;?></textarea>
126
- </div>
 
 
 
 
 
 
 
 
127
  </div>
128
- <div id="ux_div_mail_console" style="display: none;">
129
- <div id="result_div">
130
- <div class="form-group">
131
- <label class="control-label"><?php echo $mb_email_configuration_result; ?>:</label>
132
- <textarea name="ux_txtarea_result_log" id="ux_txtarea_result_log" class="form-control" rows="16" readonly="readonly" ></textarea>
133
- </div>
134
- </div>
135
- <div class="line-separator"></div>
136
- <div class="form-actions">
137
- <div class="pull-right">
138
- <input type="button" class="btn vivid-green" name="ux_btn_another_test_email" onclick="another_test_email_mail_bank();" id="ux_btn_another_test_email" value="<?php echo $mb_email_configuration_send_another_test_email;?>">
139
- </div>
140
- </div>
141
  </div>
142
- </form>
143
  </div>
144
- </div>
145
  </div>
146
  </div>
147
  </div>
@@ -152,38 +125,34 @@ else
152
  else
153
  {
154
  ?>
155
- <div class="page-content-wrapper">
156
- <div class="page-content">
157
- <div class="page-bar">
158
- <ul class="page-breadcrumb">
159
- <li>
160
- <i class="icon-custom-home"></i>
161
- <a href="admin.php?page=mb_email_configuration">
162
- <?php echo $wp_mail_bank; ?>
163
- </a>
164
- <span>></span>
165
- </li>
166
- <li>
167
- <span>
168
- <?php echo $mb_test_email; ?>
169
- </span>
170
- </li>
171
- </ul>
172
- </div>
173
- <div class="row">
174
- <div class="col-md-12">
175
- <div class="portlet box vivid-green">
176
- <div class="portlet-title">
177
- <div class="caption">
178
- <i class="icon-custom-envelope"></i>
179
- <?php echo $mb_test_email ; ?>
180
- </div>
181
- </div>
182
- <div class="portlet-body form">
183
- <div class="form-body">
184
- <strong><?php echo $mb_user_access_message;?></strong>
185
- </div>
186
- </div>
187
  </div>
188
  </div>
189
  </div>
30
  {
31
  $mail_bank_test_email_configuration = wp_create_nonce("mail_bank_test_email_configuration");
32
  ?>
33
+ <div class="page-bar">
34
+ <ul class="page-breadcrumb">
35
+ <li>
36
+ <i class="icon-custom-home"></i>
37
+ <a href="admin.php?page=mb_email_configuration">
38
+ <?php echo $wp_mail_bank; ?>
39
+ </a>
40
+ <span>></span>
41
+ </li>
42
+ <li>
43
+ <span>
44
+ <?php echo $mb_test_email; ?>
45
+ </span>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ <div class="row">
50
+ <div class="col-md-12">
51
+ <div class="portlet box vivid-green">
52
+ <div class="portlet-title">
53
+ <div class="caption">
54
+ <i class="icon-custom-envelope"></i>
55
+ <?php echo $mb_test_email ; ?>
56
+ </div>
57
+ </div>
58
+ <div class="portlet-body form">
59
+ <div class="form-body">
60
+ <form id="ux_frm_test_email_configuration">
61
+ <div id="ux_div_test_mail">
62
+ <div class="form-group">
63
+ <label class="control-label">
64
+ <?php echo $mb_email_configuration_test_email_address;?> :
65
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_test_email_address_tooltip;?>" data-placement="right"></i>
66
+ <span class="required" aria-required="true">*</span>
67
+ </label>
68
+ <input type="text" class="form-control" name="ux_txt_email" id="ux_txt_email" value="<?php $admin_email = get_option("admin_email"); echo $admin_email;?>" placeholder="<?php echo $mb_email_configuration_test_email_address_placeholder;?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  </div>
70
+ <div class="form-group">
71
+ <label class="control-label">
72
+ <?php echo $mb_subject;?> :
73
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_subject_test_tooltip;?>" data-placement="right"></i>
74
+ <span class="required" aria-required="true">*</span>
75
+ </label>
76
+ <input type="text" class="form-control" name="ux_txt_subject" id="ux_txt_subject" value="Test Email - Mail Bank" placeholder="<?php echo $mb_email_configuration_subject_test_placeholder;?>">
77
+ </div>
78
+ <div class="form-group">
79
+ <label class="control-label">
80
+ <?php echo $mb_email_configuration_content;?> :
81
+ <i class="icon-custom-question tooltips" data-original-title="<?php echo $mb_email_configuration_content_tooltip;?>" data-placement="right"></i>
82
+ <span class="required" aria-required="true">*</span>
83
+ </label>
84
+ <?php
85
+ $email_configuration = "This is a demo Test Email for Email Setup - Mail Bank";
86
+ wp_editor( $email_configuration, $id ="ux_content" , array("media_buttons" => false, "textarea_rows" => 8, "tabindex" => 4 ) );
87
+ ?>
88
+ <textarea id="ux_email_configuration_text_area" name="ux_email_configuration_text_area" style="display: none;"></textarea>
89
+ </div>
90
+ <div class="line-separator"></div>
91
+ <div class="form-actions">
92
+ <div class="pull-right">
93
+ <button class="btn vivid-green" name="ux_btn_save_test_email" id="ux_btn_save_test_email" onclick="mail_bank_send_test_mail()"><?php echo $mb_email_configuration_send_test_email;?></button>
 
 
 
 
 
 
 
 
 
 
 
 
94
  </div>
95
+ </div>
96
+ </div>
97
+ <div id="console_log_div" style="display: none;">
98
+ <div class="form-group">
99
+ <label class="control-label"><?php echo $mb_email_configuration_smtp_debugging_output;?> :</label>
100
+ <textarea name="ux_txtarea_console_log" class="form-control" id="ux_txtarea_console_log" rows="15" readonly="readonly"><?php echo $mb_email_configuration_send_test_email_textarea;?></textarea>
101
+ </div>
102
+ </div>
103
+ <div id="ux_div_mail_console" style="display: none;">
104
+ <div id="result_div">
105
+ <div class="form-group">
106
+ <label class="control-label"><?php echo $mb_email_configuration_result; ?>:</label>
107
+ <textarea name="ux_txtarea_result_log" id="ux_txtarea_result_log" class="form-control" rows="16" readonly="readonly" ></textarea>
108
  </div>
109
+ </div>
110
+ <div class="line-separator"></div>
111
+ <div class="form-actions">
112
+ <div class="pull-right">
113
+ <input type="button" class="btn vivid-green" name="ux_btn_another_test_email" onclick="another_test_email_mail_bank();" id="ux_btn_another_test_email" value="<?php echo $mb_email_configuration_send_another_test_email;?>">
 
 
 
 
 
 
 
 
114
  </div>
115
+ </div>
116
  </div>
117
+ </form>
118
  </div>
119
  </div>
120
  </div>
125
  else
126
  {
127
  ?>
128
+ <div class="page-bar">
129
+ <ul class="page-breadcrumb">
130
+ <li>
131
+ <i class="icon-custom-home"></i>
132
+ <a href="admin.php?page=mb_email_configuration">
133
+ <?php echo $wp_mail_bank; ?>
134
+ </a>
135
+ <span>></span>
136
+ </li>
137
+ <li>
138
+ <span>
139
+ <?php echo $mb_test_email; ?>
140
+ </span>
141
+ </li>
142
+ </ul>
143
+ </div>
144
+ <div class="row">
145
+ <div class="col-md-12">
146
+ <div class="portlet box vivid-green">
147
+ <div class="portlet-title">
148
+ <div class="caption">
149
+ <i class="icon-custom-envelope"></i>
150
+ <?php echo $mb_test_email ; ?>
151
+ </div>
152
+ </div>
153
+ <div class="portlet-body form">
154
+ <div class="form-body">
155
+ <strong><?php echo $mb_user_access_message;?></strong>
 
 
 
 
156
  </div>
157
  </div>
158
  </div>
wp-mail-bank.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://beta.tech-banker.com
5
  Description: Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
- Version: 2.0.15
9
  License: GPLv3
10
  */
11
 
@@ -14,7 +14,10 @@ if(!defined("ABSPATH")) exit; // Exit if accessed directly
14
  if(!defined("MAIL_BANK_FILE")) define("MAIL_BANK_FILE",plugin_basename(__FILE__));
15
  if(!defined("MAIL_BANK_DIR_PATH")) define("MAIL_BANK_DIR_PATH",plugin_dir_path(__FILE__));
16
  if(!defined("MAIL_BANK_PLUGIN_DIRNAME")) define("MAIL_BANK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
 
17
  if(!defined("wp_mail_bank")) define("wp_mail_bank","wp-mail-bank");
 
 
18
  if(is_ssl())
19
  {
20
  if(!defined("tech_banker_url")) define("tech_banker_url","https://tech-banker.com");
@@ -82,7 +85,7 @@ if(!function_exists("install_script_for_mail_bank"))
82
  {
83
  switch_to_blog($blog_id);
84
  $version = get_option("mail-bank-version-number");
85
- if($version < "2.0.2")
86
  {
87
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
88
  {
@@ -95,7 +98,7 @@ if(!function_exists("install_script_for_mail_bank"))
95
  else
96
  {
97
  $version = get_option("mail-bank-version-number");
98
- if($version < "2.0.2")
99
  {
100
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
101
  {
@@ -217,7 +220,7 @@ if(!function_exists("mail_bank_action_links"))
217
  }
218
 
219
  $version = get_option("mail-bank-version-number");
220
- if($version == "2.0.2")
221
  {
222
  /* admin_enqueue_scripts for backend_js_css_for_mail_bank
223
  Description: This hook is used for calling css and js files for backend
@@ -239,6 +242,7 @@ if($version == "2.0.2")
239
  "mb_roles_and_capabilities",
240
  "mb_feedbacks",
241
  "mb_system_information",
 
242
  "mb_premium_editions"
243
  );
244
  foreach ($pages_mail_bank as $page_id => $page)
5
  Description: Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
+ Version: 2.0.16
9
  License: GPLv3
10
  */
11
 
14
  if(!defined("MAIL_BANK_FILE")) define("MAIL_BANK_FILE",plugin_basename(__FILE__));
15
  if(!defined("MAIL_BANK_DIR_PATH")) define("MAIL_BANK_DIR_PATH",plugin_dir_path(__FILE__));
16
  if(!defined("MAIL_BANK_PLUGIN_DIRNAME")) define("MAIL_BANK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
17
+ if(!defined("MAIL_BANK_LOGFILE_PATH")) define("MAIL_BANK_LOGFILE_PATH", MAIL_BANK_DIR_PATH."views/error-logs/error-logs.txt");
18
  if(!defined("wp_mail_bank")) define("wp_mail_bank","wp-mail-bank");
19
+ @ini_set("log_errors", "1");
20
+ @ini_set("error_log", MAIL_BANK_LOGFILE_PATH);
21
  if(is_ssl())
22
  {
23
  if(!defined("tech_banker_url")) define("tech_banker_url","https://tech-banker.com");
85
  {
86
  switch_to_blog($blog_id);
87
  $version = get_option("mail-bank-version-number");
88
+ if($version < "2.0.3")
89
  {
90
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
91
  {
98
  else
99
  {
100
  $version = get_option("mail-bank-version-number");
101
+ if($version < "2.0.3")
102
  {
103
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
104
  {
220
  }
221
 
222
  $version = get_option("mail-bank-version-number");
223
+ if($version == "2.0.3")
224
  {
225
  /* admin_enqueue_scripts for backend_js_css_for_mail_bank
226
  Description: This hook is used for calling css and js files for backend
242
  "mb_roles_and_capabilities",
243
  "mb_feedbacks",
244
  "mb_system_information",
245
+ "mb_error_logs",
246
  "mb_premium_editions"
247
  );
248
  foreach ($pages_mail_bank as $page_id => $page)