PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.0.6
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.0.6
3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 122 releases
← All changes | firebox.php +48 -75 trunk2.0.6 View file →
@@ -1,25 +1,25 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.13
4 + * @version 2.0.6 Free
5 5 *
6 6 * @author FirePlugins <info@fireplugins.com>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2026 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2023 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 *
11 - * Plugin Name: FireBox 3.1.13 Free
12 - * Plugin URI: https://www.fireplugins.com/
11 + * Plugin Name: FireBox
12 + * Plugin URI: https://www.fireplugins.com/firebox
13 13 * Description: WordPress Popup and leads generation plugin that converts visitors into subscribers & customers.
14 - * Version: 3.1.13
15 - * Author: FireBox Popup Plugin Team
14 + * Version: 2.0.6
15 + * Author: FirePlugins Popup Plugin Team
16 16 * Author URI: https://www.fireplugins.com/
17 17 * Text Domain: firebox
18 18 * Domain Path: /languages
19 - * Requires at least: 6.3
20 - * Requires PHP: 7.0
21 - * License: GPLv3 or later
19 + * Requires at least: 5.4
20 + * Requires PHP: 5.6.40
21 + * License: GNU General Public License v2.0+
22 22 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
23 23 */
24 24
25 25 // If this file is called directly, abort.
@@ -28,19 +28,11 @@
28 28 exit; // Exit if accessed directly.
29 29 }
30 30
31 31 // Load Framework
32 -if (!file_exists(dirname(__FILE__) . '/Inc/Framework/init.php'))
33 -{
34 - return;
35 -}
36 32 require_once dirname(__FILE__) . '/Inc/Framework/init.php';
37 33
38 34 // Plugin Autoloader
39 -if (!file_exists(dirname(__FILE__) . '/autoload.php'))
40 -{
41 - return;
42 -}
43 35 require_once dirname(__FILE__) . '/autoload.php';
44 36
45 37
46 38
@@ -46,9 +38,9 @@
46 38
47 39 // Plugin version
48 40 if (!defined('FBOX_VERSION'))
49 41 {
50 - define('FBOX_VERSION', '3.1.13');
42 + define('FBOX_VERSION', '2.0.6');
51 43 }
52 44
53 45 // Plugin License type (free/pro)
54 46 if (!defined('FBOX_LICENSE_TYPE'))
@@ -53,47 +45,32 @@
53 45 // Plugin License type (free/pro)
54 46 if (!defined('FBOX_LICENSE_TYPE'))
55 47 {
56 48
57 - $fbox_license_type = 'lite';
49 + $type = 'lite';
58 50
59 51
60 - define('FBOX_LICENSE_TYPE', $fbox_license_type);
61 - unset($fbox_license_type);
52 + define('FBOX_LICENSE_TYPE', $type);
62 53 }
63 54
64 -// Plugin License Plan (basic/pro/growth)
65 -if (!defined('FBOX_LICENSE_PLAN'))
66 -{
67 -
68 - $fbox_license_plan = 'free';
69 -
70 -
71 -
72 -
73 -
74 - define('FBOX_LICENSE_PLAN', $fbox_license_plan);
75 - unset($fbox_license_plan);
76 -}
77 -
78 55 // PHP Minimm Version
79 56 if (!defined('FBOX_MINIMUM_PHP_VERSION'))
80 57 {
81 - define('FBOX_MINIMUM_PHP_VERSION', '7.0');
58 + define('FBOX_MINIMUM_PHP_VERSION', '5.6.40');
82 59 }
83 60
61 +
84 62 // Go Pro URL
85 63 if (!defined('FBOX_GO_PRO_URL'))
86 64 {
87 - define('FBOX_GO_PRO_URL', 'https://www.fireplugins.com/upgrade/?utm_source=product&utm_campaign=firebox-' . (FBOX_LICENSE_TYPE === 'lite' ? 'free' : 'pro') . '&utm_medium=%s-feature');
65 + define('FBOX_GO_PRO_URL', 'https://www.fireplugins.com/firebox/upgrade');
88 66 }
89 67
90 68
91 -
92 69 // Plugin Documentation URL
93 70 if (!defined('FBOX_DOC_URL'))
94 71 {
95 - define('FBOX_DOC_URL', 'https://www.fireplugins.com/docs/?utm_source=product&utm_campaign=firebox-' . (FBOX_LICENSE_TYPE === 'lite' ? 'free' : 'pro') . '&utm_medium=misc&utm_content=documentation');
72 + define('FBOX_DOC_URL', 'https://www.fireplugins.com/docs/firebox/');
96 73 }
97 74
98 75 // Plugin Folder Path
99 76 if (!defined('FBOX_PLUGIN_DIR'))
@@ -100,14 +77,8 @@
100 77 {
101 78 define('FBOX_PLUGIN_DIR', plugin_dir_path(__FILE__));
102 79 }
103 80
104 -// Plugin Release Date
105 -if (!defined('FBOX_RELEASE_DATE'))
106 -{
107 - define('FBOX_RELEASE_DATE', '2026-09-07');
108 -}
109 -
110 81 // Layouts Folder Path
111 82 if (!defined('FBOX_LAYOUTS_DIR'))
112 83 {
113 84 define('FBOX_LAYOUTS_DIR', FBOX_PLUGIN_DIR . 'Inc/Core/Layouts/');
@@ -172,41 +143,46 @@
172 143 add_action('admin_notices', 'firebox_fail_php_version');
173 144 }
174 145 else
175 146 {
176 - /**
177 - * Install and upgrade entry point.
178 - *
179 - * The activation hook fires on one site only, and never for a site added to
180 - * a network later. It is also missed when a plugin is activated by WP-CLI on
181 - * part of a network, or when a site is restored from a backup. Comparing the
182 - * stored version to the running one catches all of those, and it covers the
183 - * plugin update too — upgrader_process_complete runs while the old code is
184 - * still loaded, so the first request on the new code is what has to do the
185 - * work anyway. The installer stamps the version, so this runs once.
186 - */
187 - function firebox_init_installer_start()
147 + // Migrator
148 + function firebox_upgrader_migrator_start($upgrader_object, $options)
188 149 {
189 - add_action('fpf_init', function() {
190 - if (get_option('firebox_version') === FBOX_VERSION)
150 + if ($options['action'] === 'update' && $options['type'] === 'plugin' && isset($options['plugins']))
151 + {
152 + foreach ($options['plugins'] as $plugin)
191 153 {
192 - return;
154 + if ($plugin !== plugin_basename(__FILE__))
155 + {
156 + continue;
157 + }
158 +
159 + $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
160 + $migrator->run();
193 161 }
162 + }
163 + }
164 + add_action('upgrader_process_complete', 'firebox_upgrader_migrator_start', 10, 2);
194 165
195 - \FireBox\Core\Admin\SiteInstaller::install();
166 + function firebox_init_migrator_start()
167 + {
168 + add_action('fpf_init', function() {
169 + $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
170 + $migrator->run();
196 171 });
197 172 }
198 - add_action('plugins_loaded', 'firebox_init_installer_start', -1);
173 + add_action('plugins_loaded', 'firebox_init_migrator_start', -1);
199 174
200 -
201 -
202 175 // Start Plugin
203 176 require_once dirname(__FILE__) . '/Inc/Core/Plugin.php';
204 177 firebox();
205 178
206 - // Run Activation/Deactivation procedures.
207 - $maintenance = new \FireBox\Core\Admin\Maintenance(firebox()->hook_data);
208 - $maintenance->init();
179 + if (is_admin())
180 + {
181 + // Run Activation/Deactivation procedures
182 + $maintenance = new \FireBox\Core\Admin\Maintenance(firebox()->hook_data);
183 + $maintenance->init();
184 + }
209 185 }
210 186
211 187 /**
212 188 * FireBox admin notice for minimum PHP version.
@@ -214,13 +190,10 @@
214 190 * Warning when the site doesn't have the minimum required PHP version.
215 191 *
216 192 * @return void
217 193 */
218 -if (!function_exists('firebox_fail_php_version'))
194 +function firebox_fail_php_version()
219 195 {
220 - function firebox_fail_php_version()
221 - {
222 - $message = sprintf(fpframework()->_('FPF_PHP_VERSION_FAIL'), 'FireBox', FBOX_MINIMUM_PHP_VERSION);
223 - $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
224 - echo wp_kses_post( $html_message );
225 - }
226 -}
196 + $message = sprintf(fpframework()->_('FPF_PHP_VERSION_FAIL'), 'FireBox', FBOX_MINIMUM_PHP_VERSION);
197 + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
198 + echo wp_kses_post( $html_message );
199 +}