Version Description
- Code Removed from Skip Action Hook on Wizard Page
- Code Removed from De-activation Hook in case of Skipped Wizard Page
- Code Removed from Uninstall Hook in case of Skipped Wizard Page
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.1.37 |
Comparing to | |
See all releases |
Code changes from version 2.1.36 to 2.1.37
- contact-bank.php +37 -39
- lib/contact_view-class.php +73 -72
- readme.txt +7 -1
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.
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: contact-bank
|
@@ -19,7 +19,7 @@ if(!defined("CONTACT_BK_PLUGIN_DIRNAME")) define("CONTACT_BK_PLUGIN_DIRNAME", pl
|
|
19 |
if(!defined("CONTACT_BK")) define("CONTACT_BK","contact-bank/contact-bank.php");
|
20 |
if(!defined("CONTACT_BK_PLUGIN_BASENAME")) define("CONTACT_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
|
21 |
if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "stats.tech-banker-services.org");
|
22 |
-
if(!defined("contact_bank_version_number")) define("contact_bank_version_number","2.1.
|
23 |
if (!defined("CONTACT_MAIN_DIR")) define("CONTACT_MAIN_DIR", dirname(dirname(dirname(__FILE__)))."/contact-bank");
|
24 |
if(!defined("CONTACT_BK_ERROR_LOGS_FILE")) define("CONTACT_BK_ERROR_LOGS_FILE",CONTACT_MAIN_DIR."/error-logs.txt");
|
25 |
if (!is_dir(CONTACT_MAIN_DIR))
|
@@ -130,11 +130,14 @@ if(!function_exists("deactivation_function_for_contact_bank"))
|
|
130 |
{
|
131 |
function deactivation_function_for_contact_bank()
|
132 |
{
|
133 |
-
|
|
|
|
|
|
|
134 |
global $wp_version,$wpdb;
|
135 |
|
136 |
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
137 |
-
|
138 |
$theme_details = array();
|
139 |
|
140 |
if($wp_version >= 3.4)
|
@@ -154,21 +157,17 @@ if(!function_exists("deactivation_function_for_contact_bank"))
|
|
154 |
$plugin_stat_data["domain_url"] = site_url();
|
155 |
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
$plugin_stat_data["plugins"] = $class_plugin_info_contact_bank->get_plugin_info();
|
169 |
-
$plugin_stat_data["themes"] = $theme_details;
|
170 |
-
break;
|
171 |
-
}
|
172 |
if(function_exists("curl_init"))
|
173 |
{
|
174 |
$ch = curl_init();
|
@@ -206,6 +205,7 @@ if(!function_exists("deactivation_function_for_contact_bank"))
|
|
206 |
update_option("contact_bank_site_id", "error");
|
207 |
}
|
208 |
}
|
|
|
209 |
}
|
210 |
}
|
211 |
|
@@ -214,14 +214,14 @@ if(!function_exists("plugin_uninstall_script_for_contact_bank"))
|
|
214 |
function plugin_uninstall_script_for_contact_bank()
|
215 |
{
|
216 |
wp_clear_scheduled_hook("contact_bank_auto_update");
|
217 |
-
|
|
|
|
|
|
|
218 |
global $wp_version,$wpdb;
|
219 |
|
220 |
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
221 |
-
|
222 |
-
|
223 |
-
delete_option("contact-bank-wizard");
|
224 |
-
|
225 |
$theme_details = array();
|
226 |
|
227 |
if($wp_version >= 3.4)
|
@@ -241,21 +241,17 @@ if(!function_exists("plugin_uninstall_script_for_contact_bank"))
|
|
241 |
$plugin_stat_data["domain_url"] = site_url();
|
242 |
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
$plugin_stat_data["plugins"] = $class_plugin_info_contact_bank->get_plugin_info();
|
256 |
-
$plugin_stat_data["themes"] = $theme_details;
|
257 |
-
break;
|
258 |
-
}
|
259 |
if(function_exists("curl_init"))
|
260 |
{
|
261 |
$ch = curl_init();
|
@@ -293,6 +289,8 @@ if(!function_exists("plugin_uninstall_script_for_contact_bank"))
|
|
293 |
update_option("contact_bank_site_id", "error");
|
294 |
}
|
295 |
}
|
|
|
|
|
296 |
}
|
297 |
}
|
298 |
|
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.37
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: contact-bank
|
19 |
if(!defined("CONTACT_BK")) define("CONTACT_BK","contact-bank/contact-bank.php");
|
20 |
if(!defined("CONTACT_BK_PLUGIN_BASENAME")) define("CONTACT_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
|
21 |
if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "stats.tech-banker-services.org");
|
22 |
+
if(!defined("contact_bank_version_number")) define("contact_bank_version_number","2.1.37");
|
23 |
if (!defined("CONTACT_MAIN_DIR")) define("CONTACT_MAIN_DIR", dirname(dirname(dirname(__FILE__)))."/contact-bank");
|
24 |
if(!defined("CONTACT_BK_ERROR_LOGS_FILE")) define("CONTACT_BK_ERROR_LOGS_FILE",CONTACT_MAIN_DIR."/error-logs.txt");
|
25 |
if (!is_dir(CONTACT_MAIN_DIR))
|
130 |
{
|
131 |
function deactivation_function_for_contact_bank()
|
132 |
{
|
133 |
+
$type = get_option("contact-bank-wizard");
|
134 |
+
if($type == "opt_in")
|
135 |
+
{
|
136 |
+
$class_plugin_info_contact_bank = new class_plugin_info_contact_bank();
|
137 |
global $wp_version,$wpdb;
|
138 |
|
139 |
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
140 |
+
|
141 |
$theme_details = array();
|
142 |
|
143 |
if($wp_version >= 3.4)
|
157 |
$plugin_stat_data["domain_url"] = site_url();
|
158 |
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
159 |
|
160 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
161 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
162 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
163 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
164 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
165 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
166 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
167 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
168 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_contact_bank->get_plugin_info();
|
169 |
+
$plugin_stat_data["themes"] = $theme_details;
|
170 |
+
|
|
|
|
|
|
|
|
|
171 |
if(function_exists("curl_init"))
|
172 |
{
|
173 |
$ch = curl_init();
|
205 |
update_option("contact_bank_site_id", "error");
|
206 |
}
|
207 |
}
|
208 |
+
}
|
209 |
}
|
210 |
}
|
211 |
|
214 |
function plugin_uninstall_script_for_contact_bank()
|
215 |
{
|
216 |
wp_clear_scheduled_hook("contact_bank_auto_update");
|
217 |
+
$type = get_option("contact-bank-wizard");
|
218 |
+
if($type == "opt_in")
|
219 |
+
{
|
220 |
+
$class_plugin_info_contact_bank = new class_plugin_info_contact_bank();
|
221 |
global $wp_version,$wpdb;
|
222 |
|
223 |
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
224 |
+
|
|
|
|
|
|
|
225 |
$theme_details = array();
|
226 |
|
227 |
if($wp_version >= 3.4)
|
241 |
$plugin_stat_data["domain_url"] = site_url();
|
242 |
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
243 |
|
244 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
245 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
246 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
247 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
248 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
249 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
250 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
251 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
252 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_contact_bank->get_plugin_info();
|
253 |
+
$plugin_stat_data["themes"] = $theme_details;
|
254 |
+
|
|
|
|
|
|
|
|
|
255 |
if(function_exists("curl_init"))
|
256 |
{
|
257 |
$ch = curl_init();
|
289 |
update_option("contact_bank_site_id", "error");
|
290 |
}
|
291 |
}
|
292 |
+
}
|
293 |
+
delete_option("contact-bank-wizard");
|
294 |
}
|
295 |
}
|
296 |
|
lib/contact_view-class.php
CHANGED
@@ -53,81 +53,82 @@ else
|
|
53 |
case "wizard_contact" :
|
54 |
if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "contact_bank_check_status"))
|
55 |
{
|
56 |
-
|
57 |
-
global $wp_version;
|
58 |
-
|
59 |
-
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
60 |
-
$type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
|
61 |
update_option("contact-bank-wizard", $type);
|
|
|
|
|
|
|
|
|
62 |
|
63 |
-
|
64 |
-
if($wp_version >= 3.4)
|
65 |
-
{
|
66 |
-
$active_theme = wp_get_theme();
|
67 |
-
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
68 |
-
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
69 |
-
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
70 |
-
}
|
71 |
-
$plugin_stat_data = array();
|
72 |
-
$plugin_stat_data["plugin_slug"] = "contact-bank";
|
73 |
-
$plugin_stat_data["type"] = "standard_edition";
|
74 |
-
$plugin_stat_data["version_number"] = contact_bank_version_number;
|
75 |
-
$plugin_stat_data["status"] = $type;
|
76 |
-
$plugin_stat_data["event"] = "activate";
|
77 |
-
$plugin_stat_data["domain_url"] = site_url();
|
78 |
-
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
break;
|
133 |
|
53 |
case "wizard_contact" :
|
54 |
if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "contact_bank_check_status"))
|
55 |
{
|
56 |
+
$type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
|
|
|
|
|
|
|
|
|
57 |
update_option("contact-bank-wizard", $type);
|
58 |
+
if($type == "opt_in")
|
59 |
+
{
|
60 |
+
$class_plugin_info_contact_bank = new class_plugin_info_contact_bank();
|
61 |
+
global $wp_version;
|
62 |
|
63 |
+
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
|
66 |
+
$theme_details = array();
|
67 |
+
if($wp_version >= 3.4)
|
68 |
+
{
|
69 |
+
$active_theme = wp_get_theme();
|
70 |
+
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
71 |
+
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
72 |
+
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
73 |
+
}
|
74 |
+
$plugin_stat_data = array();
|
75 |
+
$plugin_stat_data["plugin_slug"] = "contact-bank";
|
76 |
+
$plugin_stat_data["type"] = "standard_edition";
|
77 |
+
$plugin_stat_data["version_number"] = contact_bank_version_number;
|
78 |
+
$plugin_stat_data["status"] = $type;
|
79 |
+
$plugin_stat_data["event"] = "activate";
|
80 |
+
$plugin_stat_data["domain_url"] = site_url();
|
81 |
+
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
82 |
+
|
83 |
+
|
84 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
85 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
86 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
87 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
88 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
89 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
90 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
91 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
92 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_contact_bank->get_plugin_info();
|
93 |
+
$plugin_stat_data["themes"] = $theme_details;
|
94 |
+
|
95 |
+
if(function_exists("curl_init"))
|
96 |
+
{
|
97 |
+
$ch = curl_init();
|
98 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
99 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
100 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
|
101 |
+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
102 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
103 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
104 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
105 |
+
http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("contact_bank_site_id") !="" ? get_option("contact_bank_site_id") : "", "action"=>"plugin_analysis_data")));
|
106 |
+
$result = curl_exec($ch);
|
107 |
+
update_option("contact_bank_site_id",$result);
|
108 |
+
curl_close($ch);
|
109 |
+
}
|
110 |
+
else
|
111 |
+
{
|
112 |
+
$response = wp_safe_remote_post($url, array
|
113 |
+
(
|
114 |
+
"method" => "POST",
|
115 |
+
"timeout" => 45,
|
116 |
+
"redirection" => 5,
|
117 |
+
"httpversion" => "1.0",
|
118 |
+
"blocking" => true,
|
119 |
+
"headers" => array(),
|
120 |
+
"body" => array( "data" => serialize($plugin_stat_data), "site_id" => get_option("contact_bank_site_id") != "" ? get_option("contact_bank_site_id") : "","action"=>"plugin_analysis_data")
|
121 |
+
));
|
122 |
+
if(!is_wp_error($response))
|
123 |
+
{
|
124 |
+
$response["body"] != "" ? update_option("contact_bank_site_id", $response["body"]) : "";
|
125 |
+
}
|
126 |
+
else
|
127 |
+
{
|
128 |
+
update_option("contact_bank_site_id", "error");
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
132 |
}
|
133 |
break;
|
134 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
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
|
5 |
-
Tested up to: 4.7.
|
6 |
Stable Tag: trunk
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -547,6 +547,12 @@ In order to set Short code for a Form, you need to follow these steps :
|
|
547 |
|
548 |
== Changelog ==
|
549 |
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
= 2.1.36 =
|
551 |
|
552 |
* Wizard Page Added
|
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
|
5 |
+
Tested up to: 4.7.5
|
6 |
Stable Tag: trunk
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
547 |
|
548 |
== Changelog ==
|
549 |
|
550 |
+
= 2.1.37 =
|
551 |
+
|
552 |
+
* Code Removed from Skip Action Hook on Wizard Page
|
553 |
+
* Code Removed from De-activation Hook in case of Skipped Wizard Page
|
554 |
+
* Code Removed from Uninstall Hook in case of Skipped Wizard Page
|
555 |
+
|
556 |
= 2.1.36 =
|
557 |
|
558 |
* Wizard Page Added
|