PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.1.4
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.1.4
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 | Inc/Framework/init.php +25 -6 3.1.72.1.4 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FirePlugins Framework
4 - * @version 1.1.146
4 + * @version 1.1.88
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 © 2024 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 */
11 11
12 12 if (!function_exists('add_action'))
@@ -139,9 +139,9 @@
139 139
140 140 // Support URL
141 141 if (!defined('FPF_SUPPORT_URL'))
142 142 {
143 - define('FPF_SUPPORT_URL', FPF_SITE_URL . 'contact/');
143 + define('FPF_SUPPORT_URL', FPF_SITE_URL . 'contact');
144 144 }
145 145
146 146 // Site Tower Endpoint
147 147 if (!defined('FPF_TOWER_ENDPOINT'))
@@ -172,8 +172,14 @@
172 172 {
173 173 define('FPF_TEMPLATE_GET_URL', FPF_TEMPLATES_TOWER_ENDPOINT . 'template/{{PLUGIN}}/{{TEMPLATE}}/{{LICENSE_KEY}}/{{SITE_URL}}/get');
174 174 }
175 175
176 + // URL to check a license
177 + if (!defined('FPF_CHECK_LICENSE'))
178 + {
179 + define('FPF_CHECK_LICENSE', 'https://www.fireplugins.com/wp-json/tower/v1/license/check/{{LICENSE}}/{{PLUGIN}}/{{SITE_URL}}');
180 + }
181 +
176 182 /**
177 183 * Get License Version URL
178 184 */
179 185 if (!defined('FPF_GET_LICENSE_VERSION_URL'))
@@ -188,8 +194,10 @@
188 194 {
189 195 define('FPF_PLUGIN_CHANGELOG_URL', FPF_SITE_URL . '%s/changelog/');
190 196 }
191 197
198 + firepluginsframework_load_textdomain(dirname(__DIR__));
199 +
192 200 // Now kick off the class autoloader.
193 201 spl_autoload_register(
194 202 /**
195 203 * Autoload classes
@@ -202,10 +210,10 @@
202 210 {
203 211 $base = dirname(__FILE__) . '/Inc/';
204 212
205 213 $namespaces = [
206 - 'FPFramework\\GeoIp2\\' => [ $base . 'Libs/Vendors/geoip2/geoip2/src/' ],
207 214 'FPFramework\\' => [ $base ],
215 + 'GeoIp2\\' => [ $base . 'Libs/Vendors/geoip2/geoip2/src/' ],
208 216 'MaxMind\\Db\\' => [ $base . 'Libs/Vendors/maxmind-db/reader/src/MaxMind/Db/' ],
209 217 'MaxMind\\' => [ $base . 'Libs/Vendors/maxmind/web-service-common/src/' ],
210 218 'splitbrain\\PHPArchive\\' => [$base . 'Libs/Vendors/splitbrain/php-archive/src/' ],
211 219 ];
@@ -234,10 +242,8 @@
234 242 require_once $file;
235 243 }
236 244 }
237 245 );
238 -
239 - \FPFramework\Base\Session::getInstance()->init();
240 246
241 247 // load once
242 248 if (FPF_LOADED == $priority)
243 249 {
@@ -254,8 +260,21 @@
254 260 do_action('fpf_admin_init');
255 261 }
256 262 }
257 263 }, firepluginsframework_getFrameworkPriority(dirname(__DIR__)));
264 +
265 +if (!function_exists('firepluginsframework_load_textdomain'))
266 +{
267 + /**
268 + * Load textdomain of plugin
269 + *
270 + * @return void
271 + */
272 + function firepluginsframework_load_textdomain($dir)
273 + {
274 + load_plugin_textdomain('fpf-framework', false, $dir . '/Framework/languages/');
275 + }
276 +}
258 277
259 278 if (!function_exists('firepluginsframework_fixClassBasedOnNamespace'))
260 279 {
261 280 /**