22 lines
713 B
PHP
22 lines
713 B
PHP
<?php
|
|
/**
|
|
* This is the file that will be loaded using auto_prepend_file directive
|
|
*/
|
|
|
|
if (!defined('AIOWPS_FIREWALL_DIR')) {
|
|
define('AIOWPS_FIREWALL_DIR', dirname(__FILE__));
|
|
define('AIOWPS_FIREWALL_DIR_PARENT', dirname(AIOWPS_FIREWALL_DIR));
|
|
}
|
|
|
|
if (!defined('AIOWPSEC_FIREWALL_DONE')) {
|
|
|
|
//Gracefully handle if the file is unable to be included. (i.e: ensure the user's site does not crash)
|
|
if (!(@include_once AIOWPS_FIREWALL_DIR . '/wp-security-firewall-loader.php')) {
|
|
error_log('AIOS firewall error: failed to load the firewall. Unable to include wp-security-firewall-loader.php.');
|
|
return;
|
|
}
|
|
|
|
\AIOWPS\Firewall\Loader::get_instance()->load_firewall();
|
|
define('AIOWPSEC_FIREWALL_DONE', true);
|
|
}
|