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

Version Description

Download this release

Release Info

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

Code changes from version 2.0.69 to 2.0.70

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.69
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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.70
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/contact_bank_frontend-class.php CHANGED
@@ -84,7 +84,15 @@ if(isset($_REQUEST["param"]))
84
  );
85
  break;
86
  case 4:
87
- $ux_dropdown = esc_attr($_REQUEST["ux_select_default_".$dynamicId]);
 
 
 
 
 
 
 
 
88
  $wpdb->query
89
  (
90
  $wpdb->prepare
@@ -99,31 +107,50 @@ if(isset($_REQUEST["param"]))
99
  );
100
  break;
101
  case 5:
102
- $ux_checkbox = $_REQUEST[$dynamicId."_chk"];
103
- $checkbox_options = "";
104
- for($flag1 =0;$flag1<count($ux_checkbox);$flag1++)
105
  {
106
- $checkbox_options .= $ux_checkbox[$flag1];
107
- if($flag1 < count($ux_checkbox)-1)
 
108
  {
 
 
 
109
  $checkbox_options .= "-";
 
110
  }
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
- $wpdb->query
113
- (
114
- $wpdb->prepare
 
115
  (
116
- "INSERT INTO " . frontend_controls_data_Table(). " (form_id,field_id,dynamic_control_id,dynamic_frontend_value,form_submit_id) VALUES(%d,%d,%d,%s,%d)",
117
- $form_id,
118
- $field_id,
119
- $control_dynamicId,
120
- $checkbox_options,
121
- $form_submit_id
122
- )
123
- );
 
 
 
124
  break;
125
  case 6:
126
- $ux_multiple = esc_attr($_REQUEST[$dynamicId."_rdl"]);
127
  $wpdb->query
128
  (
129
  $wpdb->prepare
84
  );
85
  break;
86
  case 4:
87
+ $ux_dropdown = "Untitled";
88
+ if(esc_attr($_REQUEST["ux_select_default_".$dynamicId]) == " ")
89
+ {
90
+ $ux_dropdown = "Untitled";
91
+ }
92
+ else
93
+ {
94
+ $ux_dropdown = esc_attr($_REQUEST["ux_select_default_".$dynamicId]);
95
+ }
96
  $wpdb->query
97
  (
98
  $wpdb->prepare
107
  );
108
  break;
109
  case 5:
110
+ if(isset($_REQUEST[$dynamicId."_chk"]))
 
 
111
  {
112
+ $ux_checkbox = esc_sql($_REQUEST[$dynamicId."_chk"]);
113
+ $checkbox_options = "";
114
+ for($flag1 =0;$flag1<count($ux_checkbox);$flag1++)
115
  {
116
+ $checkbox_options .= $ux_checkbox[$flag1];
117
+ if($flag1 < count($ux_checkbox)-1)
118
+ {
119
  $checkbox_options .= "-";
120
+ }
121
  }
122
+ $wpdb->query
123
+ (
124
+ $wpdb->prepare
125
+ (
126
+ "INSERT INTO " . frontend_controls_data_Table(). " (form_id,field_id,dynamic_control_id,dynamic_frontend_value,form_submit_id) VALUES(%d,%d,%d,%s,%d)",
127
+ $form_id,
128
+ $field_id,
129
+ $control_dynamicId,
130
+ $checkbox_options,
131
+ $form_submit_id
132
+ )
133
+ );
134
  }
135
+ else
136
+ {
137
+ $checkbox_options = "Untitled";
138
+ $wpdb->query
139
  (
140
+ $wpdb->prepare
141
+ (
142
+ "INSERT INTO " . frontend_controls_data_Table(). " (form_id,field_id,dynamic_control_id,dynamic_frontend_value,form_submit_id) VALUES(%d,%d,%d,%s,%d)",
143
+ $form_id,
144
+ $field_id,
145
+ $control_dynamicId,
146
+ $checkbox_options,
147
+ $form_submit_id
148
+ )
149
+ );
150
+ }
151
  break;
152
  case 6:
153
+ $ux_multiple = isset($_REQUEST[$dynamicId."_rdl"]) ? esc_attr($_REQUEST[$dynamicId."_rdl"]) : "Untitled";
154
  $wpdb->query
155
  (
156
  $wpdb->prepare
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link : http://tech-banker.com/contact-bank/
4
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, 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
5
  Requires at least: 3.3
6
  Tested up to: 4.0
7
- Stable tag: 2.0.69
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, 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
5
  Requires at least: 3.3
6
  Tested up to: 4.0
7
+ Stable tag: 2.0.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10