Version Description
- Fex Bugs Fixed
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.12 |
Comparing to | |
See all releases |
Code changes from version 2.0.11 to 2.0.12
- contact-bank.php +2 -2
- lib/install-script.php +81 -8
- readme.txt +6 -2
contact-bank.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Standard Edition
|
|
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.0.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -498,7 +498,7 @@ function plugin_load_textdomain()
|
|
498 |
}
|
499 |
add_action("plugins_loaded", "plugin_load_textdomain");
|
500 |
$version = get_option("contact-bank-version-number");
|
501 |
-
if($version == "1.0" || $version == "2.0")
|
502 |
{
|
503 |
add_action('admin_init', 'plugin_install_script_for_contact_bank');
|
504 |
}
|
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.0.12
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
498 |
}
|
499 |
add_action("plugins_loaded", "plugin_load_textdomain");
|
500 |
$version = get_option("contact-bank-version-number");
|
501 |
+
if($version == "1.0" || $version == "2.0" || $version == "2.1")
|
502 |
{
|
503 |
add_action('admin_init', 'plugin_install_script_for_contact_bank');
|
504 |
}
|
lib/install-script.php
CHANGED
@@ -3,7 +3,7 @@ global $wpdb;
|
|
3 |
require_once(ABSPATH . "wp-admin/includes/upgrade.php");
|
4 |
update_option("contact-bank-updation-check-url","http://tech-banker.com/wp-admin/admin-ajax.php");
|
5 |
$version = get_option("contact-bank-version-number");
|
6 |
-
if($version == "")
|
7 |
{
|
8 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
|
9 |
{
|
@@ -102,8 +102,7 @@ if($version == "")
|
|
102 |
);
|
103 |
}
|
104 |
}
|
105 |
-
|
106 |
-
}
|
107 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . create_control_Table() . '"')) == 0)
|
108 |
{
|
109 |
create_table_contact_bank_controls();
|
@@ -111,12 +110,12 @@ if($version == "")
|
|
111 |
else
|
112 |
{
|
113 |
$contact_forms_controls = $wpdb->get_results
|
|
|
|
|
114 |
(
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
)
|
119 |
-
);
|
120 |
|
121 |
$sql = "DROP TABLE " . create_control_Table();
|
122 |
$wpdb->query($sql);
|
@@ -494,6 +493,41 @@ if($version == "")
|
|
494 |
}
|
495 |
else if($version == "2.0")
|
496 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
|
498 |
{
|
499 |
create_contact_bank_form_settings();
|
@@ -556,6 +590,45 @@ else if($version == "2.0")
|
|
556 |
}
|
557 |
update_option("contact-bank-version-number","2.1");
|
558 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
function create_table_contact_bank_forms()
|
560 |
{
|
561 |
$sql = 'CREATE TABLE ' . contact_bank_contact_form() . '(
|
3 |
require_once(ABSPATH . "wp-admin/includes/upgrade.php");
|
4 |
update_option("contact-bank-updation-check-url","http://tech-banker.com/wp-admin/admin-ajax.php");
|
5 |
$version = get_option("contact-bank-version-number");
|
6 |
+
if($version == "" || $version == "1.0")
|
7 |
{
|
8 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
|
9 |
{
|
102 |
);
|
103 |
}
|
104 |
}
|
105 |
+
}
|
|
|
106 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . create_control_Table() . '"')) == 0)
|
107 |
{
|
108 |
create_table_contact_bank_controls();
|
110 |
else
|
111 |
{
|
112 |
$contact_forms_controls = $wpdb->get_results
|
113 |
+
(
|
114 |
+
$wpdb->prepare
|
115 |
(
|
116 |
+
"SELECT * FROM ".create_control_Table()." where field_id not in (9,12,13,14,15)",""
|
117 |
+
)
|
118 |
+
);
|
|
|
|
|
119 |
|
120 |
$sql = "DROP TABLE " . create_control_Table();
|
121 |
$wpdb->query($sql);
|
493 |
}
|
494 |
else if($version == "2.0")
|
495 |
{
|
496 |
+
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_licensing() . "'")) == 0)
|
497 |
+
{
|
498 |
+
create_cb_table_licensing();
|
499 |
+
}
|
500 |
+
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_roles_capability() . "'")) == 0)
|
501 |
+
{
|
502 |
+
create_table_roles_capability();
|
503 |
+
$settings_roles = array();
|
504 |
+
$settings_roles["admin_full_control"] = "1";
|
505 |
+
$settings_roles["admin_read_control"] = "0";
|
506 |
+
$settings_roles["admin_write_control"] = "0";
|
507 |
+
$settings_roles["editor_full_control"] = "0";
|
508 |
+
$settings_roles["editor_read_control"] = "1";
|
509 |
+
$settings_roles["editor_write_control"] = "0";
|
510 |
+
$settings_roles["author_full_control"] = "0";
|
511 |
+
$settings_roles["author_read_control"] = "1";
|
512 |
+
$settings_roles["author_write_control"] = "0";
|
513 |
+
$settings_roles["contributor_full_control"] = "0";
|
514 |
+
$settings_roles["contributor_read_control"] = "1";
|
515 |
+
$settings_roles["contributor_write_control"] = "0";
|
516 |
+
$settings_roles["subscriber_full_control"] = "0";
|
517 |
+
$settings_roles["subscriber_read_control"] = "1";
|
518 |
+
$settings_roles["subscriber_write_control"] = "0";
|
519 |
+
foreach($settings_roles as $key => $value)
|
520 |
+
{
|
521 |
+
$sql1[] = '("'.mysql_real_escape_string($key).'", "'.mysql_real_escape_string($value).'")';
|
522 |
+
}
|
523 |
+
$wpdb->query
|
524 |
+
(
|
525 |
+
$wpdb->prepare
|
526 |
+
(
|
527 |
+
"INSERT INTO " . contact_bank_roles_capability() . "(roles_capability_key,roles_capability_value) VALUES ".implode(',', $sql1),""
|
528 |
+
)
|
529 |
+
);
|
530 |
+
}
|
531 |
if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
|
532 |
{
|
533 |
create_contact_bank_form_settings();
|
590 |
}
|
591 |
update_option("contact-bank-version-number","2.1");
|
592 |
}
|
593 |
+
else if($version == "2.1")
|
594 |
+
{
|
595 |
+
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_licensing() . "'")) == 0)
|
596 |
+
{
|
597 |
+
create_cb_table_licensing();
|
598 |
+
}
|
599 |
+
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_roles_capability() . "'")) == 0)
|
600 |
+
{
|
601 |
+
create_table_roles_capability();
|
602 |
+
$settings_roles = array();
|
603 |
+
$settings_roles["admin_full_control"] = "1";
|
604 |
+
$settings_roles["admin_read_control"] = "0";
|
605 |
+
$settings_roles["admin_write_control"] = "0";
|
606 |
+
$settings_roles["editor_full_control"] = "0";
|
607 |
+
$settings_roles["editor_read_control"] = "1";
|
608 |
+
$settings_roles["editor_write_control"] = "0";
|
609 |
+
$settings_roles["author_full_control"] = "0";
|
610 |
+
$settings_roles["author_read_control"] = "1";
|
611 |
+
$settings_roles["author_write_control"] = "0";
|
612 |
+
$settings_roles["contributor_full_control"] = "0";
|
613 |
+
$settings_roles["contributor_read_control"] = "1";
|
614 |
+
$settings_roles["contributor_write_control"] = "0";
|
615 |
+
$settings_roles["subscriber_full_control"] = "0";
|
616 |
+
$settings_roles["subscriber_read_control"] = "1";
|
617 |
+
$settings_roles["subscriber_write_control"] = "0";
|
618 |
+
foreach($settings_roles as $key => $value)
|
619 |
+
{
|
620 |
+
$sql1[] = '("'.mysql_real_escape_string($key).'", "'.mysql_real_escape_string($value).'")';
|
621 |
+
}
|
622 |
+
$wpdb->query
|
623 |
+
(
|
624 |
+
$wpdb->prepare
|
625 |
+
(
|
626 |
+
"INSERT INTO " . contact_bank_roles_capability() . "(roles_capability_key,roles_capability_value) VALUES ".implode(',', $sql1),""
|
627 |
+
)
|
628 |
+
);
|
629 |
+
}
|
630 |
+
update_option("contact-bank-version-number","2.1");
|
631 |
+
}
|
632 |
function create_table_contact_bank_forms()
|
633 |
{
|
634 |
$sql = 'CREATE TABLE ' . contact_bank_contact_form() . '(
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
|
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8.1
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -19,7 +19,7 @@ It provides a powerful engine for uploading and managing dynamic forms with more
|
|
19 |
|
20 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
21 |
|
22 |
-
***March
|
23 |
|
24 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
25 |
|
@@ -129,6 +129,10 @@ Visit [here](http://tech-banker.com/contact-bank) to upgrade to Pro Version now.
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
132 |
= 2.0.11 =
|
133 |
|
134 |
* Dutch Language Updated
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8.1
|
6 |
+
Stable tag: 2.0.12
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
19 |
|
20 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
21 |
|
22 |
+
***March 27, 2014: We're happy to announce that Contact Bank reached 18,200+ plugin downloads in only 5 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
|
23 |
|
24 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
25 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 2.0.12 =
|
133 |
+
|
134 |
+
* Fex Bugs Fixed
|
135 |
+
|
136 |
= 2.0.11 =
|
137 |
|
138 |
* Dutch Language Updated
|