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

30 lines
779 B
PHP

<?php
if (!defined('ABSPATH')) {
exit; //Exit if accessed directly
}
class AIOWPSecurity_Block_Litespeed extends AIOWPSecurity_Block_Htaccess {
/**
* Get the directives needed for litespeed server
*
* @return string
*/
public function get_contents() {
$bootstrap_path = AIOWPSecurity_Utility_Firewall::get_bootstrap_path();
$directives = "\n# Begin AIOWPSEC Firewall\n";
$directives .= "\t<IfModule LiteSpeed>\n";
$directives .= "\t\tphp_value auto_prepend_file '{$bootstrap_path}'\n";
$directives .= "\t</IfModule>\n";
$directives .= "\t<IfModule lsapi_module>\n";
$directives .= "\t\tphp_value auto_prepend_file '{$bootstrap_path}'\n";
$directives .= "\t</IfModule>\n";
$directives .= "# End AIOWPSEC Firewall";
return $directives;
}
}