| @@ -1,14 +1,15 @@ | ||
| 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.3.13 | |
| 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: 2.17.6 | |
| 8 | + * Author: Contact Form Builder - Bit Form | |
| 9 | + * Author URI: https://www.bitapps.pro | |
| 10 | + * Text Domain: bit-form | |
| 11 | + * Requires PHP: 7.4 | |
| 11 | 12 | * Domain Path: /languages |
| 12 | 13 | * License: GPLv2 or later |
| 13 | 14 | */ |
| 14 | 15 | |
| @@ -15,19 +16,26 @@ | ||
| 15 | 16 | /*** |
| 16 | 17 | * If try to direct access plugin folder it will Exit |
| 17 | 18 | **/ |
| 18 | 19 | if (!defined('ABSPATH')) { |
| 19 | - exit; | |
| 20 | + exit; | |
| 20 | 21 | } |
| 21 | 22 | |
| 22 | - | |
| 23 | 23 | // Define most essential constants. |
| 24 | -define('BITFORMS_VERSION', '1.3.13'); | |
| 24 | +define('BITFORMS_VERSION', '2.17.6'); | |
| 25 | 25 | define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__); |
| 26 | 26 | |
| 27 | 27 | global $bitforms_db_version; |
| 28 | -$bitforms_db_version = '1.2'; | |
| 28 | +$bitforms_db_version = '2.3'; | |
| 29 | +define('BITFORMS_DB_VERSION', $bitforms_db_version); | |
| 30 | +define('BITFORMS_REQUIRED_WP_VERSION', '5.1'); | |
| 31 | +define('BITFORMS_REQUIRED_PHP_VERSION', '7.4'); | |
| 32 | +define('BITFORMS_API_VERSION', '1.0'); | |
| 29 | 33 | |
| 34 | +if (version_compare(PHP_VERSION, '5.6.0', '>=')) { | |
| 35 | + require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 36 | +} | |
| 37 | + | |
| 30 | 38 | /** |
| 31 | 39 | * Handles plugin activation. |
| 32 | 40 | * |
| 33 | 41 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| @@ -33,33 +41,30 @@ | ||
| 33 | 41 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| 34 | 42 | */ |
| 35 | 43 | function bitforms_activate_plugin($network_wide) |
| 36 | 44 | { |
| 37 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 38 | - wp_die( | |
| 39 | - esc_html__('bitforms requires PHP version 5.6.', 'bitform'), | |
| 40 | - esc_html__('Error Activating', 'bitform') | |
| 41 | - ); | |
| 42 | - } | |
| 45 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 46 | + wp_die( | |
| 47 | + esc_html_e('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 48 | + esc_html_e('Error Activating', 'bit-form') | |
| 49 | + ); | |
| 50 | + } | |
| 43 | 51 | |
| 44 | - do_action('bitforms_activation', $network_wide); | |
| 52 | + do_action('bitforms_activation', $network_wide); | |
| 45 | 53 | } |
| 46 | 54 | |
| 47 | 55 | register_activation_hook(__FILE__, 'bitforms_activate_plugin'); |
| 48 | 56 | |
| 49 | -if (version_compare(PHP_VERSION, '5.6.0', '>=')) { | |
| 50 | - require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 51 | -} | |
| 52 | 57 | /** |
| 53 | 58 | * Handles plugin deactivation. |
| 54 | 59 | */ |
| 55 | 60 | function bitforms_deactivate_plugin($network_wide) |
| 56 | 61 | { |
| 57 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 58 | - return; | |
| 59 | - } | |
| 62 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 63 | + return; | |
| 64 | + } | |
| 60 | 65 | |
| 61 | - do_action('bitforms_deactivation', $network_wide); | |
| 66 | + do_action('bitforms_deactivation', $network_wide); | |
| 62 | 67 | } |
| 63 | 68 | |
| 64 | 69 | register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin'); |
| 65 | 70 | |
| @@ -69,11 +74,11 @@ | ||
| 69 | 74 | * @access private |
| 70 | 75 | */ |
| 71 | 76 | function bitforms_uninstall_plugin() |
| 72 | 77 | { |
| 73 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 74 | - return; | |
| 75 | - } | |
| 78 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 79 | + return; | |
| 80 | + } | |
| 76 | 81 | |
| 77 | - do_action('bitforms_uninstall'); | |
| 82 | + do_action('bitforms_uninstall'); | |
| 78 | 83 | } |
| 79 | 84 | register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin'); |