1 bootstrap.inc | backdrop_is_litespeed() |
Checks whether Backdrop is running under LiteSpeed.
@since 1.21.4
Return value
bool: TRUE if Backdrop is running under LiteSpeed, FALSE if not.
File
- core/
includes/ bootstrap.inc, line 843 - Functions that need to be loaded on every Backdrop request.
Code
function backdrop_is_litespeed() {
$server_software = $_SERVER['SERVER_SOFTWARE'];
return (bool) preg_match("/litespeed/i", $server_software);
}