Files
dostavka_vodi/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/firewall/wp-security-firewall.php
User A0264400 a766acdc90 first commit
2026-04-01 23:20:16 +03:00

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);
}