# firebox/3.1.13/autoload.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version 3.1.13. 51 lines.

- Page: https://pluginprobe.com/plugins/firebox/3.1.13/code/autoload.php
- Raw: https://pluginprobe.com/plugins/firebox/3.1.13/raw/autoload.php
- Modified: 2026-09-07T07:54:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/3.1.13/code/autoload.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         3.1.13 Free
 *
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2026 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

// If this file is called directly, abort.
if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly.
}

if (!function_exists('firebox_autoloader'))
{
	function firebox_autoloader($class)
	{
		if (strpos($class, 'FireBox\\') !== 0)
		{
			return;
		}

		// plugin namespaces
		$firebox_namespaces = [
			'FireBox\\Core\\' => __DIR__ . '/Inc/Core/',
			'FireBox\\Testing\\' => dirname(__DIR__) . '/tests/',
		];

		foreach ($firebox_namespaces as $prefix => $dir)
		{
			if (strpos($class, $prefix) === 0)
			{
				$file = $dir . str_replace('\\', '/', substr($class, strlen($prefix))) . '.php';

				if (file_exists($file))
				{
					require_once $file;
				}

				return;
			}
		}
	}
}

// autoload classes
spl_autoload_register('firebox_autoloader');
```
