PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | bitforms.php +36 -55 1.1.13.3.1 View file →
@@ -1,14 +1,16 @@
1 1 <?php
2 2
3 3 /**
4 4 * Plugin Name: Bit Form
5 - * Plugin URI: bitpress.pro
6 - * Description: Wordpress form builder plugin
7 - * Version: 1.1.1
8 - * Author: BitPress
9 - * Author URI: https://www.bitpress.pro
10 - * Text Domain: bitform
5 + * Plugin URI: https://www.bitapps.pro/bit-form
6 + * Description: Contact Form Builder Plugin: Multi Step Contact Form, Payment Form, Custom Contact Form Plugin by Bit Form
7 + * Version: 3.3.1
8 + * Author: Contact Form Builder - Bit Form
9 + * Author URI: https://www.bitapps.pro
10 + * Text Domain: bit-form
11 + * Requires at least: 6.5
12 + * Requires PHP: 7.4
11 13 * Domain Path: /languages
12 14 * License: GPLv2 or later
13 15 */
14 16
@@ -15,34 +17,42 @@
15 17 /***
16 18 * If try to direct access plugin folder it will Exit
17 19 **/
18 20 if (!defined('ABSPATH')) {
19 - exit;
21 + exit;
20 22 }
21 23
22 -
23 24 // Define most essential constants.
24 -define('BITFORMS_VERSION', '1.1.1');
25 +define('BITFORMS_VERSION', '3.3.1');
25 26 define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__);
27 +define('BITFORMS_REQUIRED_BITFORMPRO_VERSION', '3.3.1');
26 28
27 29 global $bitforms_db_version;
28 -$bitforms_db_version = '1.2';
30 +$bitforms_db_version = '3.2';
31 +define('BITFORMS_DB_VERSION', $bitforms_db_version);
32 +define('BITFORMS_REQUIRED_WP_VERSION', '5.1');
33 +define('BITFORMS_REQUIRED_PHP_VERSION', '7.4');
34 +define('BITFORMS_API_VERSION', '1.0');
29 35
36 +if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
37 + require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
38 +}
39 +
30 40 /**
31 41 * Handles plugin activation.
32 42 *
33 - * Throws an error if the plugin is activated on an older version than PHP 5.4.
43 + * Throws an error if the plugin is activated on an older version than PHP 5.6.
34 44 */
35 45 function bitforms_activate_plugin($network_wide)
36 46 {
37 - if (version_compare(PHP_VERSION, '5.4.0', '<')) {
38 - wp_die(
39 - esc_html__('bitforms requires PHP version 5.4.', 'bitform'),
40 - esc_html__('Error Activating', 'bitform')
41 - );
42 - }
47 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
48 + wp_die(
49 + 'Bit Form requires PHP version 5.6 or higher.',
50 + 'Error Activating'
51 + );
52 + }
43 53
44 - do_action('bitforms_activation', $network_wide);
54 + do_action('bitforms_activation', $network_wide);
45 55 }
46 56
47 57 register_activation_hook(__FILE__, 'bitforms_activate_plugin');
48 58
@@ -50,13 +60,13 @@
50 60 * Handles plugin deactivation.
51 61 */
52 62 function bitforms_deactivate_plugin($network_wide)
53 63 {
54 - if (version_compare(PHP_VERSION, '5.4.0', '<')) {
55 - return;
56 - }
64 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
65 + return;
66 + }
57 67
58 - do_action('bitforms_deactivation', $network_wide);
68 + do_action('bitforms_deactivation', $network_wide);
59 69 }
60 70
61 71 register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin');
62 72
@@ -66,40 +76,11 @@
66 76 * @access private
67 77 */
68 78 function bitforms_uninstall_plugin()
69 79 {
70 - if (version_compare(PHP_VERSION, '5.6.0', '<')) {
71 - return;
72 - }
80 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
81 + return;
82 + }
73 83
74 - do_action('bitforms_uninstall');
84 + do_action('bitforms_uninstall');
75 85 }
76 86 register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin');
77 -
78 -if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
79 - require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
80 -}
81 -function bitform_delete_plugin_database_tables()
82 -{
83 - global $wpdb;
84 - $tableArray = [
85 - $wpdb->prefix . "bitforms_email_template",
86 - $wpdb->prefix . "bitforms_form",
87 - $wpdb->prefix . "bitforms_form_entries",
88 - $wpdb->prefix . "bitforms_form_entrymeta",
89 - $wpdb->prefix . "bitforms_form_entry_log",
90 - $wpdb->prefix . "bitforms_form_entry_relatedinfo",
91 - $wpdb->prefix . "bitforms_form_log_details",
92 - $wpdb->prefix . "bitforms_integration",
93 - $wpdb->prefix . "bitforms_reports",
94 - $wpdb->prefix . "bitforms_success_messages",
95 - $wpdb->prefix . "bitforms_workflows",
96 -
97 - ];
98 -
99 - foreach ($tableArray as $tablename) {
100 - $wpdb->query("DROP TABLE IF EXISTS $tablename");
101 - }
102 - $wpdb->query("DELETE FROM `{$wpdb->prefix}options` WHERE option_name LIKE '%bitforms%'");
103 -}
104 -
105 -register_uninstall_hook(__FILE__, 'bitform_delete_plugin_database_tables');