Contact Bank: WordPress Form Builder for Contact Forms - Version 2.1.41

Version Description

  • FIX: Major Bug with Roles & Capabilities Fixed
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Contact Bank: WordPress Form Builder for Contact Forms
Version 2.1.41
Comparing to
See all releases

Code changes from version 2.1.40 to 2.1.41

contact-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://tech-banker.com
5
  * Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
6
  * Author: Tech Banker
7
- * Version: 2.1.40
8
  * Author URI: http://tech-banker.com
9
  * License: GPLv3 or later
10
  * Text Domain: contact-bank
@@ -26,7 +26,7 @@ if (!defined("CONTACT_BK_PLUGIN_BASENAME"))
26
  if (!defined("tech_banker_stats_url"))
27
  define("tech_banker_stats_url", "http://stats.tech-banker-services.org");
28
  if (!defined("contact_bank_version_number"))
29
- define("contact_bank_version_number", "2.1.38");
30
 
31
  /* Function Name : plugin_install_script_for_contact_bank
32
  * Paramters : None
@@ -40,10 +40,8 @@ function plugin_install_script_for_contact_bank() {
40
  global $wpdb, $current_user, $cb_user_role_permission;
41
  if (is_super_admin()) {
42
  $cb_role = "administrator";
43
- } else {
44
- $cb_role = $wpdb->prefix . "capabilities";
45
- $current_user->role = array_keys($current_user->$cb_role);
46
- $cb_role = $current_user->role[0];
47
  }
48
  if (is_multisite()) {
49
  $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
@@ -148,9 +146,7 @@ function create_global_menus_for_contact_bank() {
148
  if (is_super_admin()) {
149
  $cb_role = "administrator";
150
  } else {
151
- $cb_role = $wpdb->prefix . "capabilities";
152
- $current_user->role = array_keys($current_user->$cb_role);
153
- $cb_role = $current_user->role[0];
154
  }
155
  $contact_bank_wizard = get_option("contact-bank-wizard");
156
  global $wp_version;
@@ -244,9 +240,7 @@ function contact_bank() {
244
  if (is_super_admin()) {
245
  $cb_role = "administrator";
246
  } else {
247
- $cb_role = $wpdb->prefix . "capabilities";
248
- $current_user->role = array_keys($current_user->$cb_role);
249
- $cb_role = $current_user->role[0];
250
  }
251
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
252
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -266,9 +260,7 @@ function contact_dashboard() {
266
  if (is_super_admin()) {
267
  $cb_role = "administrator";
268
  } else {
269
- $cb_role = $wpdb->prefix . "capabilities";
270
- $current_user->role = array_keys($current_user->$cb_role);
271
- $cb_role = $current_user->role[0];
272
  }
273
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
274
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -285,9 +277,7 @@ function contact_bank_wizard() {
285
  if (is_super_admin()) {
286
  $cb_role = "administrator";
287
  } else {
288
- $cb_role = $wpdb->prefix . "capabilities";
289
- $current_user->role = array_keys($current_user->$cb_role);
290
- $cb_role = $current_user->role[0];
291
  }
292
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/wizard.php")) {
293
  include_once CONTACT_BK_PLUGIN_DIR . "/views/wizard.php";
@@ -298,9 +288,7 @@ function edit_contact_view() {
298
  if (is_super_admin()) {
299
  $cb_role = "administrator";
300
  } else {
301
- $cb_role = $wpdb->prefix . "capabilities";
302
- $current_user->role = array_keys($current_user->$cb_role);
303
- $cb_role = $current_user->role[0];
304
  }
305
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
306
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -317,9 +305,7 @@ function contact_other_settings() {
317
  if (is_super_admin()) {
318
  $cb_role = "administrator";
319
  } else {
320
- $cb_role = $wpdb->prefix . "capabilities";
321
- $current_user->role = array_keys($current_user->$cb_role);
322
- $cb_role = $current_user->role[0];
323
  }
324
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
325
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -336,9 +322,7 @@ function contact_email() {
336
  if (is_super_admin()) {
337
  $cb_role = "administrator";
338
  } else {
339
- $cb_role = $wpdb->prefix . "capabilities";
340
- $current_user->role = array_keys($current_user->$cb_role);
341
- $cb_role = $current_user->role[0];
342
  }
343
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
344
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -355,9 +339,7 @@ function contact_frontend_data() {
355
  if (is_super_admin()) {
356
  $cb_role = "administrator";
357
  } else {
358
- $cb_role = $wpdb->prefix . "capabilities";
359
- $current_user->role = array_keys($current_user->$cb_role);
360
- $cb_role = $current_user->role[0];
361
  }
362
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
363
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -374,9 +356,7 @@ function add_contact_email_settings() {
374
  if (is_super_admin()) {
375
  $cb_role = "administrator";
376
  } else {
377
- $cb_role = $wpdb->prefix . "capabilities";
378
- $current_user->role = array_keys($current_user->$cb_role);
379
- $cb_role = $current_user->role[0];
380
  }
381
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
382
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -393,9 +373,7 @@ function contact_layout_settings() {
393
  if (is_super_admin()) {
394
  $cb_role = "administrator";
395
  } else {
396
- $cb_role = $wpdb->prefix . "capabilities";
397
- $current_user->role = array_keys($current_user->$cb_role);
398
- $cb_role = $current_user->role[0];
399
  }
400
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
401
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -412,9 +390,7 @@ function contact_feature_request() {
412
  if (is_super_admin()) {
413
  $cb_role = "administrator";
414
  } else {
415
- $cb_role = $wpdb->prefix . "capabilities";
416
- $current_user->role = array_keys($current_user->$cb_role);
417
- $cb_role = $current_user->role[0];
418
  }
419
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
420
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -431,9 +407,7 @@ function contact_system_status() {
431
  if (is_super_admin()) {
432
  $cb_role = "administrator";
433
  } else {
434
- $cb_role = $wpdb->prefix . "capabilities";
435
- $current_user->role = array_keys($current_user->$cb_role);
436
- $cb_role = $current_user->role[0];
437
  }
438
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
439
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -450,9 +424,7 @@ function form_preview() {
450
  if (is_super_admin()) {
451
  $cb_role = "administrator";
452
  } else {
453
- $cb_role = $wpdb->prefix . "capabilities";
454
- $current_user->role = array_keys($current_user->$cb_role);
455
- $cb_role = $current_user->role[0];
456
  }
457
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
458
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -469,9 +441,7 @@ function contact_pro_version() {
469
  if (is_super_admin()) {
470
  $cb_role = "administrator";
471
  } else {
472
- $cb_role = $wpdb->prefix . "capabilities";
473
- $current_user->role = array_keys($current_user->$cb_role);
474
- $cb_role = $current_user->role[0];
475
  }
476
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
477
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -488,9 +458,7 @@ function contact_bank_recommended_plugins() {
488
  if (is_super_admin()) {
489
  $cb_role = "administrator";
490
  } else {
491
- $cb_role = $wpdb->prefix . "capabilities";
492
- $current_user->role = array_keys($current_user->$cb_role);
493
- $cb_role = $current_user->role[0];
494
  }
495
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
496
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -507,9 +475,7 @@ function contact_bank_other_services() {
507
  if (is_super_admin()) {
508
  $cb_role = "administrator";
509
  } else {
510
- $cb_role = $wpdb->prefix . "capabilities";
511
- $current_user->role = array_keys($current_user->$cb_role);
512
- $cb_role = $current_user->role[0];
513
  }
514
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
515
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -526,9 +492,7 @@ function contact_short_code() {
526
  if (is_super_admin()) {
527
  $cb_role = "administrator";
528
  } else {
529
- $cb_role = $wpdb->prefix . "capabilities";
530
- $current_user->role = array_keys($current_user->$cb_role);
531
- $cb_role = $current_user->role[0];
532
  }
533
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
534
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
@@ -582,9 +546,7 @@ if (isset($_REQUEST["action"])) {
582
  if (is_super_admin()) {
583
  $cb_role = "administrator";
584
  } else {
585
- $cb_role = $wpdb->prefix . "capabilities";
586
- $current_user->role = array_keys($current_user->$cb_role);
587
- $cb_role = $current_user->role[0];
588
  }
589
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php")) {
590
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
@@ -610,9 +572,7 @@ if (isset($_REQUEST["action"])) {
610
  if (is_super_admin()) {
611
  $cb_role = "administrator";
612
  } else {
613
- $cb_role = $wpdb->prefix . "capabilities";
614
- $current_user->role = array_keys($current_user->$cb_role);
615
- $cb_role = $current_user->role[0];
616
  }
617
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php")) {
618
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
@@ -638,9 +598,7 @@ if (isset($_REQUEST["action"])) {
638
  if (is_super_admin()) {
639
  $cb_role = "administrator";
640
  } else {
641
- $cb_role = $wpdb->prefix . "capabilities";
642
- $current_user->role = array_keys($current_user->$cb_role);
643
- $cb_role = $current_user->role[0];
644
  }
645
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php")) {
646
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
@@ -656,9 +614,7 @@ if (isset($_REQUEST["action"])) {
656
  if (is_super_admin()) {
657
  $cb_role = "administrator";
658
  } else {
659
- $cb_role = $wpdb->prefix . "capabilities";
660
- $current_user->role = array_keys($current_user->$cb_role);
661
- $cb_role = $current_user->role[0];
662
  }
663
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php")) {
664
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
@@ -674,9 +630,7 @@ if (isset($_REQUEST["action"])) {
674
  if (is_super_admin()) {
675
  $cb_role = "administrator";
676
  } else {
677
- $cb_role = $wpdb->prefix . "capabilities";
678
- $current_user->role = array_keys($current_user->$cb_role);
679
- $cb_role = $current_user->role[0];
680
  }
681
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php")) {
682
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
@@ -756,9 +710,7 @@ function add_contact_bank_icon($meta = TRUE) {
756
  if (is_super_admin()) {
757
  $cb_role = "administrator";
758
  } else {
759
- $cb_role = $wpdb->prefix . "capabilities";
760
- $current_user->role = array_keys($current_user->$cb_role);
761
- $cb_role = $current_user->role[0];
762
  }
763
 
764
  switch ($cb_role) {
4
  * Plugin URI: http://tech-banker.com
5
  * Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
6
  * Author: Tech Banker
7
+ * Version: 2.1.41
8
  * Author URI: http://tech-banker.com
9
  * License: GPLv3 or later
10
  * Text Domain: contact-bank
26
  if (!defined("tech_banker_stats_url"))
27
  define("tech_banker_stats_url", "http://stats.tech-banker-services.org");
28
  if (!defined("contact_bank_version_number"))
29
+ define("contact_bank_version_number", "2.1.41");
30
 
31
  /* Function Name : plugin_install_script_for_contact_bank
32
  * Paramters : None
40
  global $wpdb, $current_user, $cb_user_role_permission;
41
  if (is_super_admin()) {
42
  $cb_role = "administrator";
43
+ } else {
44
+ $cb_role = $current_user->roles[0];
 
 
45
  }
46
  if (is_multisite()) {
47
  $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
146
  if (is_super_admin()) {
147
  $cb_role = "administrator";
148
  } else {
149
+ $cb_role = $current_user->roles[0];
 
 
150
  }
151
  $contact_bank_wizard = get_option("contact-bank-wizard");
152
  global $wp_version;
240
  if (is_super_admin()) {
241
  $cb_role = "administrator";
242
  } else {
243
+ $cb_role = $current_user->roles[0];
 
 
244
  }
245
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
246
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
260
  if (is_super_admin()) {
261
  $cb_role = "administrator";
262
  } else {
263
+ $cb_role = $current_user->roles[0];
 
 
264
  }
265
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
266
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
277
  if (is_super_admin()) {
278
  $cb_role = "administrator";
279
  } else {
280
+ $cb_role = $current_user->roles[0];
 
 
281
  }
282
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/wizard.php")) {
283
  include_once CONTACT_BK_PLUGIN_DIR . "/views/wizard.php";
288
  if (is_super_admin()) {
289
  $cb_role = "administrator";
290
  } else {
291
+ $cb_role = $current_user->roles[0];
 
 
292
  }
293
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
294
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
305
  if (is_super_admin()) {
306
  $cb_role = "administrator";
307
  } else {
308
+ $cb_role = $current_user->roles[0];
 
 
309
  }
310
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
311
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
322
  if (is_super_admin()) {
323
  $cb_role = "administrator";
324
  } else {
325
+ $cb_role = $current_user->roles[0];
 
 
326
  }
327
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
328
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
339
  if (is_super_admin()) {
340
  $cb_role = "administrator";
341
  } else {
342
+ $cb_role = $current_user->roles[0];
 
 
343
  }
344
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
345
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
356
  if (is_super_admin()) {
357
  $cb_role = "administrator";
358
  } else {
359
+ $cb_role = $current_user->roles[0];
 
 
360
  }
361
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
362
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
373
  if (is_super_admin()) {
374
  $cb_role = "administrator";
375
  } else {
376
+ $cb_role = $current_user->roles[0];
 
 
377
  }
378
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
379
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
390
  if (is_super_admin()) {
391
  $cb_role = "administrator";
392
  } else {
393
+ $cb_role = $current_user->roles[0];
 
 
394
  }
395
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
396
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
407
  if (is_super_admin()) {
408
  $cb_role = "administrator";
409
  } else {
410
+ $cb_role = $current_user->roles[0];
 
 
411
  }
412
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
413
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
424
  if (is_super_admin()) {
425
  $cb_role = "administrator";
426
  } else {
427
+ $cb_role = $current_user->roles[0];
 
 
428
  }
429
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
430
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
441
  if (is_super_admin()) {
442
  $cb_role = "administrator";
443
  } else {
444
+ $cb_role = $current_user->roles[0];
 
 
445
  }
446
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
447
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
458
  if (is_super_admin()) {
459
  $cb_role = "administrator";
460
  } else {
461
+ $cb_role = $current_user->roles[0];
 
 
462
  }
463
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
464
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
475
  if (is_super_admin()) {
476
  $cb_role = "administrator";
477
  } else {
478
+ $cb_role = $current_user->roles[0];
 
 
479
  }
480
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
481
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
492
  if (is_super_admin()) {
493
  $cb_role = "administrator";
494
  } else {
495
+ $cb_role = $current_user->roles[0];
 
 
496
  }
497
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/views/header.php")) {
498
  include_once CONTACT_BK_PLUGIN_DIR . "/views/header.php";
546
  if (is_super_admin()) {
547
  $cb_role = "administrator";
548
  } else {
549
+ $cb_role = $current_user->roles[0];
 
 
550
  }
551
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php")) {
552
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
572
  if (is_super_admin()) {
573
  $cb_role = "administrator";
574
  } else {
575
+ $cb_role = $current_user->roles[0];
 
 
576
  }
577
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php")) {
578
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
598
  if (is_super_admin()) {
599
  $cb_role = "administrator";
600
  } else {
601
+ $cb_role = $current_user->roles[0];
 
 
602
  }
603
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php")) {
604
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
614
  if (is_super_admin()) {
615
  $cb_role = "administrator";
616
  } else {
617
+ $cb_role = $current_user->roles[0];
 
 
618
  }
619
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php")) {
620
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
630
  if (is_super_admin()) {
631
  $cb_role = "administrator";
632
  } else {
633
+ $cb_role = $current_user->roles[0];
 
 
634
  }
635
  if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php")) {
636
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
710
  if (is_super_admin()) {
711
  $cb_role = "administrator";
712
  } else {
713
+ $cb_role = $current_user->roles[0];
 
 
714
  }
715
 
716
  switch ($cb_role) {
readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- === WordPress Contact Form Plugin by Contact Bank ===
2
  Contributors: contact-banker, Gallery-Bank
3
  Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration
4
  Requires at least: 3.1
@@ -7,13 +7,15 @@ Stable Tag: trunk
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
- Contact Bank is an ultimate form builder wordpress plugin that lets you create contact forms in seconds with ease.
11
 
12
  == Description ==
13
 
14
- **Contact Bank** is an ultimate WordPress Plugin loaded with 200+ Features and designed to create simple but powerful contact forms easily and hassle free within few seconds.
15
 
16
- **Contact Bank** provides you with powerful Control Panel and Short code Manager make getting started super easy.
 
 
17
 
18
  **Contact Bank** has become the **Best Plugin** in the world for WordPress sites to display forms. It has been designed to provide easiness and simplicity to the end user. It is a very simple but fully loaded with 200+ features(**Premium Version**) Plugin.
19
 
@@ -544,6 +546,10 @@ In order to set Short code for a Form, you need to follow these steps :
544
 
545
  == Changelog ==
546
 
 
 
 
 
547
  = 2.1.40 =
548
 
549
  * FIX: Major Bugs Fixed
1
+ === Forms - Contact Form - Form Builder - WordPress Contact Form Plugin ===
2
  Contributors: contact-banker, Gallery-Bank
3
  Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration
4
  Requires at least: 3.1
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
+ Contact Bank is a user-friendly form builder plugin. This form builder lets you create contact forms and other forms in seconds with ease.
11
 
12
  == Description ==
13
 
14
+ ### WordPress Contact Form Plugin
15
 
16
+ #### **Contact Bank** is an ultimate WordPress Plugin loaded with 200+ Features and designed to create simple but powerful contact forms easily and hassle free within few seconds.
17
+
18
+ #### **Contact Bank** provides you with powerful Control Panel and Short code Manager make getting started super easy.
19
 
20
  **Contact Bank** has become the **Best Plugin** in the world for WordPress sites to display forms. It has been designed to provide easiness and simplicity to the end user. It is a very simple but fully loaded with 200+ features(**Premium Version**) Plugin.
21
 
546
 
547
  == Changelog ==
548
 
549
+ = 2.1.41 =
550
+
551
+ * FIX: Major Bug with Roles & Capabilities Fixed
552
+
553
  = 2.1.40 =
554
 
555
  * FIX: Major Bugs Fixed
views/contact_controls_files.php CHANGED
@@ -5,9 +5,7 @@ global $wpdb, $current_user, $cb_user_role_permission;
5
  if (is_super_admin()) {
6
  $cb_role = "administrator";
7
  } else {
8
- $cb_role = $wpdb->prefix . "capabilities";
9
- $current_user->role = array_keys($current_user->$cb_role);
10
- $cb_role = $current_user->role[0];
11
  }
12
 
13
  switch ($cb_role) {
5
  if (is_super_admin()) {
6
  $cb_role = "administrator";
7
  } else {
8
+ $cb_role = $current_user->roles[0];
 
 
9
  }
10
 
11
  switch ($cb_role) {
views/header.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- if (!defined("ABSPATH"))
3
- exit; //exit if accessed directly
4
  switch ($cb_role) {
5
  case "administrator":
6
  $cb_user_role_permission = "manage_options";
@@ -113,9 +113,7 @@ if (!current_user_can($cb_user_role_permission)) {
113
  if (is_super_admin()) {
114
  $cb_role = "administrator";
115
  } else {
116
- $cb_role = $wpdb->prefix . "capabilities";
117
- $current_user->role = array_keys($current_user->$cb_role);
118
- $cb_role = $current_user->role[0];
119
  }
120
 
121
  switch ($cb_role) {
1
  <?php
2
+ if (!defined("ABSPATH")){
3
+ exit;} //exit if accessed directly
4
  switch ($cb_role) {
5
  case "administrator":
6
  $cb_user_role_permission = "manage_options";
113
  if (is_super_admin()) {
114
  $cb_role = "administrator";
115
  } else {
116
+ $cb_role = $current_user->roles[0];
 
 
117
  }
118
 
119
  switch ($cb_role) {