PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.8
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.8
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
firebox / firebox.php

firebox.php in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 3.1.8, at firebox.php

232 lines 5.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package FireBox
4 * @version 3.1.8
5 *
6 * @author FirePlugins <info@fireplugins.com>
7 * @link https://www.fireplugins.com
8 * @copyright Copyright © 2026 FirePlugins All Rights Reserved
9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 *
11 * Plugin Name: FireBox 3.1.8 Free
12 * Plugin URI: https://www.fireplugins.com/
13 * Description: WordPress Popup and leads generation plugin that converts visitors into subscribers & customers.
14 * Version: 3.1.8
15 * Author: FireBox Popup Plugin Team
16 * Author URI: https://www.fireplugins.com/
17 * Text Domain: firebox
18 * Domain Path: /languages
19 * Requires at least: 5.5
20 * Requires PHP: 7.0
21 * License: GPLv3 or later
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
23 */
24
25 // If this file is called directly, abort.
26 if (!defined('ABSPATH'))
27 {
28 exit; // Exit if accessed directly.
29 }
30
31 // Load Framework
32 if (!file_exists(dirname(__FILE__) . '/Inc/Framework/init.php'))
33 {
34 return;
35 }
36 require_once dirname(__FILE__) . '/Inc/Framework/init.php';
37
38 // Plugin Autoloader
39 if (!file_exists(dirname(__FILE__) . '/autoload.php'))
40 {
41 return;
42 }
43 require_once dirname(__FILE__) . '/autoload.php';
44
45
46
47 // Plugin version
48 if (!defined('FBOX_VERSION'))
49 {
50 define('FBOX_VERSION', '3.1.8');
51 }
52
53 // Plugin License type (free/pro)
54 if (!defined('FBOX_LICENSE_TYPE'))
55 {
56
57 $type = 'lite';
58
59
60 define('FBOX_LICENSE_TYPE', $type);
61 }
62
63 // Plugin License Plan (basic/pro/growth)
64 if (!defined('FBOX_LICENSE_PLAN'))
65 {
66
67 $plan = 'free';
68
69
70
71
72
73 define('FBOX_LICENSE_PLAN', $plan);
74 }
75
76 // PHP Minimm Version
77 if (!defined('FBOX_MINIMUM_PHP_VERSION'))
78 {
79 define('FBOX_MINIMUM_PHP_VERSION', '7.0');
80 }
81
82 // Go Pro URL
83 if (!defined('FBOX_GO_PRO_URL'))
84 {
85 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');
86 }
87
88
89
90 // Plugin Documentation URL
91 if (!defined('FBOX_DOC_URL'))
92 {
93 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');
94 }
95
96 // Plugin Folder Path
97 if (!defined('FBOX_PLUGIN_DIR'))
98 {
99 define('FBOX_PLUGIN_DIR', plugin_dir_path(__FILE__));
100 }
101
102 // Plugin Release Date
103 if (!defined('FBOX_RELEASE_DATE'))
104 {
105 define('FBOX_RELEASE_DATE', '2026-06-15');
106 }
107
108 // Layouts Folder Path
109 if (!defined('FBOX_LAYOUTS_DIR'))
110 {
111 define('FBOX_LAYOUTS_DIR', FBOX_PLUGIN_DIR . 'Inc/Core/Layouts/');
112 }
113
114 // Admin Layouts Folder Path
115 if (!defined('FBOX_ADMIN_LAYOUTS_DIR'))
116 {
117 define('FBOX_ADMIN_LAYOUTS_DIR', FBOX_PLUGIN_DIR . 'Inc/Core/Layouts/admin/');
118 }
119
120 // Public Layouts Folder Path
121 if (!defined('FBOX_PUBLIC_LAYOUTS_DIR'))
122 {
123 define('FBOX_PUBLIC_LAYOUTS_DIR', FBOX_PLUGIN_DIR . 'Inc/Core/Layouts/public/');
124 }
125
126 // Plugin Folder URL
127 if (!defined('FBOX_PLUGIN_URL'))
128 {
129 define('FBOX_PLUGIN_URL', plugin_dir_url(__FILE__));
130 }
131
132 // Media Plugin Folder URL
133 if (!defined('FBOX_MEDIA_URL'))
134 {
135 define('FBOX_MEDIA_URL', plugin_dir_url(__FILE__) . 'media/');
136 }
137
138 // Admin Media Plugin Folder URL
139 if (!defined('FBOX_MEDIA_ADMIN_URL'))
140 {
141 define('FBOX_MEDIA_ADMIN_URL', plugin_dir_url(__FILE__) . 'media/admin/');
142 }
143
144 // Public Media Plugin Folder URL
145 if (!defined('FBOX_MEDIA_PUBLIC_URL'))
146 {
147 define('FBOX_MEDIA_PUBLIC_URL', plugin_dir_url(__FILE__) . 'media/public/');
148 }
149
150 // Plugin Root File
151 if (!defined('FBOX_PLUGIN_BASE_FILE'))
152 {
153 define('FBOX_PLUGIN_BASE_FILE', __FILE__);
154 }
155
156 // Plugin Root Folder
157 if (!defined('FBOX_BASE_FOLDER'))
158 {
159 define('FBOX_BASE_FOLDER', dirname(__FILE__));
160 }
161
162 if (!defined('FBOX_PLUGIN_BASENAME'))
163 {
164 define('FBOX_PLUGIN_BASENAME', plugin_basename(__FILE__));
165 }
166
167 // Minimum PHP version check
168 if (!version_compare(PHP_VERSION, FBOX_MINIMUM_PHP_VERSION, '>='))
169 {
170 add_action('admin_notices', 'firebox_fail_php_version');
171 }
172 else
173 {
174 // Migrator
175 function firebox_upgrader_migrator_start($upgrader_object, $options)
176 {
177 if ($options['action'] === 'update' && $options['type'] === 'plugin' && isset($options['plugins']))
178 {
179 foreach ($options['plugins'] as $plugin)
180 {
181 if ($plugin !== plugin_basename(__FILE__))
182 {
183 continue;
184 }
185
186 $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
187 $migrator->run();
188 }
189 }
190 }
191 add_action('upgrader_process_complete', 'firebox_upgrader_migrator_start', 10, 2);
192
193 function firebox_init_migrator_start()
194 {
195 add_action('fpf_init', function() {
196 $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
197 $migrator->run();
198 });
199 }
200 add_action('plugins_loaded', 'firebox_init_migrator_start', -1);
201
202
203
204 // Start Plugin
205 require_once dirname(__FILE__) . '/Inc/Core/Plugin.php';
206 firebox();
207
208 if (is_admin())
209 {
210 // Run Activation/Deactivation procedures
211 $maintenance = new \FireBox\Core\Admin\Maintenance(firebox()->hook_data);
212 $maintenance->init();
213 }
214 }
215
216 /**
217 * FireBox admin notice for minimum PHP version.
218 *
219 * Warning when the site doesn't have the minimum required PHP version.
220 *
221 * @return void
222 */
223 if (!function_exists('firebox_fail_php_version'))
224 {
225 function firebox_fail_php_version()
226 {
227 $message = sprintf(fpframework()->_('FPF_PHP_VERSION_FAIL'), 'FireBox', FBOX_MINIMUM_PHP_VERSION);
228 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
229 echo wp_kses_post( $html_message );
230 }
231 }
232